meraki.networks.SwitchStormControl
Explore with Pulumi AI
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SwitchStormControl resource accepts the following input properties:
- Network
Id string - networkId path parameter. Network ID
- Broadcast
Threshold int - Broadcast threshold.
- Multicast
Threshold int - Multicast threshold.
- Unknown
Unicast intThreshold - Unknown Unicast threshold.
- Network
Id string - networkId path parameter. Network ID
- Broadcast
Threshold int - Broadcast threshold.
- Multicast
Threshold int - Multicast threshold.
- Unknown
Unicast intThreshold - Unknown Unicast threshold.
- network
Id String - networkId path parameter. Network ID
- broadcast
Threshold Integer - Broadcast threshold.
- multicast
Threshold Integer - Multicast threshold.
- unknown
Unicast IntegerThreshold - Unknown Unicast threshold.
- network
Id string - networkId path parameter. Network ID
- broadcast
Threshold number - Broadcast threshold.
- multicast
Threshold number - Multicast threshold.
- unknown
Unicast numberThreshold - Unknown Unicast threshold.
- network_
id str - networkId path parameter. Network ID
- broadcast_
threshold int - Broadcast threshold.
- multicast_
threshold int - Multicast threshold.
- unknown_
unicast_ intthreshold - Unknown Unicast threshold.
- network
Id String - networkId path parameter. Network ID
- broadcast
Threshold Number - Broadcast threshold.
- multicast
Threshold Number - Multicast threshold.
- unknown
Unicast NumberThreshold - 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.
- Broadcast
Threshold int - Broadcast threshold.
- Multicast
Threshold int - Multicast threshold.
- Network
Id string - networkId path parameter. Network ID
- Unknown
Unicast intThreshold - Unknown Unicast threshold.
- Broadcast
Threshold int - Broadcast threshold.
- Multicast
Threshold int - Multicast threshold.
- Network
Id string - networkId path parameter. Network ID
- Unknown
Unicast intThreshold - Unknown Unicast threshold.
- broadcast
Threshold Integer - Broadcast threshold.
- multicast
Threshold Integer - Multicast threshold.
- network
Id String - networkId path parameter. Network ID
- unknown
Unicast IntegerThreshold - Unknown Unicast threshold.
- broadcast
Threshold number - Broadcast threshold.
- multicast
Threshold number - Multicast threshold.
- network
Id string - networkId path parameter. Network ID
- unknown
Unicast numberThreshold - Unknown Unicast threshold.
- broadcast_
threshold int - Broadcast threshold.
- multicast_
threshold int - Multicast threshold.
- network_
id str - networkId path parameter. Network ID
- unknown_
unicast_ intthreshold - Unknown Unicast threshold.
- broadcast
Threshold Number - Broadcast threshold.
- multicast
Threshold Number - Multicast threshold.
- network
Id String - networkId path parameter. Network ID
- unknown
Unicast NumberThreshold - 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.