Class: AWSCDK::CodePipelineActions::SourceRevision
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodePipelineActions::SourceRevision
- 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
-
#action_name ⇒ String
readonly
The name of the action where the override will be applied.
-
#revision_type ⇒ AWSCDK::CodePipelineActions::RevisionType
readonly
The type of source revision, based on the source provider.
-
#revision_value ⇒ String
readonly
The source revision, or version of your source artifact, with the changes that you want to run in the pipeline execution.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(action_name:, revision_type:, revision_value:) ⇒ SourceRevision
constructor
A new instance of SourceRevision.
- #to_jsii ⇒ Object
Constructor Details
#initialize(action_name:, revision_type:, revision_value:) ⇒ SourceRevision
Returns a new instance of SourceRevision.
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_name ⇒ String (readonly)
The name of the action where the override will be applied.
22 23 24 |
# File 'code_pipeline_actions/source_revision.rb', line 22 def action_name @action_name end |
#revision_type ⇒ AWSCDK::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_value ⇒ String (readonly)
The source revision, or version of your source artifact, with the changes that you want to run in the pipeline execution.
30 31 32 |
# File 'code_pipeline_actions/source_revision.rb', line 30 def revision_value @revision_value end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |