1. Packages
  2. Cisco Meraki
  3. API Docs
  4. devices
  5. BlinkLeds
Cisco Meraki v0.2.0 published on Friday, May 24, 2024 by Pulumi

meraki.devices.BlinkLeds

Explore with Pulumi AI

meraki logo
Cisco Meraki v0.2.0 published on Friday, May 24, 2024 by Pulumi

    ~>Warning: This resource does not represent a real-world entity in Meraki Dashboard, therefore changing or deleting this resource on its own has no immediate effect. Instead, it is a task part of a Meraki Dashboard workflow. It is executed in Meraki without any additional verification. It does not check if it was executed before or if a similar configuration or action already existed previously.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as meraki from "@pulumi/meraki";
    
    const example = new meraki.devices.BlinkLeds("example", {
        serial: "string",
        parameters: {
            duration: 20,
            duty: 50,
            period: 160,
        },
    });
    export const merakiDevicesBlinkLedsExample = example;
    
    import pulumi
    import pulumi_meraki as meraki
    
    example = meraki.devices.BlinkLeds("example",
        serial="string",
        parameters=meraki.devices.BlinkLedsParametersArgs(
            duration=20,
            duty=50,
            period=160,
        ))
    pulumi.export("merakiDevicesBlinkLedsExample", example)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-meraki/sdk/go/meraki/devices"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := devices.NewBlinkLeds(ctx, "example", &devices.BlinkLedsArgs{
    			Serial: pulumi.String("string"),
    			Parameters: &devices.BlinkLedsParametersArgs{
    				Duration: pulumi.Int(20),
    				Duty:     pulumi.Int(50),
    				Period:   pulumi.Int(160),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("merakiDevicesBlinkLedsExample", example)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Meraki = Pulumi.Meraki;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Meraki.Devices.BlinkLeds("example", new()
        {
            Serial = "string",
            Parameters = new Meraki.Devices.Inputs.BlinkLedsParametersArgs
            {
                Duration = 20,
                Duty = 50,
                Period = 160,
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["merakiDevicesBlinkLedsExample"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.devices.BlinkLeds;
    import com.pulumi.meraki.devices.BlinkLedsArgs;
    import com.pulumi.meraki.devices.inputs.BlinkLedsParametersArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new BlinkLeds("example", BlinkLedsArgs.builder()
                .serial("string")
                .parameters(BlinkLedsParametersArgs.builder()
                    .duration(20)
                    .duty(50)
                    .period(160)
                    .build())
                .build());
    
            ctx.export("merakiDevicesBlinkLedsExample", example);
        }
    }
    
    resources:
      example:
        type: meraki:devices:BlinkLeds
        properties:
          serial: string
          parameters:
            duration: 20
            duty: 50
            period: 160
    outputs:
      merakiDevicesBlinkLedsExample: ${example}
    

    Create BlinkLeds Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new BlinkLeds(name: string, args: BlinkLedsArgs, opts?: CustomResourceOptions);
    @overload
    def BlinkLeds(resource_name: str,
                  args: BlinkLedsArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def BlinkLeds(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  parameters: Optional[BlinkLedsParametersArgs] = None,
                  serial: Optional[str] = None)
    func NewBlinkLeds(ctx *Context, name string, args BlinkLedsArgs, opts ...ResourceOption) (*BlinkLeds, error)
    public BlinkLeds(string name, BlinkLedsArgs args, CustomResourceOptions? opts = null)
    public BlinkLeds(String name, BlinkLedsArgs args)
    public BlinkLeds(String name, BlinkLedsArgs args, CustomResourceOptions options)
    
    type: meraki:devices:BlinkLeds
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args BlinkLedsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args BlinkLedsArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args BlinkLedsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BlinkLedsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BlinkLedsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var blinkLedsResource = new Meraki.Devices.BlinkLeds("blinkLedsResource", new()
    {
        Parameters = new Meraki.Devices.Inputs.BlinkLedsParametersArgs
        {
            Duration = 0,
            Duty = 0,
            Period = 0,
        },
        Serial = "string",
    });
    
    example, err := devices.NewBlinkLeds(ctx, "blinkLedsResource", &devices.BlinkLedsArgs{
    	Parameters: &devices.BlinkLedsParametersArgs{
    		Duration: pulumi.Int(0),
    		Duty:     pulumi.Int(0),
    		Period:   pulumi.Int(0),
    	},
    	Serial: pulumi.String("string"),
    })
    
    var blinkLedsResource = new BlinkLeds("blinkLedsResource", BlinkLedsArgs.builder()        
        .parameters(BlinkLedsParametersArgs.builder()
            .duration(0)
            .duty(0)
            .period(0)
            .build())
        .serial("string")
        .build());
    
    blink_leds_resource = meraki.devices.BlinkLeds("blinkLedsResource",
        parameters=meraki.devices.BlinkLedsParametersArgs(
            duration=0,
            duty=0,
            period=0,
        ),
        serial="string")
    
    const blinkLedsResource = new meraki.devices.BlinkLeds("blinkLedsResource", {
        parameters: {
            duration: 0,
            duty: 0,
            period: 0,
        },
        serial: "string",
    });
    
    type: meraki:devices:BlinkLeds
    properties:
        parameters:
            duration: 0
            duty: 0
            period: 0
        serial: string
    

    BlinkLeds Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The BlinkLeds resource accepts the following input properties:

    Parameters BlinkLedsParameters
    Serial string
    serial path parameter.
    Parameters BlinkLedsParametersArgs
    Serial string
    serial path parameter.
    parameters BlinkLedsParameters
    serial String
    serial path parameter.
    parameters BlinkLedsParameters
    serial string
    serial path parameter.
    parameters BlinkLedsParametersArgs
    serial str
    serial path parameter.
    parameters Property Map
    serial String
    serial path parameter.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the BlinkLeds resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Item BlinkLedsItem
    Id string
    The provider-assigned unique ID for this managed resource.
    Item BlinkLedsItem
    id String
    The provider-assigned unique ID for this managed resource.
    item BlinkLedsItem
    id string
    The provider-assigned unique ID for this managed resource.
    item BlinkLedsItem
    id str
    The provider-assigned unique ID for this managed resource.
    item BlinkLedsItem
    id String
    The provider-assigned unique ID for this managed resource.
    item Property Map

    Look up Existing BlinkLeds Resource

    Get an existing BlinkLeds resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: BlinkLedsState, opts?: CustomResourceOptions): BlinkLeds
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            item: Optional[BlinkLedsItemArgs] = None,
            parameters: Optional[BlinkLedsParametersArgs] = None,
            serial: Optional[str] = None) -> BlinkLeds
    func GetBlinkLeds(ctx *Context, name string, id IDInput, state *BlinkLedsState, opts ...ResourceOption) (*BlinkLeds, error)
    public static BlinkLeds Get(string name, Input<string> id, BlinkLedsState? state, CustomResourceOptions? opts = null)
    public static BlinkLeds get(String name, Output<String> id, BlinkLedsState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    item Property Map
    parameters Property Map
    serial String
    serial path parameter.

    Supporting Types

    BlinkLedsItem, BlinkLedsItemArgs

    Duration int
    The duration in seconds. Will be between 5 and 120. Default is 20 seconds
    Duty int
    The duty cycle as the percent active. Will be between 10 and 90. Default is 50
    Period int
    The period in milliseconds. Will be between 100 and 1000. Default is 160 milliseconds
    Duration int
    The duration in seconds. Will be between 5 and 120. Default is 20 seconds
    Duty int
    The duty cycle as the percent active. Will be between 10 and 90. Default is 50
    Period int
    The period in milliseconds. Will be between 100 and 1000. Default is 160 milliseconds
    duration Integer
    The duration in seconds. Will be between 5 and 120. Default is 20 seconds
    duty Integer
    The duty cycle as the percent active. Will be between 10 and 90. Default is 50
    period Integer
    The period in milliseconds. Will be between 100 and 1000. Default is 160 milliseconds
    duration number
    The duration in seconds. Will be between 5 and 120. Default is 20 seconds
    duty number
    The duty cycle as the percent active. Will be between 10 and 90. Default is 50
    period number
    The period in milliseconds. Will be between 100 and 1000. Default is 160 milliseconds
    duration int
    The duration in seconds. Will be between 5 and 120. Default is 20 seconds
    duty int
    The duty cycle as the percent active. Will be between 10 and 90. Default is 50
    period int
    The period in milliseconds. Will be between 100 and 1000. Default is 160 milliseconds
    duration Number
    The duration in seconds. Will be between 5 and 120. Default is 20 seconds
    duty Number
    The duty cycle as the percent active. Will be between 10 and 90. Default is 50
    period Number
    The period in milliseconds. Will be between 100 and 1000. Default is 160 milliseconds

    BlinkLedsParameters, BlinkLedsParametersArgs

    Duration int
    The duration in seconds. Must be between 5 and 120. Default is 20 seconds
    Duty int
    The duty cycle as the percent active. Must be between 10 and 90. Default is 50.
    Period int
    The period in milliseconds. Must be between 100 and 1000. Default is 160 milliseconds
    Duration int
    The duration in seconds. Must be between 5 and 120. Default is 20 seconds
    Duty int
    The duty cycle as the percent active. Must be between 10 and 90. Default is 50.
    Period int
    The period in milliseconds. Must be between 100 and 1000. Default is 160 milliseconds
    duration Integer
    The duration in seconds. Must be between 5 and 120. Default is 20 seconds
    duty Integer
    The duty cycle as the percent active. Must be between 10 and 90. Default is 50.
    period Integer
    The period in milliseconds. Must be between 100 and 1000. Default is 160 milliseconds
    duration number
    The duration in seconds. Must be between 5 and 120. Default is 20 seconds
    duty number
    The duty cycle as the percent active. Must be between 10 and 90. Default is 50.
    period number
    The period in milliseconds. Must be between 100 and 1000. Default is 160 milliseconds
    duration int
    The duration in seconds. Must be between 5 and 120. Default is 20 seconds
    duty int
    The duty cycle as the percent active. Must be between 10 and 90. Default is 50.
    period int
    The period in milliseconds. Must be between 100 and 1000. Default is 160 milliseconds
    duration Number
    The duration in seconds. Must be between 5 and 120. Default is 20 seconds
    duty Number
    The duty cycle as the percent active. Must be between 10 and 90. Default is 50.
    period Number
    The period in milliseconds. Must be between 100 and 1000. Default is 160 milliseconds

    Package Details

    Repository
    meraki pulumi/pulumi-meraki
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the meraki Terraform Provider.
    meraki logo
    Cisco Meraki v0.2.0 published on Friday, May 24, 2024 by Pulumi