Class: AWSCDK::Codepipeline::CfnPipeline::VariableDeclarationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Codepipeline::CfnPipeline::VariableDeclarationProperty
- Defined in:
- codepipeline/cfn_pipeline.rb
Overview
A variable declared at the pipeline level.
Instance Attribute Summary collapse
-
#default_value ⇒ String?
readonly
The value of a pipeline-level variable.
-
#description ⇒ String?
readonly
The description of a pipeline-level variable.
-
#name ⇒ String
readonly
The name of a pipeline-level variable.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, default_value: nil, description: nil) ⇒ VariableDeclarationProperty
constructor
A new instance of VariableDeclarationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, default_value: nil, description: nil) ⇒ VariableDeclarationProperty
Returns a new instance of VariableDeclarationProperty.
2135 2136 2137 2138 2139 2140 2141 2142 |
# File 'codepipeline/cfn_pipeline.rb', line 2135 def initialize(name:, default_value: nil, description: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @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)
The value of a pipeline-level variable.
2153 2154 2155 |
# File 'codepipeline/cfn_pipeline.rb', line 2153 def default_value @default_value end |
#description ⇒ String? (readonly)
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.
2160 2161 2162 |
# File 'codepipeline/cfn_pipeline.rb', line 2160 def description @description end |
#name ⇒ String (readonly)
The name of a pipeline-level variable.
2148 2149 2150 |
# File 'codepipeline/cfn_pipeline.rb', line 2148 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
2162 2163 2164 2165 2166 2167 2168 |
# File 'codepipeline/cfn_pipeline.rb', line 2162 def self.jsii_properties { :name => "name", :default_value => "defaultValue", :description => "description", } end |
Instance Method Details
#to_jsii ⇒ Object
2170 2171 2172 2173 2174 2175 2176 2177 2178 |
# File 'codepipeline/cfn_pipeline.rb', line 2170 def to_jsii result = {} result.merge!({ "name" => @name, "defaultValue" => @default_value, "description" => @description, }) result.compact end |