alicloud.vpc.RouteEntry
Import
Router entry can be imported using the id, e.g (formatted as<route_table_id:router_id:destination_cidrblock:nexthop_type:nexthop_id>).
$ pulumi import alicloud:vpc/routeEntry:RouteEntry example vtb-123456:vrt-123456:0.0.0.0/0:NatGateway:ngw-123456
Create RouteEntry Resource
new RouteEntry(name: string, args: RouteEntryArgs, opts?: CustomResourceOptions);
@overload
def RouteEntry(resource_name: str,
opts: Optional[ResourceOptions] = None,
destination_cidrblock: Optional[str] = None,
name: Optional[str] = None,
nexthop_id: Optional[str] = None,
nexthop_type: Optional[str] = None,
route_table_id: Optional[str] = None,
router_id: Optional[str] = None)
@overload
def RouteEntry(resource_name: str,
args: RouteEntryArgs,
opts: Optional[ResourceOptions] = None)
func NewRouteEntry(ctx *Context, name string, args RouteEntryArgs, opts ...ResourceOption) (*RouteEntry, error)
public RouteEntry(string name, RouteEntryArgs args, CustomResourceOptions? opts = null)
public RouteEntry(String name, RouteEntryArgs args)
public RouteEntry(String name, RouteEntryArgs args, CustomResourceOptions options)
type: alicloud:vpc:RouteEntry
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RouteEntryArgs
- 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 RouteEntryArgs
- 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 RouteEntryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RouteEntryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RouteEntryArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
RouteEntry 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 RouteEntry resource accepts the following input properties:
- Route
Table stringId The ID of the route table.
- Destination
Cidrblock string The RouteEntry's target network segment.
- Name string
The name of the route entry. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
- Nexthop
Id string The route entry's next hop. ECS instance ID or VPC router interface ID.
- Nexthop
Type string The next hop type. Available values:
- Router
Id string This argument has been deprecated. Please use other arguments to launch a custom route entry.
Attribute router_id has been deprecated and suggest removing it from your template.
- Route
Table stringId The ID of the route table.
- Destination
Cidrblock string The RouteEntry's target network segment.
- Name string
The name of the route entry. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
- Nexthop
Id string The route entry's next hop. ECS instance ID or VPC router interface ID.
- Nexthop
Type string The next hop type. Available values:
- Router
Id string This argument has been deprecated. Please use other arguments to launch a custom route entry.
Attribute router_id has been deprecated and suggest removing it from your template.
- route
Table StringId The ID of the route table.
- destination
Cidrblock String The RouteEntry's target network segment.
- name String
The name of the route entry. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
- nexthop
Id String The route entry's next hop. ECS instance ID or VPC router interface ID.
- nexthop
Type String The next hop type. Available values:
- router
Id String This argument has been deprecated. Please use other arguments to launch a custom route entry.
Attribute router_id has been deprecated and suggest removing it from your template.
- route
Table stringId The ID of the route table.
- destination
Cidrblock string The RouteEntry's target network segment.
- name string
The name of the route entry. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
- nexthop
Id string The route entry's next hop. ECS instance ID or VPC router interface ID.
- nexthop
Type string The next hop type. Available values:
- router
Id string This argument has been deprecated. Please use other arguments to launch a custom route entry.
Attribute router_id has been deprecated and suggest removing it from your template.
- route_
table_ strid The ID of the route table.
- destination_
cidrblock str The RouteEntry's target network segment.
- name str
The name of the route entry. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
- nexthop_
id str The route entry's next hop. ECS instance ID or VPC router interface ID.
- nexthop_
type str The next hop type. Available values:
- router_
id str This argument has been deprecated. Please use other arguments to launch a custom route entry.
Attribute router_id has been deprecated and suggest removing it from your template.
- route
Table StringId The ID of the route table.
- destination
Cidrblock String The RouteEntry's target network segment.
- name String
The name of the route entry. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
- nexthop
Id String The route entry's next hop. ECS instance ID or VPC router interface ID.
- nexthop
Type String The next hop type. Available values:
- router
Id String This argument has been deprecated. Please use other arguments to launch a custom route entry.
Attribute router_id has been deprecated and suggest removing it from your template.
Outputs
All input properties are implicitly available as output properties. Additionally, the RouteEntry 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 RouteEntry Resource
Get an existing RouteEntry 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?: RouteEntryState, opts?: CustomResourceOptions): RouteEntry
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
destination_cidrblock: Optional[str] = None,
name: Optional[str] = None,
nexthop_id: Optional[str] = None,
nexthop_type: Optional[str] = None,
route_table_id: Optional[str] = None,
router_id: Optional[str] = None) -> RouteEntry
func GetRouteEntry(ctx *Context, name string, id IDInput, state *RouteEntryState, opts ...ResourceOption) (*RouteEntry, error)
public static RouteEntry Get(string name, Input<string> id, RouteEntryState? state, CustomResourceOptions? opts = null)
public static RouteEntry get(String name, Output<String> id, RouteEntryState 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.
- Destination
Cidrblock string The RouteEntry's target network segment.
- Name string
The name of the route entry. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
- Nexthop
Id string The route entry's next hop. ECS instance ID or VPC router interface ID.
- Nexthop
Type string The next hop type. Available values:
- Route
Table stringId The ID of the route table.
- Router
Id string This argument has been deprecated. Please use other arguments to launch a custom route entry.
Attribute router_id has been deprecated and suggest removing it from your template.
- Destination
Cidrblock string The RouteEntry's target network segment.
- Name string
The name of the route entry. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
- Nexthop
Id string The route entry's next hop. ECS instance ID or VPC router interface ID.
- Nexthop
Type string The next hop type. Available values:
- Route
Table stringId The ID of the route table.
- Router
Id string This argument has been deprecated. Please use other arguments to launch a custom route entry.
Attribute router_id has been deprecated and suggest removing it from your template.
- destination
Cidrblock String The RouteEntry's target network segment.
- name String
The name of the route entry. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
- nexthop
Id String The route entry's next hop. ECS instance ID or VPC router interface ID.
- nexthop
Type String The next hop type. Available values:
- route
Table StringId The ID of the route table.
- router
Id String This argument has been deprecated. Please use other arguments to launch a custom route entry.
Attribute router_id has been deprecated and suggest removing it from your template.
- destination
Cidrblock string The RouteEntry's target network segment.
- name string
The name of the route entry. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
- nexthop
Id string The route entry's next hop. ECS instance ID or VPC router interface ID.
- nexthop
Type string The next hop type. Available values:
- route
Table stringId The ID of the route table.
- router
Id string This argument has been deprecated. Please use other arguments to launch a custom route entry.
Attribute router_id has been deprecated and suggest removing it from your template.
- destination_
cidrblock str The RouteEntry's target network segment.
- name str
The name of the route entry. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
- nexthop_
id str The route entry's next hop. ECS instance ID or VPC router interface ID.
- nexthop_
type str The next hop type. Available values:
- route_
table_ strid The ID of the route table.
- router_
id str This argument has been deprecated. Please use other arguments to launch a custom route entry.
Attribute router_id has been deprecated and suggest removing it from your template.
- destination
Cidrblock String The RouteEntry's target network segment.
- name String
The name of the route entry. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
- nexthop
Id String The route entry's next hop. ECS instance ID or VPC router interface ID.
- nexthop
Type String The next hop type. Available values:
- route
Table StringId The ID of the route table.
- router
Id String This argument has been deprecated. Please use other arguments to launch a custom route entry.
Attribute router_id has been deprecated and suggest removing it from your template.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.