Class: AWSCDK::Codepipeline::CommonActionProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
codepipeline/common_action_props.rb

Overview

Common properties shared by all Actions.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action_name:, run_order: nil, variables_namespace: nil) ⇒ CommonActionProps

Returns a new instance of CommonActionProps.

Parameters:

  • action_name (String)

    The physical, human-readable name of the Action.

  • run_order (Numeric, nil) (defaults to: nil)

    The runOrder property for this Action.

  • variables_namespace (String, nil) (defaults to: nil)

    The name of the namespace to use for variables emitted by this action.



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

The physical, human-readable name of the Action.

Note that Action names must be unique within a single Stage.

Returns:

  • (String)


24
25
26
# File 'codepipeline/common_action_props.rb', line 24

def action_name
  @action_name
end

#run_orderNumeric? (readonly)

Note:

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_namespaceString? (readonly)

Note:

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.

Returns:

  • (String, nil)


37
38
39
# File 'codepipeline/common_action_props.rb', line 37

def variables_namespace
  @variables_namespace
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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