Class: AWSCDK::DataBrew::CfnRecipe::S3LocationProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of S3LocationProperty.

Parameters:

  • bucket (String)

    The Amazon S3 bucket name.

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

    The unique name of the object in the bucket.



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

#bucketString (readonly)

The Amazon S3 bucket name.



1861
1862
1863
# File 'data_brew/cfn_recipe.rb', line 1861

def bucket
  @bucket
end

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



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_jsiiObject



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