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.104.0 (build e79254c)", date="2024-11-06T23:25:16.115Z") @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