Class: AWSCDK::CodePipelineActions::SourceRevision

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

Overview

A list that allows you to specify, or override, the source revision for a pipeline execution that's being started.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action_name:, revision_type:, revision_value:) ⇒ SourceRevision

Returns a new instance of SourceRevision.

Parameters:

  • action_name (String)

    The name of the action where the override will be applied.

  • revision_type (AWSCDK::CodePipelineActions::RevisionType)

    The type of source revision, based on the source provider.

  • revision_value (String)

    The source revision, or version of your source artifact, with the changes that you want to run in the pipeline execution.



10
11
12
13
14
15
16
17
# File 'code_pipeline_actions/source_revision.rb', line 10

def initialize(action_name:, revision_type:, revision_value:)
  @action_name = action_name
  Jsii::Type.check_type(@action_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "actionName")
  @revision_type = revision_type
  Jsii::Type.check_type(@revision_type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZXBpcGVsaW5lX2FjdGlvbnMuUmV2aXNpb25UeXBlIn0=")), "revisionType")
  @revision_value = revision_value
  Jsii::Type.check_type(@revision_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "revisionValue")
end

Instance Attribute Details

#action_nameString (readonly)

The name of the action where the override will be applied.

Returns:

  • (String)


22
23
24
# File 'code_pipeline_actions/source_revision.rb', line 22

def action_name
  @action_name
end

#revision_typeAWSCDK::CodePipelineActions::RevisionType (readonly)

The type of source revision, based on the source provider.



26
27
28
# File 'code_pipeline_actions/source_revision.rb', line 26

def revision_type
  @revision_type
end

#revision_valueString (readonly)

The source revision, or version of your source artifact, with the changes that you want to run in the pipeline execution.

Returns:

  • (String)


30
31
32
# File 'code_pipeline_actions/source_revision.rb', line 30

def revision_value
  @revision_value
end

Class Method Details

.jsii_propertiesObject



32
33
34
35
36
37
38
# File 'code_pipeline_actions/source_revision.rb', line 32

def self.jsii_properties
  {
    :action_name => "actionName",
    :revision_type => "revisionType",
    :revision_value => "revisionValue",
  }
end

Instance Method Details

#to_jsiiObject



40
41
42
43
44
45
46
47
48
# File 'code_pipeline_actions/source_revision.rb', line 40

def to_jsii
  result = {}
  result.merge!({
    "actionName" => @action_name,
    "revisionType" => @revision_type,
    "revisionValue" => @revision_value,
  })
  result.compact
end