Class: AWSCDK::Pipes::CfnPipe::ECSEnvironmentFileProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pipes/cfn_pipe.rb

Overview

A list of files containing the environment variables to pass to a container.

You can specify up to ten environment files. The file must have a .env file extension. Each line in an environment file should contain an environment variable in VARIABLE=VALUE format. Lines beginning with # are treated as comments and are ignored. For more information about the environment variable file syntax, see Declare default environment variables in file .

If there are environment variables specified using the environment parameter in a container definition, they take precedence over the variables contained within an environment file. If multiple environment files are specified that contain the same variable, they're processed from the top down. We recommend that you use unique variable names. For more information, see Specifying environment variables in the Amazon Elastic Container Service Developer Guide .

This parameter is only supported for tasks hosted on Fargate using the following platform versions:

  • Linux platform version 1.4.0 or later.
  • Windows platform version 1.0.0 or later.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, value:) ⇒ ECSEnvironmentFileProperty

Returns a new instance of ECSEnvironmentFileProperty.

Parameters:

  • type (String)

    The file type to use.

  • value (String)

    The Amazon Resource Name (ARN) of the Amazon S3 object containing the environment variable file.



1412
1413
1414
1415
1416
1417
# File 'pipes/cfn_pipe.rb', line 1412

def initialize(type:, value:)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value")
end

Instance Attribute Details

#typeString (readonly)

The file type to use.

The only supported value is s3 .



1425
1426
1427
# File 'pipes/cfn_pipe.rb', line 1425

def type
  @type
end

#valueString (readonly)

The Amazon Resource Name (ARN) of the Amazon S3 object containing the environment variable file.



1430
1431
1432
# File 'pipes/cfn_pipe.rb', line 1430

def value
  @value
end

Class Method Details

.jsii_propertiesObject



1432
1433
1434
1435
1436
1437
# File 'pipes/cfn_pipe.rb', line 1432

def self.jsii_properties
  {
    :type => "type",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



1439
1440
1441
1442
1443
1444
1445
1446
# File 'pipes/cfn_pipe.rb', line 1439

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
    "value" => @value,
  })
  result.compact
end