Show / Hide Table of Contents

Class EgressOnlyInternetGateway

(experimental) Creates an egress-only internet gateway.

Inheritance
object
Resource
EgressOnlyInternetGateway
Implements
IResource
IConstruct
IEnvironmentAware
IRouteTarget
IDependable
Inherited Members
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.Env
Resource.PhysicalName
Resource.Stack
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

string

Remarks

Stability: Experimental

Resource

(experimental) The egress-only internet gateway CFN resource.

public virtual CfnEgressOnlyInternetGateway Resource { get; }
Property Value

CfnEgressOnlyInternetGateway

Remarks

Stability: Experimental

RouterTargetId

(experimental) The ID of the route target.

public virtual string RouterTargetId { get; }
Property Value

string

Remarks

Stability: Experimental

RouterType

(experimental) The type of router used in the route.

public virtual RouterType RouterType { get; }
Property Value

RouterType

Remarks

Stability: Experimental

Implements

IResource
Constructs.IConstruct
IEnvironmentAware
IRouteTarget
Constructs.IDependable
Back to top Generated by DocFX