Class: AWSCDK::Codepipeline::CfnPipeline::EnvironmentVariableProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Codepipeline::CfnPipeline::EnvironmentVariableProperty
- Defined in:
- codepipeline/cfn_pipeline.rb
Overview
The environment variables for the action.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The environment variable name in the key-value pair.
-
#type ⇒ String?
readonly
Specifies the type of use for the environment variable value.
-
#value ⇒ String
readonly
The environment variable value in the key-value pair.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, value:, type: nil) ⇒ EnvironmentVariableProperty
constructor
A new instance of EnvironmentVariableProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, value:, type: nil) ⇒ EnvironmentVariableProperty
Returns a new instance of EnvironmentVariableProperty.
1220 1221 1222 1223 1224 1225 1226 1227 |
# File 'codepipeline/cfn_pipeline.rb', line 1220 def initialize(name:, value:, type: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil? end |
Instance Attribute Details
#name ⇒ String (readonly)
The environment variable name in the key-value pair.
1233 1234 1235 |
# File 'codepipeline/cfn_pipeline.rb', line 1233 def name @name end |
#type ⇒ String? (readonly)
Specifies the type of use for the environment variable value.
The value can be either PLAINTEXT or SECRETS_MANAGER . If the value is SECRETS_MANAGER , provide the Secrets reference in the EnvironmentVariable value.
1245 1246 1247 |
# File 'codepipeline/cfn_pipeline.rb', line 1245 def type @type end |
#value ⇒ String (readonly)
The environment variable value in the key-value pair.
1238 1239 1240 |
# File 'codepipeline/cfn_pipeline.rb', line 1238 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
1247 1248 1249 1250 1251 1252 1253 |
# File 'codepipeline/cfn_pipeline.rb', line 1247 def self.jsii_properties { :name => "name", :value => "value", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
1255 1256 1257 1258 1259 1260 1261 1262 1263 |
# File 'codepipeline/cfn_pipeline.rb', line 1255 def to_jsii result = {} result.merge!({ "name" => @name, "value" => @value, "type" => @type, }) result.compact end |