enum RouterType
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EC2.RouterType |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#RouterType |
![]() | software.amazon.awscdk.services.ec2.RouterType |
![]() | aws_cdk.aws_ec2.RouterType |
![]() | aws-cdk-lib » aws_ec2 » RouterType |
Type of router used in route.
Example
const vpc = new ec2.Vpc(this, "VPC", {
subnetConfiguration: [{
subnetType: ec2.SubnetType.PUBLIC,
name: 'Public',
},{
subnetType: ec2.SubnetType.PRIVATE_ISOLATED,
name: 'Isolated',
}]
});
(vpc.isolatedSubnets[0] as ec2.Subnet).addRoute("StaticRoute", {
routerId: vpc.internetGatewayId!,
routerType: ec2.RouterType.GATEWAY,
destinationCidrBlock: "8.8.8.8/32",
})
Members
Name | Description |
---|---|
CARRIER_GATEWAY | Carrier gateway. |
EGRESS_ONLY_INTERNET_GATEWAY | Egress-only Internet Gateway. |
GATEWAY | Internet Gateway. |
INSTANCE | Instance. |
LOCAL_GATEWAY | Local Gateway. |
NAT_GATEWAY | NAT Gateway. |
NETWORK_INTERFACE | Network Interface. |
TRANSIT_GATEWAY | Transit Gateway. |
VPC_PEERING_CONNECTION | VPC peering connection. |
VPC_ENDPOINT | VPC Endpoint for gateway load balancers. |
CARRIER_GATEWAY
Carrier gateway.
EGRESS_ONLY_INTERNET_GATEWAY
Egress-only Internet Gateway.
GATEWAY
Internet Gateway.
INSTANCE
Instance.
LOCAL_GATEWAY
Local Gateway.
NAT_GATEWAY
NAT Gateway.
NETWORK_INTERFACE
Network Interface.
TRANSIT_GATEWAY
Transit Gateway.
VPC_PEERING_CONNECTION
VPC peering connection.
VPC_ENDPOINT
VPC Endpoint for gateway load balancers.