Class EgressOnlyInternetGateway
(experimental) Creates an egress-only internet gateway.
Inherited Members
Namespace: Amazon.CDK.AWS.ec2.Alpha
Assembly: Amazon.CDK.AWS.ec2.Alpha.dll
Syntax (csharp)
public class EgressOnlyInternetGateway : Resource, IResource, IConstruct, IEnvironmentAware, IRouteTarget, IDependable
Syntax (vb)
Public Class EgressOnlyInternetGateway Inherits Resource Implements IResource, IConstruct, IEnvironmentAware, IRouteTarget, IDependable
Remarks
Stability: Experimental
Resource: AWS::EC2::EgressOnlyInternetGateway
ExampleMetadata: infused
Examples
var stack = new Stack();
var myVpc = new VpcV2(this, "Vpc", new VpcV2Props {
PrimaryAddressBlock = IpAddresses.Ipv4("10.1.0.0/16"),
SecondaryAddressBlocks = new [] { IpAddresses.AmazonProvidedIpv6(new SecondaryAddressProps {
CidrBlockName = "AmazonProvided"
}) }
});
var eigw = new EgressOnlyInternetGateway(this, "EIGW", new EgressOnlyInternetGatewayProps {
Vpc = myVpc
});
var routeTable = new RouteTable(this, "RouteTable", new RouteTableProps {
Vpc = myVpc
});
routeTable.AddRoute("EIGW", "::/0", new Dictionary<string, IRouteTarget?> { { "gateway", eigw } });
Synopsis
Constructors
| EgressOnlyInternetGateway(Construct, string, IEgressOnlyInternetGatewayProps) | (experimental) Creates an egress-only internet gateway. |
Properties
| PROPERTY_INJECTION_ID | (experimental) Uniquely identifies this class. |
| Resource | (experimental) The egress-only internet gateway CFN resource. |
| RouterTargetId | (experimental) The ID of the route target. |
| RouterType | (experimental) The type of router used in the route. |
Constructors
EgressOnlyInternetGateway(Construct, string, IEgressOnlyInternetGatewayProps)
(experimental) Creates an egress-only internet gateway.
public EgressOnlyInternetGateway(Construct scope, string id, IEgressOnlyInternetGatewayProps props)
Parameters
- scope Construct
- id string
- props IEgressOnlyInternetGatewayProps
Remarks
Stability: Experimental
Properties
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Stability: Experimental
Resource
(experimental) The egress-only internet gateway CFN resource.
public virtual CfnEgressOnlyInternetGateway Resource { get; }
Property Value
Remarks
Stability: Experimental
RouterTargetId
(experimental) The ID of the route target.
public virtual string RouterTargetId { get; }
Property Value
Remarks
Stability: Experimental
RouterType
(experimental) The type of router used in the route.
public virtual RouterType RouterType { get; }
Property Value
Remarks
Stability: Experimental