Class CfnInstanceConnectEndpoint
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggableV2,IInstanceConnectEndpointRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
An EC2 Instance Connect Endpoint allows you to connect to an instance, without requiring the instance to have a public IPv4 address. For more information, see Connect to your instances using EC2 Instance Connect Endpoint in the Amazon EC2 User Guide .
With the replacement update behavior, AWS CloudFormation usually creates the new resource first, changes references to point to the new resource, and then deletes the old resource. However, you can create only one EC2 Instance Connect Endpoint per VPC, so the replacement process fails. If you need to modify an EC2 Instance Connect Endpoint, you must replace the resource manually.
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.*;
CfnInstanceConnectEndpoint cfnInstanceConnectEndpoint = CfnInstanceConnectEndpoint.Builder.create(this, "MyCfnInstanceConnectEndpoint")
.subnetId("subnetId")
// the properties below are optional
.clientToken("clientToken")
.preserveClientIp(false)
.securityGroupIds(List.of("securityGroupIds"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnInstanceConnectEndpoint.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IInstanceConnectEndpointRef
IInstanceConnectEndpointRef.Jsii$Default, IInstanceConnectEndpointRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnInstanceConnectEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnInstanceConnectEndpoint(software.amazon.jsii.JsiiObjectRef objRef) CfnInstanceConnectEndpoint(software.constructs.Construct scope, String id, CfnInstanceConnectEndpointProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IInstanceConnectEndpointReffromInstanceConnectEndpointId(software.constructs.Construct scope, String id, String instanceConnectEndpointId) Creates a new IInstanceConnectEndpointRef from a instanceConnectEndpointId.The ID of the EC2 Instance Connect Endpoint.Tag Manager which manages the tags for this resource.Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.A reference to a InstanceConnectEndpoint resource.Indicates whether the client IP address is preserved as the source.One or more security groups to associate with the endpoint.The ID of the subnet in which to create the EC2 Instance Connect Endpoint.getTags()The tags to apply to the EC2 Instance Connect Endpoint during creation.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetClientToken(String value) Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.voidsetPreserveClientIp(Boolean value) Indicates whether the client IP address is preserved as the source.voidsetPreserveClientIp(IResolvable value) Indicates whether the client IP address is preserved as the source.voidsetSecurityGroupIds(List<String> value) One or more security groups to associate with the endpoint.voidsetSubnetId(String value) The ID of the subnet in which to create the EC2 Instance Connect Endpoint.voidThe tags to apply to the EC2 Instance Connect Endpoint during creation.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnInstanceConnectEndpoint
protected CfnInstanceConnectEndpoint(software.amazon.jsii.JsiiObjectRef objRef) -
CfnInstanceConnectEndpoint
protected CfnInstanceConnectEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnInstanceConnectEndpoint
@Stability(Stable) public CfnInstanceConnectEndpoint(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnInstanceConnectEndpointProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
fromInstanceConnectEndpointId
@Stability(Stable) @NotNull public static IInstanceConnectEndpointRef fromInstanceConnectEndpointId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String instanceConnectEndpointId) Creates a new IInstanceConnectEndpointRef from a instanceConnectEndpointId.- Parameters:
scope- This parameter is required.id- This parameter is required.instanceConnectEndpointId- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrId
The ID of the EC2 Instance Connect Endpoint. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getInstanceConnectEndpointRef
A reference to a InstanceConnectEndpoint resource.- Specified by:
getInstanceConnectEndpointRefin interfaceIInstanceConnectEndpointRef
-
getSubnetId
The ID of the subnet in which to create the EC2 Instance Connect Endpoint. -
setSubnetId
The ID of the subnet in which to create the EC2 Instance Connect Endpoint. -
getClientToken
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -
setClientToken
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -
getPreserveClientIp
Indicates whether the client IP address is preserved as the source.The following are the possible values.
Returns union: either
BooleanorIResolvable -
setPreserveClientIp
Indicates whether the client IP address is preserved as the source.The following are the possible values.
-
setPreserveClientIp
Indicates whether the client IP address is preserved as the source.The following are the possible values.
-
getSecurityGroupIds
One or more security groups to associate with the endpoint. -
setSecurityGroupIds
One or more security groups to associate with the endpoint. -
getTags
The tags to apply to the EC2 Instance Connect Endpoint during creation. -
setTags
The tags to apply to the EC2 Instance Connect Endpoint during creation.
-