Class: AWSCDK::CloudFront::S3ImportSource

Inherits:
ImportSource
  • Object
show all
Defined in:
cloud_front/s3_import_source.rb

Overview

An import source from an S3 object.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket, key) ⇒ S3ImportSource

Returns a new instance of S3ImportSource.

Parameters:

  • bucket (AWSCDK::S3::IBucket)

    the S3 bucket that contains the data.

  • key (String)

    the key within the S3 bucket that contains the data.



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_methodsObject



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

#bucketAWSCDK::S3::IBucket

the S3 bucket that contains the data.

Returns:



26
27
28
# File 'cloud_front/s3_import_source.rb', line 26

def bucket()
  jsii_get_property("bucket")
end

#keyString

the key within the S3 bucket that contains the data.

Returns:

  • (String)


33
34
35
# File 'cloud_front/s3_import_source.rb', line 33

def key()
  jsii_get_property("key")
end