Class: AWSCDK::Codepipeline::CfnPipeline::EnvironmentVariableProperty

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

Overview

The environment variables for the action.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, value:, type: nil) ⇒ EnvironmentVariableProperty

Returns a new instance of EnvironmentVariableProperty.

Parameters:

  • name (String)

    The environment variable name in the key-value pair.

  • value (String)

    The environment variable value in the key-value pair.

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

    Specifies the type of use for the environment variable value.



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

#nameString (readonly)

The environment variable name in the key-value pair.



1233
1234
1235
# File 'codepipeline/cfn_pipeline.rb', line 1233

def name
  @name
end

#typeString? (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

#valueString (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_propertiesObject



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_jsiiObject



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