alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

alicloud.cen.TransitRouterRouteEntry

Provides a CEN transit router route entry resource.What is Cen Transit Router Route Entry

NOTE: Available in 1.126.0+

Example Usage

Basic Usage

Coming soon!

Coming soon!

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.TransitRouterRouteEntry;
import com.pulumi.alicloud.cen.TransitRouterRouteEntryArgs;
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 name = config.get("name").orElse("tf-testAccCenTransitRouter");
        final var transitRouterRouteEntryDestinationCidrBlockAttachment = config.get("transitRouterRouteEntryDestinationCidrBlockAttachment").orElse("192.168.0.0/24");
        final var transitRouterRouteEntryName = config.get("transitRouterRouteEntryName").orElse("sdk_rebot_cen_tr_yaochi");
        final var transitRouterRouteEntryDescription = config.get("transitRouterRouteEntryDescription").orElse("sdk_rebot_cen_tr_yaochi");
        var cen = new Instance("cen", InstanceArgs.builder()        
            .description("terraform01")
            .build());

        var defaultTransitRouter = new TransitRouter("defaultTransitRouter", TransitRouterArgs.builder()        
            .name(name)
            .cenId(cen.id())
            .build());

        var defaultTransitRouterRouteTable = new TransitRouterRouteTable("defaultTransitRouterRouteTable", TransitRouterRouteTableArgs.builder()        
            .transitRouterId(defaultTransitRouter.transitRouterId())
            .build());

        var defaultTransitRouterRouteEntry = new TransitRouterRouteEntry("defaultTransitRouterRouteEntry", TransitRouterRouteEntryArgs.builder()        
            .transitRouterRouteTableId(defaultTransitRouterRouteTable.transitRouterRouteTableId())
            .transitRouterRouteEntryDestinationCidrBlock(transitRouterRouteEntryDestinationCidrBlockAttachment)
            .transitRouterRouteEntryNextHopType("Attachment")
            .transitRouterRouteEntryName(transitRouterRouteEntryName)
            .transitRouterRouteEntryDescription(transitRouterRouteEntryDescription)
            .transitRouterRouteEntryNextHopId(alicloud_cen_transit_router_vpc_attachment.default().transit_router_attachment_id())
            .build());

    }
}

Coming soon!

Coming soon!

configuration:
  # Create a new tr-attachment and use it to attach one transit router to a new CEN
  name:
    type: string
    default: tf-testAccCenTransitRouter
  transitRouterRouteEntryDestinationCidrBlockAttachment:
    type: string
    default: 192.168.0.0/24
  transitRouterRouteEntryName:
    type: string
    default: sdk_rebot_cen_tr_yaochi
  transitRouterRouteEntryDescription:
    type: string
    default: sdk_rebot_cen_tr_yaochi
resources:
  cen:
    type: alicloud:cen:Instance
    properties:
      description: terraform01
  defaultTransitRouter:
    type: alicloud:cen:TransitRouter
    properties:
      name: ${name}
      cenId: ${cen.id}
  defaultTransitRouterRouteTable:
    type: alicloud:cen:TransitRouterRouteTable
    properties:
      transitRouterId: ${defaultTransitRouter.transitRouterId}
  defaultTransitRouterRouteEntry:
    type: alicloud:cen:TransitRouterRouteEntry
    properties:
      transitRouterRouteTableId: ${defaultTransitRouterRouteTable.transitRouterRouteTableId}
      transitRouterRouteEntryDestinationCidrBlock: ${transitRouterRouteEntryDestinationCidrBlockAttachment}
      transitRouterRouteEntryNextHopType: Attachment
      transitRouterRouteEntryName: ${transitRouterRouteEntryName}
      transitRouterRouteEntryDescription: ${transitRouterRouteEntryDescription}
      transitRouterRouteEntryNextHopId: ${alicloud_cen_transit_router_vpc_attachment.default.transit_router_attachment_id}

Create TransitRouterRouteEntry Resource

new TransitRouterRouteEntry(name: string, args: TransitRouterRouteEntryArgs, opts?: CustomResourceOptions);
@overload
def TransitRouterRouteEntry(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            dry_run: Optional[bool] = None,
                            transit_router_route_entry_description: Optional[str] = None,
                            transit_router_route_entry_destination_cidr_block: Optional[str] = None,
                            transit_router_route_entry_name: Optional[str] = None,
                            transit_router_route_entry_next_hop_id: Optional[str] = None,
                            transit_router_route_entry_next_hop_type: Optional[str] = None,
                            transit_router_route_table_id: Optional[str] = None)
@overload
def TransitRouterRouteEntry(resource_name: str,
                            args: TransitRouterRouteEntryArgs,
                            opts: Optional[ResourceOptions] = None)
func NewTransitRouterRouteEntry(ctx *Context, name string, args TransitRouterRouteEntryArgs, opts ...ResourceOption) (*TransitRouterRouteEntry, error)
public TransitRouterRouteEntry(string name, TransitRouterRouteEntryArgs args, CustomResourceOptions? opts = null)
public TransitRouterRouteEntry(String name, TransitRouterRouteEntryArgs args)
public TransitRouterRouteEntry(String name, TransitRouterRouteEntryArgs args, CustomResourceOptions options)
type: alicloud:cen:TransitRouterRouteEntry
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args TransitRouterRouteEntryArgs
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 TransitRouterRouteEntryArgs
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 TransitRouterRouteEntryArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args TransitRouterRouteEntryArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args TransitRouterRouteEntryArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

TransitRouterRouteEntryDestinationCidrBlock string

The CIDR of the transit router route entry.

TransitRouterRouteEntryNextHopType string

The Type of the transit router route entry next hop,Valid values Attachment and BlackHole.

TransitRouterRouteTableId string

The ID of the transit router route table.

DryRun bool

The dry run.

TransitRouterRouteEntryDescription string

The description of the transit router route entry.

TransitRouterRouteEntryName string

The name of the transit router route entry.

TransitRouterRouteEntryNextHopId string

The ID of the transit router route entry next hop.

TransitRouterRouteEntryDestinationCidrBlock string

The CIDR of the transit router route entry.

TransitRouterRouteEntryNextHopType string

The Type of the transit router route entry next hop,Valid values Attachment and BlackHole.

TransitRouterRouteTableId string

The ID of the transit router route table.

DryRun bool

The dry run.

TransitRouterRouteEntryDescription string

The description of the transit router route entry.

TransitRouterRouteEntryName string

The name of the transit router route entry.

TransitRouterRouteEntryNextHopId string

The ID of the transit router route entry next hop.

transitRouterRouteEntryDestinationCidrBlock String

The CIDR of the transit router route entry.

transitRouterRouteEntryNextHopType String

The Type of the transit router route entry next hop,Valid values Attachment and BlackHole.

transitRouterRouteTableId String

The ID of the transit router route table.

dryRun Boolean

The dry run.

transitRouterRouteEntryDescription String

The description of the transit router route entry.

transitRouterRouteEntryName String

The name of the transit router route entry.

transitRouterRouteEntryNextHopId String

The ID of the transit router route entry next hop.

transitRouterRouteEntryDestinationCidrBlock string

The CIDR of the transit router route entry.

transitRouterRouteEntryNextHopType string

The Type of the transit router route entry next hop,Valid values Attachment and BlackHole.

transitRouterRouteTableId string

The ID of the transit router route table.

dryRun boolean

The dry run.

transitRouterRouteEntryDescription string

The description of the transit router route entry.

transitRouterRouteEntryName string

The name of the transit router route entry.

transitRouterRouteEntryNextHopId string

The ID of the transit router route entry next hop.

transit_router_route_entry_destination_cidr_block str

The CIDR of the transit router route entry.

transit_router_route_entry_next_hop_type str

The Type of the transit router route entry next hop,Valid values Attachment and BlackHole.

transit_router_route_table_id str

The ID of the transit router route table.

dry_run bool

The dry run.

transit_router_route_entry_description str

The description of the transit router route entry.

transit_router_route_entry_name str

The name of the transit router route entry.

transit_router_route_entry_next_hop_id str

The ID of the transit router route entry next hop.

transitRouterRouteEntryDestinationCidrBlock String

The CIDR of the transit router route entry.

transitRouterRouteEntryNextHopType String

The Type of the transit router route entry next hop,Valid values Attachment and BlackHole.

transitRouterRouteTableId String

The ID of the transit router route table.

dryRun Boolean

The dry run.

transitRouterRouteEntryDescription String

The description of the transit router route entry.

transitRouterRouteEntryName String

The name of the transit router route entry.

transitRouterRouteEntryNextHopId String

The ID of the transit router route entry next hop.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Status string

The associating status of the Transit Router.

TransitRouterRouteEntryId string

The ID of the route entry.

Id string

The provider-assigned unique ID for this managed resource.

Status string

The associating status of the Transit Router.

TransitRouterRouteEntryId string

The ID of the route entry.

id String

The provider-assigned unique ID for this managed resource.

status String

The associating status of the Transit Router.

transitRouterRouteEntryId String

The ID of the route entry.

id string

The provider-assigned unique ID for this managed resource.

status string

The associating status of the Transit Router.

transitRouterRouteEntryId string

The ID of the route entry.

id str

The provider-assigned unique ID for this managed resource.

status str

The associating status of the Transit Router.

transit_router_route_entry_id str

The ID of the route entry.

id String

The provider-assigned unique ID for this managed resource.

status String

The associating status of the Transit Router.

transitRouterRouteEntryId String

The ID of the route entry.

Look up Existing TransitRouterRouteEntry Resource

Get an existing TransitRouterRouteEntry 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?: TransitRouterRouteEntryState, opts?: CustomResourceOptions): TransitRouterRouteEntry
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        dry_run: Optional[bool] = None,
        status: Optional[str] = None,
        transit_router_route_entry_description: Optional[str] = None,
        transit_router_route_entry_destination_cidr_block: Optional[str] = None,
        transit_router_route_entry_id: Optional[str] = None,
        transit_router_route_entry_name: Optional[str] = None,
        transit_router_route_entry_next_hop_id: Optional[str] = None,
        transit_router_route_entry_next_hop_type: Optional[str] = None,
        transit_router_route_table_id: Optional[str] = None) -> TransitRouterRouteEntry
func GetTransitRouterRouteEntry(ctx *Context, name string, id IDInput, state *TransitRouterRouteEntryState, opts ...ResourceOption) (*TransitRouterRouteEntry, error)
public static TransitRouterRouteEntry Get(string name, Input<string> id, TransitRouterRouteEntryState? state, CustomResourceOptions? opts = null)
public static TransitRouterRouteEntry get(String name, Output<String> id, TransitRouterRouteEntryState 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:
DryRun bool

The dry run.

Status string

The associating status of the Transit Router.

TransitRouterRouteEntryDescription string

The description of the transit router route entry.

TransitRouterRouteEntryDestinationCidrBlock string

The CIDR of the transit router route entry.

TransitRouterRouteEntryId string

The ID of the route entry.

TransitRouterRouteEntryName string

The name of the transit router route entry.

TransitRouterRouteEntryNextHopId string

The ID of the transit router route entry next hop.

TransitRouterRouteEntryNextHopType string

The Type of the transit router route entry next hop,Valid values Attachment and BlackHole.

TransitRouterRouteTableId string

The ID of the transit router route table.

DryRun bool

The dry run.

Status string

The associating status of the Transit Router.

TransitRouterRouteEntryDescription string

The description of the transit router route entry.

TransitRouterRouteEntryDestinationCidrBlock string

The CIDR of the transit router route entry.

TransitRouterRouteEntryId string

The ID of the route entry.

TransitRouterRouteEntryName string

The name of the transit router route entry.

TransitRouterRouteEntryNextHopId string

The ID of the transit router route entry next hop.

TransitRouterRouteEntryNextHopType string

The Type of the transit router route entry next hop,Valid values Attachment and BlackHole.

TransitRouterRouteTableId string

The ID of the transit router route table.

dryRun Boolean

The dry run.

status String

The associating status of the Transit Router.

transitRouterRouteEntryDescription String

The description of the transit router route entry.

transitRouterRouteEntryDestinationCidrBlock String

The CIDR of the transit router route entry.

transitRouterRouteEntryId String

The ID of the route entry.

transitRouterRouteEntryName String

The name of the transit router route entry.

transitRouterRouteEntryNextHopId String

The ID of the transit router route entry next hop.

transitRouterRouteEntryNextHopType String

The Type of the transit router route entry next hop,Valid values Attachment and BlackHole.

transitRouterRouteTableId String

The ID of the transit router route table.

dryRun boolean

The dry run.

status string

The associating status of the Transit Router.

transitRouterRouteEntryDescription string

The description of the transit router route entry.

transitRouterRouteEntryDestinationCidrBlock string

The CIDR of the transit router route entry.

transitRouterRouteEntryId string

The ID of the route entry.

transitRouterRouteEntryName string

The name of the transit router route entry.

transitRouterRouteEntryNextHopId string

The ID of the transit router route entry next hop.

transitRouterRouteEntryNextHopType string

The Type of the transit router route entry next hop,Valid values Attachment and BlackHole.

transitRouterRouteTableId string

The ID of the transit router route table.

dry_run bool

The dry run.

status str

The associating status of the Transit Router.

transit_router_route_entry_description str

The description of the transit router route entry.

transit_router_route_entry_destination_cidr_block str

The CIDR of the transit router route entry.

transit_router_route_entry_id str

The ID of the route entry.

transit_router_route_entry_name str

The name of the transit router route entry.

transit_router_route_entry_next_hop_id str

The ID of the transit router route entry next hop.

transit_router_route_entry_next_hop_type str

The Type of the transit router route entry next hop,Valid values Attachment and BlackHole.

transit_router_route_table_id str

The ID of the transit router route table.

dryRun Boolean

The dry run.

status String

The associating status of the Transit Router.

transitRouterRouteEntryDescription String

The description of the transit router route entry.

transitRouterRouteEntryDestinationCidrBlock String

The CIDR of the transit router route entry.

transitRouterRouteEntryId String

The ID of the route entry.

transitRouterRouteEntryName String

The name of the transit router route entry.

transitRouterRouteEntryNextHopId String

The ID of the transit router route entry next hop.

transitRouterRouteEntryNextHopType String

The Type of the transit router route entry next hop,Valid values Attachment and BlackHole.

transitRouterRouteTableId String

The ID of the transit router route table.

Import

CEN instance can be imported using the id, e.g.

 $ pulumi import alicloud:cen/transitRouterRouteEntry:TransitRouterRouteEntry default vtb-*********:rte-*******

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.