Class: AWSCDK::Route53Targets::BucketWebsiteTarget
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::Route53Targets::BucketWebsiteTarget
- Includes:
- AWSCDK::Route53::IAliasRecordTarget
- Defined in:
- route53_targets/bucket_website_target.rb
Overview
Use a S3 as an alias record target.
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(bucket, props = nil) ⇒ BucketWebsiteTarget
constructor
A new instance of BucketWebsiteTarget.
Constructor Details
#initialize(bucket, props = nil) ⇒ BucketWebsiteTarget
Returns a new instance of BucketWebsiteTarget.
11 12 13 14 15 |
# File 'route53_targets/bucket_website_target.rb', line 11 def initialize(bucket, props = nil) Jsii::Type.check_type(bucket, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczMuSUJ1Y2tldCJ9")), "bucket") Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfcm91dGU1M190YXJnZXRzLklBbGlhc1JlY29yZFRhcmdldFByb3BzIn0=")), "props") unless props.nil? Jsii::Object.instance_method(:initialize).bind(self).call(bucket, props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
17 18 19 20 21 |
# File 'route53_targets/bucket_website_target.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/bucket_website_target.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 |