Class: AWSCDK::DataBrew::CfnJob::S3LocationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DataBrew::CfnJob::S3LocationProperty
- Defined in:
- data_brew/cfn_job.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.
1516 1517 1518 1519 1520 1521 1522 1523 |
# File 'data_brew/cfn_job.rb', line 1516 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.
1529 1530 1531 |
# File 'data_brew/cfn_job.rb', line 1529 def bucket @bucket end |
#bucket_owner ⇒ String? (readonly)
The AWS account ID of the bucket owner.
1534 1535 1536 |
# File 'data_brew/cfn_job.rb', line 1534 def bucket_owner @bucket_owner end |
#key ⇒ String? (readonly)
The unique name of the object in the bucket.
1539 1540 1541 |
# File 'data_brew/cfn_job.rb', line 1539 def key @key end |
Class Method Details
.jsii_properties ⇒ Object
1541 1542 1543 1544 1545 1546 1547 |
# File 'data_brew/cfn_job.rb', line 1541 def self.jsii_properties { :bucket => "bucket", :bucket_owner => "bucketOwner", :key => "key", } end |
Instance Method Details
#to_jsii ⇒ Object
1549 1550 1551 1552 1553 1554 1555 1556 1557 |
# File 'data_brew/cfn_job.rb', line 1549 def to_jsii result = {} result.merge!({ "bucket" => @bucket, "bucketOwner" => @bucket_owner, "key" => @key, }) result.compact end |