CfnResolverEndpointPropsMixin

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

Bases: Mixin

Creates 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 ResolverEndpointType and IpAddresses in 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:

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

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:

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 = ['direction', 'ipAddresses', 'name', 'outpostArn', 'preferredInstanceType', 'protocols', 'resolverEndpointType', 'securityGroupIds', 'tags']

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

IpAddressRequestProperty

class CfnResolverEndpointPropsMixin.IpAddressRequestProperty(*, ip=None, ipv6=None, subnet_id=None)

Bases: object

In a CreateResolverEndpoint request, the IP address that DNS queries originate from (for outbound endpoints) or that you forward DNS queries to (for inbound endpoints). IpAddressRequest also 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53resolver-resolverendpoint-ipaddressrequest.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

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.

See:

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

ipv6

The IPv6 address that you want to use for DNS queries.

See:

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

subnet_id

The ID of the subnet that contains the IP address.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53resolver-resolverendpoint-ipaddressrequest.html#cfn-route53resolver-resolverendpoint-ipaddressrequest-subnetid