Class: AWSCDK::CloudFront::S3ImportSource
- Inherits:
-
ImportSource
- Object
- ImportSource
- AWSCDK::CloudFront::S3ImportSource
- Defined in:
- cloud_front/s3_import_source.rb
Overview
An import source from an S3 object.
Class Method Summary collapse
Instance Method Summary collapse
-
#bucket ⇒ AWSCDK::S3::IBucket
the S3 bucket that contains the data.
-
#initialize(bucket, key) ⇒ S3ImportSource
constructor
A new instance of S3ImportSource.
-
#key ⇒ String
the key within the S3 bucket that contains the data.
Constructor Details
#initialize(bucket, key) ⇒ S3ImportSource
Returns a new instance of S3ImportSource.
10 11 12 13 14 |
# File 'cloud_front/s3_import_source.rb', line 10 def initialize(bucket, key) Jsii::Type.check_type(bucket, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczMuSUJ1Y2tldCJ9")), "bucket") Jsii::Type.check_type(key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") Jsii::Object.instance_method(:initialize).bind(self).call(bucket, key) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
16 17 18 19 20 21 |
# File 'cloud_front/s3_import_source.rb', line 16 def self.jsii_overridable_methods { :bucket => { kind: :property, name: "bucket", is_optional: false }, :key => { kind: :property, name: "key", is_optional: false }, } end |
Instance Method Details
#bucket ⇒ AWSCDK::S3::IBucket
the S3 bucket that contains the data.
26 27 28 |
# File 'cloud_front/s3_import_source.rb', line 26 def bucket() jsii_get_property("bucket") end |
#key ⇒ String
the key within the S3 bucket that contains the data.
33 34 35 |
# File 'cloud_front/s3_import_source.rb', line 33 def key() jsii_get_property("key") end |