1 | export interface ContainerOverride {
|
2 | /**
|
3 | * Name of the container inside the task definition
|
4 | */
|
5 | readonly containerName: string;
|
6 | /**
|
7 | * Command to run inside the container
|
8 | *
|
9 | * @default Default command
|
10 | */
|
11 | readonly command?: string[];
|
12 | /**
|
13 | * Variables to set in the container's environment
|
14 | */
|
15 | readonly environment?: TaskEnvironmentVariable[];
|
16 | /**
|
17 | * The number of cpu units reserved for the container
|
18 | *
|
19 | * @default The default value from the task definition.
|
20 | */
|
21 | readonly cpu?: number;
|
22 | /**
|
23 | * Hard memory limit on the container
|
24 | *
|
25 | * @default The default value from the task definition.
|
26 | */
|
27 | readonly memoryLimit?: number;
|
28 | /**
|
29 | * Soft memory limit on the container
|
30 | *
|
31 | * @default The default value from the task definition.
|
32 | */
|
33 | readonly memoryReservation?: number;
|
34 | }
|
35 | /**
|
36 | * An environment variable to be set in the container run as a task
|
37 | */
|
38 | export interface TaskEnvironmentVariable {
|
39 | /**
|
40 | * Name for the environment variable
|
41 | *
|
42 | * Exactly one of `name` and `namePath` must be specified.
|
43 | */
|
44 | readonly name: string;
|
45 | /**
|
46 | * Value of the environment variable
|
47 | *
|
48 | * Exactly one of `value` and `valuePath` must be specified.
|
49 | */
|
50 | readonly value: string;
|
51 | }
|