Class: AWSCDK::DataBrew::CfnJob::S3LocationProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket:, bucket_owner: nil, key: nil) ⇒ S3LocationProperty

Returns a new instance of S3LocationProperty.

Parameters:

  • bucket (String)

    The Amazon S3 bucket name.

  • bucket_owner (String, nil) (defaults to: nil)

    The AWS account ID of the bucket owner.

  • key (String, nil) (defaults to: nil)

    The unique name of the object in the bucket.



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

#bucketString (readonly)

The Amazon S3 bucket name.



1529
1530
1531
# File 'data_brew/cfn_job.rb', line 1529

def bucket
  @bucket
end

#bucket_ownerString? (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

#keyString? (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_propertiesObject



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_jsiiObject



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