alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

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:

RouteTableId string

The ID of the route table.

DestinationCidrblock 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://.

NexthopId string

The route entry's next hop. ECS instance ID or VPC router interface ID.

NexthopType string

The next hop type. Available values:

RouterId string

This argument has been deprecated. Please use other arguments to launch a custom route entry.

Deprecated:

Attribute router_id has been deprecated and suggest removing it from your template.

RouteTableId string

The ID of the route table.

DestinationCidrblock 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://.

NexthopId string

The route entry's next hop. ECS instance ID or VPC router interface ID.

NexthopType string

The next hop type. Available values:

RouterId string

This argument has been deprecated. Please use other arguments to launch a custom route entry.

Deprecated:

Attribute router_id has been deprecated and suggest removing it from your template.

routeTableId String

The ID of the route table.

destinationCidrblock 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://.

nexthopId String

The route entry's next hop. ECS instance ID or VPC router interface ID.

nexthopType String

The next hop type. Available values:

routerId String

This argument has been deprecated. Please use other arguments to launch a custom route entry.

Deprecated:

Attribute router_id has been deprecated and suggest removing it from your template.

routeTableId string

The ID of the route table.

destinationCidrblock 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://.

nexthopId string

The route entry's next hop. ECS instance ID or VPC router interface ID.

nexthopType string

The next hop type. Available values:

routerId string

This argument has been deprecated. Please use other arguments to launch a custom route entry.

Deprecated:

Attribute router_id has been deprecated and suggest removing it from your template.

route_table_id str

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.

Deprecated:

Attribute router_id has been deprecated and suggest removing it from your template.

routeTableId String

The ID of the route table.

destinationCidrblock 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://.

nexthopId String

The route entry's next hop. ECS instance ID or VPC router interface ID.

nexthopType String

The next hop type. Available values:

routerId String

This argument has been deprecated. Please use other arguments to launch a custom route entry.

Deprecated:

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.
The following state arguments are supported:
DestinationCidrblock 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://.

NexthopId string

The route entry's next hop. ECS instance ID or VPC router interface ID.

NexthopType string

The next hop type. Available values:

RouteTableId string

The ID of the route table.

RouterId string

This argument has been deprecated. Please use other arguments to launch a custom route entry.

Deprecated:

Attribute router_id has been deprecated and suggest removing it from your template.

DestinationCidrblock 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://.

NexthopId string

The route entry's next hop. ECS instance ID or VPC router interface ID.

NexthopType string

The next hop type. Available values:

RouteTableId string

The ID of the route table.

RouterId string

This argument has been deprecated. Please use other arguments to launch a custom route entry.

Deprecated:

Attribute router_id has been deprecated and suggest removing it from your template.

destinationCidrblock 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://.

nexthopId String

The route entry's next hop. ECS instance ID or VPC router interface ID.

nexthopType String

The next hop type. Available values:

routeTableId String

The ID of the route table.

routerId String

This argument has been deprecated. Please use other arguments to launch a custom route entry.

Deprecated:

Attribute router_id has been deprecated and suggest removing it from your template.

destinationCidrblock 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://.

nexthopId string

The route entry's next hop. ECS instance ID or VPC router interface ID.

nexthopType string

The next hop type. Available values:

routeTableId string

The ID of the route table.

routerId string

This argument has been deprecated. Please use other arguments to launch a custom route entry.

Deprecated:

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_id str

The ID of the route table.

router_id str

This argument has been deprecated. Please use other arguments to launch a custom route entry.

Deprecated:

Attribute router_id has been deprecated and suggest removing it from your template.

destinationCidrblock 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://.

nexthopId String

The route entry's next hop. ECS instance ID or VPC router interface ID.

nexthopType String

The next hop type. Available values:

routeTableId String

The ID of the route table.

routerId String

This argument has been deprecated. Please use other arguments to launch a custom route entry.

Deprecated:

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.