Class: AWSCDK::Transfer::CfnWorkflow::S3InputFileLocationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Transfer::CfnWorkflow::S3InputFileLocationProperty
- 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
-
#bucket ⇒ String?
readonly
Specifies the S3 bucket for the customer input file.
-
#key ⇒ String?
readonly
The name assigned to the file when it was created in Amazon S3.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bucket: nil, key: nil) ⇒ S3InputFileLocationProperty
constructor
A new instance of S3InputFileLocationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bucket: nil, key: nil) ⇒ S3InputFileLocationProperty
Returns a new instance of S3InputFileLocationProperty.
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
#bucket ⇒ String? (readonly)
Specifies the S3 bucket for the customer input file.
1021 1022 1023 |
# File 'transfer/cfn_workflow.rb', line 1021 def bucket @bucket end |
#key ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |