GlobalAcceleratorDomainTarget Class
Use a Global Accelerator domain name as an alias record target.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_route53_targets as route53_targets } from 'aws-cdk-lib';
declare const aliasRecordTargetProps: route53_targets.IAliasRecordTargetProps;
const globalAcceleratorDomainTarget = new route53_targets.GlobalAcceleratorDomainTarget('acceleratorDomainName', /* all optional props */ aliasRecordTargetProps);
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_route53_targets as route53_targets
# alias_record_target_props: route53_targets.IAliasRecordTargetProps
global_accelerator_domain_target = route53_targets.GlobalAcceleratorDomainTarget("acceleratorDomainName", alias_record_target_props)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.route53.targets.*;
IAliasRecordTargetProps aliasRecordTargetProps;
GlobalAcceleratorDomainTarget globalAcceleratorDomainTarget = new GlobalAcceleratorDomainTarget("acceleratorDomainName", aliasRecordTargetProps);
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Route53.Targets;
IAliasRecordTargetProps aliasRecordTargetProps;
var globalAcceleratorDomainTarget = new GlobalAcceleratorDomainTarget("acceleratorDomainName", aliasRecordTargetProps);
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
var aliasRecordTargetProps IAliasRecordTargetProps
globalAcceleratorDomainTarget := awscdk.Aws_route53_targets.NewGlobalAcceleratorDomainTarget(jsii.String("acceleratorDomainName"), aliasRecordTargetProps)
Initializer
ts
new GlobalAcceleratorDomainTarget(acceleratorDomainName: string, props?: IAliasRecordTargetProps)
python
GlobalAcceleratorDomainTarget(accelerator_domain_name: str, props: typing.Optional[IAliasRecordTargetProps] = None)
java
new GlobalAcceleratorDomainTarget(String acceleratorDomainName, IAliasRecordTargetProps props)
csharp
new GlobalAcceleratorDomainTarget(string acceleratorDomainName, IAliasRecordTargetProps? props = null)
go
NewGlobalAcceleratorDomainTarget(AcceleratorDomainName *string, Props IAliasRecordTargetProps)
Properties
GLOBAL_ACCELERATOR_ZONE_IDstringglobal_accelerator_zone_idstrGLOBAL_ACCELERATOR_ZONE_IDStringGLOBAL_ACCELERATOR_ZONE_IDstringGLOBAL_ACCELERATOR_ZONE_ID*stringstatic#The hosted zone Id if using an alias record in Route53.
This value never changes. Ref: https://docs.aws.amazon.com/general/latest/gr/global_accelerator.html
Methods
bind(_record: IRecordSet, _zone?: IHostedZone): AliasRecordTargetConfigdef bind(self, _record: IRecordSet, _zone: typing.Optional[IHostedZone] = None) -> AliasRecordTargetConfigpublic AliasRecordTargetConfig bind(IRecordSet _record, IHostedZone _zone)public AliasRecordTargetConfig Bind(IRecordSet _record, IHostedZone? _zone = null)func Bind(_record IRecordSet, _zone IHostedZone) AliasRecordTargetConfig#Return hosted zone ID and DNS name, usable for Route53 alias targets.