@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-09T19:16:37.010Z") public class CfnInternetGateway extends CfnResource implements IInspectable
Allocates an internet gateway for use with a VPC. After creating the Internet gateway, you then attach it to a VPC.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.ec2.*; CfnInternetGateway cfnInternetGateway = CfnInternetGateway.Builder.create(this, "MyCfnInternetGateway") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnInternetGateway.Builder
A fluent builder for
CfnInternetGateway . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnInternetGateway(Construct scope,
java.lang.String id)
Create a new `AWS::EC2::InternetGateway`.
|
|
CfnInternetGateway(Construct scope,
java.lang.String id,
CfnInternetGatewayProps props)
Create a new `AWS::EC2::InternetGateway`.
|
protected |
CfnInternetGateway(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnInternetGateway(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrInternetGatewayId()
The ID of the internet gateway.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
TagManager |
getTags()
Any tags to assign to the internet gateway.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnInternetGateway(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnInternetGateway(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnInternetGateway(Construct scope, java.lang.String id, CfnInternetGatewayProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties.public CfnInternetGateway(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrInternetGatewayId()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()