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
Traffic
Steering Rule Action - Action
- Categories List<string>
- Category
- Destinations List<string>
- Destination
- Name string
- Name
- Source
Users List<string> - Source user
- Folder string
- The folder containing the traffic steering rule
- Services []string
- Service
- Sources []string
- Source
- Action
Traffic
Steering Rule Action Args - Action
- Categories []string
- Category
- Destinations []string
- Destination
- Name string
- Name
- Source
Users []string - Source user
- folder String
- The folder containing the traffic steering rule
- services List<String>
- Service
- sources List<String>
- Source
- action
Traffic
Steering Rule Action - Action
- categories List<String>
- Category
- destinations List<String>
- Destination
- name String
- Name
- source
Users List<String> - Source user
- folder string
- The folder containing the traffic steering rule
- services string[]
- Service
- sources string[]
- Source
- action
Traffic
Steering Rule Action - Action
- categories string[]
- Category
- destinations string[]
- Destination
- name string
- Name
- source
Users string[] - Source user
- folder str
- The folder containing the traffic steering rule
- services Sequence[str]
- Service
- sources Sequence[str]
- Source
- action
Traffic
Steering Rule Action Args - 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
- source
Users List<String> - Source user
Outputs
All input properties are implicitly available as output properties. Additionally, the TrafficSteeringRule resource produces the following output properties:
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) -> TrafficSteeringRulefunc 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.
- Action
Traffic
Steering Rule Action - 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
- Source
Users List<string> - Source user
- Sources List<string>
- Source
- Tfid string
- Action
Traffic
Steering Rule Action Args - Action
- Categories []string
- Category
- Destinations []string
- Destination
- Folder string
- The folder containing the traffic steering rule
- Name string
- Name
- Services []string
- Service
- Source
Users []string - Source user
- Sources []string
- Source
- Tfid string
- action
Traffic
Steering Rule Action - 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
- source
Users List<String> - Source user
- sources List<String>
- Source
- tfid String
- action
Traffic
Steering Rule Action - Action
- categories string[]
- Category
- destinations string[]
- Destination
- folder string
- The folder containing the traffic steering rule
- name string
- Name
- services string[]
- Service
- source
Users string[] - Source user
- sources string[]
- Source
- tfid string
- action
Traffic
Steering Rule Action Args - 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
- source
Users List<String> - Source user
- sources List<String>
- Source
- tfid String
Supporting Types
TrafficSteeringRuleAction, TrafficSteeringRuleActionArgs
- forward Property Map
- Forward
TrafficSteeringRuleActionForward, TrafficSteeringRuleActionForwardArgs
- forward Property Map
- Forward
- no
Pbf Property Map - No pbf
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
scmTerraform Provider.
