Class: AWSCDK::Codepipeline::VariableProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Codepipeline::VariableProps
- Defined in:
- codepipeline/variable_props.rb
Overview
Properties of pipeline-level variable.
Instance Attribute Summary collapse
-
#default_value ⇒ String?
readonly
The default value of a pipeline-level variable.
-
#description ⇒ String?
readonly
The description of a pipeline-level variable.
-
#variable_name ⇒ String
readonly
The name of a pipeline-level variable.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(variable_name:, default_value: nil, description: nil) ⇒ VariableProps
constructor
A new instance of VariableProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(variable_name:, default_value: nil, description: nil) ⇒ VariableProps
Returns a new instance of VariableProps.
10 11 12 13 14 15 16 17 |
# File 'codepipeline/variable_props.rb', line 10 def initialize(variable_name:, default_value: nil, description: nil) @variable_name = variable_name Jsii::Type.check_type(@variable_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "variableName") @default_value = default_value Jsii::Type.check_type(@default_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "defaultValue") unless @default_value.nil? @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? end |
Instance Attribute Details
#default_value ⇒ String? (readonly)
Note:
Default: - No default value.
The default value of a pipeline-level variable.
27 28 29 |
# File 'codepipeline/variable_props.rb', line 27 def default_value @default_value end |
#description ⇒ String? (readonly)
Note:
Default: - No description.
The description of a pipeline-level variable.
It's used to add additional context about the variable, and not being used at time when pipeline executes.
35 36 37 |
# File 'codepipeline/variable_props.rb', line 35 def description @description end |
#variable_name ⇒ String (readonly)
The name of a pipeline-level variable.
22 23 24 |
# File 'codepipeline/variable_props.rb', line 22 def variable_name @variable_name end |
Class Method Details
.jsii_properties ⇒ Object
37 38 39 40 41 42 43 |
# File 'codepipeline/variable_props.rb', line 37 def self.jsii_properties { :variable_name => "variableName", :default_value => "defaultValue", :description => "description", } end |
Instance Method Details
#to_jsii ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'codepipeline/variable_props.rb', line 45 def to_jsii result = {} result.merge!({ "variableName" => @variable_name, "defaultValue" => @default_value, "description" => @description, }) result.compact end |