# EnvironmentFileConfig

Configuration for the environment file.

- Source: [`aws-ecs/lib/environment-file.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-ecs/lib/environment-file.ts#L109)

## Example

```ts
// 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

- `fileType`: [EnvironmentFileType](/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.EnvironmentFileType.html) (required) — The type of environment file.

- `s3Location`: [Location](/cdk/api/v2/docs/aws-cdk-lib.aws_s3.Location.html) (required) — The location of the environment file in S3.
