EnvironmentFileConfig

class aws_cdk.aws_ecs.EnvironmentFileConfig(*, file_type, s3_location)

Bases: object

Configuration for the environment file.

Parameters:
  • file_type (EnvironmentFileType) – The type of environment file.

  • s3_location (Union[Location, Dict[str, Any]]) – The location of the environment file in S3.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ecs as ecs

environment_file_config = ecs.EnvironmentFileConfig(
    file_type=ecs.EnvironmentFileType.S3,
    s3_location=Location(
        bucket_name="bucketName",
        object_key="objectKey",

        # the properties below are optional
        object_version="objectVersion"
    )
)

Attributes

file_type

The type of environment file.

s3_location

The location of the environment file in S3.