1 | import { IBucket, Location } from '@aws-cdk/aws-s3';
|
2 | import { AssetOptions } from '@aws-cdk/aws-s3-assets';
|
3 | import { Construct } from '@aws-cdk/core';
|
4 |
|
5 |
|
6 |
|
7 | export declare abstract class EnvironmentFile {
|
8 | |
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | static fromAsset(path: string, options?: AssetOptions): AssetEnvironmentFile;
|
15 | |
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | static fromBucket(bucket: IBucket, key: string, objectVersion?: string): S3EnvironmentFile;
|
24 | |
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 | abstract bind(scope: Construct): EnvironmentFileConfig;
|
31 | }
|
32 |
|
33 |
|
34 |
|
35 | export declare class AssetEnvironmentFile extends EnvironmentFile {
|
36 | readonly path: string;
|
37 | private readonly options;
|
38 | private asset?;
|
39 | |
40 |
|
41 |
|
42 |
|
43 | constructor(path: string, options?: AssetOptions);
|
44 | bind(scope: Construct): EnvironmentFileConfig;
|
45 | }
|
46 | /**
|
47 | * Environment file from S3.
|
48 | */
|
49 | export declare class S3EnvironmentFile extends EnvironmentFile {
|
50 | private key;
|
51 | private objectVersion?;
|
52 | private readonly bucketName;
|
53 | constructor(bucket: IBucket, key: string, objectVersion?: string | undefined);
|
54 | bind(_scope: Construct): EnvironmentFileConfig;
|
55 | }
|
56 | /**
|
57 | * Configuration for the environment file
|
58 | */
|
59 | export interface EnvironmentFileConfig {
|
60 | |
61 |
|
62 |
|
63 | readonly fileType: EnvironmentFileType;
|
64 | |
65 |
|
66 |
|
67 | readonly s3Location: Location;
|
68 | }
|
69 |
|
70 |
|
71 |
|
72 | export declare enum EnvironmentFileType {
|
73 | |
74 |
|
75 |
|
76 | S3 = "s3"
|
77 | }
|