@aws-sdk/client-ecs 3.787.0 → 3.795.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +77 -0
  3. package/dist-es/ECS.js +2 -0
  4. package/dist-es/commands/StopServiceDeploymentCommand.js +22 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/models_0.js +18 -0
  7. package/dist-es/protocols/Aws_json1_1.js +32 -1
  8. package/dist-types/ECS.d.ts +7 -0
  9. package/dist-types/ECSClient.d.ts +3 -2
  10. package/dist-types/commands/DeleteAccountSettingCommand.d.ts +2 -2
  11. package/dist-types/commands/DescribeServiceDeploymentsCommand.d.ts +2 -3
  12. package/dist-types/commands/ListAccountSettingsCommand.d.ts +2 -2
  13. package/dist-types/commands/ListServiceDeploymentsCommand.d.ts +2 -2
  14. package/dist-types/commands/PutAccountSettingCommand.d.ts +2 -2
  15. package/dist-types/commands/PutAccountSettingDefaultCommand.d.ts +2 -2
  16. package/dist-types/commands/StopServiceDeploymentCommand.d.ts +149 -0
  17. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  18. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  19. package/dist-types/commands/index.d.ts +1 -0
  20. package/dist-types/models/models_0.d.ts +147 -144
  21. package/dist-types/models/models_1.d.ts +88 -1
  22. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  23. package/dist-types/ts3.4/ECS.d.ts +17 -0
  24. package/dist-types/ts3.4/ECSClient.d.ts +6 -0
  25. package/dist-types/ts3.4/commands/StopServiceDeploymentCommand.d.ts +51 -0
  26. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  27. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  28. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  29. package/dist-types/ts3.4/models/models_0.d.ts +25 -10
  30. package/dist-types/ts3.4/models/models_1.d.ts +11 -0
  31. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
  32. package/package.json +1 -1
@@ -0,0 +1,149 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECSClient";
4
+ import { StopServiceDeploymentRequest, StopServiceDeploymentResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link StopServiceDeploymentCommand}.
14
+ */
15
+ export interface StopServiceDeploymentCommandInput extends StopServiceDeploymentRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link StopServiceDeploymentCommand}.
21
+ */
22
+ export interface StopServiceDeploymentCommandOutput extends StopServiceDeploymentResponse, __MetadataBearer {
23
+ }
24
+ declare const StopServiceDeploymentCommand_base: {
25
+ new (input: StopServiceDeploymentCommandInput): import("@smithy/smithy-client").CommandImpl<StopServiceDeploymentCommandInput, StopServiceDeploymentCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: StopServiceDeploymentCommandInput): import("@smithy/smithy-client").CommandImpl<StopServiceDeploymentCommandInput, StopServiceDeploymentCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Stops an ongoing service deployment.</p>
31
+ * <p>The following stop types are avaiable:</p>
32
+ * <ul>
33
+ * <li>
34
+ * <p>ROLLBACK - This option rolls back the service deployment to the previous
35
+ * service revision. </p>
36
+ * <p>You can use this option even if you didn't configure the service deployment
37
+ * for the rollback option. </p>
38
+ * </li>
39
+ * </ul>
40
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/stop-service-deployment.html">Stopping Amazon ECS
41
+ * service deployments</a> in the <i>Amazon Elastic Container Service Developer
42
+ * Guide</i>.</p>
43
+ * @example
44
+ * Use a bare-bones client and the command you need to make an API call.
45
+ * ```javascript
46
+ * import { ECSClient, StopServiceDeploymentCommand } from "@aws-sdk/client-ecs"; // ES Modules import
47
+ * // const { ECSClient, StopServiceDeploymentCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
48
+ * const client = new ECSClient(config);
49
+ * const input = { // StopServiceDeploymentRequest
50
+ * serviceDeploymentArn: "STRING_VALUE", // required
51
+ * stopType: "ABORT" || "ROLLBACK",
52
+ * };
53
+ * const command = new StopServiceDeploymentCommand(input);
54
+ * const response = await client.send(command);
55
+ * // { // StopServiceDeploymentResponse
56
+ * // serviceDeploymentArn: "STRING_VALUE",
57
+ * // };
58
+ *
59
+ * ```
60
+ *
61
+ * @param StopServiceDeploymentCommandInput - {@link StopServiceDeploymentCommandInput}
62
+ * @returns {@link StopServiceDeploymentCommandOutput}
63
+ * @see {@link StopServiceDeploymentCommandInput} for command's `input` shape.
64
+ * @see {@link StopServiceDeploymentCommandOutput} for command's `response` shape.
65
+ * @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
66
+ *
67
+ * @throws {@link AccessDeniedException} (client fault)
68
+ * <p>You don't have authorization to perform the requested action.</p>
69
+ *
70
+ * @throws {@link ClientException} (client fault)
71
+ * <p>These errors are usually caused by a client action. This client action might be using
72
+ * an action or resource on behalf of a user that doesn't have permissions to use the
73
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
74
+ * <p>The following list includes additional causes for the error:</p>
75
+ * <ul>
76
+ * <li>
77
+ * <p>The <code>RunTask</code> could not be processed because you use managed
78
+ * scaling and there is a capacity error because the quota of tasks in the
79
+ * <code>PROVISIONING</code> per cluster has been reached. For information
80
+ * about the service quotas, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-quotas.html">Amazon ECS
81
+ * service quotas</a>.</p>
82
+ * </li>
83
+ * </ul>
84
+ *
85
+ * @throws {@link ConflictException} (client fault)
86
+ * <p>The <code>RunTask</code> request could not be processed due to conflicts. The provided
87
+ * <code>clientToken</code> is already in use with a different <code>RunTask</code>
88
+ * request. The <code>resourceIds</code> are the existing task ARNs which are already
89
+ * associated with the <code>clientToken</code>. </p>
90
+ * <p>To fix this issue:</p>
91
+ * <ul>
92
+ * <li>
93
+ * <p>Run <code>RunTask</code> with a unique <code>clientToken</code>.</p>
94
+ * </li>
95
+ * <li>
96
+ * <p>Run <code>RunTask</code> with the <code>clientToken</code> and the original
97
+ * set of parameters</p>
98
+ * </li>
99
+ * </ul>
100
+ *
101
+ * @throws {@link InvalidParameterException} (client fault)
102
+ * <p>The specified parameter isn't valid. Review the available parameters for the API
103
+ * request.</p>
104
+ * <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS service event messages</a>. </p>
105
+ *
106
+ * @throws {@link ServerException} (server fault)
107
+ * <p>These errors are usually caused by a server issue.</p>
108
+ *
109
+ * @throws {@link ServiceDeploymentNotFoundException} (client fault)
110
+ * <p>The service deploy ARN that you specified in the <code>StopServiceDeployment</code> doesn't exist. You can use <code>ListServiceDeployments</code> to retrieve the service deployment ARNs.</p>
111
+ *
112
+ * @throws {@link UnsupportedFeatureException} (client fault)
113
+ * <p>The specified task isn't supported in this Region.</p>
114
+ *
115
+ * @throws {@link ECSServiceException}
116
+ * <p>Base exception class for all service exceptions from ECS service.</p>
117
+ *
118
+ *
119
+ * @example To stop a service deployment
120
+ * ```javascript
121
+ * // This example stops the service deployment using the ROLLBACK option.
122
+ * const input = {
123
+ * serviceDeploymentArn: "arn:aws:ecs:us-east-1:123456789012:service-deployment/MyCluster/MyService/r9i43YFjvgF_xlg7m2eJ1r",
124
+ * stopType: "ROLLBACK"
125
+ * };
126
+ * const command = new StopServiceDeploymentCommand(input);
127
+ * const response = await client.send(command);
128
+ * /* response is
129
+ * {
130
+ * serviceDeploymentArn: "arn:aws:ecs:us-east-1:123456789012:service-deployment/MyCluster/MyService/r9i43YFjvgF_xlg7m2eJ1r"
131
+ * }
132
+ * *\/
133
+ * ```
134
+ *
135
+ * @public
136
+ */
137
+ export declare class StopServiceDeploymentCommand extends StopServiceDeploymentCommand_base {
138
+ /** @internal type navigation helper, not in runtime. */
139
+ protected static __types: {
140
+ api: {
141
+ input: StopServiceDeploymentRequest;
142
+ output: StopServiceDeploymentResponse;
143
+ };
144
+ sdk: {
145
+ input: StopServiceDeploymentCommandInput;
146
+ output: StopServiceDeploymentCommandOutput;
147
+ };
148
+ };
149
+ }
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECSClient";
4
- import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
4
+ import { TagResourceRequest, TagResourceResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECSClient";
4
- import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
4
+ import { UntagResourceRequest, UntagResourceResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -42,6 +42,7 @@ export * from "./RegisterContainerInstanceCommand";
42
42
  export * from "./RegisterTaskDefinitionCommand";
43
43
  export * from "./RunTaskCommand";
44
44
  export * from "./StartTaskCommand";
45
+ export * from "./StopServiceDeploymentCommand";
45
46
  export * from "./StopTaskCommand";
46
47
  export * from "./SubmitAttachmentStateChangesCommand";
47
48
  export * from "./SubmitContainerStateChangeCommand";