RouteEntry

Create a RouteEntry Resource

def RouteEntry(resource_name, opts=None, destination_cidrblock=None, name=None, nexthop_id=None, nexthop_type=None, route_table_id=None, router_id=None, __props__=None);
func NewRouteEntry(ctx *Context, name string, args RouteEntryArgs, opts ...ResourceOption) (*RouteEntry, error)
public RouteEntry(string name, RouteEntryArgs args, CustomResourceOptions? opts = null)
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.
opts ResourceOptions
A bag of options that control this 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.

RouteEntry Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model 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: - Instance (Default): Route the traffic destined for the destination CIDR block to an ECS instance in the VPC. - RouterInterface: Route the traffic destined for the destination CIDR block to a router interface. - VpnGateway: Route the traffic destined for the destination CIDR block to a VPN Gateway. - HaVip: Route the traffic destined for the destination CIDR block to an HAVIP. - NetworkInterface: Route the traffic destined for the destination CIDR block to an NetworkInterface. - NatGateway: Route the traffic destined for the destination CIDR block to an Nat Gateway.

RouterId string

This argument has beeb 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: - Instance (Default): Route the traffic destined for the destination CIDR block to an ECS instance in the VPC. - RouterInterface: Route the traffic destined for the destination CIDR block to a router interface. - VpnGateway: Route the traffic destined for the destination CIDR block to a VPN Gateway. - HaVip: Route the traffic destined for the destination CIDR block to an HAVIP. - NetworkInterface: Route the traffic destined for the destination CIDR block to an NetworkInterface. - NatGateway: Route the traffic destined for the destination CIDR block to an Nat Gateway.

RouterId string

This argument has beeb 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: - Instance (Default): Route the traffic destined for the destination CIDR block to an ECS instance in the VPC. - RouterInterface: Route the traffic destined for the destination CIDR block to a router interface. - VpnGateway: Route the traffic destined for the destination CIDR block to a VPN Gateway. - HaVip: Route the traffic destined for the destination CIDR block to an HAVIP. - NetworkInterface: Route the traffic destined for the destination CIDR block to an NetworkInterface. - NatGateway: Route the traffic destined for the destination CIDR block to an Nat Gateway.

routerId string

This argument has beeb 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: - Instance (Default): Route the traffic destined for the destination CIDR block to an ECS instance in the VPC. - RouterInterface: Route the traffic destined for the destination CIDR block to a router interface. - VpnGateway: Route the traffic destined for the destination CIDR block to a VPN Gateway. - HaVip: Route the traffic destined for the destination CIDR block to an HAVIP. - NetworkInterface: Route the traffic destined for the destination CIDR block to an NetworkInterface. - NatGateway: Route the traffic destined for the destination CIDR block to an Nat Gateway.

router_id str

This argument has beeb 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 str
The provider-assigned unique ID for this managed resource.

Look up an 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
static get(resource_name, id, opts=None, destination_cidrblock=None, name=None, nexthop_id=None, nexthop_type=None, route_table_id=None, router_id=None, __props__=None);
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)
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.

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: - Instance (Default): Route the traffic destined for the destination CIDR block to an ECS instance in the VPC. - RouterInterface: Route the traffic destined for the destination CIDR block to a router interface. - VpnGateway: Route the traffic destined for the destination CIDR block to a VPN Gateway. - HaVip: Route the traffic destined for the destination CIDR block to an HAVIP. - NetworkInterface: Route the traffic destined for the destination CIDR block to an NetworkInterface. - NatGateway: Route the traffic destined for the destination CIDR block to an Nat Gateway.

RouteTableId string

The ID of the route table.

RouterId string

This argument has beeb 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: - Instance (Default): Route the traffic destined for the destination CIDR block to an ECS instance in the VPC. - RouterInterface: Route the traffic destined for the destination CIDR block to a router interface. - VpnGateway: Route the traffic destined for the destination CIDR block to a VPN Gateway. - HaVip: Route the traffic destined for the destination CIDR block to an HAVIP. - NetworkInterface: Route the traffic destined for the destination CIDR block to an NetworkInterface. - NatGateway: Route the traffic destined for the destination CIDR block to an Nat Gateway.

RouteTableId string

The ID of the route table.

RouterId string

This argument has beeb 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: - Instance (Default): Route the traffic destined for the destination CIDR block to an ECS instance in the VPC. - RouterInterface: Route the traffic destined for the destination CIDR block to a router interface. - VpnGateway: Route the traffic destined for the destination CIDR block to a VPN Gateway. - HaVip: Route the traffic destined for the destination CIDR block to an HAVIP. - NetworkInterface: Route the traffic destined for the destination CIDR block to an NetworkInterface. - NatGateway: Route the traffic destined for the destination CIDR block to an Nat Gateway.

routeTableId string

The ID of the route table.

routerId string

This argument has beeb 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: - Instance (Default): Route the traffic destined for the destination CIDR block to an ECS instance in the VPC. - RouterInterface: Route the traffic destined for the destination CIDR block to a router interface. - VpnGateway: Route the traffic destined for the destination CIDR block to a VPN Gateway. - HaVip: Route the traffic destined for the destination CIDR block to an HAVIP. - NetworkInterface: Route the traffic destined for the destination CIDR block to an NetworkInterface. - NatGateway: Route the traffic destined for the destination CIDR block to an Nat Gateway.

route_table_id str

The ID of the route table.

router_id str

This argument has beeb 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
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.