Class: AWSCDK::CodePipelineActions::S3SourceVariables
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodePipelineActions::S3SourceVariables
- Defined in:
- code_pipeline_actions/s3_source_variables.rb
Overview
The CodePipeline variables emitted by the S3 source Action.
Instance Attribute Summary collapse
-
#e_tag ⇒ String
readonly
The e-tag of the S3 version of the object that triggered the build.
-
#version_id ⇒ String
readonly
The identifier of the S3 version of the object that triggered the build.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(e_tag:, version_id:) ⇒ S3SourceVariables
constructor
A new instance of S3SourceVariables.
- #to_jsii ⇒ Object
Constructor Details
#initialize(e_tag:, version_id:) ⇒ S3SourceVariables
Returns a new instance of S3SourceVariables.
9 10 11 12 13 14 |
# File 'code_pipeline_actions/s3_source_variables.rb', line 9 def initialize(e_tag:, version_id:) @e_tag = e_tag Jsii::Type.check_type(@e_tag, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "eTag") @version_id = version_id Jsii::Type.check_type(@version_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "versionId") end |
Instance Attribute Details
#e_tag ⇒ String (readonly)
The e-tag of the S3 version of the object that triggered the build.
19 20 21 |
# File 'code_pipeline_actions/s3_source_variables.rb', line 19 def e_tag @e_tag end |
#version_id ⇒ String (readonly)
The identifier of the S3 version of the object that triggered the build.
23 24 25 |
# File 'code_pipeline_actions/s3_source_variables.rb', line 23 def version_id @version_id end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'code_pipeline_actions/s3_source_variables.rb', line 25 def self.jsii_properties { :e_tag => "eTag", :version_id => "versionId", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'code_pipeline_actions/s3_source_variables.rb', line 32 def to_jsii result = {} result.merge!({ "eTag" => @e_tag, "versionId" => @version_id, }) result.compact end |