1. Packages
  2. Cisco Catalyst SD-WAN
  3. API Docs
  4. RoutePolicyDefinition
Cisco Catalyst SD-WAN v0.2.0 published on Friday, Nov 1, 2024 by Pulumi

sdwan.RoutePolicyDefinition

Explore with Pulumi AI

sdwan logo
Cisco Catalyst SD-WAN v0.2.0 published on Friday, Nov 1, 2024 by Pulumi

    This resource can manage a Route 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.RoutePolicyDefinition;
    import com.pulumi.sdwan.RoutePolicyDefinitionArgs;
    import com.pulumi.sdwan.inputs.RoutePolicyDefinitionSequenceArgs;
    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 RoutePolicyDefinition("example", RoutePolicyDefinitionArgs.builder()
                .name("Example")
                .description("My description")
                .defaultAction("reject")
                .sequences(RoutePolicyDefinitionSequenceArgs.builder()
                    .id(10)
                    .ip_type("ipv4")
                    .name("Sequence 10")
                    .base_action("accept")
                    .match_entries(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                    .action_entries(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: sdwan:RoutePolicyDefinition
        properties:
          name: Example
          description: My description
          defaultAction: reject
          sequences:
            - id: 10
              ip_type: ipv4
              name: Sequence 10
              base_action: accept
              match_entries:
                - type: metric
                  metric: 100
              action_entries:
                - type: aggregator
                  aggregator: 10
                  aggregatorIpAddress: 10.1.2.3
    

    Create RoutePolicyDefinition Resource

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

    Constructor syntax

    new RoutePolicyDefinition(name: string, args: RoutePolicyDefinitionArgs, opts?: CustomResourceOptions);
    @overload
    def RoutePolicyDefinition(resource_name: str,
                              args: RoutePolicyDefinitionArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def RoutePolicyDefinition(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              description: Optional[str] = None,
                              default_action: Optional[str] = None,
                              name: Optional[str] = None,
                              sequences: Optional[Sequence[RoutePolicyDefinitionSequenceArgs]] = None)
    func NewRoutePolicyDefinition(ctx *Context, name string, args RoutePolicyDefinitionArgs, opts ...ResourceOption) (*RoutePolicyDefinition, error)
    public RoutePolicyDefinition(string name, RoutePolicyDefinitionArgs args, CustomResourceOptions? opts = null)
    public RoutePolicyDefinition(String name, RoutePolicyDefinitionArgs args)
    public RoutePolicyDefinition(String name, RoutePolicyDefinitionArgs args, CustomResourceOptions options)
    
    type: sdwan:RoutePolicyDefinition
    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 RoutePolicyDefinitionArgs
    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 RoutePolicyDefinitionArgs
    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 RoutePolicyDefinitionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RoutePolicyDefinitionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RoutePolicyDefinitionArgs
    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 routePolicyDefinitionResource = new Sdwan.RoutePolicyDefinition("routePolicyDefinitionResource", new()
    {
        Description = "string",
        DefaultAction = "string",
        Name = "string",
        Sequences = new[]
        {
            new Sdwan.Inputs.RoutePolicyDefinitionSequenceArgs
            {
                Id = 0,
                Name = "string",
                ActionEntries = new[]
                {
                    new Sdwan.Inputs.RoutePolicyDefinitionSequenceActionEntryArgs
                    {
                        Type = "string",
                        Metric = 0,
                        LocalPreference = 0,
                        AsPathPrepend = "string",
                        AtomicAggregate = false,
                        MetricType = "string",
                        CommunityAdditive = false,
                        AsPathExclude = "string",
                        Aggregator = 0,
                        Community = "string",
                        NextHop = "string",
                        OmpTag = 0,
                        Origin = "string",
                        Originator = "string",
                        OspfTag = 0,
                        AggregatorIpAddress = "string",
                        Weight = 0,
                    },
                },
                BaseAction = "string",
                IpType = "string",
                MatchEntries = new[]
                {
                    new Sdwan.Inputs.RoutePolicyDefinitionSequenceMatchEntryArgs
                    {
                        Type = "string",
                        Metric = 0,
                        AsPathListVersion = 0,
                        LocalPreference = 0,
                        CommunityListVersions = new[]
                        {
                            "string",
                        },
                        ExpandedCommunityListId = "string",
                        ExpandedCommunityListVersion = 0,
                        ExtendedCommunityListId = "string",
                        ExtendedCommunityListVersion = 0,
                        CommunityListMatchFlag = "string",
                        CommunityListIds = new[]
                        {
                            "string",
                        },
                        NextHopPrefixListVersion = 0,
                        NextHopPrefixListId = "string",
                        OmpTag = 0,
                        Origin = "string",
                        OspfTag = 0,
                        Peer = "string",
                        PrefixListId = "string",
                        PrefixListVersion = 0,
                        AsPathListId = "string",
                    },
                },
            },
        },
    });
    
    example, err := sdwan.NewRoutePolicyDefinition(ctx, "routePolicyDefinitionResource", &sdwan.RoutePolicyDefinitionArgs{
    	Description:   pulumi.String("string"),
    	DefaultAction: pulumi.String("string"),
    	Name:          pulumi.String("string"),
    	Sequences: sdwan.RoutePolicyDefinitionSequenceArray{
    		&sdwan.RoutePolicyDefinitionSequenceArgs{
    			Id:   pulumi.Int(0),
    			Name: pulumi.String("string"),
    			ActionEntries: sdwan.RoutePolicyDefinitionSequenceActionEntryArray{
    				&sdwan.RoutePolicyDefinitionSequenceActionEntryArgs{
    					Type:                pulumi.String("string"),
    					Metric:              pulumi.Int(0),
    					LocalPreference:     pulumi.Int(0),
    					AsPathPrepend:       pulumi.String("string"),
    					AtomicAggregate:     pulumi.Bool(false),
    					MetricType:          pulumi.String("string"),
    					CommunityAdditive:   pulumi.Bool(false),
    					AsPathExclude:       pulumi.String("string"),
    					Aggregator:          pulumi.Int(0),
    					Community:           pulumi.String("string"),
    					NextHop:             pulumi.String("string"),
    					OmpTag:              pulumi.Int(0),
    					Origin:              pulumi.String("string"),
    					Originator:          pulumi.String("string"),
    					OspfTag:             pulumi.Int(0),
    					AggregatorIpAddress: pulumi.String("string"),
    					Weight:              pulumi.Int(0),
    				},
    			},
    			BaseAction: pulumi.String("string"),
    			IpType:     pulumi.String("string"),
    			MatchEntries: sdwan.RoutePolicyDefinitionSequenceMatchEntryArray{
    				&sdwan.RoutePolicyDefinitionSequenceMatchEntryArgs{
    					Type:              pulumi.String("string"),
    					Metric:            pulumi.Int(0),
    					AsPathListVersion: pulumi.Int(0),
    					LocalPreference:   pulumi.Int(0),
    					CommunityListVersions: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    					ExpandedCommunityListId:      pulumi.String("string"),
    					ExpandedCommunityListVersion: pulumi.Int(0),
    					ExtendedCommunityListId:      pulumi.String("string"),
    					ExtendedCommunityListVersion: pulumi.Int(0),
    					CommunityListMatchFlag:       pulumi.String("string"),
    					CommunityListIds: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    					NextHopPrefixListVersion: pulumi.Int(0),
    					NextHopPrefixListId:      pulumi.String("string"),
    					OmpTag:                   pulumi.Int(0),
    					Origin:                   pulumi.String("string"),
    					OspfTag:                  pulumi.Int(0),
    					Peer:                     pulumi.String("string"),
    					PrefixListId:             pulumi.String("string"),
    					PrefixListVersion:        pulumi.Int(0),
    					AsPathListId:             pulumi.String("string"),
    				},
    			},
    		},
    	},
    })
    
    var routePolicyDefinitionResource = new RoutePolicyDefinition("routePolicyDefinitionResource", RoutePolicyDefinitionArgs.builder()
        .description("string")
        .defaultAction("string")
        .name("string")
        .sequences(RoutePolicyDefinitionSequenceArgs.builder()
            .id(0)
            .name("string")
            .actionEntries(RoutePolicyDefinitionSequenceActionEntryArgs.builder()
                .type("string")
                .metric(0)
                .localPreference(0)
                .asPathPrepend("string")
                .atomicAggregate(false)
                .metricType("string")
                .communityAdditive(false)
                .asPathExclude("string")
                .aggregator(0)
                .community("string")
                .nextHop("string")
                .ompTag(0)
                .origin("string")
                .originator("string")
                .ospfTag(0)
                .aggregatorIpAddress("string")
                .weight(0)
                .build())
            .baseAction("string")
            .ipType("string")
            .matchEntries(RoutePolicyDefinitionSequenceMatchEntryArgs.builder()
                .type("string")
                .metric(0)
                .asPathListVersion(0)
                .localPreference(0)
                .communityListVersions("string")
                .expandedCommunityListId("string")
                .expandedCommunityListVersion(0)
                .extendedCommunityListId("string")
                .extendedCommunityListVersion(0)
                .communityListMatchFlag("string")
                .communityListIds("string")
                .nextHopPrefixListVersion(0)
                .nextHopPrefixListId("string")
                .ompTag(0)
                .origin("string")
                .ospfTag(0)
                .peer("string")
                .prefixListId("string")
                .prefixListVersion(0)
                .asPathListId("string")
                .build())
            .build())
        .build());
    
    route_policy_definition_resource = sdwan.RoutePolicyDefinition("routePolicyDefinitionResource",
        description="string",
        default_action="string",
        name="string",
        sequences=[{
            "id": 0,
            "name": "string",
            "action_entries": [{
                "type": "string",
                "metric": 0,
                "local_preference": 0,
                "as_path_prepend": "string",
                "atomic_aggregate": False,
                "metric_type": "string",
                "community_additive": False,
                "as_path_exclude": "string",
                "aggregator": 0,
                "community": "string",
                "next_hop": "string",
                "omp_tag": 0,
                "origin": "string",
                "originator": "string",
                "ospf_tag": 0,
                "aggregator_ip_address": "string",
                "weight": 0,
            }],
            "base_action": "string",
            "ip_type": "string",
            "match_entries": [{
                "type": "string",
                "metric": 0,
                "as_path_list_version": 0,
                "local_preference": 0,
                "community_list_versions": ["string"],
                "expanded_community_list_id": "string",
                "expanded_community_list_version": 0,
                "extended_community_list_id": "string",
                "extended_community_list_version": 0,
                "community_list_match_flag": "string",
                "community_list_ids": ["string"],
                "next_hop_prefix_list_version": 0,
                "next_hop_prefix_list_id": "string",
                "omp_tag": 0,
                "origin": "string",
                "ospf_tag": 0,
                "peer": "string",
                "prefix_list_id": "string",
                "prefix_list_version": 0,
                "as_path_list_id": "string",
            }],
        }])
    
    const routePolicyDefinitionResource = new sdwan.RoutePolicyDefinition("routePolicyDefinitionResource", {
        description: "string",
        defaultAction: "string",
        name: "string",
        sequences: [{
            id: 0,
            name: "string",
            actionEntries: [{
                type: "string",
                metric: 0,
                localPreference: 0,
                asPathPrepend: "string",
                atomicAggregate: false,
                metricType: "string",
                communityAdditive: false,
                asPathExclude: "string",
                aggregator: 0,
                community: "string",
                nextHop: "string",
                ompTag: 0,
                origin: "string",
                originator: "string",
                ospfTag: 0,
                aggregatorIpAddress: "string",
                weight: 0,
            }],
            baseAction: "string",
            ipType: "string",
            matchEntries: [{
                type: "string",
                metric: 0,
                asPathListVersion: 0,
                localPreference: 0,
                communityListVersions: ["string"],
                expandedCommunityListId: "string",
                expandedCommunityListVersion: 0,
                extendedCommunityListId: "string",
                extendedCommunityListVersion: 0,
                communityListMatchFlag: "string",
                communityListIds: ["string"],
                nextHopPrefixListVersion: 0,
                nextHopPrefixListId: "string",
                ompTag: 0,
                origin: "string",
                ospfTag: 0,
                peer: "string",
                prefixListId: "string",
                prefixListVersion: 0,
                asPathListId: "string",
            }],
        }],
    });
    
    type: sdwan:RoutePolicyDefinition
    properties:
        defaultAction: string
        description: string
        name: string
        sequences:
            - actionEntries:
                - aggregator: 0
                  aggregatorIpAddress: string
                  asPathExclude: string
                  asPathPrepend: string
                  atomicAggregate: false
                  community: string
                  communityAdditive: false
                  localPreference: 0
                  metric: 0
                  metricType: string
                  nextHop: string
                  ompTag: 0
                  origin: string
                  originator: string
                  ospfTag: 0
                  type: string
                  weight: 0
              baseAction: string
              id: 0
              ipType: string
              matchEntries:
                - asPathListId: string
                  asPathListVersion: 0
                  communityListIds:
                    - string
                  communityListMatchFlag: string
                  communityListVersions:
                    - string
                  expandedCommunityListId: string
                  expandedCommunityListVersion: 0
                  extendedCommunityListId: string
                  extendedCommunityListVersion: 0
                  localPreference: 0
                  metric: 0
                  nextHopPrefixListId: string
                  nextHopPrefixListVersion: 0
                  ompTag: 0
                  origin: string
                  ospfTag: 0
                  peer: string
                  prefixListId: string
                  prefixListVersion: 0
                  type: string
              name: string
    

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

    Description string
    The description of the policy definition
    DefaultAction string
    Default action, either accept or reject - Choices: accept, reject
    Name string
    The name of the policy definition
    Sequences List<RoutePolicyDefinitionSequence>
    List of ACL sequences
    Description string
    The description of the policy definition
    DefaultAction string
    Default action, either accept or reject - Choices: accept, reject
    Name string
    The name of the policy definition
    Sequences []RoutePolicyDefinitionSequenceArgs
    List of ACL sequences
    description String
    The description of the policy definition
    defaultAction String
    Default action, either accept or reject - Choices: accept, reject
    name String
    The name of the policy definition
    sequences List<RoutePolicyDefinitionSequence>
    List of ACL sequences
    description string
    The description of the policy definition
    defaultAction string
    Default action, either accept or reject - Choices: accept, reject
    name string
    The name of the policy definition
    sequences RoutePolicyDefinitionSequence[]
    List of ACL sequences
    description str
    The description of the policy definition
    default_action str
    Default action, either accept or reject - Choices: accept, reject
    name str
    The name of the policy definition
    sequences Sequence[RoutePolicyDefinitionSequenceArgs]
    List of ACL sequences
    description String
    The description of the policy definition
    defaultAction String
    Default action, either accept or reject - Choices: accept, reject
    name String
    The name of the policy definition
    sequences List<Property Map>
    List of ACL sequences

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Type string
    Type
    Version int
    The version of the object
    Id string
    The provider-assigned unique ID for this managed resource.
    Type string
    Type
    Version int
    The version of the object
    id String
    The provider-assigned unique ID for this managed resource.
    type String
    Type
    version Integer
    The version of the object
    id string
    The provider-assigned unique ID for this managed resource.
    type string
    Type
    version number
    The version of the object
    id str
    The provider-assigned unique ID for this managed resource.
    type str
    Type
    version int
    The version of the object
    id String
    The provider-assigned unique ID for this managed resource.
    type String
    Type
    version Number
    The version of the object

    Look up Existing RoutePolicyDefinition Resource

    Get an existing RoutePolicyDefinition 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?: RoutePolicyDefinitionState, opts?: CustomResourceOptions): RoutePolicyDefinition
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            default_action: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            sequences: Optional[Sequence[RoutePolicyDefinitionSequenceArgs]] = None,
            type: Optional[str] = None,
            version: Optional[int] = None) -> RoutePolicyDefinition
    func GetRoutePolicyDefinition(ctx *Context, name string, id IDInput, state *RoutePolicyDefinitionState, opts ...ResourceOption) (*RoutePolicyDefinition, error)
    public static RoutePolicyDefinition Get(string name, Input<string> id, RoutePolicyDefinitionState? state, CustomResourceOptions? opts = null)
    public static RoutePolicyDefinition get(String name, Output<String> id, RoutePolicyDefinitionState 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:
    DefaultAction string
    Default action, either accept or reject - Choices: accept, reject
    Description string
    The description of the policy definition
    Name string
    The name of the policy definition
    Sequences List<RoutePolicyDefinitionSequence>
    List of ACL sequences
    Type string
    Type
    Version int
    The version of the object
    DefaultAction string
    Default action, either accept or reject - Choices: accept, reject
    Description string
    The description of the policy definition
    Name string
    The name of the policy definition
    Sequences []RoutePolicyDefinitionSequenceArgs
    List of ACL sequences
    Type string
    Type
    Version int
    The version of the object
    defaultAction String
    Default action, either accept or reject - Choices: accept, reject
    description String
    The description of the policy definition
    name String
    The name of the policy definition
    sequences List<RoutePolicyDefinitionSequence>
    List of ACL sequences
    type String
    Type
    version Integer
    The version of the object
    defaultAction string
    Default action, either accept or reject - Choices: accept, reject
    description string
    The description of the policy definition
    name string
    The name of the policy definition
    sequences RoutePolicyDefinitionSequence[]
    List of ACL sequences
    type string
    Type
    version number
    The version of the object
    default_action str
    Default action, either accept or reject - Choices: accept, reject
    description str
    The description of the policy definition
    name str
    The name of the policy definition
    sequences Sequence[RoutePolicyDefinitionSequenceArgs]
    List of ACL sequences
    type str
    Type
    version int
    The version of the object
    defaultAction String
    Default action, either accept or reject - Choices: accept, reject
    description String
    The description of the policy definition
    name String
    The name of the policy definition
    sequences List<Property Map>
    List of ACL sequences
    type String
    Type
    version Number
    The version of the object

    Supporting Types

    RoutePolicyDefinitionSequence, RoutePolicyDefinitionSequenceArgs

    Id int
    Sequence ID

    • Range: 1-65534
    Name string
    Sequence name
    ActionEntries List<RoutePolicyDefinitionSequenceActionEntry>
    List of action entries
    BaseAction string
    Base action, either accept or reject

    • Choices: accept, reject
    IpType string
    IP version, either ipv4 or ipv6

    • Choices: ipv4, ipv6
    MatchEntries List<RoutePolicyDefinitionSequenceMatchEntry>
    List of match entries
    Id int
    Sequence ID

    • Range: 1-65534
    Name string
    Sequence name
    ActionEntries []RoutePolicyDefinitionSequenceActionEntry
    List of action entries
    BaseAction string
    Base action, either accept or reject

    • Choices: accept, reject
    IpType string
    IP version, either ipv4 or ipv6

    • Choices: ipv4, ipv6
    MatchEntries []RoutePolicyDefinitionSequenceMatchEntry
    List of match entries
    id Integer
    Sequence ID

    • Range: 1-65534
    name String
    Sequence name
    actionEntries List<RoutePolicyDefinitionSequenceActionEntry>
    List of action entries
    baseAction String
    Base action, either accept or reject

    • Choices: accept, reject
    ipType String
    IP version, either ipv4 or ipv6

    • Choices: ipv4, ipv6
    matchEntries List<RoutePolicyDefinitionSequenceMatchEntry>
    List of match entries
    id number
    Sequence ID

    • Range: 1-65534
    name string
    Sequence name
    actionEntries RoutePolicyDefinitionSequenceActionEntry[]
    List of action entries
    baseAction string
    Base action, either accept or reject

    • Choices: accept, reject
    ipType string
    IP version, either ipv4 or ipv6

    • Choices: ipv4, ipv6
    matchEntries RoutePolicyDefinitionSequenceMatchEntry[]
    List of match entries
    id int
    Sequence ID

    • Range: 1-65534
    name str
    Sequence name
    action_entries Sequence[RoutePolicyDefinitionSequenceActionEntry]
    List of action entries
    base_action str
    Base action, either accept or reject

    • Choices: accept, reject
    ip_type str
    IP version, either ipv4 or ipv6

    • Choices: ipv4, ipv6
    match_entries Sequence[RoutePolicyDefinitionSequenceMatchEntry]
    List of match entries
    id Number
    Sequence ID

    • Range: 1-65534
    name String
    Sequence name
    actionEntries List<Property Map>
    List of action entries
    baseAction String
    Base action, either accept or reject

    • Choices: accept, reject
    ipType String
    IP version, either ipv4 or ipv6

    • Choices: ipv4, ipv6
    matchEntries List<Property Map>
    List of match entries

    RoutePolicyDefinitionSequenceActionEntry, RoutePolicyDefinitionSequenceActionEntryArgs

    Type string
    Type of action entry

    • Choices: aggregator, asPath, atomicAggregate, community, communityAdditive, localPreference, metric, weight, metricType, nextHop, ompTag, ospfTag, origin, originator
    Aggregator int
    Aggregator

    • Range: 0-4294967295
    AggregatorIpAddress string
    IP address
    AsPathExclude string
    Space separated list of ASN to exclude
    AsPathPrepend string
    Space separated list of ASN to prepend
    AtomicAggregate bool
    Atomic aggregate
    Community string
    Community value, e.g. 1000:10000 or internet or local-AS
    CommunityAdditive bool
    Community additive
    LocalPreference int
    Local preference

    • Range: 0-4294967295
    Metric int
    Metric

    • Range: 0-4294967295
    MetricType string
    Metric type

    • Choices: type1, type2
    NextHop string
    Next hop IP
    OmpTag int
    OMP tag

    • Range: 0-4294967295
    Origin string
    Origin

    • Choices: igp, egp, incomplete
    Originator string
    Originator IP
    OspfTag int
    OSPF tag

    • Range: 0-4294967295
    Weight int
    Weight

    • Range: 0-4294967295
    Type string
    Type of action entry

    • Choices: aggregator, asPath, atomicAggregate, community, communityAdditive, localPreference, metric, weight, metricType, nextHop, ompTag, ospfTag, origin, originator
    Aggregator int
    Aggregator

    • Range: 0-4294967295
    AggregatorIpAddress string
    IP address
    AsPathExclude string
    Space separated list of ASN to exclude
    AsPathPrepend string
    Space separated list of ASN to prepend
    AtomicAggregate bool
    Atomic aggregate
    Community string
    Community value, e.g. 1000:10000 or internet or local-AS
    CommunityAdditive bool
    Community additive
    LocalPreference int
    Local preference

    • Range: 0-4294967295
    Metric int
    Metric

    • Range: 0-4294967295
    MetricType string
    Metric type

    • Choices: type1, type2
    NextHop string
    Next hop IP
    OmpTag int
    OMP tag

    • Range: 0-4294967295
    Origin string
    Origin

    • Choices: igp, egp, incomplete
    Originator string
    Originator IP
    OspfTag int
    OSPF tag

    • Range: 0-4294967295
    Weight int
    Weight

    • Range: 0-4294967295
    type String
    Type of action entry

    • Choices: aggregator, asPath, atomicAggregate, community, communityAdditive, localPreference, metric, weight, metricType, nextHop, ompTag, ospfTag, origin, originator
    aggregator Integer
    Aggregator

    • Range: 0-4294967295
    aggregatorIpAddress String
    IP address
    asPathExclude String
    Space separated list of ASN to exclude
    asPathPrepend String
    Space separated list of ASN to prepend
    atomicAggregate Boolean
    Atomic aggregate
    community String
    Community value, e.g. 1000:10000 or internet or local-AS
    communityAdditive Boolean
    Community additive
    localPreference Integer
    Local preference

    • Range: 0-4294967295
    metric Integer
    Metric

    • Range: 0-4294967295
    metricType String
    Metric type

    • Choices: type1, type2
    nextHop String
    Next hop IP
    ompTag Integer
    OMP tag

    • Range: 0-4294967295
    origin String
    Origin

    • Choices: igp, egp, incomplete
    originator String
    Originator IP
    ospfTag Integer
    OSPF tag

    • Range: 0-4294967295
    weight Integer
    Weight

    • Range: 0-4294967295
    type string
    Type of action entry

    • Choices: aggregator, asPath, atomicAggregate, community, communityAdditive, localPreference, metric, weight, metricType, nextHop, ompTag, ospfTag, origin, originator
    aggregator number
    Aggregator

    • Range: 0-4294967295
    aggregatorIpAddress string
    IP address
    asPathExclude string
    Space separated list of ASN to exclude
    asPathPrepend string
    Space separated list of ASN to prepend
    atomicAggregate boolean
    Atomic aggregate
    community string
    Community value, e.g. 1000:10000 or internet or local-AS
    communityAdditive boolean
    Community additive
    localPreference number
    Local preference

    • Range: 0-4294967295
    metric number
    Metric

    • Range: 0-4294967295
    metricType string
    Metric type

    • Choices: type1, type2
    nextHop string
    Next hop IP
    ompTag number
    OMP tag

    • Range: 0-4294967295
    origin string
    Origin

    • Choices: igp, egp, incomplete
    originator string
    Originator IP
    ospfTag number
    OSPF tag

    • Range: 0-4294967295
    weight number
    Weight

    • Range: 0-4294967295
    type str
    Type of action entry

    • Choices: aggregator, asPath, atomicAggregate, community, communityAdditive, localPreference, metric, weight, metricType, nextHop, ompTag, ospfTag, origin, originator
    aggregator int
    Aggregator

    • Range: 0-4294967295
    aggregator_ip_address str
    IP address
    as_path_exclude str
    Space separated list of ASN to exclude
    as_path_prepend str
    Space separated list of ASN to prepend
    atomic_aggregate bool
    Atomic aggregate
    community str
    Community value, e.g. 1000:10000 or internet or local-AS
    community_additive bool
    Community additive
    local_preference int
    Local preference

    • Range: 0-4294967295
    metric int
    Metric

    • Range: 0-4294967295
    metric_type str
    Metric type

    • Choices: type1, type2
    next_hop str
    Next hop IP
    omp_tag int
    OMP tag

    • Range: 0-4294967295
    origin str
    Origin

    • Choices: igp, egp, incomplete
    originator str
    Originator IP
    ospf_tag int
    OSPF tag

    • Range: 0-4294967295
    weight int
    Weight

    • Range: 0-4294967295
    type String
    Type of action entry

    • Choices: aggregator, asPath, atomicAggregate, community, communityAdditive, localPreference, metric, weight, metricType, nextHop, ompTag, ospfTag, origin, originator
    aggregator Number
    Aggregator

    • Range: 0-4294967295
    aggregatorIpAddress String
    IP address
    asPathExclude String
    Space separated list of ASN to exclude
    asPathPrepend String
    Space separated list of ASN to prepend
    atomicAggregate Boolean
    Atomic aggregate
    community String
    Community value, e.g. 1000:10000 or internet or local-AS
    communityAdditive Boolean
    Community additive
    localPreference Number
    Local preference

    • Range: 0-4294967295
    metric Number
    Metric

    • Range: 0-4294967295
    metricType String
    Metric type

    • Choices: type1, type2
    nextHop String
    Next hop IP
    ompTag Number
    OMP tag

    • Range: 0-4294967295
    origin String
    Origin

    • Choices: igp, egp, incomplete
    originator String
    Originator IP
    ospfTag Number
    OSPF tag

    • Range: 0-4294967295
    weight Number
    Weight

    • Range: 0-4294967295

    RoutePolicyDefinitionSequenceMatchEntry, RoutePolicyDefinitionSequenceMatchEntryArgs

    Type string
    Type of match entry

    • Choices: address, asPath, advancedCommunity, expandedCommunity, extCommunity, localPreference, metric, nextHop, origin, peer, ompTag, ospfTag
    AsPathListId string
    AS path list ID
    AsPathListVersion int
    AS path list version
    CommunityListIds List<string>
    Community list IDs
    CommunityListMatchFlag string
    Community list match flag

    • Choices: and, or, exact
    CommunityListVersions List<string>
    Community list versions
    ExpandedCommunityListId string
    Expanded community list ID
    ExpandedCommunityListVersion int
    Expanded community list version
    ExtendedCommunityListId string
    Extended community list ID
    ExtendedCommunityListVersion int
    Extended community list version
    LocalPreference int
    Local preference

    • Range: 0-4294967295
    Metric int
    Metric

    • Range: 0-4294967295
    NextHopPrefixListId string
    Next hop prefix list ID
    NextHopPrefixListVersion int
    Next hop prefix list version
    OmpTag int
    OMP tag

    • Range: 0-4294967295
    Origin string
    Origin

    • Choices: igp, egp, incomplete
    OspfTag int
    OSPF tag

    • Range: 0-4294967295
    Peer string
    Peer IP
    PrefixListId string
    Prefix list ID
    PrefixListVersion int
    Prefix list version
    Type string
    Type of match entry

    • Choices: address, asPath, advancedCommunity, expandedCommunity, extCommunity, localPreference, metric, nextHop, origin, peer, ompTag, ospfTag
    AsPathListId string
    AS path list ID
    AsPathListVersion int
    AS path list version
    CommunityListIds []string
    Community list IDs
    CommunityListMatchFlag string
    Community list match flag

    • Choices: and, or, exact
    CommunityListVersions []string
    Community list versions
    ExpandedCommunityListId string
    Expanded community list ID
    ExpandedCommunityListVersion int
    Expanded community list version
    ExtendedCommunityListId string
    Extended community list ID
    ExtendedCommunityListVersion int
    Extended community list version
    LocalPreference int
    Local preference

    • Range: 0-4294967295
    Metric int
    Metric

    • Range: 0-4294967295
    NextHopPrefixListId string
    Next hop prefix list ID
    NextHopPrefixListVersion int
    Next hop prefix list version
    OmpTag int
    OMP tag

    • Range: 0-4294967295
    Origin string
    Origin

    • Choices: igp, egp, incomplete
    OspfTag int
    OSPF tag

    • Range: 0-4294967295
    Peer string
    Peer IP
    PrefixListId string
    Prefix list ID
    PrefixListVersion int
    Prefix list version
    type String
    Type of match entry

    • Choices: address, asPath, advancedCommunity, expandedCommunity, extCommunity, localPreference, metric, nextHop, origin, peer, ompTag, ospfTag
    asPathListId String
    AS path list ID
    asPathListVersion Integer
    AS path list version
    communityListIds List<String>
    Community list IDs
    communityListMatchFlag String
    Community list match flag

    • Choices: and, or, exact
    communityListVersions List<String>
    Community list versions
    expandedCommunityListId String
    Expanded community list ID
    expandedCommunityListVersion Integer
    Expanded community list version
    extendedCommunityListId String
    Extended community list ID
    extendedCommunityListVersion Integer
    Extended community list version
    localPreference Integer
    Local preference

    • Range: 0-4294967295
    metric Integer
    Metric

    • Range: 0-4294967295
    nextHopPrefixListId String
    Next hop prefix list ID
    nextHopPrefixListVersion Integer
    Next hop prefix list version
    ompTag Integer
    OMP tag

    • Range: 0-4294967295
    origin String
    Origin

    • Choices: igp, egp, incomplete
    ospfTag Integer
    OSPF tag

    • Range: 0-4294967295
    peer String
    Peer IP
    prefixListId String
    Prefix list ID
    prefixListVersion Integer
    Prefix list version
    type string
    Type of match entry

    • Choices: address, asPath, advancedCommunity, expandedCommunity, extCommunity, localPreference, metric, nextHop, origin, peer, ompTag, ospfTag
    asPathListId string
    AS path list ID
    asPathListVersion number
    AS path list version
    communityListIds string[]
    Community list IDs
    communityListMatchFlag string
    Community list match flag

    • Choices: and, or, exact
    communityListVersions string[]
    Community list versions
    expandedCommunityListId string
    Expanded community list ID
    expandedCommunityListVersion number
    Expanded community list version
    extendedCommunityListId string
    Extended community list ID
    extendedCommunityListVersion number
    Extended community list version
    localPreference number
    Local preference

    • Range: 0-4294967295
    metric number
    Metric

    • Range: 0-4294967295
    nextHopPrefixListId string
    Next hop prefix list ID
    nextHopPrefixListVersion number
    Next hop prefix list version
    ompTag number
    OMP tag

    • Range: 0-4294967295
    origin string
    Origin

    • Choices: igp, egp, incomplete
    ospfTag number
    OSPF tag

    • Range: 0-4294967295
    peer string
    Peer IP
    prefixListId string
    Prefix list ID
    prefixListVersion number
    Prefix list version
    type str
    Type of match entry

    • Choices: address, asPath, advancedCommunity, expandedCommunity, extCommunity, localPreference, metric, nextHop, origin, peer, ompTag, ospfTag
    as_path_list_id str
    AS path list ID
    as_path_list_version int
    AS path list version
    community_list_ids Sequence[str]
    Community list IDs
    community_list_match_flag str
    Community list match flag

    • Choices: and, or, exact
    community_list_versions Sequence[str]
    Community list versions
    expanded_community_list_id str
    Expanded community list ID
    expanded_community_list_version int
    Expanded community list version
    extended_community_list_id str
    Extended community list ID
    extended_community_list_version int
    Extended community list version
    local_preference int
    Local preference

    • Range: 0-4294967295
    metric int
    Metric

    • Range: 0-4294967295
    next_hop_prefix_list_id str
    Next hop prefix list ID
    next_hop_prefix_list_version int
    Next hop prefix list version
    omp_tag int
    OMP tag

    • Range: 0-4294967295
    origin str
    Origin

    • Choices: igp, egp, incomplete
    ospf_tag int
    OSPF tag

    • Range: 0-4294967295
    peer str
    Peer IP
    prefix_list_id str
    Prefix list ID
    prefix_list_version int
    Prefix list version
    type String
    Type of match entry

    • Choices: address, asPath, advancedCommunity, expandedCommunity, extCommunity, localPreference, metric, nextHop, origin, peer, ompTag, ospfTag
    asPathListId String
    AS path list ID
    asPathListVersion Number
    AS path list version
    communityListIds List<String>
    Community list IDs
    communityListMatchFlag String
    Community list match flag

    • Choices: and, or, exact
    communityListVersions List<String>
    Community list versions
    expandedCommunityListId String
    Expanded community list ID
    expandedCommunityListVersion Number
    Expanded community list version
    extendedCommunityListId String
    Extended community list ID
    extendedCommunityListVersion Number
    Extended community list version
    localPreference Number
    Local preference

    • Range: 0-4294967295
    metric Number
    Metric

    • Range: 0-4294967295
    nextHopPrefixListId String
    Next hop prefix list ID
    nextHopPrefixListVersion Number
    Next hop prefix list version
    ompTag Number
    OMP tag

    • Range: 0-4294967295
    origin String
    Origin

    • Choices: igp, egp, incomplete
    ospfTag Number
    OSPF tag

    • Range: 0-4294967295
    peer String
    Peer IP
    prefixListId String
    Prefix list ID
    prefixListVersion Number
    Prefix list version

    Import

    $ pulumi import sdwan:index/routePolicyDefinition:RoutePolicyDefinition 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.
    sdwan logo
    Cisco Catalyst SD-WAN v0.2.0 published on Friday, Nov 1, 2024 by Pulumi