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:
- Transit
Router stringRoute Entry Destination Cidr Block The CIDR of the transit router route entry.
- Transit
Router stringRoute Entry Next Hop Type The Type of the transit router route entry next hop,Valid values
Attachment
andBlackHole
.- Transit
Router stringRoute Table Id The ID of the transit router route table.
- Dry
Run bool The dry run.
- Transit
Router stringRoute Entry Description The description of the transit router route entry.
- Transit
Router stringRoute Entry Name The name of the transit router route entry.
- Transit
Router stringRoute Entry Next Hop Id The ID of the transit router route entry next hop.
- Transit
Router stringRoute Entry Destination Cidr Block The CIDR of the transit router route entry.
- Transit
Router stringRoute Entry Next Hop Type The Type of the transit router route entry next hop,Valid values
Attachment
andBlackHole
.- Transit
Router stringRoute Table Id The ID of the transit router route table.
- Dry
Run bool The dry run.
- Transit
Router stringRoute Entry Description The description of the transit router route entry.
- Transit
Router stringRoute Entry Name The name of the transit router route entry.
- Transit
Router stringRoute Entry Next Hop Id The ID of the transit router route entry next hop.
- transit
Router StringRoute Entry Destination Cidr Block The CIDR of the transit router route entry.
- transit
Router StringRoute Entry Next Hop Type The Type of the transit router route entry next hop,Valid values
Attachment
andBlackHole
.- transit
Router StringRoute Table Id The ID of the transit router route table.
- dry
Run Boolean The dry run.
- transit
Router StringRoute Entry Description The description of the transit router route entry.
- transit
Router StringRoute Entry Name The name of the transit router route entry.
- transit
Router StringRoute Entry Next Hop Id The ID of the transit router route entry next hop.
- transit
Router stringRoute Entry Destination Cidr Block The CIDR of the transit router route entry.
- transit
Router stringRoute Entry Next Hop Type The Type of the transit router route entry next hop,Valid values
Attachment
andBlackHole
.- transit
Router stringRoute Table Id The ID of the transit router route table.
- dry
Run boolean The dry run.
- transit
Router stringRoute Entry Description The description of the transit router route entry.
- transit
Router stringRoute Entry Name The name of the transit router route entry.
- transit
Router stringRoute Entry Next Hop Id The ID of the transit router route entry next hop.
- transit_
router_ strroute_ entry_ destination_ cidr_ block The CIDR of the transit router route entry.
- transit_
router_ strroute_ entry_ next_ hop_ type The Type of the transit router route entry next hop,Valid values
Attachment
andBlackHole
.- transit_
router_ strroute_ table_ id The ID of the transit router route table.
- dry_
run bool The dry run.
- transit_
router_ strroute_ entry_ description The description of the transit router route entry.
- transit_
router_ strroute_ entry_ name The name of the transit router route entry.
- transit_
router_ strroute_ entry_ next_ hop_ id The ID of the transit router route entry next hop.
- transit
Router StringRoute Entry Destination Cidr Block The CIDR of the transit router route entry.
- transit
Router StringRoute Entry Next Hop Type The Type of the transit router route entry next hop,Valid values
Attachment
andBlackHole
.- transit
Router StringRoute Table Id The ID of the transit router route table.
- dry
Run Boolean The dry run.
- transit
Router StringRoute Entry Description The description of the transit router route entry.
- transit
Router StringRoute Entry Name The name of the transit router route entry.
- transit
Router StringRoute Entry Next Hop Id 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.
- Transit
Router stringRoute Entry Id 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.
- Transit
Router stringRoute Entry Id 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.
- transit
Router StringRoute Entry Id 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.
- transit
Router stringRoute Entry Id 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_ strroute_ entry_ id 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.
- transit
Router StringRoute Entry Id 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.
- Dry
Run bool The dry run.
- Status string
The associating status of the Transit Router.
- Transit
Router stringRoute Entry Description The description of the transit router route entry.
- Transit
Router stringRoute Entry Destination Cidr Block The CIDR of the transit router route entry.
- Transit
Router stringRoute Entry Id The ID of the route entry.
- Transit
Router stringRoute Entry Name The name of the transit router route entry.
- Transit
Router stringRoute Entry Next Hop Id The ID of the transit router route entry next hop.
- Transit
Router stringRoute Entry Next Hop Type The Type of the transit router route entry next hop,Valid values
Attachment
andBlackHole
.- Transit
Router stringRoute Table Id The ID of the transit router route table.
- Dry
Run bool The dry run.
- Status string
The associating status of the Transit Router.
- Transit
Router stringRoute Entry Description The description of the transit router route entry.
- Transit
Router stringRoute Entry Destination Cidr Block The CIDR of the transit router route entry.
- Transit
Router stringRoute Entry Id The ID of the route entry.
- Transit
Router stringRoute Entry Name The name of the transit router route entry.
- Transit
Router stringRoute Entry Next Hop Id The ID of the transit router route entry next hop.
- Transit
Router stringRoute Entry Next Hop Type The Type of the transit router route entry next hop,Valid values
Attachment
andBlackHole
.- Transit
Router stringRoute Table Id The ID of the transit router route table.
- dry
Run Boolean The dry run.
- status String
The associating status of the Transit Router.
- transit
Router StringRoute Entry Description The description of the transit router route entry.
- transit
Router StringRoute Entry Destination Cidr Block The CIDR of the transit router route entry.
- transit
Router StringRoute Entry Id The ID of the route entry.
- transit
Router StringRoute Entry Name The name of the transit router route entry.
- transit
Router StringRoute Entry Next Hop Id The ID of the transit router route entry next hop.
- transit
Router StringRoute Entry Next Hop Type The Type of the transit router route entry next hop,Valid values
Attachment
andBlackHole
.- transit
Router StringRoute Table Id The ID of the transit router route table.
- dry
Run boolean The dry run.
- status string
The associating status of the Transit Router.
- transit
Router stringRoute Entry Description The description of the transit router route entry.
- transit
Router stringRoute Entry Destination Cidr Block The CIDR of the transit router route entry.
- transit
Router stringRoute Entry Id The ID of the route entry.
- transit
Router stringRoute Entry Name The name of the transit router route entry.
- transit
Router stringRoute Entry Next Hop Id The ID of the transit router route entry next hop.
- transit
Router stringRoute Entry Next Hop Type The Type of the transit router route entry next hop,Valid values
Attachment
andBlackHole
.- transit
Router stringRoute Table Id 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_ strroute_ entry_ description The description of the transit router route entry.
- transit_
router_ strroute_ entry_ destination_ cidr_ block The CIDR of the transit router route entry.
- transit_
router_ strroute_ entry_ id The ID of the route entry.
- transit_
router_ strroute_ entry_ name The name of the transit router route entry.
- transit_
router_ strroute_ entry_ next_ hop_ id The ID of the transit router route entry next hop.
- transit_
router_ strroute_ entry_ next_ hop_ type The Type of the transit router route entry next hop,Valid values
Attachment
andBlackHole
.- transit_
router_ strroute_ table_ id The ID of the transit router route table.
- dry
Run Boolean The dry run.
- status String
The associating status of the Transit Router.
- transit
Router StringRoute Entry Description The description of the transit router route entry.
- transit
Router StringRoute Entry Destination Cidr Block The CIDR of the transit router route entry.
- transit
Router StringRoute Entry Id The ID of the route entry.
- transit
Router StringRoute Entry Name The name of the transit router route entry.
- transit
Router StringRoute Entry Next Hop Id The ID of the transit router route entry next hop.
- transit
Router StringRoute Entry Next Hop Type The Type of the transit router route entry next hop,Valid values
Attachment
andBlackHole
.- transit
Router StringRoute Table Id 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.