Class RouteEntry
Inherited Members
Namespace: Pulumi.AliCloud.Vpc
Assembly: Pulumi.AliCloud.dll
Syntax
public class RouteEntry : CustomResource
Constructors
View SourceRouteEntry(String, RouteEntryArgs, CustomResourceOptions)
Create a RouteEntry resource with the given unique name, arguments, and options.
Declaration
public RouteEntry(string name, RouteEntryArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| RouteEntryArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDestinationCidrblock
The RouteEntry's target network segment.
Declaration
public Output<string> DestinationCidrblock { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
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://.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NexthopId
The route entry's next hop. ECS instance ID or VPC router interface ID.
Declaration
public Output<string> NexthopId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NexthopType
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.
Declaration
public Output<string> NexthopType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RouterId
This argument has beeb deprecated. Please use other arguments to launch a custom route entry.
Declaration
public Output<string> RouterId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RouteTableId
The ID of the route table.
Declaration
public Output<string> RouteTableId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, RouteEntryState, CustomResourceOptions)
Get an existing RouteEntry resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static RouteEntry Get(string name, Input<string> id, RouteEntryState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| RouteEntryState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| RouteEntry |