InterfaceVpcEndpointTarget

class aws_cdk.aws_route53_targets.InterfaceVpcEndpointTarget(vpc_endpoint)

Bases: object

Set an InterfaceVpcEndpoint as a target for an ARecord.

ExampleMetadata:

infused

Example:

import aws_cdk.aws_ec2 as ec2

# zone: route53.HostedZone
# interface_vpc_endpoint: ec2.InterfaceVpcEndpoint


route53.ARecord(self, "AliasRecord",
    zone=zone,
    target=route53.RecordTarget.from_alias(targets.InterfaceVpcEndpointTarget(interface_vpc_endpoint))
)
Parameters:

vpc_endpoint (InterfaceVpcEndpoint) –

Methods

bind(_record, _zone=None)

Return hosted zone ID and DNS name, usable for Route53 alias targets.

Parameters:
Return type:

AliasRecordTargetConfig