class InterfaceVpcEndpointTarget
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Route53.Targets.InterfaceVpcEndpointTarget |
Java | software.amazon.awscdk.services.route53.targets.InterfaceVpcEndpointTarget |
Python | aws_cdk.aws_route53_targets.InterfaceVpcEndpointTarget |
TypeScript (source) | @aws-cdk/aws-route53-targets » InterfaceVpcEndpointTarget |
Implements
IAlias
Set an InterfaceVpcEndpoint as a target for an ARecord.
Example
import * as ec2 from '@aws-cdk/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: IInterfaceVpcEndpoint)
Parameters
- vpcEndpoint
IInterface
Vpc Endpoint
Methods
Name | Description |
---|---|
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
IRecord
Set - _zone
IHosted
Zone
Returns
Return hosted zone ID and DNS name, usable for Route53 alias targets.