aws-cdk-lib.aws_ecs.EnvironmentFileConfig

interface EnvironmentFileConfig

LanguageType name
.NETAmazon.CDK.AWS.ECS.EnvironmentFileConfig
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecs#EnvironmentFileConfig
Javasoftware.amazon.awscdk.services.ecs.EnvironmentFileConfig
Pythonaws_cdk.aws_ecs.EnvironmentFileConfig
TypeScript (source)aws-cdk-lib » aws_ecs » EnvironmentFileConfig

Obtainable from AssetEnvironmentFile.bind(), EnvironmentFile.bind(), S3EnvironmentFile.bind()

Configuration for the environment file.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const environmentFileConfig: ecs.EnvironmentFileConfig = {
  fileType: ecs.EnvironmentFileType.S3,
  s3Location: {
    bucketName: 'bucketName',
    objectKey: 'objectKey',

    // the properties below are optional
    objectVersion: 'objectVersion',
  },
};

Properties

NameTypeDescription
fileTypeEnvironmentFileTypeThe type of environment file.
s3LocationLocationThe location of the environment file in S3.

fileType

Type: EnvironmentFileType

The type of environment file.


s3Location

Type: Location

The location of the environment file in S3.