class S3EnvironmentFile
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECS.S3EnvironmentFile |
Java | software.amazon.awscdk.services.ecs.S3EnvironmentFile |
Python | aws_cdk.aws_ecs.S3EnvironmentFile |
TypeScript (source) | @aws-cdk/aws-ecs » S3EnvironmentFile |
Extends
Environment
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 * as ecs from '@aws-cdk/aws-ecs';
import * as s3 from '@aws-cdk/aws-s3';
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
Name | Description |
---|---|
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
Called when the container is initialized to allow this object to bind to the stack.