RouteEntry
Create a RouteEntry Resource
new RouteEntry(name: string, args: RouteEntryArgs, opts?: CustomResourceOptions);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:
- 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: -
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 string This argument has beeb deprecated. Please use other arguments to launch a custom route entry.
- 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: -
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 string This argument has beeb deprecated. Please use other arguments to launch a custom route entry.
- 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: -
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 string This argument has beeb deprecated. Please use other arguments to launch a custom route entry.
- 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: -
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.
Outputs
All input properties are implicitly available as output properties. Additionally, the RouteEntry resource produces the following output properties:
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): RouteEntrystatic 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:
- 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: -
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 stringId The ID of the route table.
- Router
Id string This argument has beeb deprecated. Please use other arguments to launch a custom route entry.
- 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: -
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 stringId The ID of the route table.
- Router
Id string This argument has beeb deprecated. Please use other arguments to launch a custom route entry.
- 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: -
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 stringId The ID of the route table.
- router
Id string This argument has beeb deprecated. Please use other arguments to launch a custom route entry.
- 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_ strid The ID of the route table.
- router_
id str This argument has beeb deprecated. Please use other arguments to launch a custom route entry.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.