1. Packages
  2. Strata Cloud Manager Provider
  3. API Docs
  4. TrafficSteeringRule
Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
scm logo
Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi

    TrafficSteeringRule resource

    Create TrafficSteeringRule Resource

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

    Constructor syntax

    new TrafficSteeringRule(name: string, args: TrafficSteeringRuleArgs, opts?: CustomResourceOptions);
    @overload
    def TrafficSteeringRule(resource_name: str,
                            args: TrafficSteeringRuleArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def TrafficSteeringRule(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            folder: Optional[str] = None,
                            services: Optional[Sequence[str]] = None,
                            sources: Optional[Sequence[str]] = None,
                            action: Optional[TrafficSteeringRuleActionArgs] = None,
                            categories: Optional[Sequence[str]] = None,
                            destinations: Optional[Sequence[str]] = None,
                            name: Optional[str] = None,
                            source_users: Optional[Sequence[str]] = None)
    func NewTrafficSteeringRule(ctx *Context, name string, args TrafficSteeringRuleArgs, opts ...ResourceOption) (*TrafficSteeringRule, error)
    public TrafficSteeringRule(string name, TrafficSteeringRuleArgs args, CustomResourceOptions? opts = null)
    public TrafficSteeringRule(String name, TrafficSteeringRuleArgs args)
    public TrafficSteeringRule(String name, TrafficSteeringRuleArgs args, CustomResourceOptions options)
    
    type: scm:TrafficSteeringRule
    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 TrafficSteeringRuleArgs
    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 TrafficSteeringRuleArgs
    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 TrafficSteeringRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TrafficSteeringRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TrafficSteeringRuleArgs
    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 trafficSteeringRuleResource = new Scm.TrafficSteeringRule("trafficSteeringRuleResource", new()
    {
        Folder = "string",
        Services = new[]
        {
            "string",
        },
        Sources = new[]
        {
            "string",
        },
        Action = new Scm.Inputs.TrafficSteeringRuleActionArgs
        {
            Forward = new Scm.Inputs.TrafficSteeringRuleActionForwardArgs
            {
                Forward = new Scm.Inputs.TrafficSteeringRuleActionForwardForwardArgs
                {
                    Target = "string",
                },
                NoPbf = null,
            },
        },
        Categories = new[]
        {
            "string",
        },
        Destinations = new[]
        {
            "string",
        },
        Name = "string",
        SourceUsers = new[]
        {
            "string",
        },
    });
    
    example, err := scm.NewTrafficSteeringRule(ctx, "trafficSteeringRuleResource", &scm.TrafficSteeringRuleArgs{
    	Folder: pulumi.String("string"),
    	Services: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Sources: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Action: &scm.TrafficSteeringRuleActionArgs{
    		Forward: &scm.TrafficSteeringRuleActionForwardArgs{
    			Forward: &scm.TrafficSteeringRuleActionForwardForwardArgs{
    				Target: pulumi.String("string"),
    			},
    			NoPbf: &scm.TrafficSteeringRuleActionForwardNoPbfArgs{},
    		},
    	},
    	Categories: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Destinations: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Name: pulumi.String("string"),
    	SourceUsers: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var trafficSteeringRuleResource = new TrafficSteeringRule("trafficSteeringRuleResource", TrafficSteeringRuleArgs.builder()
        .folder("string")
        .services("string")
        .sources("string")
        .action(TrafficSteeringRuleActionArgs.builder()
            .forward(TrafficSteeringRuleActionForwardArgs.builder()
                .forward(TrafficSteeringRuleActionForwardForwardArgs.builder()
                    .target("string")
                    .build())
                .noPbf(TrafficSteeringRuleActionForwardNoPbfArgs.builder()
                    .build())
                .build())
            .build())
        .categories("string")
        .destinations("string")
        .name("string")
        .sourceUsers("string")
        .build());
    
    traffic_steering_rule_resource = scm.TrafficSteeringRule("trafficSteeringRuleResource",
        folder="string",
        services=["string"],
        sources=["string"],
        action={
            "forward": {
                "forward": {
                    "target": "string",
                },
                "no_pbf": {},
            },
        },
        categories=["string"],
        destinations=["string"],
        name="string",
        source_users=["string"])
    
    const trafficSteeringRuleResource = new scm.TrafficSteeringRule("trafficSteeringRuleResource", {
        folder: "string",
        services: ["string"],
        sources: ["string"],
        action: {
            forward: {
                forward: {
                    target: "string",
                },
                noPbf: {},
            },
        },
        categories: ["string"],
        destinations: ["string"],
        name: "string",
        sourceUsers: ["string"],
    });
    
    type: scm:TrafficSteeringRule
    properties:
        action:
            forward:
                forward:
                    target: string
                noPbf: {}
        categories:
            - string
        destinations:
            - string
        folder: string
        name: string
        services:
            - string
        sourceUsers:
            - string
        sources:
            - string
    

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

    Folder string
    The folder containing the traffic steering rule
    Services List<string>
    Service
    Sources List<string>
    Source
    Action TrafficSteeringRuleAction
    Action
    Categories List<string>
    Category
    Destinations List<string>
    Destination
    Name string
    Name
    SourceUsers List<string>
    Source user
    Folder string
    The folder containing the traffic steering rule
    Services []string
    Service
    Sources []string
    Source
    Action TrafficSteeringRuleActionArgs
    Action
    Categories []string
    Category
    Destinations []string
    Destination
    Name string
    Name
    SourceUsers []string
    Source user
    folder String
    The folder containing the traffic steering rule
    services List<String>
    Service
    sources List<String>
    Source
    action TrafficSteeringRuleAction
    Action
    categories List<String>
    Category
    destinations List<String>
    Destination
    name String
    Name
    sourceUsers List<String>
    Source user
    folder string
    The folder containing the traffic steering rule
    services string[]
    Service
    sources string[]
    Source
    action TrafficSteeringRuleAction
    Action
    categories string[]
    Category
    destinations string[]
    Destination
    name string
    Name
    sourceUsers string[]
    Source user
    folder str
    The folder containing the traffic steering rule
    services Sequence[str]
    Service
    sources Sequence[str]
    Source
    action TrafficSteeringRuleActionArgs
    Action
    categories Sequence[str]
    Category
    destinations Sequence[str]
    Destination
    name str
    Name
    source_users Sequence[str]
    Source user
    folder String
    The folder containing the traffic steering rule
    services List<String>
    Service
    sources List<String>
    Source
    action Property Map
    Action
    categories List<String>
    Category
    destinations List<String>
    Destination
    name String
    Name
    sourceUsers List<String>
    Source user

    Outputs

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

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

    Look up Existing TrafficSteeringRule Resource

    Get an existing TrafficSteeringRule 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?: TrafficSteeringRuleState, opts?: CustomResourceOptions): TrafficSteeringRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[TrafficSteeringRuleActionArgs] = None,
            categories: Optional[Sequence[str]] = None,
            destinations: Optional[Sequence[str]] = None,
            folder: Optional[str] = None,
            name: Optional[str] = None,
            services: Optional[Sequence[str]] = None,
            source_users: Optional[Sequence[str]] = None,
            sources: Optional[Sequence[str]] = None,
            tfid: Optional[str] = None) -> TrafficSteeringRule
    func GetTrafficSteeringRule(ctx *Context, name string, id IDInput, state *TrafficSteeringRuleState, opts ...ResourceOption) (*TrafficSteeringRule, error)
    public static TrafficSteeringRule Get(string name, Input<string> id, TrafficSteeringRuleState? state, CustomResourceOptions? opts = null)
    public static TrafficSteeringRule get(String name, Output<String> id, TrafficSteeringRuleState state, CustomResourceOptions options)
    resources:  _:    type: scm:TrafficSteeringRule    get:      id: ${id}
    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:
    Action TrafficSteeringRuleAction
    Action
    Categories List<string>
    Category
    Destinations List<string>
    Destination
    Folder string
    The folder containing the traffic steering rule
    Name string
    Name
    Services List<string>
    Service
    SourceUsers List<string>
    Source user
    Sources List<string>
    Source
    Tfid string
    Action TrafficSteeringRuleActionArgs
    Action
    Categories []string
    Category
    Destinations []string
    Destination
    Folder string
    The folder containing the traffic steering rule
    Name string
    Name
    Services []string
    Service
    SourceUsers []string
    Source user
    Sources []string
    Source
    Tfid string
    action TrafficSteeringRuleAction
    Action
    categories List<String>
    Category
    destinations List<String>
    Destination
    folder String
    The folder containing the traffic steering rule
    name String
    Name
    services List<String>
    Service
    sourceUsers List<String>
    Source user
    sources List<String>
    Source
    tfid String
    action TrafficSteeringRuleAction
    Action
    categories string[]
    Category
    destinations string[]
    Destination
    folder string
    The folder containing the traffic steering rule
    name string
    Name
    services string[]
    Service
    sourceUsers string[]
    Source user
    sources string[]
    Source
    tfid string
    action TrafficSteeringRuleActionArgs
    Action
    categories Sequence[str]
    Category
    destinations Sequence[str]
    Destination
    folder str
    The folder containing the traffic steering rule
    name str
    Name
    services Sequence[str]
    Service
    source_users Sequence[str]
    Source user
    sources Sequence[str]
    Source
    tfid str
    action Property Map
    Action
    categories List<String>
    Category
    destinations List<String>
    Destination
    folder String
    The folder containing the traffic steering rule
    name String
    Name
    services List<String>
    Service
    sourceUsers List<String>
    Source user
    sources List<String>
    Source
    tfid String

    Supporting Types

    TrafficSteeringRuleAction, TrafficSteeringRuleActionArgs

    TrafficSteeringRuleActionForward, TrafficSteeringRuleActionForwardArgs

    TrafficSteeringRuleActionForwardForward, TrafficSteeringRuleActionForwardForwardArgs

    Target string
    Target
    Target string
    Target
    target String
    Target
    target string
    Target
    target str
    Target
    target String
    Target

    Package Details

    Repository
    scm pulumi/pulumi-scm
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scm Terraform Provider.
    scm logo
    Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate