ApiGateway

class aws_cdk.aws_route53_targets.ApiGateway(api)

Bases: aws_cdk.aws_route53_targets.ApiGatewayDomain

Defines an API Gateway REST API as the alias target. Requires that the domain name will be defined through RestApiProps.domainName.

You can direct the alias to any apigateway.DomainName resource through the ApiGatewayDomain class.

__init__(api)
Parameters

api (RestApi) –

Return type

None

Methods

bind(_record)

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

Parameters

_record (IRecordSet) –

Return type

AliasRecordTargetConfig