Class: AWSCDK::Route53Targets::ElasticBeanstalkEnvironmentEndpointTarget
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::Route53Targets::ElasticBeanstalkEnvironmentEndpointTarget
- Includes:
- AWSCDK::Route53::IAliasRecordTarget
- Defined in:
- route53_targets/elastic_beanstalk_environment_endpoint_target.rb
Overview
Use an Elastic Beanstalk environment URL as an alias record target. E.g. mysampleenvironment.xyz.us-east-1.elasticbeanstalk.com or mycustomcnameprefix.us-east-1.elasticbeanstalk.com.
Only supports Elastic Beanstalk environments created after 2016 that have a regional endpoint.
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(environment_endpoint, props = nil) ⇒ ElasticBeanstalkEnvironmentEndpointTarget
constructor
A new instance of ElasticBeanstalkEnvironmentEndpointTarget.
Constructor Details
#initialize(environment_endpoint, props = nil) ⇒ ElasticBeanstalkEnvironmentEndpointTarget
Returns a new instance of ElasticBeanstalkEnvironmentEndpointTarget.
13 14 15 16 17 |
# File 'route53_targets/elastic_beanstalk_environment_endpoint_target.rb', line 13 def initialize(environment_endpoint, props = nil) Jsii::Type.check_type(environment_endpoint, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "environmentEndpoint") Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfcm91dGU1M190YXJnZXRzLklBbGlhc1JlY29yZFRhcmdldFByb3BzIn0=")), "props") unless props.nil? Jsii::Object.instance_method(:initialize).bind(self).call(environment_endpoint, props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
19 20 21 22 23 |
# File 'route53_targets/elastic_beanstalk_environment_endpoint_target.rb', line 19 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.
30 31 32 33 34 |
# File 'route53_targets/elastic_beanstalk_environment_endpoint_target.rb', line 30 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 |