CfnResolverRulePropsMixin

class aws_cdk.mixins_preview.aws_route53resolver.mixins.CfnResolverRulePropsMixin(props, *, strategy=None)

Bases: Mixin

For 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53resolver-resolverrule.html

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:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

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 x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

TargetAddressProperty

class CfnResolverRulePropsMixin.TargetAddressProperty(*, ip=None, ipv6=None, port=None, protocol=None, server_name_indication=None)

Bases: object

In 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 at Ip that 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 the TargetAddress is DoH .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53resolver-resolverrule-targetaddress.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53resolver-resolverrule-targetaddress.html#cfn-route53resolver-resolverrule-targetaddress-ip

ipv6

One IPv6 address that you want to forward DNS queries to.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53resolver-resolverrule-targetaddress.html#cfn-route53resolver-resolverrule-targetaddress-ipv6

port

The port at Ip that you want to forward DNS queries to.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53resolver-resolverrule-targetaddress.html#cfn-route53resolver-resolverrule-targetaddress-port

protocol

The protocols for the target address.

The protocol you choose needs to be supported by the outbound endpoint of the Resolver rule.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53resolver-resolverrule-targetaddress.html#cfn-route53resolver-resolverrule-targetaddress-protocol

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 TargetAddress is DoH .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53resolver-resolverrule-targetaddress.html#cfn-route53resolver-resolverrule-targetaddress-servernameindication