Class ApiGateway
Defines an API Gateway REST API as the alias target. Requires that the domain name will be defined through RestApiProps.domainName
.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Route53.Targets
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ApiGateway : ApiGatewayDomain, IAliasRecordTarget
Syntax (vb)
Public Class ApiGateway
Inherits ApiGatewayDomain
Implements IAliasRecordTarget
Remarks
You can direct the alias to any apigateway.DomainName
resource through the
ApiGatewayDomain
class.
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Route53;
using Amazon.CDK.AWS.Route53.Targets;
RestApi api;
var hostedZoneForExampleCom;
new ARecord(this, "CustomDomainAliasRecord", new ARecordProps {
Zone = hostedZoneForExampleCom,
Target = RecordTarget.FromAlias(new ApiGateway(api))
});
Synopsis
Constructors
ApiGateway(RestApiBase) | |
ApiGateway(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ApiGateway(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Constructors
ApiGateway(RestApiBase)
ApiGateway(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ApiGateway(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ApiGateway(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ApiGateway(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props