sdwan.RewriteRulePolicyDefinition
Explore with Pulumi AI
This resource can manage a Rewrite Rule Policy Definition .
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sdwan.RewriteRulePolicyDefinition;
import com.pulumi.sdwan.RewriteRulePolicyDefinitionArgs;
import com.pulumi.sdwan.inputs.RewriteRulePolicyDefinitionRuleArgs;
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 RewriteRulePolicyDefinition("example", RewriteRulePolicyDefinitionArgs.builder()
.name("Example")
.description("My description")
.rules(RewriteRulePolicyDefinitionRuleArgs.builder()
.class_map_id("2081c2f4-3f9f-4fee-8078-dcc8904e368d")
.priority("low")
.dscp(16)
.layer2_cos(1)
.build())
.build());
}
}
resources:
example:
type: sdwan:RewriteRulePolicyDefinition
properties:
name: Example
description: My description
rules:
- class_map_id: 2081c2f4-3f9f-4fee-8078-dcc8904e368d
priority: low
dscp: 16
layer2_cos: 1
Create RewriteRulePolicyDefinition Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RewriteRulePolicyDefinition(name: string, args: RewriteRulePolicyDefinitionArgs, opts?: CustomResourceOptions);
@overload
def RewriteRulePolicyDefinition(resource_name: str,
args: RewriteRulePolicyDefinitionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RewriteRulePolicyDefinition(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
rules: Optional[Sequence[RewriteRulePolicyDefinitionRuleArgs]] = None,
name: Optional[str] = None)
func NewRewriteRulePolicyDefinition(ctx *Context, name string, args RewriteRulePolicyDefinitionArgs, opts ...ResourceOption) (*RewriteRulePolicyDefinition, error)
public RewriteRulePolicyDefinition(string name, RewriteRulePolicyDefinitionArgs args, CustomResourceOptions? opts = null)
public RewriteRulePolicyDefinition(String name, RewriteRulePolicyDefinitionArgs args)
public RewriteRulePolicyDefinition(String name, RewriteRulePolicyDefinitionArgs args, CustomResourceOptions options)
type: sdwan:RewriteRulePolicyDefinition
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 RewriteRulePolicyDefinitionArgs
- 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 RewriteRulePolicyDefinitionArgs
- 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 RewriteRulePolicyDefinitionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RewriteRulePolicyDefinitionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RewriteRulePolicyDefinitionArgs
- 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 rewriteRulePolicyDefinitionResource = new Sdwan.RewriteRulePolicyDefinition("rewriteRulePolicyDefinitionResource", new()
{
Description = "string",
Rules = new[]
{
new Sdwan.Inputs.RewriteRulePolicyDefinitionRuleArgs
{
ClassMapId = "string",
Dscp = 0,
Priority = "string",
ClassMapVersion = 0,
Layer2Cos = 0,
},
},
Name = "string",
});
example, err := sdwan.NewRewriteRulePolicyDefinition(ctx, "rewriteRulePolicyDefinitionResource", &sdwan.RewriteRulePolicyDefinitionArgs{
Description: pulumi.String("string"),
Rules: sdwan.RewriteRulePolicyDefinitionRuleArray{
&sdwan.RewriteRulePolicyDefinitionRuleArgs{
ClassMapId: pulumi.String("string"),
Dscp: pulumi.Int(0),
Priority: pulumi.String("string"),
ClassMapVersion: pulumi.Int(0),
Layer2Cos: pulumi.Int(0),
},
},
Name: pulumi.String("string"),
})
var rewriteRulePolicyDefinitionResource = new RewriteRulePolicyDefinition("rewriteRulePolicyDefinitionResource", RewriteRulePolicyDefinitionArgs.builder()
.description("string")
.rules(RewriteRulePolicyDefinitionRuleArgs.builder()
.classMapId("string")
.dscp(0)
.priority("string")
.classMapVersion(0)
.layer2Cos(0)
.build())
.name("string")
.build());
rewrite_rule_policy_definition_resource = sdwan.RewriteRulePolicyDefinition("rewriteRulePolicyDefinitionResource",
description="string",
rules=[{
"class_map_id": "string",
"dscp": 0,
"priority": "string",
"class_map_version": 0,
"layer2_cos": 0,
}],
name="string")
const rewriteRulePolicyDefinitionResource = new sdwan.RewriteRulePolicyDefinition("rewriteRulePolicyDefinitionResource", {
description: "string",
rules: [{
classMapId: "string",
dscp: 0,
priority: "string",
classMapVersion: 0,
layer2Cos: 0,
}],
name: "string",
});
type: sdwan:RewriteRulePolicyDefinition
properties:
description: string
name: string
rules:
- classMapId: string
classMapVersion: 0
dscp: 0
layer2Cos: 0
priority: string
RewriteRulePolicyDefinition 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 RewriteRulePolicyDefinition resource accepts the following input properties:
- Description string
- The description of the policy definition
- Rules
List<Rewrite
Rule Policy Definition Rule> - List of rules
- Name string
- The name of the policy definition
- Description string
- The description of the policy definition
- Rules
[]Rewrite
Rule Policy Definition Rule Args - List of rules
- Name string
- The name of the policy definition
- description String
- The description of the policy definition
- rules
List<Rewrite
Rule Policy Definition Rule> - List of rules
- name String
- The name of the policy definition
- description string
- The description of the policy definition
- rules
Rewrite
Rule Policy Definition Rule[] - List of rules
- name string
- The name of the policy definition
- description str
- The description of the policy definition
- rules
Sequence[Rewrite
Rule Policy Definition Rule Args] - List of rules
- name str
- The name of the policy definition
- description String
- The description of the policy definition
- rules List<Property Map>
- List of rules
- name String
- The name of the policy definition
Outputs
All input properties are implicitly available as output properties. Additionally, the RewriteRulePolicyDefinition resource produces the following output properties:
Look up Existing RewriteRulePolicyDefinition Resource
Get an existing RewriteRulePolicyDefinition 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?: RewriteRulePolicyDefinitionState, opts?: CustomResourceOptions): RewriteRulePolicyDefinition
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
rules: Optional[Sequence[RewriteRulePolicyDefinitionRuleArgs]] = None,
type: Optional[str] = None,
version: Optional[int] = None) -> RewriteRulePolicyDefinition
func GetRewriteRulePolicyDefinition(ctx *Context, name string, id IDInput, state *RewriteRulePolicyDefinitionState, opts ...ResourceOption) (*RewriteRulePolicyDefinition, error)
public static RewriteRulePolicyDefinition Get(string name, Input<string> id, RewriteRulePolicyDefinitionState? state, CustomResourceOptions? opts = null)
public static RewriteRulePolicyDefinition get(String name, Output<String> id, RewriteRulePolicyDefinitionState 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.
- Description string
- The description of the policy definition
- Name string
- The name of the policy definition
- Rules
List<Rewrite
Rule Policy Definition Rule> - List of rules
- Type string
- Type
- Version int
- The version of the object
- Description string
- The description of the policy definition
- Name string
- The name of the policy definition
- Rules
[]Rewrite
Rule Policy Definition Rule Args - List of rules
- Type string
- Type
- Version int
- The version of the object
- description String
- The description of the policy definition
- name String
- The name of the policy definition
- rules
List<Rewrite
Rule Policy Definition Rule> - List of rules
- type String
- Type
- version Integer
- The version of the object
- description string
- The description of the policy definition
- name string
- The name of the policy definition
- rules
Rewrite
Rule Policy Definition Rule[] - List of rules
- type string
- Type
- version number
- The version of the object
- description str
- The description of the policy definition
- name str
- The name of the policy definition
- rules
Sequence[Rewrite
Rule Policy Definition Rule Args] - List of rules
- type str
- Type
- version int
- The version of the object
- description String
- The description of the policy definition
- name String
- The name of the policy definition
- rules List<Property Map>
- List of rules
- type String
- Type
- version Number
- The version of the object
Supporting Types
RewriteRulePolicyDefinitionRule, RewriteRulePolicyDefinitionRuleArgs
- Class
Map stringId - Class map ID
- Dscp int
- DSCP
- Range:
0
-63
- Range:
- Priority string
- Priority
- Choices:
high
,low
- Choices:
- Class
Map intVersion - Class map version
- Layer2Cos int
- Layer2 CoS
- Range:
0
-7
- Range:
- Class
Map stringId - Class map ID
- Dscp int
- DSCP
- Range:
0
-63
- Range:
- Priority string
- Priority
- Choices:
high
,low
- Choices:
- Class
Map intVersion - Class map version
- Layer2Cos int
- Layer2 CoS
- Range:
0
-7
- Range:
- class
Map StringId - Class map ID
- dscp Integer
- DSCP
- Range:
0
-63
- Range:
- priority String
- Priority
- Choices:
high
,low
- Choices:
- class
Map IntegerVersion - Class map version
- layer2Cos Integer
- Layer2 CoS
- Range:
0
-7
- Range:
- class
Map stringId - Class map ID
- dscp number
- DSCP
- Range:
0
-63
- Range:
- priority string
- Priority
- Choices:
high
,low
- Choices:
- class
Map numberVersion - Class map version
- layer2Cos number
- Layer2 CoS
- Range:
0
-7
- Range:
- class_
map_ strid - Class map ID
- dscp int
- DSCP
- Range:
0
-63
- Range:
- priority str
- Priority
- Choices:
high
,low
- Choices:
- class_
map_ intversion - Class map version
- layer2_
cos int - Layer2 CoS
- Range:
0
-7
- Range:
- class
Map StringId - Class map ID
- dscp Number
- DSCP
- Range:
0
-63
- Range:
- priority String
- Priority
- Choices:
high
,low
- Choices:
- class
Map NumberVersion - Class map version
- layer2Cos Number
- Layer2 CoS
- Range:
0
-7
- Range:
Import
$ pulumi import sdwan:index/rewriteRulePolicyDefinition:RewriteRulePolicyDefinition example "f6b2c44c-693c-4763-b010-895aa3d236bd"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- sdwan pulumi/pulumi-sdwan
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
sdwan
Terraform Provider.