Class CfnInternetGateway
A CloudFormation AWS::EC2::InternetGateway
.
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class CfnInternetGateway : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnInternetGateway
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
Allocates an internet gateway for use with a VPC. After creating the Internet gateway, you then attach it to a VPC.
CloudformationResource: AWS::EC2::InternetGateway
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-internetgateway.html
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 cfnInternetGateway = new CfnInternetGateway(this, "MyCfnInternetGateway", new CfnInternetGatewayProps {
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnInternetGateway(Construct, String, ICfnInternetGatewayProps) | Create a new |
CfnInternetGateway(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnInternetGateway(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AttrInternetGatewayId | The ID of the internet gateway. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Tags | Any tags to assign to the internet gateway. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnInternetGateway(Construct, String, ICfnInternetGatewayProps)
Create a new AWS::EC2::InternetGateway
.
public CfnInternetGateway(Construct scope, string id, ICfnInternetGatewayProps props = null)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnInternetGatewayProps
- resource properties.
CfnInternetGateway(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnInternetGateway(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnInternetGateway(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnInternetGateway(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AttrInternetGatewayId
The ID of the internet gateway.
public virtual string AttrInternetGatewayId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: InternetGatewayId
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
Tags
Any tags to assign to the internet gateway.
public virtual TagManager Tags { get; }
Property Value
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>