Class: AWSCDK::Transfer::CfnWorkflow::S3InputFileLocationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
transfer/cfn_workflow.rb

Overview

Specifies the details for the Amazon S3 location for an input file to a workflow.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of S3InputFileLocationProperty.

Parameters:

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

    Specifies the S3 bucket for the customer input file.

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

    The name assigned to the file when it was created in Amazon S3.



1010
1011
1012
1013
1014
1015
# File 'transfer/cfn_workflow.rb', line 1010

def initialize(bucket: nil, key: nil)
  @bucket = bucket
  Jsii::Type.check_type(@bucket, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucket") unless @bucket.nil?
  @key = key
  Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") unless @key.nil?
end

Instance Attribute Details

#bucketString? (readonly)

Specifies the S3 bucket for the customer input file.



1021
1022
1023
# File 'transfer/cfn_workflow.rb', line 1021

def bucket
  @bucket
end

#keyString? (readonly)

The name assigned to the file when it was created in Amazon S3.

You use the object key to retrieve the object.



1028
1029
1030
# File 'transfer/cfn_workflow.rb', line 1028

def key
  @key
end

Class Method Details

.jsii_propertiesObject



1030
1031
1032
1033
1034
1035
# File 'transfer/cfn_workflow.rb', line 1030

def self.jsii_properties
  {
    :bucket => "bucket",
    :key => "key",
  }
end

Instance Method Details

#to_jsiiObject



1037
1038
1039
1040
1041
1042
1043
1044
# File 'transfer/cfn_workflow.rb', line 1037

def to_jsii
  result = {}
  result.merge!({
    "bucket" => @bucket,
    "key" => @key,
  })
  result.compact
end