@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.683Z") @Stability(value=Stable) public class ApiGateway extends ApiGatewayDomain
You can direct the alias to any apigateway.DomainName resource through the
ApiGatewayDomain class.
Example:
import software.amazon.awscdk.services.route53.*;
import software.amazon.awscdk.services.route53.targets.*;
RestApi api;
Object hostedZoneForExampleCom;
ARecord.Builder.create(this, "CustomDomainAliasRecord")
.zone(hostedZoneForExampleCom)
.target(RecordTarget.fromAlias(new ApiGateway(api)))
.build();
software.amazon.jsii.JsiiObject.InitializationModeIAliasRecordTarget.Jsii$Default, IAliasRecordTarget.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
ApiGateway(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ApiGateway(software.amazon.jsii.JsiiObjectRef objRef) |
|
ApiGateway(RestApiBase api) |
bind, bindjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected ApiGateway(software.amazon.jsii.JsiiObjectRef objRef)
protected ApiGateway(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public ApiGateway(@NotNull
RestApiBase api)
api - This parameter is required.Copyright © 2022. All rights reserved.