Class CfnEgressOnlyInternetGateway
A CloudFormation AWS::EC2::EgressOnlyInternetGateway
.
Inheritance
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class CfnEgressOnlyInternetGateway : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnEgressOnlyInternetGateway
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
[IPv6 only] Specifies an egress-only internet gateway for your VPC. An egress-only internet gateway is used to enable outbound communication over IPv6 from instances in your VPC to the internet, and prevents hosts outside of your VPC from initiating an IPv6 connection with your instance.
CloudformationResource: AWS::EC2::EgressOnlyInternetGateway
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var cfnEgressOnlyInternetGateway = new CfnEgressOnlyInternetGateway(this, "MyCfnEgressOnlyInternetGateway", new CfnEgressOnlyInternetGatewayProps {
VpcId = "vpcId"
});
Synopsis
Constructors
CfnEgressOnlyInternetGateway(Construct, String, ICfnEgressOnlyInternetGatewayProps) | Create a new |
CfnEgressOnlyInternetGateway(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnEgressOnlyInternetGateway(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AttrId | The ID of the egress-only internet gateway. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
VpcId | The ID of the VPC for which to create the egress-only internet gateway. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnEgressOnlyInternetGateway(Construct, String, ICfnEgressOnlyInternetGatewayProps)
Create a new AWS::EC2::EgressOnlyInternetGateway
.
public CfnEgressOnlyInternetGateway(Construct scope, string id, ICfnEgressOnlyInternetGatewayProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnEgressOnlyInternetGatewayProps
- resource properties.
CfnEgressOnlyInternetGateway(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnEgressOnlyInternetGateway(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnEgressOnlyInternetGateway(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnEgressOnlyInternetGateway(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AttrId
The ID of the egress-only internet gateway.
public virtual string AttrId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Id
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
VpcId
The ID of the VPC for which to create the egress-only internet gateway.
public virtual string VpcId { get; set; }
Property Value
System.String
Remarks
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>