Class: AWSCDK::DataBrew::CfnRecipe::S3LocationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DataBrew::CfnRecipe::S3LocationProperty
- Defined in:
- data_brew/cfn_recipe.rb
Overview
Represents an Amazon S3 location (bucket name, bucket owner, and object key) where DataBrew can read input data, or write output from a job.
Instance Attribute Summary collapse
-
#bucket ⇒ String
readonly
The Amazon S3 bucket name.
-
#key ⇒ String?
readonly
The unique name of the object in the bucket.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bucket:, key: nil) ⇒ S3LocationProperty
constructor
A new instance of S3LocationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bucket:, key: nil) ⇒ S3LocationProperty
Returns a new instance of S3LocationProperty.
1850 1851 1852 1853 1854 1855 |
# File 'data_brew/cfn_recipe.rb', line 1850 def initialize(bucket:, key: nil) @bucket = bucket Jsii::Type.check_type(@bucket, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucket") @key = key Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") unless @key.nil? end |
Instance Attribute Details
#bucket ⇒ String (readonly)
The Amazon S3 bucket name.
1861 1862 1863 |
# File 'data_brew/cfn_recipe.rb', line 1861 def bucket @bucket end |
#key ⇒ String? (readonly)
The unique name of the object in the bucket.
1866 1867 1868 |
# File 'data_brew/cfn_recipe.rb', line 1866 def key @key end |
Class Method Details
.jsii_properties ⇒ Object
1868 1869 1870 1871 1872 1873 |
# File 'data_brew/cfn_recipe.rb', line 1868 def self.jsii_properties { :bucket => "bucket", :key => "key", } end |
Instance Method Details
#to_jsii ⇒ Object
1875 1876 1877 1878 1879 1880 1881 1882 |
# File 'data_brew/cfn_recipe.rb', line 1875 def to_jsii result = {} result.merge!({ "bucket" => @bucket, "key" => @key, }) result.compact end |