1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cen
  5. TransitRouteTableAggregation
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

alicloud.cen.TransitRouteTableAggregation

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

    Provides a Cloud Enterprise Network (CEN) Transit Route Table Aggregation resource.

    For information about Cloud Enterprise Network (CEN) Transit Route Table Aggregation and how to use it, see What is Transit Route Table Aggregation.

    NOTE: Available since v1.202.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const exampleInstance = new alicloud.cen.Instance("exampleInstance", {
        cenInstanceName: "tf_example",
        description: "an example for cen",
    });
    const exampleTransitRouter = new alicloud.cen.TransitRouter("exampleTransitRouter", {
        transitRouterName: "tf_example",
        cenId: exampleInstance.id,
    });
    const exampleTransitRouterRouteTable = new alicloud.cen.TransitRouterRouteTable("exampleTransitRouterRouteTable", {transitRouterId: exampleTransitRouter.transitRouterId});
    const exampleTransitRouteTableAggregation = new alicloud.cen.TransitRouteTableAggregation("exampleTransitRouteTableAggregation", {
        transitRouteTableId: exampleTransitRouterRouteTable.transitRouterRouteTableId,
        transitRouteTableAggregationCidr: "10.0.0.0/8",
        transitRouteTableAggregationScope: "VPC",
        transitRouteTableAggregationName: "tf_example",
        transitRouteTableAggregationDescription: "tf_example",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example_instance = alicloud.cen.Instance("exampleInstance",
        cen_instance_name="tf_example",
        description="an example for cen")
    example_transit_router = alicloud.cen.TransitRouter("exampleTransitRouter",
        transit_router_name="tf_example",
        cen_id=example_instance.id)
    example_transit_router_route_table = alicloud.cen.TransitRouterRouteTable("exampleTransitRouterRouteTable", transit_router_id=example_transit_router.transit_router_id)
    example_transit_route_table_aggregation = alicloud.cen.TransitRouteTableAggregation("exampleTransitRouteTableAggregation",
        transit_route_table_id=example_transit_router_route_table.transit_router_route_table_id,
        transit_route_table_aggregation_cidr="10.0.0.0/8",
        transit_route_table_aggregation_scope="VPC",
        transit_route_table_aggregation_name="tf_example",
        transit_route_table_aggregation_description="tf_example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cen"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleInstance, err := cen.NewInstance(ctx, "exampleInstance", &cen.InstanceArgs{
    			CenInstanceName: pulumi.String("tf_example"),
    			Description:     pulumi.String("an example for cen"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleTransitRouter, err := cen.NewTransitRouter(ctx, "exampleTransitRouter", &cen.TransitRouterArgs{
    			TransitRouterName: pulumi.String("tf_example"),
    			CenId:             exampleInstance.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		exampleTransitRouterRouteTable, err := cen.NewTransitRouterRouteTable(ctx, "exampleTransitRouterRouteTable", &cen.TransitRouterRouteTableArgs{
    			TransitRouterId: exampleTransitRouter.TransitRouterId,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cen.NewTransitRouteTableAggregation(ctx, "exampleTransitRouteTableAggregation", &cen.TransitRouteTableAggregationArgs{
    			TransitRouteTableId:                     exampleTransitRouterRouteTable.TransitRouterRouteTableId,
    			TransitRouteTableAggregationCidr:        pulumi.String("10.0.0.0/8"),
    			TransitRouteTableAggregationScope:       pulumi.String("VPC"),
    			TransitRouteTableAggregationName:        pulumi.String("tf_example"),
    			TransitRouteTableAggregationDescription: pulumi.String("tf_example"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleInstance = new AliCloud.Cen.Instance("exampleInstance", new()
        {
            CenInstanceName = "tf_example",
            Description = "an example for cen",
        });
    
        var exampleTransitRouter = new AliCloud.Cen.TransitRouter("exampleTransitRouter", new()
        {
            TransitRouterName = "tf_example",
            CenId = exampleInstance.Id,
        });
    
        var exampleTransitRouterRouteTable = new AliCloud.Cen.TransitRouterRouteTable("exampleTransitRouterRouteTable", new()
        {
            TransitRouterId = exampleTransitRouter.TransitRouterId,
        });
    
        var exampleTransitRouteTableAggregation = new AliCloud.Cen.TransitRouteTableAggregation("exampleTransitRouteTableAggregation", new()
        {
            TransitRouteTableId = exampleTransitRouterRouteTable.TransitRouterRouteTableId,
            TransitRouteTableAggregationCidr = "10.0.0.0/8",
            TransitRouteTableAggregationScope = "VPC",
            TransitRouteTableAggregationName = "tf_example",
            TransitRouteTableAggregationDescription = "tf_example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.cen.Instance;
    import com.pulumi.alicloud.cen.InstanceArgs;
    import com.pulumi.alicloud.cen.TransitRouter;
    import com.pulumi.alicloud.cen.TransitRouterArgs;
    import com.pulumi.alicloud.cen.TransitRouterRouteTable;
    import com.pulumi.alicloud.cen.TransitRouterRouteTableArgs;
    import com.pulumi.alicloud.cen.TransitRouteTableAggregation;
    import com.pulumi.alicloud.cen.TransitRouteTableAggregationArgs;
    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 exampleInstance = new Instance("exampleInstance", InstanceArgs.builder()        
                .cenInstanceName("tf_example")
                .description("an example for cen")
                .build());
    
            var exampleTransitRouter = new TransitRouter("exampleTransitRouter", TransitRouterArgs.builder()        
                .transitRouterName("tf_example")
                .cenId(exampleInstance.id())
                .build());
    
            var exampleTransitRouterRouteTable = new TransitRouterRouteTable("exampleTransitRouterRouteTable", TransitRouterRouteTableArgs.builder()        
                .transitRouterId(exampleTransitRouter.transitRouterId())
                .build());
    
            var exampleTransitRouteTableAggregation = new TransitRouteTableAggregation("exampleTransitRouteTableAggregation", TransitRouteTableAggregationArgs.builder()        
                .transitRouteTableId(exampleTransitRouterRouteTable.transitRouterRouteTableId())
                .transitRouteTableAggregationCidr("10.0.0.0/8")
                .transitRouteTableAggregationScope("VPC")
                .transitRouteTableAggregationName("tf_example")
                .transitRouteTableAggregationDescription("tf_example")
                .build());
    
        }
    }
    
    resources:
      exampleInstance:
        type: alicloud:cen:Instance
        properties:
          cenInstanceName: tf_example
          description: an example for cen
      exampleTransitRouter:
        type: alicloud:cen:TransitRouter
        properties:
          transitRouterName: tf_example
          cenId: ${exampleInstance.id}
      exampleTransitRouterRouteTable:
        type: alicloud:cen:TransitRouterRouteTable
        properties:
          transitRouterId: ${exampleTransitRouter.transitRouterId}
      exampleTransitRouteTableAggregation:
        type: alicloud:cen:TransitRouteTableAggregation
        properties:
          transitRouteTableId: ${exampleTransitRouterRouteTable.transitRouterRouteTableId}
          transitRouteTableAggregationCidr: 10.0.0.0/8
          transitRouteTableAggregationScope: VPC
          transitRouteTableAggregationName: tf_example
          transitRouteTableAggregationDescription: tf_example
    

    Create TransitRouteTableAggregation Resource

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

    Constructor syntax

    new TransitRouteTableAggregation(name: string, args: TransitRouteTableAggregationArgs, opts?: CustomResourceOptions);
    @overload
    def TransitRouteTableAggregation(resource_name: str,
                                     args: TransitRouteTableAggregationArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def TransitRouteTableAggregation(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     transit_route_table_aggregation_cidr: Optional[str] = None,
                                     transit_route_table_aggregation_scope: Optional[str] = None,
                                     transit_route_table_id: Optional[str] = None,
                                     transit_route_table_aggregation_description: Optional[str] = None,
                                     transit_route_table_aggregation_name: Optional[str] = None)
    func NewTransitRouteTableAggregation(ctx *Context, name string, args TransitRouteTableAggregationArgs, opts ...ResourceOption) (*TransitRouteTableAggregation, error)
    public TransitRouteTableAggregation(string name, TransitRouteTableAggregationArgs args, CustomResourceOptions? opts = null)
    public TransitRouteTableAggregation(String name, TransitRouteTableAggregationArgs args)
    public TransitRouteTableAggregation(String name, TransitRouteTableAggregationArgs args, CustomResourceOptions options)
    
    type: alicloud:cen:TransitRouteTableAggregation
    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 TransitRouteTableAggregationArgs
    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 TransitRouteTableAggregationArgs
    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 TransitRouteTableAggregationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TransitRouteTableAggregationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TransitRouteTableAggregationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var transitRouteTableAggregationResource = new AliCloud.Cen.TransitRouteTableAggregation("transitRouteTableAggregationResource", new()
    {
        TransitRouteTableAggregationCidr = "string",
        TransitRouteTableAggregationScope = "string",
        TransitRouteTableId = "string",
        TransitRouteTableAggregationDescription = "string",
        TransitRouteTableAggregationName = "string",
    });
    
    example, err := cen.NewTransitRouteTableAggregation(ctx, "transitRouteTableAggregationResource", &cen.TransitRouteTableAggregationArgs{
    	TransitRouteTableAggregationCidr:        pulumi.String("string"),
    	TransitRouteTableAggregationScope:       pulumi.String("string"),
    	TransitRouteTableId:                     pulumi.String("string"),
    	TransitRouteTableAggregationDescription: pulumi.String("string"),
    	TransitRouteTableAggregationName:        pulumi.String("string"),
    })
    
    var transitRouteTableAggregationResource = new TransitRouteTableAggregation("transitRouteTableAggregationResource", TransitRouteTableAggregationArgs.builder()        
        .transitRouteTableAggregationCidr("string")
        .transitRouteTableAggregationScope("string")
        .transitRouteTableId("string")
        .transitRouteTableAggregationDescription("string")
        .transitRouteTableAggregationName("string")
        .build());
    
    transit_route_table_aggregation_resource = alicloud.cen.TransitRouteTableAggregation("transitRouteTableAggregationResource",
        transit_route_table_aggregation_cidr="string",
        transit_route_table_aggregation_scope="string",
        transit_route_table_id="string",
        transit_route_table_aggregation_description="string",
        transit_route_table_aggregation_name="string")
    
    const transitRouteTableAggregationResource = new alicloud.cen.TransitRouteTableAggregation("transitRouteTableAggregationResource", {
        transitRouteTableAggregationCidr: "string",
        transitRouteTableAggregationScope: "string",
        transitRouteTableId: "string",
        transitRouteTableAggregationDescription: "string",
        transitRouteTableAggregationName: "string",
    });
    
    type: alicloud:cen:TransitRouteTableAggregation
    properties:
        transitRouteTableAggregationCidr: string
        transitRouteTableAggregationDescription: string
        transitRouteTableAggregationName: string
        transitRouteTableAggregationScope: string
        transitRouteTableId: string
    

    TransitRouteTableAggregation Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The TransitRouteTableAggregation resource accepts the following input properties:

    TransitRouteTableAggregationCidr string
    The destination CIDR block of the aggregate route. CIDR blocks that start with 0 or 100.64. Multicast CIDR blocks, including 224.0.0.1 to 239.255.255.254.
    TransitRouteTableAggregationScope string
    The scope of networks that you want to advertise the aggregate route. Valid Value: VPC.
    TransitRouteTableId string
    The ID of the route table of the Enterprise Edition transit router.
    TransitRouteTableAggregationDescription string
    The description of the aggregate route.
    TransitRouteTableAggregationName string
    The name of the aggregate route.
    TransitRouteTableAggregationCidr string
    The destination CIDR block of the aggregate route. CIDR blocks that start with 0 or 100.64. Multicast CIDR blocks, including 224.0.0.1 to 239.255.255.254.
    TransitRouteTableAggregationScope string
    The scope of networks that you want to advertise the aggregate route. Valid Value: VPC.
    TransitRouteTableId string
    The ID of the route table of the Enterprise Edition transit router.
    TransitRouteTableAggregationDescription string
    The description of the aggregate route.
    TransitRouteTableAggregationName string
    The name of the aggregate route.
    transitRouteTableAggregationCidr String
    The destination CIDR block of the aggregate route. CIDR blocks that start with 0 or 100.64. Multicast CIDR blocks, including 224.0.0.1 to 239.255.255.254.
    transitRouteTableAggregationScope String
    The scope of networks that you want to advertise the aggregate route. Valid Value: VPC.
    transitRouteTableId String
    The ID of the route table of the Enterprise Edition transit router.
    transitRouteTableAggregationDescription String
    The description of the aggregate route.
    transitRouteTableAggregationName String
    The name of the aggregate route.
    transitRouteTableAggregationCidr string
    The destination CIDR block of the aggregate route. CIDR blocks that start with 0 or 100.64. Multicast CIDR blocks, including 224.0.0.1 to 239.255.255.254.
    transitRouteTableAggregationScope string
    The scope of networks that you want to advertise the aggregate route. Valid Value: VPC.
    transitRouteTableId string
    The ID of the route table of the Enterprise Edition transit router.
    transitRouteTableAggregationDescription string
    The description of the aggregate route.
    transitRouteTableAggregationName string
    The name of the aggregate route.
    transit_route_table_aggregation_cidr str
    The destination CIDR block of the aggregate route. CIDR blocks that start with 0 or 100.64. Multicast CIDR blocks, including 224.0.0.1 to 239.255.255.254.
    transit_route_table_aggregation_scope str
    The scope of networks that you want to advertise the aggregate route. Valid Value: VPC.
    transit_route_table_id str
    The ID of the route table of the Enterprise Edition transit router.
    transit_route_table_aggregation_description str
    The description of the aggregate route.
    transit_route_table_aggregation_name str
    The name of the aggregate route.
    transitRouteTableAggregationCidr String
    The destination CIDR block of the aggregate route. CIDR blocks that start with 0 or 100.64. Multicast CIDR blocks, including 224.0.0.1 to 239.255.255.254.
    transitRouteTableAggregationScope String
    The scope of networks that you want to advertise the aggregate route. Valid Value: VPC.
    transitRouteTableId String
    The ID of the route table of the Enterprise Edition transit router.
    transitRouteTableAggregationDescription String
    The description of the aggregate route.
    transitRouteTableAggregationName String
    The name of the aggregate route.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the Transit Route Table Aggregation.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the Transit Route Table Aggregation.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the Transit Route Table Aggregation.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the Transit Route Table Aggregation.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the Transit Route Table Aggregation.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the Transit Route Table Aggregation.

    Look up Existing TransitRouteTableAggregation Resource

    Get an existing TransitRouteTableAggregation 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?: TransitRouteTableAggregationState, opts?: CustomResourceOptions): TransitRouteTableAggregation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            status: Optional[str] = None,
            transit_route_table_aggregation_cidr: Optional[str] = None,
            transit_route_table_aggregation_description: Optional[str] = None,
            transit_route_table_aggregation_name: Optional[str] = None,
            transit_route_table_aggregation_scope: Optional[str] = None,
            transit_route_table_id: Optional[str] = None) -> TransitRouteTableAggregation
    func GetTransitRouteTableAggregation(ctx *Context, name string, id IDInput, state *TransitRouteTableAggregationState, opts ...ResourceOption) (*TransitRouteTableAggregation, error)
    public static TransitRouteTableAggregation Get(string name, Input<string> id, TransitRouteTableAggregationState? state, CustomResourceOptions? opts = null)
    public static TransitRouteTableAggregation get(String name, Output<String> id, TransitRouteTableAggregationState 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:
    Status string
    The status of the Transit Route Table Aggregation.
    TransitRouteTableAggregationCidr string
    The destination CIDR block of the aggregate route. CIDR blocks that start with 0 or 100.64. Multicast CIDR blocks, including 224.0.0.1 to 239.255.255.254.
    TransitRouteTableAggregationDescription string
    The description of the aggregate route.
    TransitRouteTableAggregationName string
    The name of the aggregate route.
    TransitRouteTableAggregationScope string
    The scope of networks that you want to advertise the aggregate route. Valid Value: VPC.
    TransitRouteTableId string
    The ID of the route table of the Enterprise Edition transit router.
    Status string
    The status of the Transit Route Table Aggregation.
    TransitRouteTableAggregationCidr string
    The destination CIDR block of the aggregate route. CIDR blocks that start with 0 or 100.64. Multicast CIDR blocks, including 224.0.0.1 to 239.255.255.254.
    TransitRouteTableAggregationDescription string
    The description of the aggregate route.
    TransitRouteTableAggregationName string
    The name of the aggregate route.
    TransitRouteTableAggregationScope string
    The scope of networks that you want to advertise the aggregate route. Valid Value: VPC.
    TransitRouteTableId string
    The ID of the route table of the Enterprise Edition transit router.
    status String
    The status of the Transit Route Table Aggregation.
    transitRouteTableAggregationCidr String
    The destination CIDR block of the aggregate route. CIDR blocks that start with 0 or 100.64. Multicast CIDR blocks, including 224.0.0.1 to 239.255.255.254.
    transitRouteTableAggregationDescription String
    The description of the aggregate route.
    transitRouteTableAggregationName String
    The name of the aggregate route.
    transitRouteTableAggregationScope String
    The scope of networks that you want to advertise the aggregate route. Valid Value: VPC.
    transitRouteTableId String
    The ID of the route table of the Enterprise Edition transit router.
    status string
    The status of the Transit Route Table Aggregation.
    transitRouteTableAggregationCidr string
    The destination CIDR block of the aggregate route. CIDR blocks that start with 0 or 100.64. Multicast CIDR blocks, including 224.0.0.1 to 239.255.255.254.
    transitRouteTableAggregationDescription string
    The description of the aggregate route.
    transitRouteTableAggregationName string
    The name of the aggregate route.
    transitRouteTableAggregationScope string
    The scope of networks that you want to advertise the aggregate route. Valid Value: VPC.
    transitRouteTableId string
    The ID of the route table of the Enterprise Edition transit router.
    status str
    The status of the Transit Route Table Aggregation.
    transit_route_table_aggregation_cidr str
    The destination CIDR block of the aggregate route. CIDR blocks that start with 0 or 100.64. Multicast CIDR blocks, including 224.0.0.1 to 239.255.255.254.
    transit_route_table_aggregation_description str
    The description of the aggregate route.
    transit_route_table_aggregation_name str
    The name of the aggregate route.
    transit_route_table_aggregation_scope str
    The scope of networks that you want to advertise the aggregate route. Valid Value: VPC.
    transit_route_table_id str
    The ID of the route table of the Enterprise Edition transit router.
    status String
    The status of the Transit Route Table Aggregation.
    transitRouteTableAggregationCidr String
    The destination CIDR block of the aggregate route. CIDR blocks that start with 0 or 100.64. Multicast CIDR blocks, including 224.0.0.1 to 239.255.255.254.
    transitRouteTableAggregationDescription String
    The description of the aggregate route.
    transitRouteTableAggregationName String
    The name of the aggregate route.
    transitRouteTableAggregationScope String
    The scope of networks that you want to advertise the aggregate route. Valid Value: VPC.
    transitRouteTableId String
    The ID of the route table of the Enterprise Edition transit router.

    Import

    Cloud Enterprise Network (CEN) Transit Route Table Aggregation can be imported using the id, e.g.

    $ pulumi import alicloud:cen/transitRouteTableAggregation:TransitRouteTableAggregation example <transit_route_table_id>:<transit_route_table_aggregation_cidr>
    

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

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi