Class: AWSCDK::Route53Targets::APIGateway
- Inherits:
-
APIGatewayDomain
- Object
- APIGatewayDomain
- AWSCDK::Route53Targets::APIGateway
- Defined in:
- route53_targets/api_gateway.rb
Overview
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.
Class Method Summary collapse
Instance Method Summary collapse
-
#bind(_record, _zone = nil) ⇒ AWSCDK::Route53::AliasRecordTargetConfig
Return hosted zone ID and DNS name, usable for Route53 alias targets.
-
#initialize(api) ⇒ APIGateway
constructor
A new instance of APIGateway.
Constructor Details
#initialize(api) ⇒ APIGateway
Returns a new instance of APIGateway.
12 13 14 15 |
# File 'route53_targets/api_gateway.rb', line 12 def initialize(api) Jsii::Type.check_type(api, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheS5SZXN0QXBpQmFzZSJ9")), "api") Jsii::Object.instance_method(:initialize).bind(self).call(api) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
17 18 19 20 21 |
# File 'route53_targets/api_gateway.rb', line 17 def self.jsii_overridable_methods { :bind => { kind: :method, name: "bind", is_optional: false }, } end |
Instance Method Details
#bind(_record, _zone = nil) ⇒ AWSCDK::Route53::AliasRecordTargetConfig
Return hosted zone ID and DNS name, usable for Route53 alias targets.
28 29 30 31 32 |
# File 'route53_targets/api_gateway.rb', line 28 def bind(_record, _zone = nil) Jsii::Type.check_type(_record, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfcm91dGU1My5JUmVjb3JkU2V0In0=")), "_record") Jsii::Type.check_type(_zone, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfcm91dGU1My5JSG9zdGVkWm9uZSJ9")), "_zone") unless _zone.nil? jsii_call_method("bind", [_record, _zone]) end |