ApiGatewayDomain
- class aws_cdk.aws_route53_targets.ApiGatewayDomain(domain_name)
Bases:
object
Defines an API Gateway domain name as the alias target.
Use the
ApiGateway
class if you wish to map the alias to an REST API with a domain name defined through theRestApiProps.domainName
prop.- ExampleMetadata:
infused
Example:
# hosted_zone_for_example_com: Any # domain_name: apigateway.DomainName import aws_cdk.aws_route53 as route53 import aws_cdk.aws_route53_targets as targets route53.ARecord(self, "CustomDomainAliasRecord", zone=hosted_zone_for_example_com, target=route53.RecordTarget.from_alias(targets.ApiGatewayDomain(domain_name)) )
- Parameters:
domain_name (
IDomainName
) –
Methods
- bind(_record, _zone=None)
Return hosted zone ID and DNS name, usable for Route53 alias targets.
- Parameters:
_record (
IRecordSet
) –_zone (
Optional
[IHostedZone
]) –
- Return type: