CfnResolverEndpointProps

class aws_cdk.aws_route53resolver.CfnResolverEndpointProps(*, direction, ip_addresses, security_group_ids, name=None, tags=None)

Bases: object

Properties for defining a CfnResolverEndpoint.

Parameters
  • direction (str) – Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:. - INBOUND : allows DNS queries to your VPC from your network - OUTBOUND : allows DNS queries from your VPC to your network

  • ip_addresses (Union[IResolvable, Sequence[Union[IResolvable, IpAddressRequestProperty, Dict[str, Any]]]]) – The subnets and IP addresses in your VPC that DNS queries originate from (for outbound endpoints) or that you forward DNS queries to (for inbound endpoints). The subnet ID uniquely identifies a VPC.

  • security_group_ids (Sequence[str]) – The ID of one or more security groups that control access to this VPC. The security group must include one or more inbound rules (for inbound endpoints) or outbound rules (for outbound endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you’re using for DNS queries on your network.

  • name (Optional[str]) – A friendly name that lets you easily find a configuration in the Resolver dashboard in the Route 53 console.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – Route 53 Resolver doesn’t support updating tags through CloudFormation.

Link

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

ExampleMetadata

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_route53resolver as route53resolver

cfn_resolver_endpoint_props = route53resolver.CfnResolverEndpointProps(
    direction="direction",
    ip_addresses=[route53resolver.CfnResolverEndpoint.IpAddressRequestProperty(
        subnet_id="subnetId",

        # the properties below are optional
        ip="ip"
    )],
    security_group_ids=["securityGroupIds"],

    # the properties below are optional
    name="name",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

direction

.

  • INBOUND : allows DNS queries to your VPC from your network

  • OUTBOUND : allows DNS queries from your VPC to your network

Link

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

Type

Indicates whether the Resolver endpoint allows inbound or outbound DNS queries

Return type

str

ip_addresses

The subnets and IP addresses in your VPC that DNS queries originate from (for outbound endpoints) or that you forward DNS queries to (for inbound endpoints).

The subnet ID uniquely identifies a VPC.

Link

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

Return type

Union[IResolvable, List[Union[IResolvable, IpAddressRequestProperty]]]

name

A friendly name that lets you easily find a configuration in the Resolver dashboard in the Route 53 console.

Link

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

Return type

Optional[str]

security_group_ids

The ID of one or more security groups that control access to this VPC.

The security group must include one or more inbound rules (for inbound endpoints) or outbound rules (for outbound endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you’re using for DNS queries on your network.

Link

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

Return type

List[str]

tags

Route 53 Resolver doesn’t support updating tags through CloudFormation.

Link

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

Return type

Optional[List[CfnTag]]