CfnInstanceConnectEndpointPropsMixin
- class aws_cdk.cfn_property_mixins.aws_ec2.CfnInstanceConnectEndpointPropsMixin(props, *, strategy=None)
Bases:
MixinCreates an EC2 Instance Connect Endpoint.
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, 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.
- See:
- CloudformationResource:
AWS::EC2::InstanceConnectEndpoint
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_ec2 as ec2 import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_instance_connect_endpoint_props_mixin = ec2.CfnInstanceConnectEndpointPropsMixin(ec2.CfnInstanceConnectEndpointMixinProps( client_token="clientToken", preserve_client_ip=False, security_group_ids=["securityGroupIds"], subnet_id="subnetId", tags=[cdk.CfnTag( key="key", value="value" )] ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::EC2::InstanceConnectEndpoint.- Parameters:
props (
Union[CfnInstanceConnectEndpointMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['clientToken', 'preserveClientIp', 'securityGroupIds', 'subnetId', 'tags']
Static Methods
- classmethod is_mixin(x)
Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.
InstanceConnectEndpointDnsNamesProperty
- class CfnInstanceConnectEndpointPropsMixin.InstanceConnectEndpointDnsNamesProperty(*, dns_name=None, fips_dns_name=None)
Bases:
objectThe DNS names of the endpoint.
- Parameters:
dns_name (
Optional[str]) – The DNS name of the EC2 Instance Connect Endpoint.fips_dns_name (
Optional[str]) – The Federal Information Processing Standards (FIPS) compliant DNS name of the EC2 Instance Connect Endpoint.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_ec2 as ec2 instance_connect_endpoint_dns_names_property = ec2.CfnInstanceConnectEndpointPropsMixin.InstanceConnectEndpointDnsNamesProperty( dns_name="dnsName", fips_dns_name="fipsDnsName" )
Attributes
- dns_name
The DNS name of the EC2 Instance Connect Endpoint.
- fips_dns_name
The Federal Information Processing Standards (FIPS) compliant DNS name of the EC2 Instance Connect Endpoint.
InstanceConnectEndpointPublicDnsNamesProperty
- class CfnInstanceConnectEndpointPropsMixin.InstanceConnectEndpointPublicDnsNamesProperty(*, dualstack=None, ipv4=None)
Bases:
objectThe public DNS names of the endpoint, including IPv4-only and dualstack DNS names.
- Parameters:
dualstack (
Union[IResolvable,InstanceConnectEndpointDnsNamesProperty,Dict[str,Any],None]) – The DNS names of the endpoint.ipv4 (
Union[IResolvable,InstanceConnectEndpointDnsNamesProperty,Dict[str,Any],None]) – The DNS names of the endpoint.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_ec2 as ec2 instance_connect_endpoint_public_dns_names_property = ec2.CfnInstanceConnectEndpointPropsMixin.InstanceConnectEndpointPublicDnsNamesProperty( dualstack=ec2.CfnInstanceConnectEndpointPropsMixin.InstanceConnectEndpointDnsNamesProperty( dns_name="dnsName", fips_dns_name="fipsDnsName" ), ipv4=ec2.CfnInstanceConnectEndpointPropsMixin.InstanceConnectEndpointDnsNamesProperty( dns_name="dnsName", fips_dns_name="fipsDnsName" ) )
Attributes
- dualstack
The DNS names of the endpoint.