Class: AWSCDK::Codepipeline::CommonActionProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Codepipeline::CommonActionProps
- Defined in:
- codepipeline/common_action_props.rb
Overview
Common properties shared by all Actions.
Direct Known Subclasses
AWSCDK::CodePipelineActions::AlexaSkillDeployActionProps, AWSCDK::CodePipelineActions::GitHubSourceActionProps, AWSCDK::CodePipelineActions::JenkinsActionProps, CommonAWSActionProps
Instance Attribute Summary collapse
-
#action_name ⇒ String
readonly
The physical, human-readable name of the Action.
-
#run_order ⇒ Numeric?
readonly
The runOrder property for this Action.
-
#variables_namespace ⇒ String?
readonly
The name of the namespace to use for variables emitted by this action.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(action_name:, run_order: nil, variables_namespace: nil) ⇒ CommonActionProps
constructor
A new instance of CommonActionProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(action_name:, run_order: nil, variables_namespace: nil) ⇒ CommonActionProps
Returns a new instance of CommonActionProps.
10 11 12 13 14 15 16 17 |
# File 'codepipeline/common_action_props.rb', line 10 def initialize(action_name:, run_order: nil, variables_namespace: nil) @action_name = action_name Jsii::Type.check_type(@action_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "actionName") @run_order = run_order Jsii::Type.check_type(@run_order, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "runOrder") unless @run_order.nil? @variables_namespace = variables_namespace Jsii::Type.check_type(@variables_namespace, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "variablesNamespace") unless @variables_namespace.nil? end |
Instance Attribute Details
#action_name ⇒ String (readonly)
The physical, human-readable name of the Action.
Note that Action names must be unique within a single Stage.
24 25 26 |
# File 'codepipeline/common_action_props.rb', line 24 def action_name @action_name end |
#run_order ⇒ Numeric? (readonly)
Default: 1
The runOrder property for this Action.
RunOrder determines the relative order in which multiple Actions in the same Stage execute.
32 33 34 |
# File 'codepipeline/common_action_props.rb', line 32 def run_order @run_order end |
#variables_namespace ⇒ String? (readonly)
Default: - a name will be generated, based on the stage and action names, if any of the action's variables were referenced - otherwise, no namespace will be set
The name of the namespace to use for variables emitted by this action.
37 38 39 |
# File 'codepipeline/common_action_props.rb', line 37 def variables_namespace @variables_namespace end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 |
# File 'codepipeline/common_action_props.rb', line 39 def self.jsii_properties { :action_name => "actionName", :run_order => "runOrder", :variables_namespace => "variablesNamespace", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'codepipeline/common_action_props.rb', line 47 def to_jsii result = {} result.merge!({ "actionName" => @action_name, "runOrder" => @run_order, "variablesNamespace" => @variables_namespace, }) result.compact end |