aws-cdk-lib.aws_route53_targets.InterfaceVpcEndpointTarget

class InterfaceVpcEndpointTarget

LanguageType name
.NETAmazon.CDK.AWS.Route53.Targets.InterfaceVpcEndpointTarget
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsroute53targets#InterfaceVpcEndpointTarget
Javasoftware.amazon.awscdk.services.route53.targets.InterfaceVpcEndpointTarget
Pythonaws_cdk.aws_route53_targets.InterfaceVpcEndpointTarget
TypeScript (source)aws-cdk-lib » aws_route53_targets » InterfaceVpcEndpointTarget

Implements IAliasRecordTarget

Set an InterfaceVpcEndpoint as a target for an ARecord.

Example

import * as ec2 from 'aws-cdk-lib/aws-ec2';

declare const zone: route53.HostedZone;
declare const interfaceVpcEndpoint: ec2.InterfaceVpcEndpoint;

new route53.ARecord(this, "AliasRecord", {
  zone,
  target: route53.RecordTarget.fromAlias(new targets.InterfaceVpcEndpointTarget(interfaceVpcEndpoint)),
});

Initializer

new InterfaceVpcEndpointTarget(vpcEndpoint: InterfaceVpcEndpoint)

Parameters

  • vpcEndpoint InterfaceVpcEndpoint

Methods

NameDescription
bind(_record, _zone?)Return hosted zone ID and DNS name, usable for Route53 alias targets.

bind(_record, _zone?)

public bind(_record: IRecordSet, _zone?: IHostedZone): AliasRecordTargetConfig

Parameters

  • _record IRecordSet
  • _zone IHostedZone

Returns

  • AliasRecordTargetConfig

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