CfnInstanceConnectEndpointProps Struct
Properties for defining a CfnInstanceConnectEndpoint.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnInstanceConnectEndpointProps: ec2.CfnInstanceConnectEndpointProps = {
subnetId: 'subnetId',
// the properties below are optional
clientToken: 'clientToken',
preserveClientIp: false,
securityGroupIds: ['securityGroupIds'],
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2
cfn_instance_connect_endpoint_props = ec2.CfnInstanceConnectEndpointProps(
subnet_id="subnetId",
# the properties below are optional
client_token="clientToken",
preserve_client_ip=False,
security_group_ids=["securityGroupIds"],
tags=[CfnTag(
key="key",
value="value"
)]
)
java
// 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.*;
CfnInstanceConnectEndpointProps cfnInstanceConnectEndpointProps = CfnInstanceConnectEndpointProps.builder()
.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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 cfnInstanceConnectEndpointProps = new CfnInstanceConnectEndpointProps {
SubnetId = "subnetId",
// the properties below are optional
ClientToken = "clientToken",
PreserveClientIp = false,
SecurityGroupIds = new [] { "securityGroupIds" },
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnInstanceConnectEndpointProps := &CfnInstanceConnectEndpointProps{
SubnetId: jsii.String("subnetId"),
// the properties below are optional
ClientToken: jsii.String("clientToken"),
PreserveClientIp: jsii.Boolean(false),
SecurityGroupIds: []*string{
jsii.String("securityGroupIds"),
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
clientTokenoptionalstringclient_tokenoptionalstrclientTokenoptionalStringClientTokenoptionalstringClientTokenoptional*string#Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
preserveClientIpoptionalboolean | IResolvablepreserve_client_ipoptionaltyping.Union[bool, IResolvable]preserveClientIpoptionalBooleanPreserveClientIpoptionalboolPreserveClientIpoptionalinterface{}#Indicates whether the client IP address is preserved as the source. The following are the possible values.
notes
true- Use the client IP address as the source.false- Use the network interface IP address as the source.
PreserveClientIpis only supported on IPv4 EC2 Instance Connect Endpoints. To usePreserveClientIp, the value forIpAddressTypemust beipv4.
Default: false
securityGroupIdsoptionalstring[]security_group_idsoptionaltyping.List[str]securityGroupIdsoptionalList<String>SecurityGroupIdsoptionalstring[]SecurityGroupIdsoptional*[]*string#One or more security groups to associate with the endpoint.
If you don't specify a security group, the default security group for your VPC will be associated with the endpoint.
The ID of the subnet in which to create the EC2 Instance Connect Endpoint.