class S3EnvironmentFile
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ECS.S3EnvironmentFile |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#S3EnvironmentFile |
![]() | software.amazon.awscdk.services.ecs.S3EnvironmentFile |
![]() | aws_cdk.aws_ecs.S3EnvironmentFile |
![]() | aws-cdk-lib » 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 { 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
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.