alicloud.cen.TransitRouteTableAggregation
Explore with Pulumi AI
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 example = new alicloud.cen.Instance("example", {
cenInstanceName: "tf_example",
description: "an example for cen",
});
const exampleTransitRouter = new alicloud.cen.TransitRouter("example", {
transitRouterName: "tf_example",
cenId: example.id,
});
const exampleTransitRouterRouteTable = new alicloud.cen.TransitRouterRouteTable("example", {transitRouterId: exampleTransitRouter.transitRouterId});
const exampleTransitRouteTableAggregation = new alicloud.cen.TransitRouteTableAggregation("example", {
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 = alicloud.cen.Instance("example",
cen_instance_name="tf_example",
description="an example for cen")
example_transit_router = alicloud.cen.TransitRouter("example",
transit_router_name="tf_example",
cen_id=example.id)
example_transit_router_route_table = alicloud.cen.TransitRouterRouteTable("example", transit_router_id=example_transit_router.transit_router_id)
example_transit_route_table_aggregation = alicloud.cen.TransitRouteTableAggregation("example",
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 {
example, err := cen.NewInstance(ctx, "example", &cen.InstanceArgs{
CenInstanceName: pulumi.String("tf_example"),
Description: pulumi.String("an example for cen"),
})
if err != nil {
return err
}
exampleTransitRouter, err := cen.NewTransitRouter(ctx, "example", &cen.TransitRouterArgs{
TransitRouterName: pulumi.String("tf_example"),
CenId: example.ID(),
})
if err != nil {
return err
}
exampleTransitRouterRouteTable, err := cen.NewTransitRouterRouteTable(ctx, "example", &cen.TransitRouterRouteTableArgs{
TransitRouterId: exampleTransitRouter.TransitRouterId,
})
if err != nil {
return err
}
_, err = cen.NewTransitRouteTableAggregation(ctx, "example", &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 example = new AliCloud.Cen.Instance("example", new()
{
CenInstanceName = "tf_example",
Description = "an example for cen",
});
var exampleTransitRouter = new AliCloud.Cen.TransitRouter("example", new()
{
TransitRouterName = "tf_example",
CenId = example.Id,
});
var exampleTransitRouterRouteTable = new AliCloud.Cen.TransitRouterRouteTable("example", new()
{
TransitRouterId = exampleTransitRouter.TransitRouterId,
});
var exampleTransitRouteTableAggregation = new AliCloud.Cen.TransitRouteTableAggregation("example", 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 example = new Instance("example", InstanceArgs.builder()
.cenInstanceName("tf_example")
.description("an example for cen")
.build());
var exampleTransitRouter = new TransitRouter("exampleTransitRouter", TransitRouterArgs.builder()
.transitRouterName("tf_example")
.cenId(example.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:
example:
type: alicloud:cen:Instance
properties:
cenInstanceName: tf_example
description: an example for cen
exampleTransitRouter:
type: alicloud:cen:TransitRouter
name: example
properties:
transitRouterName: tf_example
cenId: ${example.id}
exampleTransitRouterRouteTable:
type: alicloud:cen:TransitRouterRouteTable
name: example
properties:
transitRouterId: ${exampleTransitRouter.transitRouterId}
exampleTransitRouteTableAggregation:
type: alicloud:cen:TransitRouteTableAggregation
name: example
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.
Constructor 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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The TransitRouteTableAggregation resource accepts the following input properties:
- Transit
Route stringTable Aggregation Cidr - The destination CIDR block of the aggregate route. CIDR blocks that start with
0
or100.64
. Multicast CIDR blocks, including224.0.0.1
to239.255.255.254
. - Transit
Route stringTable Aggregation Scope - The scope of networks that you want to advertise the aggregate route. Valid Value:
VPC
. - Transit
Route stringTable Id - The ID of the route table of the Enterprise Edition transit router.
- Transit
Route stringTable Aggregation Description - The description of the aggregate route.
- Transit
Route stringTable Aggregation Name - The name of the aggregate route.
- Transit
Route stringTable Aggregation Cidr - The destination CIDR block of the aggregate route. CIDR blocks that start with
0
or100.64
. Multicast CIDR blocks, including224.0.0.1
to239.255.255.254
. - Transit
Route stringTable Aggregation Scope - The scope of networks that you want to advertise the aggregate route. Valid Value:
VPC
. - Transit
Route stringTable Id - The ID of the route table of the Enterprise Edition transit router.
- Transit
Route stringTable Aggregation Description - The description of the aggregate route.
- Transit
Route stringTable Aggregation Name - The name of the aggregate route.
- transit
Route StringTable Aggregation Cidr - The destination CIDR block of the aggregate route. CIDR blocks that start with
0
or100.64
. Multicast CIDR blocks, including224.0.0.1
to239.255.255.254
. - transit
Route StringTable Aggregation Scope - The scope of networks that you want to advertise the aggregate route. Valid Value:
VPC
. - transit
Route StringTable Id - The ID of the route table of the Enterprise Edition transit router.
- transit
Route StringTable Aggregation Description - The description of the aggregate route.
- transit
Route StringTable Aggregation Name - The name of the aggregate route.
- transit
Route stringTable Aggregation Cidr - The destination CIDR block of the aggregate route. CIDR blocks that start with
0
or100.64
. Multicast CIDR blocks, including224.0.0.1
to239.255.255.254
. - transit
Route stringTable Aggregation Scope - The scope of networks that you want to advertise the aggregate route. Valid Value:
VPC
. - transit
Route stringTable Id - The ID of the route table of the Enterprise Edition transit router.
- transit
Route stringTable Aggregation Description - The description of the aggregate route.
- transit
Route stringTable Aggregation Name - The name of the aggregate route.
- transit_
route_ strtable_ aggregation_ cidr - The destination CIDR block of the aggregate route. CIDR blocks that start with
0
or100.64
. Multicast CIDR blocks, including224.0.0.1
to239.255.255.254
. - transit_
route_ strtable_ aggregation_ scope - The scope of networks that you want to advertise the aggregate route. Valid Value:
VPC
. - transit_
route_ strtable_ id - The ID of the route table of the Enterprise Edition transit router.
- transit_
route_ strtable_ aggregation_ description - The description of the aggregate route.
- transit_
route_ strtable_ aggregation_ name - The name of the aggregate route.
- transit
Route StringTable Aggregation Cidr - The destination CIDR block of the aggregate route. CIDR blocks that start with
0
or100.64
. Multicast CIDR blocks, including224.0.0.1
to239.255.255.254
. - transit
Route StringTable Aggregation Scope - The scope of networks that you want to advertise the aggregate route. Valid Value:
VPC
. - transit
Route StringTable Id - The ID of the route table of the Enterprise Edition transit router.
- transit
Route StringTable Aggregation Description - The description of the aggregate route.
- transit
Route StringTable Aggregation Name - 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:
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.
- Status string
- The status of the Transit Route Table Aggregation.
- Transit
Route stringTable Aggregation Cidr - The destination CIDR block of the aggregate route. CIDR blocks that start with
0
or100.64
. Multicast CIDR blocks, including224.0.0.1
to239.255.255.254
. - Transit
Route stringTable Aggregation Description - The description of the aggregate route.
- Transit
Route stringTable Aggregation Name - The name of the aggregate route.
- Transit
Route stringTable Aggregation Scope - The scope of networks that you want to advertise the aggregate route. Valid Value:
VPC
. - Transit
Route stringTable Id - The ID of the route table of the Enterprise Edition transit router.
- Status string
- The status of the Transit Route Table Aggregation.
- Transit
Route stringTable Aggregation Cidr - The destination CIDR block of the aggregate route. CIDR blocks that start with
0
or100.64
. Multicast CIDR blocks, including224.0.0.1
to239.255.255.254
. - Transit
Route stringTable Aggregation Description - The description of the aggregate route.
- Transit
Route stringTable Aggregation Name - The name of the aggregate route.
- Transit
Route stringTable Aggregation Scope - The scope of networks that you want to advertise the aggregate route. Valid Value:
VPC
. - Transit
Route stringTable Id - The ID of the route table of the Enterprise Edition transit router.
- status String
- The status of the Transit Route Table Aggregation.
- transit
Route StringTable Aggregation Cidr - The destination CIDR block of the aggregate route. CIDR blocks that start with
0
or100.64
. Multicast CIDR blocks, including224.0.0.1
to239.255.255.254
. - transit
Route StringTable Aggregation Description - The description of the aggregate route.
- transit
Route StringTable Aggregation Name - The name of the aggregate route.
- transit
Route StringTable Aggregation Scope - The scope of networks that you want to advertise the aggregate route. Valid Value:
VPC
. - transit
Route StringTable Id - The ID of the route table of the Enterprise Edition transit router.
- status string
- The status of the Transit Route Table Aggregation.
- transit
Route stringTable Aggregation Cidr - The destination CIDR block of the aggregate route. CIDR blocks that start with
0
or100.64
. Multicast CIDR blocks, including224.0.0.1
to239.255.255.254
. - transit
Route stringTable Aggregation Description - The description of the aggregate route.
- transit
Route stringTable Aggregation Name - The name of the aggregate route.
- transit
Route stringTable Aggregation Scope - The scope of networks that you want to advertise the aggregate route. Valid Value:
VPC
. - transit
Route stringTable Id - The ID of the route table of the Enterprise Edition transit router.
- status str
- The status of the Transit Route Table Aggregation.
- transit_
route_ strtable_ aggregation_ cidr - The destination CIDR block of the aggregate route. CIDR blocks that start with
0
or100.64
. Multicast CIDR blocks, including224.0.0.1
to239.255.255.254
. - transit_
route_ strtable_ aggregation_ description - The description of the aggregate route.
- transit_
route_ strtable_ aggregation_ name - The name of the aggregate route.
- transit_
route_ strtable_ aggregation_ scope - The scope of networks that you want to advertise the aggregate route. Valid Value:
VPC
. - transit_
route_ strtable_ id - The ID of the route table of the Enterprise Edition transit router.
- status String
- The status of the Transit Route Table Aggregation.
- transit
Route StringTable Aggregation Cidr - The destination CIDR block of the aggregate route. CIDR blocks that start with
0
or100.64
. Multicast CIDR blocks, including224.0.0.1
to239.255.255.254
. - transit
Route StringTable Aggregation Description - The description of the aggregate route.
- transit
Route StringTable Aggregation Name - The name of the aggregate route.
- transit
Route StringTable Aggregation Scope - The scope of networks that you want to advertise the aggregate route. Valid Value:
VPC
. - transit
Route StringTable Id - 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.