Class: AWSCDK::Route53Targets::APIGatewayDomain
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::Route53Targets::APIGatewayDomain
- Includes:
- AWSCDK::Route53::IAliasRecordTarget
- Defined in:
- route53_targets/api_gateway_domain.rb
Overview
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.
Direct Known Subclasses
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(domain_name) ⇒ APIGatewayDomain
constructor
A new instance of APIGatewayDomain.
Constructor Details
#initialize(domain_name) ⇒ APIGatewayDomain
Returns a new instance of APIGatewayDomain.
13 14 15 16 |
# File 'route53_targets/api_gateway_domain.rb', line 13 def initialize(domain_name) Jsii::Type.check_type(domain_name, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheS5JRG9tYWluTmFtZSJ9")), "domainName") Jsii::Object.instance_method(:initialize).bind(self).call(domain_name) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
18 19 20 21 22 |
# File 'route53_targets/api_gateway_domain.rb', line 18 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.
29 30 31 32 33 |
# File 'route53_targets/api_gateway_domain.rb', line 29 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 |