Class InterfaceVpcEndpointTarget
Set an InterfaceVpcEndpoint as a target for an ARecord.
Implements
Namespace: Amazon.CDK.AWS.Route53.Targets
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class InterfaceVpcEndpointTarget : DeputyBase, IAliasRecordTarget
Syntax (vb)
Public Class InterfaceVpcEndpointTarget Inherits DeputyBase Implements IAliasRecordTarget
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.EC2;
HostedZone zone;
InterfaceVpcEndpoint interfaceVpcEndpoint;
new ARecord(this, "AliasRecord", new ARecordProps {
Zone = zone,
Target = RecordTarget.FromAlias(new InterfaceVpcEndpointTarget(interfaceVpcEndpoint))
});
Synopsis
Constructors
| InterfaceVpcEndpointTarget(InterfaceVpcEndpoint) | Set an InterfaceVpcEndpoint as a target for an ARecord. |
Methods
| Bind(IRecordSet, IHostedZone?) | Return hosted zone ID and DNS name, usable for Route53 alias targets. |
Constructors
InterfaceVpcEndpointTarget(InterfaceVpcEndpoint)
Set an InterfaceVpcEndpoint as a target for an ARecord.
public InterfaceVpcEndpointTarget(InterfaceVpcEndpoint vpcEndpoint)
Parameters
- vpcEndpoint InterfaceVpcEndpoint
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.EC2;
HostedZone zone;
InterfaceVpcEndpoint interfaceVpcEndpoint;
new ARecord(this, "AliasRecord", new ARecordProps {
Zone = zone,
Target = RecordTarget.FromAlias(new InterfaceVpcEndpointTarget(interfaceVpcEndpoint))
});
Methods
Bind(IRecordSet, IHostedZone?)
Return hosted zone ID and DNS name, usable for Route53 alias targets.
public virtual IAliasRecordTargetConfig Bind(IRecordSet record, IHostedZone? zone = null)
Parameters
- record IRecordSet
- zone IHostedZone
Returns
Remarks
ExampleMetadata: infused