1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. CcnRouteTableInputPolicies
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.CcnRouteTableInputPolicies

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a CCN Route table input policies.

    NOTE: Use this resource to manage all input policies under the routing table of CCN instances.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const config = new pulumi.Config();
    const region = config.get("region") || "ap-guangzhou";
    const availabilityZone = config.get("availabilityZone") || "ap-guangzhou-4";
    // create vpc
    const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "172.16.0.0/16"});
    // create subnet
    const subnet = new tencentcloud.Subnet("subnet", {
        availabilityZone: availabilityZone,
        vpcId: vpc.vpcId,
        cidrBlock: "172.16.0.0/24",
        isMulticast: false,
    });
    // create ccn
    const exampleCcn = new tencentcloud.Ccn("exampleCcn", {
        description: "desc.",
        qos: "AG",
        chargeType: "PREPAID",
        bandwidthLimitType: "INTER_REGION_LIMIT",
        tags: {
            createBy: "terraform",
        },
    });
    // create ccn route table
    const exampleCcnRouteTable = new tencentcloud.CcnRouteTable("exampleCcnRouteTable", {
        ccnId: exampleCcn.ccnId,
        description: "desc.",
    });
    // attachment instance
    const attachment = new tencentcloud.CcnAttachment("attachment", {
        ccnId: exampleCcn.ccnId,
        instanceId: vpc.vpcId,
        instanceType: "VPC",
        instanceRegion: region,
        routeTableId: exampleCcnRouteTable.ccnRouteTableId,
    });
    // create route table input policy
    const exampleCcnRouteTableInputPolicies = new tencentcloud.CcnRouteTableInputPolicies("exampleCcnRouteTableInputPolicies", {
        ccnId: exampleCcn.ccnId,
        routeTableId: exampleCcnRouteTable.ccnRouteTableId,
        policies: [{
            action: "accept",
            description: "desc.",
            routeConditions: [{
                name: "instance-region",
                values: [region],
                matchPattern: 1,
            }],
        }],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    config = pulumi.Config()
    region = config.get("region")
    if region is None:
        region = "ap-guangzhou"
    availability_zone = config.get("availabilityZone")
    if availability_zone is None:
        availability_zone = "ap-guangzhou-4"
    # create vpc
    vpc = tencentcloud.Vpc("vpc", cidr_block="172.16.0.0/16")
    # create subnet
    subnet = tencentcloud.Subnet("subnet",
        availability_zone=availability_zone,
        vpc_id=vpc.vpc_id,
        cidr_block="172.16.0.0/24",
        is_multicast=False)
    # create ccn
    example_ccn = tencentcloud.Ccn("exampleCcn",
        description="desc.",
        qos="AG",
        charge_type="PREPAID",
        bandwidth_limit_type="INTER_REGION_LIMIT",
        tags={
            "createBy": "terraform",
        })
    # create ccn route table
    example_ccn_route_table = tencentcloud.CcnRouteTable("exampleCcnRouteTable",
        ccn_id=example_ccn.ccn_id,
        description="desc.")
    # attachment instance
    attachment = tencentcloud.CcnAttachment("attachment",
        ccn_id=example_ccn.ccn_id,
        instance_id=vpc.vpc_id,
        instance_type="VPC",
        instance_region=region,
        route_table_id=example_ccn_route_table.ccn_route_table_id)
    # create route table input policy
    example_ccn_route_table_input_policies = tencentcloud.CcnRouteTableInputPolicies("exampleCcnRouteTableInputPolicies",
        ccn_id=example_ccn.ccn_id,
        route_table_id=example_ccn_route_table.ccn_route_table_id,
        policies=[{
            "action": "accept",
            "description": "desc.",
            "route_conditions": [{
                "name": "instance-region",
                "values": [region],
                "match_pattern": 1,
            }],
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		region := "ap-guangzhou"
    		if param := cfg.Get("region"); param != "" {
    			region = param
    		}
    		availabilityZone := "ap-guangzhou-4"
    		if param := cfg.Get("availabilityZone"); param != "" {
    			availabilityZone = param
    		}
    		// create vpc
    		vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
    			CidrBlock: pulumi.String("172.16.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		// create subnet
    		_, err = tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
    			AvailabilityZone: pulumi.String(availabilityZone),
    			VpcId:            vpc.VpcId,
    			CidrBlock:        pulumi.String("172.16.0.0/24"),
    			IsMulticast:      pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		// create ccn
    		exampleCcn, err := tencentcloud.NewCcn(ctx, "exampleCcn", &tencentcloud.CcnArgs{
    			Description:        pulumi.String("desc."),
    			Qos:                pulumi.String("AG"),
    			ChargeType:         pulumi.String("PREPAID"),
    			BandwidthLimitType: pulumi.String("INTER_REGION_LIMIT"),
    			Tags: pulumi.StringMap{
    				"createBy": pulumi.String("terraform"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// create ccn route table
    		exampleCcnRouteTable, err := tencentcloud.NewCcnRouteTable(ctx, "exampleCcnRouteTable", &tencentcloud.CcnRouteTableArgs{
    			CcnId:       exampleCcn.CcnId,
    			Description: pulumi.String("desc."),
    		})
    		if err != nil {
    			return err
    		}
    		// attachment instance
    		_, err = tencentcloud.NewCcnAttachment(ctx, "attachment", &tencentcloud.CcnAttachmentArgs{
    			CcnId:          exampleCcn.CcnId,
    			InstanceId:     vpc.VpcId,
    			InstanceType:   pulumi.String("VPC"),
    			InstanceRegion: pulumi.String(region),
    			RouteTableId:   exampleCcnRouteTable.CcnRouteTableId,
    		})
    		if err != nil {
    			return err
    		}
    		// create route table input policy
    		_, err = tencentcloud.NewCcnRouteTableInputPolicies(ctx, "exampleCcnRouteTableInputPolicies", &tencentcloud.CcnRouteTableInputPoliciesArgs{
    			CcnId:        exampleCcn.CcnId,
    			RouteTableId: exampleCcnRouteTable.CcnRouteTableId,
    			Policies: tencentcloud.CcnRouteTableInputPoliciesPolicyArray{
    				&tencentcloud.CcnRouteTableInputPoliciesPolicyArgs{
    					Action:      pulumi.String("accept"),
    					Description: pulumi.String("desc."),
    					RouteConditions: tencentcloud.CcnRouteTableInputPoliciesPolicyRouteConditionArray{
    						&tencentcloud.CcnRouteTableInputPoliciesPolicyRouteConditionArgs{
    							Name: pulumi.String("instance-region"),
    							Values: pulumi.StringArray{
    								pulumi.String(region),
    							},
    							MatchPattern: pulumi.Float64(1),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var region = config.Get("region") ?? "ap-guangzhou";
        var availabilityZone = config.Get("availabilityZone") ?? "ap-guangzhou-4";
        // create vpc
        var vpc = new Tencentcloud.Vpc("vpc", new()
        {
            CidrBlock = "172.16.0.0/16",
        });
    
        // create subnet
        var subnet = new Tencentcloud.Subnet("subnet", new()
        {
            AvailabilityZone = availabilityZone,
            VpcId = vpc.VpcId,
            CidrBlock = "172.16.0.0/24",
            IsMulticast = false,
        });
    
        // create ccn
        var exampleCcn = new Tencentcloud.Ccn("exampleCcn", new()
        {
            Description = "desc.",
            Qos = "AG",
            ChargeType = "PREPAID",
            BandwidthLimitType = "INTER_REGION_LIMIT",
            Tags = 
            {
                { "createBy", "terraform" },
            },
        });
    
        // create ccn route table
        var exampleCcnRouteTable = new Tencentcloud.CcnRouteTable("exampleCcnRouteTable", new()
        {
            CcnId = exampleCcn.CcnId,
            Description = "desc.",
        });
    
        // attachment instance
        var attachment = new Tencentcloud.CcnAttachment("attachment", new()
        {
            CcnId = exampleCcn.CcnId,
            InstanceId = vpc.VpcId,
            InstanceType = "VPC",
            InstanceRegion = region,
            RouteTableId = exampleCcnRouteTable.CcnRouteTableId,
        });
    
        // create route table input policy
        var exampleCcnRouteTableInputPolicies = new Tencentcloud.CcnRouteTableInputPolicies("exampleCcnRouteTableInputPolicies", new()
        {
            CcnId = exampleCcn.CcnId,
            RouteTableId = exampleCcnRouteTable.CcnRouteTableId,
            Policies = new[]
            {
                new Tencentcloud.Inputs.CcnRouteTableInputPoliciesPolicyArgs
                {
                    Action = "accept",
                    Description = "desc.",
                    RouteConditions = new[]
                    {
                        new Tencentcloud.Inputs.CcnRouteTableInputPoliciesPolicyRouteConditionArgs
                        {
                            Name = "instance-region",
                            Values = new[]
                            {
                                region,
                            },
                            MatchPattern = 1,
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.Vpc;
    import com.pulumi.tencentcloud.VpcArgs;
    import com.pulumi.tencentcloud.Subnet;
    import com.pulumi.tencentcloud.SubnetArgs;
    import com.pulumi.tencentcloud.Ccn;
    import com.pulumi.tencentcloud.CcnArgs;
    import com.pulumi.tencentcloud.CcnRouteTable;
    import com.pulumi.tencentcloud.CcnRouteTableArgs;
    import com.pulumi.tencentcloud.CcnAttachment;
    import com.pulumi.tencentcloud.CcnAttachmentArgs;
    import com.pulumi.tencentcloud.CcnRouteTableInputPolicies;
    import com.pulumi.tencentcloud.CcnRouteTableInputPoliciesArgs;
    import com.pulumi.tencentcloud.inputs.CcnRouteTableInputPoliciesPolicyArgs;
    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) {
            final var config = ctx.config();
            final var region = config.get("region").orElse("ap-guangzhou");
            final var availabilityZone = config.get("availabilityZone").orElse("ap-guangzhou-4");
            // create vpc
            var vpc = new Vpc("vpc", VpcArgs.builder()
                .cidrBlock("172.16.0.0/16")
                .build());
    
            // create subnet
            var subnet = new Subnet("subnet", SubnetArgs.builder()
                .availabilityZone(availabilityZone)
                .vpcId(vpc.vpcId())
                .cidrBlock("172.16.0.0/24")
                .isMulticast(false)
                .build());
    
            // create ccn
            var exampleCcn = new Ccn("exampleCcn", CcnArgs.builder()
                .description("desc.")
                .qos("AG")
                .chargeType("PREPAID")
                .bandwidthLimitType("INTER_REGION_LIMIT")
                .tags(Map.of("createBy", "terraform"))
                .build());
    
            // create ccn route table
            var exampleCcnRouteTable = new CcnRouteTable("exampleCcnRouteTable", CcnRouteTableArgs.builder()
                .ccnId(exampleCcn.ccnId())
                .description("desc.")
                .build());
    
            // attachment instance
            var attachment = new CcnAttachment("attachment", CcnAttachmentArgs.builder()
                .ccnId(exampleCcn.ccnId())
                .instanceId(vpc.vpcId())
                .instanceType("VPC")
                .instanceRegion(region)
                .routeTableId(exampleCcnRouteTable.ccnRouteTableId())
                .build());
    
            // create route table input policy
            var exampleCcnRouteTableInputPolicies = new CcnRouteTableInputPolicies("exampleCcnRouteTableInputPolicies", CcnRouteTableInputPoliciesArgs.builder()
                .ccnId(exampleCcn.ccnId())
                .routeTableId(exampleCcnRouteTable.ccnRouteTableId())
                .policies(CcnRouteTableInputPoliciesPolicyArgs.builder()
                    .action("accept")
                    .description("desc.")
                    .routeConditions(CcnRouteTableInputPoliciesPolicyRouteConditionArgs.builder()
                        .name("instance-region")
                        .values(region)
                        .matchPattern(1)
                        .build())
                    .build())
                .build());
    
        }
    }
    
    configuration:
      region:
        type: string
        default: ap-guangzhou
      availabilityZone:
        type: string
        default: ap-guangzhou-4
    resources:
      # create vpc
      vpc:
        type: tencentcloud:Vpc
        properties:
          cidrBlock: 172.16.0.0/16
      # create subnet
      subnet:
        type: tencentcloud:Subnet
        properties:
          availabilityZone: ${availabilityZone}
          vpcId: ${vpc.vpcId}
          cidrBlock: 172.16.0.0/24
          isMulticast: false
      # create ccn
      exampleCcn:
        type: tencentcloud:Ccn
        properties:
          description: desc.
          qos: AG
          chargeType: PREPAID
          bandwidthLimitType: INTER_REGION_LIMIT
          tags:
            createBy: terraform
      # create ccn route table
      exampleCcnRouteTable:
        type: tencentcloud:CcnRouteTable
        properties:
          ccnId: ${exampleCcn.ccnId}
          description: desc.
      # attachment instance
      attachment:
        type: tencentcloud:CcnAttachment
        properties:
          ccnId: ${exampleCcn.ccnId}
          instanceId: ${vpc.vpcId}
          instanceType: VPC
          instanceRegion: ${region}
          routeTableId: ${exampleCcnRouteTable.ccnRouteTableId}
      # create route table input policy
      exampleCcnRouteTableInputPolicies:
        type: tencentcloud:CcnRouteTableInputPolicies
        properties:
          ccnId: ${exampleCcn.ccnId}
          routeTableId: ${exampleCcnRouteTable.ccnRouteTableId}
          policies:
            - action: accept
              description: desc.
              routeConditions:
                - name: instance-region
                  values:
                    - ${region}
                  matchPattern: 1
    

    Create CcnRouteTableInputPolicies Resource

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

    Constructor syntax

    new CcnRouteTableInputPolicies(name: string, args: CcnRouteTableInputPoliciesArgs, opts?: CustomResourceOptions);
    @overload
    def CcnRouteTableInputPolicies(resource_name: str,
                                   args: CcnRouteTableInputPoliciesArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def CcnRouteTableInputPolicies(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   ccn_id: Optional[str] = None,
                                   route_table_id: Optional[str] = None,
                                   ccn_route_table_input_policies_id: Optional[str] = None,
                                   policies: Optional[Sequence[CcnRouteTableInputPoliciesPolicyArgs]] = None)
    func NewCcnRouteTableInputPolicies(ctx *Context, name string, args CcnRouteTableInputPoliciesArgs, opts ...ResourceOption) (*CcnRouteTableInputPolicies, error)
    public CcnRouteTableInputPolicies(string name, CcnRouteTableInputPoliciesArgs args, CustomResourceOptions? opts = null)
    public CcnRouteTableInputPolicies(String name, CcnRouteTableInputPoliciesArgs args)
    public CcnRouteTableInputPolicies(String name, CcnRouteTableInputPoliciesArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CcnRouteTableInputPolicies
    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 CcnRouteTableInputPoliciesArgs
    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 CcnRouteTableInputPoliciesArgs
    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 CcnRouteTableInputPoliciesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CcnRouteTableInputPoliciesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CcnRouteTableInputPoliciesArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    CcnId string
    CCN Instance ID.
    RouteTableId string
    CCN Route table ID.
    CcnRouteTableInputPoliciesId string
    ID of the resource.
    Policies List<CcnRouteTableInputPoliciesPolicy>
    Routing reception strategy.
    CcnId string
    CCN Instance ID.
    RouteTableId string
    CCN Route table ID.
    CcnRouteTableInputPoliciesId string
    ID of the resource.
    Policies []CcnRouteTableInputPoliciesPolicyArgs
    Routing reception strategy.
    ccnId String
    CCN Instance ID.
    routeTableId String
    CCN Route table ID.
    ccnRouteTableInputPoliciesId String
    ID of the resource.
    policies List<CcnRouteTableInputPoliciesPolicy>
    Routing reception strategy.
    ccnId string
    CCN Instance ID.
    routeTableId string
    CCN Route table ID.
    ccnRouteTableInputPoliciesId string
    ID of the resource.
    policies CcnRouteTableInputPoliciesPolicy[]
    Routing reception strategy.
    ccn_id str
    CCN Instance ID.
    route_table_id str
    CCN Route table ID.
    ccn_route_table_input_policies_id str
    ID of the resource.
    policies Sequence[CcnRouteTableInputPoliciesPolicyArgs]
    Routing reception strategy.
    ccnId String
    CCN Instance ID.
    routeTableId String
    CCN Route table ID.
    ccnRouteTableInputPoliciesId String
    ID of the resource.
    policies List<Property Map>
    Routing reception strategy.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CcnRouteTableInputPolicies 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 CcnRouteTableInputPolicies Resource

    Get an existing CcnRouteTableInputPolicies 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?: CcnRouteTableInputPoliciesState, opts?: CustomResourceOptions): CcnRouteTableInputPolicies
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ccn_id: Optional[str] = None,
            ccn_route_table_input_policies_id: Optional[str] = None,
            policies: Optional[Sequence[CcnRouteTableInputPoliciesPolicyArgs]] = None,
            route_table_id: Optional[str] = None) -> CcnRouteTableInputPolicies
    func GetCcnRouteTableInputPolicies(ctx *Context, name string, id IDInput, state *CcnRouteTableInputPoliciesState, opts ...ResourceOption) (*CcnRouteTableInputPolicies, error)
    public static CcnRouteTableInputPolicies Get(string name, Input<string> id, CcnRouteTableInputPoliciesState? state, CustomResourceOptions? opts = null)
    public static CcnRouteTableInputPolicies get(String name, Output<String> id, CcnRouteTableInputPoliciesState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CcnRouteTableInputPolicies    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:
    CcnId string
    CCN Instance ID.
    CcnRouteTableInputPoliciesId string
    ID of the resource.
    Policies List<CcnRouteTableInputPoliciesPolicy>
    Routing reception strategy.
    RouteTableId string
    CCN Route table ID.
    CcnId string
    CCN Instance ID.
    CcnRouteTableInputPoliciesId string
    ID of the resource.
    Policies []CcnRouteTableInputPoliciesPolicyArgs
    Routing reception strategy.
    RouteTableId string
    CCN Route table ID.
    ccnId String
    CCN Instance ID.
    ccnRouteTableInputPoliciesId String
    ID of the resource.
    policies List<CcnRouteTableInputPoliciesPolicy>
    Routing reception strategy.
    routeTableId String
    CCN Route table ID.
    ccnId string
    CCN Instance ID.
    ccnRouteTableInputPoliciesId string
    ID of the resource.
    policies CcnRouteTableInputPoliciesPolicy[]
    Routing reception strategy.
    routeTableId string
    CCN Route table ID.
    ccn_id str
    CCN Instance ID.
    ccn_route_table_input_policies_id str
    ID of the resource.
    policies Sequence[CcnRouteTableInputPoliciesPolicyArgs]
    Routing reception strategy.
    route_table_id str
    CCN Route table ID.
    ccnId String
    CCN Instance ID.
    ccnRouteTableInputPoliciesId String
    ID of the resource.
    policies List<Property Map>
    Routing reception strategy.
    routeTableId String
    CCN Route table ID.

    Supporting Types

    CcnRouteTableInputPoliciesPolicy, CcnRouteTableInputPoliciesPolicyArgs

    Action string
    Routing behavior, accept allows, drop rejects.
    Description string
    Policy description.
    RouteConditions List<CcnRouteTableInputPoliciesPolicyRouteCondition>
    Routing conditions.
    Action string
    Routing behavior, accept allows, drop rejects.
    Description string
    Policy description.
    RouteConditions []CcnRouteTableInputPoliciesPolicyRouteCondition
    Routing conditions.
    action String
    Routing behavior, accept allows, drop rejects.
    description String
    Policy description.
    routeConditions List<CcnRouteTableInputPoliciesPolicyRouteCondition>
    Routing conditions.
    action string
    Routing behavior, accept allows, drop rejects.
    description string
    Policy description.
    routeConditions CcnRouteTableInputPoliciesPolicyRouteCondition[]
    Routing conditions.
    action str
    Routing behavior, accept allows, drop rejects.
    description str
    Policy description.
    route_conditions Sequence[CcnRouteTableInputPoliciesPolicyRouteCondition]
    Routing conditions.
    action String
    Routing behavior, accept allows, drop rejects.
    description String
    Policy description.
    routeConditions List<Property Map>
    Routing conditions.

    CcnRouteTableInputPoliciesPolicyRouteCondition, CcnRouteTableInputPoliciesPolicyRouteConditionArgs

    MatchPattern double
    Matching mode, 1 precise matching, 0 fuzzy matching.
    Name string
    Condition type. Example value: instance-type, instance-region, instance-id, cidr-block.
    Values List<string>
    List of conditional values. Example value: instance-type: VPC, VPNGW, DIRECTCONNECT instance-region: ap-guangzhou instance-id: vpc-axrsmmrv, dcg-oxad32f7, vpngw-33p5vnwd cidr-block: 172.0.0.0/8.
    MatchPattern float64
    Matching mode, 1 precise matching, 0 fuzzy matching.
    Name string
    Condition type. Example value: instance-type, instance-region, instance-id, cidr-block.
    Values []string
    List of conditional values. Example value: instance-type: VPC, VPNGW, DIRECTCONNECT instance-region: ap-guangzhou instance-id: vpc-axrsmmrv, dcg-oxad32f7, vpngw-33p5vnwd cidr-block: 172.0.0.0/8.
    matchPattern Double
    Matching mode, 1 precise matching, 0 fuzzy matching.
    name String
    Condition type. Example value: instance-type, instance-region, instance-id, cidr-block.
    values List<String>
    List of conditional values. Example value: instance-type: VPC, VPNGW, DIRECTCONNECT instance-region: ap-guangzhou instance-id: vpc-axrsmmrv, dcg-oxad32f7, vpngw-33p5vnwd cidr-block: 172.0.0.0/8.
    matchPattern number
    Matching mode, 1 precise matching, 0 fuzzy matching.
    name string
    Condition type. Example value: instance-type, instance-region, instance-id, cidr-block.
    values string[]
    List of conditional values. Example value: instance-type: VPC, VPNGW, DIRECTCONNECT instance-region: ap-guangzhou instance-id: vpc-axrsmmrv, dcg-oxad32f7, vpngw-33p5vnwd cidr-block: 172.0.0.0/8.
    match_pattern float
    Matching mode, 1 precise matching, 0 fuzzy matching.
    name str
    Condition type. Example value: instance-type, instance-region, instance-id, cidr-block.
    values Sequence[str]
    List of conditional values. Example value: instance-type: VPC, VPNGW, DIRECTCONNECT instance-region: ap-guangzhou instance-id: vpc-axrsmmrv, dcg-oxad32f7, vpngw-33p5vnwd cidr-block: 172.0.0.0/8.
    matchPattern Number
    Matching mode, 1 precise matching, 0 fuzzy matching.
    name String
    Condition type. Example value: instance-type, instance-region, instance-id, cidr-block.
    values List<String>
    List of conditional values. Example value: instance-type: VPC, VPNGW, DIRECTCONNECT instance-region: ap-guangzhou instance-id: vpc-axrsmmrv, dcg-oxad32f7, vpngw-33p5vnwd cidr-block: 172.0.0.0/8.

    Import

    Ccn instance can be imported, e.g.

    $ pulumi import tencentcloud:index/ccnRouteTableInputPolicies:CcnRouteTableInputPolicies example ccn-gr7nynbd#ccnrtb-jpf7bzn3
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack