aws-cdk-lib.aws_ecs.S3EnvironmentFile

class S3EnvironmentFile

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

Extends EnvironmentFile

Environment file from S3.

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';
import { aws_s3 as s3 } from 'aws-cdk-lib';

declare const bucket: s3.Bucket;
const s3EnvironmentFile = new ecs.S3EnvironmentFile(bucket, 'key', /* all optional props */ 'objectVersion');

Initializer

new S3EnvironmentFile(bucket: IBucket, key: string, objectVersion?: string)

Parameters

  • bucket IBucket
  • key string
  • objectVersion string

Methods

NameDescription
bind(_scope)Called when the container is initialized to allow this object to bind to the stack.

bind(_scope)

public bind(_scope: Construct): EnvironmentFileConfig

Parameters

  • _scope Construct

Returns

  • EnvironmentFileConfig

Called when the container is initialized to allow this object to bind to the stack.