Class ApiGatewayDomain

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.route53.targets.ApiGatewayDomain
All Implemented Interfaces:
IAliasRecordTarget, software.amazon.jsii.JsiiSerializable
Direct Known Subclasses:
ApiGateway

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-25T14:21:22.744Z") @Stability(Stable) public class ApiGatewayDomain extends software.amazon.jsii.JsiiObject implements IAliasRecordTarget
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 the RestApiProps.domainName prop.

Example:

 Object hostedZoneForExampleCom;
 DomainName domainName;
 import software.amazon.awscdk.services.route53.*;
 import software.amazon.awscdk.services.route53.targets.*;
 ARecord.Builder.create(this, "CustomDomainAliasRecord")
         .zone(hostedZoneForExampleCom)
         .target(RecordTarget.fromAlias(new ApiGatewayDomain(domainName)))
         .build();
 
  • Constructor Details

    • ApiGatewayDomain

      protected ApiGatewayDomain(software.amazon.jsii.JsiiObjectRef objRef)
    • ApiGatewayDomain

      protected ApiGatewayDomain(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • ApiGatewayDomain

      @Stability(Stable) public ApiGatewayDomain(@NotNull IDomainName domainName)
      Parameters:
      domainName - This parameter is required.
  • Method Details