Skip to content

Commit

Permalink
feat(client-ecs): This release supports service deployments and servi…
Browse files Browse the repository at this point in the history
…ce revisions which provide a comprehensive view of your Amazon ECS service history.
  • Loading branch information
awstools committed Oct 30, 2024
1 parent 095a3b8 commit 09bd2fa
Show file tree
Hide file tree
Showing 64 changed files with 5,701 additions and 3,145 deletions.
24 changes: 24 additions & 0 deletions clients/client-ecs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,22 @@ DescribeContainerInstances

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecs/command/DescribeContainerInstancesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecs/Interface/DescribeContainerInstancesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecs/Interface/DescribeContainerInstancesCommandOutput/)

</details>
<details>
<summary>
DescribeServiceDeployments
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecs/command/DescribeServiceDeploymentsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecs/Interface/DescribeServiceDeploymentsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecs/Interface/DescribeServiceDeploymentsCommandOutput/)

</details>
<details>
<summary>
DescribeServiceRevisions
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecs/command/DescribeServiceRevisionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecs/Interface/DescribeServiceRevisionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecs/Interface/DescribeServiceRevisionsCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -431,6 +447,14 @@ ListContainerInstances

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecs/command/ListContainerInstancesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecs/Interface/ListContainerInstancesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecs/Interface/ListContainerInstancesCommandOutput/)

</details>
<details>
<summary>
ListServiceDeployments
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecs/command/ListServiceDeploymentsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecs/Interface/ListServiceDeploymentsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecs/Interface/ListServiceDeploymentsCommandOutput/)

</details>
<details>
<summary>
Expand Down
69 changes: 69 additions & 0 deletions clients/client-ecs/src/ECS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,16 @@ import {
DescribeContainerInstancesCommandInput,
DescribeContainerInstancesCommandOutput,
} from "./commands/DescribeContainerInstancesCommand";
import {
DescribeServiceDeploymentsCommand,
DescribeServiceDeploymentsCommandInput,
DescribeServiceDeploymentsCommandOutput,
} from "./commands/DescribeServiceDeploymentsCommand";
import {
DescribeServiceRevisionsCommand,
DescribeServiceRevisionsCommandInput,
DescribeServiceRevisionsCommandOutput,
} from "./commands/DescribeServiceRevisionsCommand";
import {
DescribeServicesCommand,
DescribeServicesCommandInput,
Expand Down Expand Up @@ -137,6 +147,11 @@ import {
ListContainerInstancesCommandInput,
ListContainerInstancesCommandOutput,
} from "./commands/ListContainerInstancesCommand";
import {
ListServiceDeploymentsCommand,
ListServiceDeploymentsCommandInput,
ListServiceDeploymentsCommandOutput,
} from "./commands/ListServiceDeploymentsCommand";
import {
ListServicesByNamespaceCommand,
ListServicesByNamespaceCommandInput,
Expand Down Expand Up @@ -281,6 +296,8 @@ const commands = {
DescribeCapacityProvidersCommand,
DescribeClustersCommand,
DescribeContainerInstancesCommand,
DescribeServiceDeploymentsCommand,
DescribeServiceRevisionsCommand,
DescribeServicesCommand,
DescribeTaskDefinitionCommand,
DescribeTasksCommand,
Expand All @@ -292,6 +309,7 @@ const commands = {
ListAttributesCommand,
ListClustersCommand,
ListContainerInstancesCommand,
ListServiceDeploymentsCommand,
ListServicesCommand,
ListServicesByNamespaceCommand,
ListTagsForResourceCommand,
Expand Down Expand Up @@ -563,6 +581,40 @@ export interface ECS {
cb: (err: any, data?: DescribeContainerInstancesCommandOutput) => void
): void;

/**
* @see {@link DescribeServiceDeploymentsCommand}
*/
describeServiceDeployments(
args: DescribeServiceDeploymentsCommandInput,
options?: __HttpHandlerOptions
): Promise<DescribeServiceDeploymentsCommandOutput>;
describeServiceDeployments(
args: DescribeServiceDeploymentsCommandInput,
cb: (err: any, data?: DescribeServiceDeploymentsCommandOutput) => void
): void;
describeServiceDeployments(
args: DescribeServiceDeploymentsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DescribeServiceDeploymentsCommandOutput) => void
): void;

/**
* @see {@link DescribeServiceRevisionsCommand}
*/
describeServiceRevisions(
args: DescribeServiceRevisionsCommandInput,
options?: __HttpHandlerOptions
): Promise<DescribeServiceRevisionsCommandOutput>;
describeServiceRevisions(
args: DescribeServiceRevisionsCommandInput,
cb: (err: any, data?: DescribeServiceRevisionsCommandOutput) => void
): void;
describeServiceRevisions(
args: DescribeServiceRevisionsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DescribeServiceRevisionsCommandOutput) => void
): void;

/**
* @see {@link DescribeServicesCommand}
*/
Expand Down Expand Up @@ -736,6 +788,23 @@ export interface ECS {
cb: (err: any, data?: ListContainerInstancesCommandOutput) => void
): void;

/**
* @see {@link ListServiceDeploymentsCommand}
*/
listServiceDeployments(
args: ListServiceDeploymentsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListServiceDeploymentsCommandOutput>;
listServiceDeployments(
args: ListServiceDeploymentsCommandInput,
cb: (err: any, data?: ListServiceDeploymentsCommandOutput) => void
): void;
listServiceDeployments(
args: ListServiceDeploymentsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListServiceDeploymentsCommandOutput) => void
): void;

/**
* @see {@link ListServicesCommand}
*/
Expand Down
18 changes: 18 additions & 0 deletions clients/client-ecs/src/ECSClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@ import {
DescribeContainerInstancesCommandInput,
DescribeContainerInstancesCommandOutput,
} from "./commands/DescribeContainerInstancesCommand";
import {
DescribeServiceDeploymentsCommandInput,
DescribeServiceDeploymentsCommandOutput,
} from "./commands/DescribeServiceDeploymentsCommand";
import {
DescribeServiceRevisionsCommandInput,
DescribeServiceRevisionsCommandOutput,
} from "./commands/DescribeServiceRevisionsCommand";
import { DescribeServicesCommandInput, DescribeServicesCommandOutput } from "./commands/DescribeServicesCommand";
import {
DescribeTaskDefinitionCommandInput,
Expand All @@ -116,6 +124,10 @@ import {
ListContainerInstancesCommandInput,
ListContainerInstancesCommandOutput,
} from "./commands/ListContainerInstancesCommand";
import {
ListServiceDeploymentsCommandInput,
ListServiceDeploymentsCommandOutput,
} from "./commands/ListServiceDeploymentsCommand";
import {
ListServicesByNamespaceCommandInput,
ListServicesByNamespaceCommandOutput,
Expand Down Expand Up @@ -227,6 +239,8 @@ export type ServiceInputTypes =
| DescribeCapacityProvidersCommandInput
| DescribeClustersCommandInput
| DescribeContainerInstancesCommandInput
| DescribeServiceDeploymentsCommandInput
| DescribeServiceRevisionsCommandInput
| DescribeServicesCommandInput
| DescribeTaskDefinitionCommandInput
| DescribeTaskSetsCommandInput
Expand All @@ -238,6 +252,7 @@ export type ServiceInputTypes =
| ListAttributesCommandInput
| ListClustersCommandInput
| ListContainerInstancesCommandInput
| ListServiceDeploymentsCommandInput
| ListServicesByNamespaceCommandInput
| ListServicesCommandInput
| ListTagsForResourceCommandInput
Expand Down Expand Up @@ -288,6 +303,8 @@ export type ServiceOutputTypes =
| DescribeCapacityProvidersCommandOutput
| DescribeClustersCommandOutput
| DescribeContainerInstancesCommandOutput
| DescribeServiceDeploymentsCommandOutput
| DescribeServiceRevisionsCommandOutput
| DescribeServicesCommandOutput
| DescribeTaskDefinitionCommandOutput
| DescribeTaskSetsCommandOutput
Expand All @@ -299,6 +316,7 @@ export type ServiceOutputTypes =
| ListAttributesCommandOutput
| ListClustersCommandOutput
| ListContainerInstancesCommandOutput
| ListServiceDeploymentsCommandOutput
| ListServicesByNamespaceCommandOutput
| ListServicesCommandOutput
| ListTagsForResourceCommandOutput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export interface CreateCapacityProviderCommandOutput extends CreateCapacityProvi
* <li>
* <p>The <code>RunTask</code> could not be processed because you use managed
* scaling and there is a capacity error because the quota of tasks in the
* <code>PROVISIONING</code> per cluster has been reached. For information
* <code>PROVISIONING</code> per cluster has been reached. For information
* about the service quotas, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-quotas.html">Amazon ECS
* service quotas</a>.</p>
* </li>
Expand Down
4 changes: 2 additions & 2 deletions clients/client-ecs/src/commands/CreateClusterCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface CreateClusterCommandOutput extends CreateClusterResponse, __Met
* cluster when you launch your first container instance. However, you can create your own
* cluster with a unique name.</p>
* <note>
* <p>When you call the <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateCluster.html">CreateCluster</a> API operation, Amazon ECS attempts to
* <p>When you call the <a>CreateCluster</a> API operation, Amazon ECS attempts to
* create the Amazon ECS service-linked role for your account. This is so that it can manage
* required resources in other Amazon Web Services services on your behalf. However, if the user that
* makes the call doesn't have permissions to create the service-linked role, it isn't
Expand Down Expand Up @@ -183,7 +183,7 @@ export interface CreateClusterCommandOutput extends CreateClusterResponse, __Met
* <li>
* <p>The <code>RunTask</code> could not be processed because you use managed
* scaling and there is a capacity error because the quota of tasks in the
* <code>PROVISIONING</code> per cluster has been reached. For information
* <code>PROVISIONING</code> per cluster has been reached. For information
* about the service quotas, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-quotas.html">Amazon ECS
* service quotas</a>.</p>
* </li>
Expand Down
8 changes: 4 additions & 4 deletions clients/client-ecs/src/commands/CreateServiceCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met
* <p>Runs and maintains your desired number of tasks from a specified task definition. If
* the number of tasks running in a service drops below the <code>desiredCount</code>,
* Amazon ECS runs another copy of the task in the specified cluster. To update an existing
* service, use <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_UpdateService.html">UpdateService</a>.</p>
* service, see the <a>UpdateService</a> action.</p>
* <note>
* <p>On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.</p>
* </note>
Expand Down Expand Up @@ -164,8 +164,8 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met
* alarmNames: [ // StringList // required
* "STRING_VALUE",
* ],
* enable: true || false, // required
* rollback: true || false, // required
* enable: true || false, // required
* },
* },
* placementConstraints: [ // PlacementConstraints
Expand Down Expand Up @@ -323,8 +323,8 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met
* // alarmNames: [ // StringList // required
* // "STRING_VALUE",
* // ],
* // enable: true || false, // required
* // rollback: true || false, // required
* // enable: true || false, // required
* // },
* // },
* // taskSets: [ // TaskSets
Expand Down Expand Up @@ -570,7 +570,7 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met
* <li>
* <p>The <code>RunTask</code> could not be processed because you use managed
* scaling and there is a capacity error because the quota of tasks in the
* <code>PROVISIONING</code> per cluster has been reached. For information
* <code>PROVISIONING</code> per cluster has been reached. For information
* about the service quotas, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-quotas.html">Amazon ECS
* service quotas</a>.</p>
* </li>
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ecs/src/commands/CreateTaskSetCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export interface CreateTaskSetCommandOutput extends CreateTaskSetResponse, __Met
* <li>
* <p>The <code>RunTask</code> could not be processed because you use managed
* scaling and there is a capacity error because the quota of tasks in the
* <code>PROVISIONING</code> per cluster has been reached. For information
* <code>PROVISIONING</code> per cluster has been reached. For information
* about the service quotas, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-quotas.html">Amazon ECS
* service quotas</a>.</p>
* </li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export interface DeleteAccountSettingCommandOutput extends DeleteAccountSettingR
* <li>
* <p>The <code>RunTask</code> could not be processed because you use managed
* scaling and there is a capacity error because the quota of tasks in the
* <code>PROVISIONING</code> per cluster has been reached. For information
* <code>PROVISIONING</code> per cluster has been reached. For information
* about the service quotas, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-quotas.html">Amazon ECS
* service quotas</a>.</p>
* </li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export interface DeleteCapacityProviderCommandOutput extends DeleteCapacityProvi
* <li>
* <p>The <code>RunTask</code> could not be processed because you use managed
* scaling and there is a capacity error because the quota of tasks in the
* <code>PROVISIONING</code> per cluster has been reached. For information
* <code>PROVISIONING</code> per cluster has been reached. For information
* about the service quotas, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-quotas.html">Amazon ECS
* service quotas</a>.</p>
* </li>
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ecs/src/commands/DeleteClusterCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export interface DeleteClusterCommandOutput extends DeleteClusterResponse, __Met
* <li>
* <p>The <code>RunTask</code> could not be processed because you use managed
* scaling and there is a capacity error because the quota of tasks in the
* <code>PROVISIONING</code> per cluster has been reached. For information
* <code>PROVISIONING</code> per cluster has been reached. For information
* about the service quotas, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-quotas.html">Amazon ECS
* service quotas</a>.</p>
* </li>
Expand Down
4 changes: 2 additions & 2 deletions clients/client-ecs/src/commands/DeleteServiceCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ export interface DeleteServiceCommandOutput extends DeleteServiceResponse, __Met
* // alarmNames: [ // StringList // required
* // "STRING_VALUE",
* // ],
* // enable: true || false, // required
* // rollback: true || false, // required
* // enable: true || false, // required
* // },
* // },
* // taskSets: [ // TaskSets
Expand Down Expand Up @@ -353,7 +353,7 @@ export interface DeleteServiceCommandOutput extends DeleteServiceResponse, __Met
* <li>
* <p>The <code>RunTask</code> could not be processed because you use managed
* scaling and there is a capacity error because the quota of tasks in the
* <code>PROVISIONING</code> per cluster has been reached. For information
* <code>PROVISIONING</code> per cluster has been reached. For information
* about the service quotas, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-quotas.html">Amazon ECS
* service quotas</a>.</p>
* </li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ export interface DeleteTaskDefinitionsCommandOutput extends DeleteTaskDefinition
* <li>
* <p>The <code>RunTask</code> could not be processed because you use managed
* scaling and there is a capacity error because the quota of tasks in the
* <code>PROVISIONING</code> per cluster has been reached. For information
* <code>PROVISIONING</code> per cluster has been reached. For information
* about the service quotas, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-quotas.html">Amazon ECS
* service quotas</a>.</p>
* </li>
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ecs/src/commands/DeleteTaskSetCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export interface DeleteTaskSetCommandOutput extends DeleteTaskSetResponse, __Met
* <li>
* <p>The <code>RunTask</code> could not be processed because you use managed
* scaling and there is a capacity error because the quota of tasks in the
* <code>PROVISIONING</code> per cluster has been reached. For information
* <code>PROVISIONING</code> per cluster has been reached. For information
* about the service quotas, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-quotas.html">Amazon ECS
* service quotas</a>.</p>
* </li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export interface DeregisterContainerInstanceCommandOutput
* <li>
* <p>The <code>RunTask</code> could not be processed because you use managed
* scaling and there is a capacity error because the quota of tasks in the
* <code>PROVISIONING</code> per cluster has been reached. For information
* <code>PROVISIONING</code> per cluster has been reached. For information
* about the service quotas, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-quotas.html">Amazon ECS
* service quotas</a>.</p>
* </li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ export interface DeregisterTaskDefinitionCommandOutput extends DeregisterTaskDef
* <li>
* <p>The <code>RunTask</code> could not be processed because you use managed
* scaling and there is a capacity error because the quota of tasks in the
* <code>PROVISIONING</code> per cluster has been reached. For information
* <code>PROVISIONING</code> per cluster has been reached. For information
* about the service quotas, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-quotas.html">Amazon ECS
* service quotas</a>.</p>
* </li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export interface DescribeCapacityProvidersCommandOutput extends DescribeCapacity
* <li>
* <p>The <code>RunTask</code> could not be processed because you use managed
* scaling and there is a capacity error because the quota of tasks in the
* <code>PROVISIONING</code> per cluster has been reached. For information
* <code>PROVISIONING</code> per cluster has been reached. For information
* about the service quotas, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-quotas.html">Amazon ECS
* service quotas</a>.</p>
* </li>
Expand Down
Loading

0 comments on commit 09bd2fa

Please sign in to comment.