CfnResolverEndpointPropsMixin
- class aws_cdk.mixins_preview.aws_route53resolver.mixins.CfnResolverEndpointPropsMixin(props, *, strategy=None)
Bases:
MixinCreates a Resolver endpoint. There are two types of Resolver endpoints, inbound and outbound:.
An inbound Resolver endpoint forwards DNS queries to the DNS service for a VPC from your network.
An outbound Resolver endpoint forwards DNS queries from the DNS service for a VPC to your network.
You cannot update
ResolverEndpointTypeandIpAddressesin the same request.When you update a dual-stack IP address, you must update both IP addresses. You can’t update only an IPv4 or IPv6 and keep an existing IP address.
- See:
- CloudformationResource:
AWS::Route53Resolver::ResolverEndpoint
- 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.mixins_preview import mixins from aws_cdk.mixins_preview.aws_route53resolver import mixins as route53resolver_mixins cfn_resolver_endpoint_props_mixin = route53resolver_mixins.CfnResolverEndpointPropsMixin(route53resolver_mixins.CfnResolverEndpointMixinProps( direction="direction", ip_addresses=[route53resolver_mixins.CfnResolverEndpointPropsMixin.IpAddressRequestProperty( ip="ip", ipv6="ipv6", subnet_id="subnetId" )], name="name", outpost_arn="outpostArn", preferred_instance_type="preferredInstanceType", protocols=["protocols"], resolver_endpoint_type="resolverEndpointType", security_group_ids=["securityGroupIds"], tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::Route53Resolver::ResolverEndpoint.- Parameters:
props (
Union[CfnResolverEndpointMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['direction', 'ipAddresses', 'name', 'outpostArn', 'preferredInstanceType', 'protocols', 'resolverEndpointType', 'securityGroupIds', 'tags']
Static Methods
- classmethod is_mixin(x)
(experimental) 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.- Stability:
experimental
IpAddressRequestProperty
- class CfnResolverEndpointPropsMixin.IpAddressRequestProperty(*, ip=None, ipv6=None, subnet_id=None)
Bases:
objectIn a CreateResolverEndpoint request, the IP address that DNS queries originate from (for outbound endpoints) or that you forward DNS queries to (for inbound endpoints).
IpAddressRequestalso includes the ID of the subnet that contains the IP address.- Parameters:
ip (
Optional[str]) – The IPv4 address that you want to use for DNS queries.ipv6 (
Optional[str]) – The IPv6 address that you want to use for DNS queries.subnet_id (
Optional[str]) – The ID of the subnet that contains the IP address.
- 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.mixins_preview.aws_route53resolver import mixins as route53resolver_mixins ip_address_request_property = route53resolver_mixins.CfnResolverEndpointPropsMixin.IpAddressRequestProperty( ip="ip", ipv6="ipv6", subnet_id="subnetId" )
Attributes
- ip
The IPv4 address that you want to use for DNS queries.
- ipv6
The IPv6 address that you want to use for DNS queries.
- subnet_id
The ID of the subnet that contains the IP address.