Class: AWSCDK::DataBrew::CfnDataset::S3LocationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DataBrew::CfnDataset::S3LocationProperty
- Defined in:
- data_brew/cfn_dataset.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.
-
#bucket_owner ⇒ String?
readonly
The AWS account ID of the bucket owner.
-
#key ⇒ String?
readonly
The unique name of the object in the bucket.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bucket:, bucket_owner: nil, key: nil) ⇒ S3LocationProperty
constructor
A new instance of S3LocationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bucket:, bucket_owner: nil, key: nil) ⇒ S3LocationProperty
Returns a new instance of S3LocationProperty.
1376 1377 1378 1379 1380 1381 1382 1383 |
# File 'data_brew/cfn_dataset.rb', line 1376 def initialize(bucket:, bucket_owner: nil, key: nil) @bucket = bucket Jsii::Type.check_type(@bucket, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucket") @bucket_owner = bucket_owner Jsii::Type.check_type(@bucket_owner, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketOwner") unless @bucket_owner.nil? @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.
1389 1390 1391 |
# File 'data_brew/cfn_dataset.rb', line 1389 def bucket @bucket end |
#bucket_owner ⇒ String? (readonly)
The AWS account ID of the bucket owner.
1394 1395 1396 |
# File 'data_brew/cfn_dataset.rb', line 1394 def bucket_owner @bucket_owner end |
#key ⇒ String? (readonly)
The unique name of the object in the bucket.
1399 1400 1401 |
# File 'data_brew/cfn_dataset.rb', line 1399 def key @key end |
Class Method Details
.jsii_properties ⇒ Object
1401 1402 1403 1404 1405 1406 1407 |
# File 'data_brew/cfn_dataset.rb', line 1401 def self.jsii_properties { :bucket => "bucket", :bucket_owner => "bucketOwner", :key => "key", } end |
Instance Method Details
#to_jsii ⇒ Object
1409 1410 1411 1412 1413 1414 1415 1416 1417 |
# File 'data_brew/cfn_dataset.rb', line 1409 def to_jsii result = {} result.merge!({ "bucket" => @bucket, "bucketOwner" => @bucket_owner, "key" => @key, }) result.compact end |