Skip to content

Commit

Permalink
feat(client-ecs): Added support for enableFaultInjection task definit…
Browse files Browse the repository at this point in the history
…ion parameter which can be used to enable Fault Injection feature on ECS tasks.
  • Loading branch information
awstools committed Dec 17, 2024
1 parent d9ef47c commit 5e299dd
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ export interface DeleteTaskDefinitionsCommandOutput extends DeleteTaskDefinition
* // ephemeralStorage: { // EphemeralStorage
* // sizeInGiB: Number("int"), // required
* // },
* // enableFaultInjection: true || false,
* // },
* // ],
* // failures: [ // Failures
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ export interface DeregisterTaskDefinitionCommandOutput extends DeregisterTaskDef
* // ephemeralStorage: { // EphemeralStorage
* // sizeInGiB: Number("int"), // required
* // },
* // enableFaultInjection: true || false,
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ export interface DescribeTaskDefinitionCommandOutput extends DescribeTaskDefinit
* // ephemeralStorage: { // EphemeralStorage
* // sizeInGiB: Number("int"), // required
* // },
* // enableFaultInjection: true || false,
* // },
* // tags: [ // Tags
* // { // Tag
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ export interface RegisterTaskDefinitionCommandOutput extends RegisterTaskDefinit
* cpuArchitecture: "X86_64" || "ARM64",
* operatingSystemFamily: "WINDOWS_SERVER_2019_FULL" || "WINDOWS_SERVER_2019_CORE" || "WINDOWS_SERVER_2016_FULL" || "WINDOWS_SERVER_2004_CORE" || "WINDOWS_SERVER_2022_CORE" || "WINDOWS_SERVER_2022_FULL" || "WINDOWS_SERVER_20H2_CORE" || "LINUX",
* },
* enableFaultInjection: true || false,
* };
* const command = new RegisterTaskDefinitionCommand(input);
* const response = await client.send(command);
Expand Down Expand Up @@ -583,6 +584,7 @@ export interface RegisterTaskDefinitionCommandOutput extends RegisterTaskDefinit
* // ephemeralStorage: { // EphemeralStorage
* // sizeInGiB: Number("int"), // required
* // },
* // enableFaultInjection: true || false,
* // },
* // tags: [ // Tags
* // { // Tag
Expand Down
23 changes: 19 additions & 4 deletions clients/client-ecs/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1470,8 +1470,9 @@ export interface DeploymentConfiguration {
* uses either the blue/green (<code>CODE_DEPLOY</code>) or <code>EXTERNAL</code>
* deployment types and has tasks that use the EC2 launch type.</p>
* </note>
* <p>If the tasks in the service use the Fargate launch type, the maximum
* percent value is not used, although it is returned when describing your service.</p>
* <p>If the service uses either the blue/green (<code>CODE_DEPLOY</code>) or <code>EXTERNAL</code>
* deployment types, and the tasks in the service use the Fargate launch type, the maximum
* percent value is not used. The value is still returned when describing your service.</p>
* @public
*/
maximumPercent?: number | undefined;
Expand Down Expand Up @@ -2150,7 +2151,7 @@ export interface LogConfiguration {
* <code>Host</code> (OpenSearch Service endpoint without protocol), <code>Port</code>,
* <code>Index</code>, <code>Type</code>, <code>Aws_auth</code>,
* <code>Aws_region</code>, <code>Suppress_Type_Name</code>, and
* <code>tls</code>.</p>
* <code>tls</code>. For more information, see <a href="http://aws.amazon.com/blogs/containers/under-the-hood-firelens-for-amazon-ecs-tasks/">Under the hood: FireLens for Amazon ECS Tasks</a>.</p>
* <p>When you export logs to Amazon S3, you can specify the bucket using the <code>bucket</code>
* option. You can also specify <code>region</code>, <code>total_file_size</code>,
* <code>upload_timeout</code>, and <code>use_put_object</code> as options.</p>
Expand Down Expand Up @@ -7555,6 +7556,13 @@ export interface TaskDefinition {
* @public
*/
ephemeralStorage?: EphemeralStorage | undefined;

/**
* <p>Enables fault injection and allows for fault injection requests to be accepted from the task's containers.
* The default value is <code>false</code>.</p>
* @public
*/
enableFaultInjection?: boolean | undefined;
}

/**
Expand Down Expand Up @@ -10565,7 +10573,7 @@ export interface ListServiceDeploymentsRequest {
* <p>The cluster that hosts the service. This can either be the cluster name or ARN.
* Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon
* Elastic Inference (EI), and will help current customers migrate their workloads to
* options that offer better price and performanceIf you don't specify a cluster,
* options that offer better price and performance. If you don't specify a cluster,
* <code>default</code> is used.</p>
* @public
*/
Expand Down Expand Up @@ -12135,6 +12143,13 @@ export interface RegisterTaskDefinitionRequest {
* @public
*/
runtimePlatform?: RuntimePlatform | undefined;

/**
* <p>Enables fault injection when you register your task definition and allows for fault injection requests
* to be accepted from the task's containers. The default value is <code>false</code>.</p>
* @public
*/
enableFaultInjection?: boolean | undefined;
}

/**
Expand Down
1 change: 1 addition & 0 deletions clients/client-ecs/src/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4423,6 +4423,7 @@ const de_TaskDefinition = (output: any, context: __SerdeContext): TaskDefinition
containerDefinitions: _json,
cpu: __expectString,
deregisteredAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
enableFaultInjection: __expectBoolean,
ephemeralStorage: _json,
executionRoleArn: __expectString,
family: __expectString,
Expand Down
Loading

0 comments on commit 5e299dd

Please sign in to comment.