1. Packages
  2. Cisco Meraki
  3. API Docs
  4. networks
  5. SwitchStormControl
Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi

meraki.networks.SwitchStormControl

Explore with Pulumi AI

meraki logo
Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as meraki from "@pulumi/meraki";
    
    const example = new meraki.networks.SwitchStormControl("example", {
        broadcastThreshold: 30,
        multicastThreshold: 30,
        networkId: "string",
        unknownUnicastThreshold: 30,
    });
    export const merakiNetworksSwitchStormControlExample = example;
    
    import pulumi
    import pulumi_meraki as meraki
    
    example = meraki.networks.SwitchStormControl("example",
        broadcast_threshold=30,
        multicast_threshold=30,
        network_id="string",
        unknown_unicast_threshold=30)
    pulumi.export("merakiNetworksSwitchStormControlExample", example)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-meraki/sdk/go/meraki/networks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := networks.NewSwitchStormControl(ctx, "example", &networks.SwitchStormControlArgs{
    			BroadcastThreshold:      pulumi.Int(30),
    			MulticastThreshold:      pulumi.Int(30),
    			NetworkId:               pulumi.String("string"),
    			UnknownUnicastThreshold: pulumi.Int(30),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("merakiNetworksSwitchStormControlExample", example)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Meraki = Pulumi.Meraki;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Meraki.Networks.SwitchStormControl("example", new()
        {
            BroadcastThreshold = 30,
            MulticastThreshold = 30,
            NetworkId = "string",
            UnknownUnicastThreshold = 30,
        });
    
        return new Dictionary<string, object?>
        {
            ["merakiNetworksSwitchStormControlExample"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.networks.SwitchStormControl;
    import com.pulumi.meraki.networks.SwitchStormControlArgs;
    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 SwitchStormControl("example", SwitchStormControlArgs.builder()
                .broadcastThreshold(30)
                .multicastThreshold(30)
                .networkId("string")
                .unknownUnicastThreshold(30)
                .build());
    
            ctx.export("merakiNetworksSwitchStormControlExample", example);
        }
    }
    
    resources:
      example:
        type: meraki:networks:SwitchStormControl
        properties:
          broadcastThreshold: 30
          multicastThreshold: 30
          networkId: string
          unknownUnicastThreshold: 30
    outputs:
      merakiNetworksSwitchStormControlExample: ${example}
    

    Create SwitchStormControl Resource

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

    Constructor syntax

    new SwitchStormControl(name: string, args: SwitchStormControlArgs, opts?: CustomResourceOptions);
    @overload
    def SwitchStormControl(resource_name: str,
                           args: SwitchStormControlArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def SwitchStormControl(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           network_id: Optional[str] = None,
                           broadcast_threshold: Optional[int] = None,
                           multicast_threshold: Optional[int] = None,
                           unknown_unicast_threshold: Optional[int] = None)
    func NewSwitchStormControl(ctx *Context, name string, args SwitchStormControlArgs, opts ...ResourceOption) (*SwitchStormControl, error)
    public SwitchStormControl(string name, SwitchStormControlArgs args, CustomResourceOptions? opts = null)
    public SwitchStormControl(String name, SwitchStormControlArgs args)
    public SwitchStormControl(String name, SwitchStormControlArgs args, CustomResourceOptions options)
    
    type: meraki:networks:SwitchStormControl
    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 SwitchStormControlArgs
    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 SwitchStormControlArgs
    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 SwitchStormControlArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SwitchStormControlArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SwitchStormControlArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

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

    var switchStormControlResource = new Meraki.Networks.SwitchStormControl("switchStormControlResource", new()
    {
        NetworkId = "string",
        BroadcastThreshold = 0,
        MulticastThreshold = 0,
        UnknownUnicastThreshold = 0,
    });
    
    example, err := networks.NewSwitchStormControl(ctx, "switchStormControlResource", &networks.SwitchStormControlArgs{
    	NetworkId:               pulumi.String("string"),
    	BroadcastThreshold:      pulumi.Int(0),
    	MulticastThreshold:      pulumi.Int(0),
    	UnknownUnicastThreshold: pulumi.Int(0),
    })
    
    var switchStormControlResource = new SwitchStormControl("switchStormControlResource", SwitchStormControlArgs.builder()
        .networkId("string")
        .broadcastThreshold(0)
        .multicastThreshold(0)
        .unknownUnicastThreshold(0)
        .build());
    
    switch_storm_control_resource = meraki.networks.SwitchStormControl("switchStormControlResource",
        network_id="string",
        broadcast_threshold=0,
        multicast_threshold=0,
        unknown_unicast_threshold=0)
    
    const switchStormControlResource = new meraki.networks.SwitchStormControl("switchStormControlResource", {
        networkId: "string",
        broadcastThreshold: 0,
        multicastThreshold: 0,
        unknownUnicastThreshold: 0,
    });
    
    type: meraki:networks:SwitchStormControl
    properties:
        broadcastThreshold: 0
        multicastThreshold: 0
        networkId: string
        unknownUnicastThreshold: 0
    

    SwitchStormControl 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 SwitchStormControl resource accepts the following input properties:

    NetworkId string
    networkId path parameter. Network ID
    BroadcastThreshold int
    Broadcast threshold.
    MulticastThreshold int
    Multicast threshold.
    UnknownUnicastThreshold int
    Unknown Unicast threshold.
    NetworkId string
    networkId path parameter. Network ID
    BroadcastThreshold int
    Broadcast threshold.
    MulticastThreshold int
    Multicast threshold.
    UnknownUnicastThreshold int
    Unknown Unicast threshold.
    networkId String
    networkId path parameter. Network ID
    broadcastThreshold Integer
    Broadcast threshold.
    multicastThreshold Integer
    Multicast threshold.
    unknownUnicastThreshold Integer
    Unknown Unicast threshold.
    networkId string
    networkId path parameter. Network ID
    broadcastThreshold number
    Broadcast threshold.
    multicastThreshold number
    Multicast threshold.
    unknownUnicastThreshold number
    Unknown Unicast threshold.
    network_id str
    networkId path parameter. Network ID
    broadcast_threshold int
    Broadcast threshold.
    multicast_threshold int
    Multicast threshold.
    unknown_unicast_threshold int
    Unknown Unicast threshold.
    networkId String
    networkId path parameter. Network ID
    broadcastThreshold Number
    Broadcast threshold.
    multicastThreshold Number
    Multicast threshold.
    unknownUnicastThreshold Number
    Unknown Unicast threshold.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing SwitchStormControl Resource

    Get an existing SwitchStormControl 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?: SwitchStormControlState, opts?: CustomResourceOptions): SwitchStormControl
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            broadcast_threshold: Optional[int] = None,
            multicast_threshold: Optional[int] = None,
            network_id: Optional[str] = None,
            unknown_unicast_threshold: Optional[int] = None) -> SwitchStormControl
    func GetSwitchStormControl(ctx *Context, name string, id IDInput, state *SwitchStormControlState, opts ...ResourceOption) (*SwitchStormControl, error)
    public static SwitchStormControl Get(string name, Input<string> id, SwitchStormControlState? state, CustomResourceOptions? opts = null)
    public static SwitchStormControl get(String name, Output<String> id, SwitchStormControlState 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:
    BroadcastThreshold int
    Broadcast threshold.
    MulticastThreshold int
    Multicast threshold.
    NetworkId string
    networkId path parameter. Network ID
    UnknownUnicastThreshold int
    Unknown Unicast threshold.
    BroadcastThreshold int
    Broadcast threshold.
    MulticastThreshold int
    Multicast threshold.
    NetworkId string
    networkId path parameter. Network ID
    UnknownUnicastThreshold int
    Unknown Unicast threshold.
    broadcastThreshold Integer
    Broadcast threshold.
    multicastThreshold Integer
    Multicast threshold.
    networkId String
    networkId path parameter. Network ID
    unknownUnicastThreshold Integer
    Unknown Unicast threshold.
    broadcastThreshold number
    Broadcast threshold.
    multicastThreshold number
    Multicast threshold.
    networkId string
    networkId path parameter. Network ID
    unknownUnicastThreshold number
    Unknown Unicast threshold.
    broadcast_threshold int
    Broadcast threshold.
    multicast_threshold int
    Multicast threshold.
    network_id str
    networkId path parameter. Network ID
    unknown_unicast_threshold int
    Unknown Unicast threshold.
    broadcastThreshold Number
    Broadcast threshold.
    multicastThreshold Number
    Multicast threshold.
    networkId String
    networkId path parameter. Network ID
    unknownUnicastThreshold Number
    Unknown Unicast threshold.

    Import

    $ pulumi import meraki:networks/switchStormControl:SwitchStormControl example "network_id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.4 published on Friday, Jun 14, 2024 by Pulumi