Class: AWSCDK::CodePipelineActions::S3SourceVariables

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
code_pipeline_actions/s3_source_variables.rb

Overview

The CodePipeline variables emitted by the S3 source Action.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(e_tag:, version_id:) ⇒ S3SourceVariables

Returns a new instance of S3SourceVariables.

Parameters:

  • e_tag (String)

    The e-tag of the S3 version of the object that triggered the build.

  • version_id (String)

    The identifier of the S3 version of the object that triggered the build.



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_tagString (readonly)

The e-tag of the S3 version of the object that triggered the build.

Returns:

  • (String)


19
20
21
# File 'code_pipeline_actions/s3_source_variables.rb', line 19

def e_tag
  @e_tag
end

#version_idString (readonly)

The identifier of the S3 version of the object that triggered the build.

Returns:

  • (String)


23
24
25
# File 'code_pipeline_actions/s3_source_variables.rb', line 23

def version_id
  @version_id
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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