CfnResolverRulePropsMixin
- class aws_cdk.mixins_preview.aws_route53resolver.mixins.CfnResolverRulePropsMixin(props, *, strategy=None)
Bases:
MixinFor DNS queries that originate in your VPCs, specifies which Resolver endpoint the queries pass through, one domain name that you want to forward to your network, and the IP addresses of the DNS resolvers in your network.
- See:
- CloudformationResource:
AWS::Route53Resolver::ResolverRule
- 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_rule_props_mixin = route53resolver_mixins.CfnResolverRulePropsMixin(route53resolver_mixins.CfnResolverRuleMixinProps( delegation_record="delegationRecord", domain_name="domainName", name="name", resolver_endpoint_id="resolverEndpointId", rule_type="ruleType", tags=[CfnTag( key="key", value="value" )], target_ips=[route53resolver_mixins.CfnResolverRulePropsMixin.TargetAddressProperty( ip="ip", ipv6="ipv6", port="port", protocol="protocol", server_name_indication="serverNameIndication" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::Route53Resolver::ResolverRule.- Parameters:
props (
Union[CfnResolverRuleMixinProps,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 = ['delegationRecord', 'domainName', 'name', 'resolverEndpointId', 'ruleType', 'tags', 'targetIps']
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
TargetAddressProperty
- class CfnResolverRulePropsMixin.TargetAddressProperty(*, ip=None, ipv6=None, port=None, protocol=None, server_name_indication=None)
Bases:
objectIn a CreateResolverRule request, an array of the IPs that you want to forward DNS queries to.
- Parameters:
ip (
Optional[str]) – One IPv4 address that you want to forward DNS queries to.ipv6 (
Optional[str]) – One IPv6 address that you want to forward DNS queries to.port (
Optional[str]) – The port atIpthat you want to forward DNS queries to.protocol (
Optional[str]) – The protocols for the target address. The protocol you choose needs to be supported by the outbound endpoint of the Resolver rule.server_name_indication (
Optional[str]) – The Server Name Indication of the DoH server that you want to forward queries to. This is only used if the Protocol of theTargetAddressisDoH.
- 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 target_address_property = route53resolver_mixins.CfnResolverRulePropsMixin.TargetAddressProperty( ip="ip", ipv6="ipv6", port="port", protocol="protocol", server_name_indication="serverNameIndication" )
Attributes
- ip
One IPv4 address that you want to forward DNS queries to.
- ipv6
One IPv6 address that you want to forward DNS queries to.
- port
The port at
Ipthat you want to forward DNS queries to.
- protocol
The protocols for the target address.
The protocol you choose needs to be supported by the outbound endpoint of the Resolver rule.
- server_name_indication
The Server Name Indication of the DoH server that you want to forward queries to.
This is only used if the Protocol of the
TargetAddressisDoH.