@aws-sdk/client-ecs 3.204.0 → 3.209.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/dist-cjs/ECS.js +30 -0
  2. package/dist-cjs/commands/GetTaskProtectionCommand.js +46 -0
  3. package/dist-cjs/commands/UpdateTaskProtectionCommand.js +46 -0
  4. package/dist-cjs/commands/index.js +2 -0
  5. package/dist-cjs/models/models_0.js +37 -17
  6. package/dist-cjs/protocols/Aws_json1_1.js +173 -3
  7. package/dist-cjs/runtimeConfig.shared.js +2 -1
  8. package/dist-es/ECS.js +30 -0
  9. package/dist-es/commands/GetTaskProtectionCommand.js +42 -0
  10. package/dist-es/commands/UpdateTaskProtectionCommand.js +42 -0
  11. package/dist-es/commands/index.js +2 -0
  12. package/dist-es/models/models_0.js +27 -12
  13. package/dist-es/protocols/Aws_json1_1.js +166 -0
  14. package/dist-es/runtimeConfig.shared.js +2 -1
  15. package/dist-types/ECS.d.ts +42 -2
  16. package/dist-types/ECSClient.d.ts +4 -2
  17. package/dist-types/commands/CreateServiceCommand.d.ts +3 -2
  18. package/dist-types/commands/GetTaskProtectionCommand.d.ts +37 -0
  19. package/dist-types/commands/UpdateTaskProtectionCommand.d.ts +62 -0
  20. package/dist-types/commands/index.d.ts +2 -0
  21. package/dist-types/models/models_0.d.ts +151 -20
  22. package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
  23. package/dist-types/runtimeConfig.shared.d.ts +2 -3
  24. package/dist-types/ts3.4/ECS.d.ts +34 -0
  25. package/dist-types/ts3.4/ECSClient.d.ts +12 -0
  26. package/dist-types/ts3.4/commands/GetTaskProtectionCommand.d.ts +38 -0
  27. package/dist-types/ts3.4/commands/UpdateTaskProtectionCommand.d.ts +41 -0
  28. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  29. package/dist-types/ts3.4/models/models_0.d.ts +45 -7
  30. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
  31. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -3
  32. package/package.json +34 -36
@@ -19,6 +19,7 @@ export * from "./DescribeTaskSetsCommand";
19
19
  export * from "./DescribeTasksCommand";
20
20
  export * from "./DiscoverPollEndpointCommand";
21
21
  export * from "./ExecuteCommandCommand";
22
+ export * from "./GetTaskProtectionCommand";
22
23
  export * from "./ListAccountSettingsCommand";
23
24
  export * from "./ListAttributesCommand";
24
25
  export * from "./ListClustersCommand";
@@ -49,4 +50,5 @@ export * from "./UpdateContainerAgentCommand";
49
50
  export * from "./UpdateContainerInstancesStateCommand";
50
51
  export * from "./UpdateServiceCommand";
51
52
  export * from "./UpdateServicePrimaryTaskSetCommand";
53
+ export * from "./UpdateTaskProtectionCommand";
52
54
  export * from "./UpdateTaskSetCommand";
@@ -3906,8 +3906,8 @@ export interface ContainerDefinition {
3906
3906
  secrets?: Secret[];
3907
3907
  /**
3908
3908
  * <p>The dependencies defined for container startup and shutdown. A container can contain
3909
- * multiple dependencies on other containers in a task definition. When a dependency is defined for container startup, for container
3910
- * shutdown it is reversed.</p>
3909
+ * multiple dependencies on other containers in a task definition. When a dependency is
3910
+ * defined for container startup, for container shutdown it is reversed.</p>
3911
3911
  * <p>For tasks using the EC2 launch type, the container instances require at
3912
3912
  * least version 1.26.0 of the container agent to turn on container dependencies. However,
3913
3913
  * we recommend using the latest container agent version. For information about checking
@@ -6004,6 +6004,75 @@ export declare class TargetNotConnectedException extends __BaseException {
6004
6004
  */
6005
6005
  constructor(opts: __ExceptionOptionType<TargetNotConnectedException, __BaseException>);
6006
6006
  }
6007
+ export interface GetTaskProtectionRequest {
6008
+ /**
6009
+ * <p>The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task
6010
+ * sets exist in.</p>
6011
+ */
6012
+ cluster: string | undefined;
6013
+ /**
6014
+ * <p>A list of up to 100 task IDs or full ARN entries.</p>
6015
+ */
6016
+ tasks?: string[];
6017
+ }
6018
+ /**
6019
+ * <p>An object representing the protection status details for a task. You can set the
6020
+ * protection status with the <a>UpdateTaskProtection</a> API and get the status
6021
+ * of tasks with the <a>GetTaskProtection</a> API.</p>
6022
+ */
6023
+ export interface ProtectedTask {
6024
+ /**
6025
+ * <p>The task ARN.</p>
6026
+ */
6027
+ taskArn?: string;
6028
+ /**
6029
+ * <p>The protection status of the task. If scale-in protection is enabled for a task, the
6030
+ * value is <code>true</code>. Otherwise, it is <code>false</code>.</p>
6031
+ */
6032
+ protectionEnabled?: boolean;
6033
+ /**
6034
+ * <p>The epoch time when protection for the task will expire.</p>
6035
+ */
6036
+ expirationDate?: Date;
6037
+ }
6038
+ export interface GetTaskProtectionResponse {
6039
+ /**
6040
+ * <p>A list of tasks with the following information.</p>
6041
+ * <ul>
6042
+ * <li>
6043
+ * <p>
6044
+ * <code>taskArn</code>: The task ARN.</p>
6045
+ * </li>
6046
+ * <li>
6047
+ * <p>
6048
+ * <code>protectionEnabled</code>: The protection status of the task. If scale-in
6049
+ * protection is enabled for a task, the value is <code>true</code>. Otherwise, it
6050
+ * is <code>false</code>.</p>
6051
+ * </li>
6052
+ * <li>
6053
+ * <p>
6054
+ * <code>expirationDate</code>: The epoch time when protection for the task will
6055
+ * expire.</p>
6056
+ * </li>
6057
+ * </ul>
6058
+ */
6059
+ protectedTasks?: ProtectedTask[];
6060
+ /**
6061
+ * <p>Any failures associated with the call.</p>
6062
+ */
6063
+ failures?: Failure[];
6064
+ }
6065
+ /**
6066
+ * <p>The specified resource wasn't found.</p>
6067
+ */
6068
+ export declare class ResourceNotFoundException extends __BaseException {
6069
+ readonly name: "ResourceNotFoundException";
6070
+ readonly $fault: "client";
6071
+ /**
6072
+ * @internal
6073
+ */
6074
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
6075
+ }
6007
6076
  export interface ListAccountSettingsRequest {
6008
6077
  /**
6009
6078
  * <p>The name of the account setting you want to list the settings for.</p>
@@ -6573,9 +6642,9 @@ export interface PutAccountSettingDefaultRequest {
6573
6642
  * <code>awsvpcTrunking</code> is specified, the ENI limit for your Amazon ECS container
6574
6643
  * instances is affected. If <code>containerInsights</code> is specified, the default
6575
6644
  * setting for CloudWatch Container Insights for your clusters is affected.</p>
6576
- * <p>Fargate is transitioning from task count-based quotas to vCPU-based quotas. You can set
6577
- * the name to <code>fargateVCPULimit</code> to opt in or opt out of the vCPU-based quotas.
6578
- * For information about the opt in timeline, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#fargate-quota-timeline">Fargate vCPU-based quotas timeline</a> in the
6645
+ * <p>Fargate is transitioning from task count-based quotas to vCPU-based quotas. You can
6646
+ * set the name to <code>fargateVCPULimit</code> to opt in or opt out of the vCPU-based
6647
+ * quotas. For information about the opt in timeline, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#fargate-quota-timeline">Fargate vCPU-based quotas timeline</a> in the
6579
6648
  * <i>Amazon ECS Developer Guide</i>.</p>
6580
6649
  */
6581
6650
  name: SettingName | string | undefined;
@@ -6865,10 +6934,10 @@ export interface RegisterTaskDefinitionRequest {
6865
6934
  * <p>Task-level CPU and memory parameters are ignored for Windows containers. We
6866
6935
  * recommend specifying container-level resources for Windows containers.</p>
6867
6936
  * </note>
6868
- * <p>If you're using the EC2 launch type, this field is optional. Supported values
6869
- * are between <code>128</code> CPU units (<code>0.125</code> vCPUs) and <code>10240</code>
6870
- * CPU units (<code>10</code> vCPUs). If you do not specify a value, the parameter is
6871
- * ignored.</p>
6937
+ * <p>If you're using the EC2 launch type, this field is optional. Supported
6938
+ * values are between <code>128</code> CPU units (<code>0.125</code> vCPUs) and
6939
+ * <code>10240</code> CPU units (<code>10</code> vCPUs). If you do not specify a value,
6940
+ * the parameter is ignored.</p>
6872
6941
  * <p>If you're using the Fargate launch type, this field is required and you
6873
6942
  * must use one of the following values, which determines your range of supported values
6874
6943
  * for the <code>memory</code> parameter:</p>
@@ -7612,17 +7681,6 @@ export interface SubmitTaskStateChangeResponse {
7612
7681
  */
7613
7682
  acknowledgment?: string;
7614
7683
  }
7615
- /**
7616
- * <p>The specified resource wasn't found.</p>
7617
- */
7618
- export declare class ResourceNotFoundException extends __BaseException {
7619
- readonly name: "ResourceNotFoundException";
7620
- readonly $fault: "client";
7621
- /**
7622
- * @internal
7623
- */
7624
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
7625
- }
7626
7684
  export interface TagResourceRequest {
7627
7685
  /**
7628
7686
  * <p>The Amazon Resource Name (ARN) of the resource to add tags to. Currently, the supported resources are
@@ -8029,6 +8087,59 @@ export interface UpdateServicePrimaryTaskSetResponse {
8029
8087
  */
8030
8088
  taskSet?: TaskSet;
8031
8089
  }
8090
+ export interface UpdateTaskProtectionRequest {
8091
+ /**
8092
+ * <p>The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task
8093
+ * sets exist in.</p>
8094
+ */
8095
+ cluster: string | undefined;
8096
+ /**
8097
+ * <p>A list of up to 10 task IDs or full ARN entries.</p>
8098
+ */
8099
+ tasks: string[] | undefined;
8100
+ /**
8101
+ * <p>Specify <code>true</code> to mark a task for protection and <code>false</code> to
8102
+ * unset protection, making it eligible for termination.</p>
8103
+ */
8104
+ protectionEnabled: boolean | undefined;
8105
+ /**
8106
+ * <p>If you set <code>protectionEnabled</code> to <code>true</code>, you can specify the
8107
+ * duration for task protection in minutes. You can specify a value from 1 minute to up to
8108
+ * 2,880 minutes (48 hours). During this time, your task will not be terminated by scale-in
8109
+ * events from Service Auto Scaling or deployments. After this time period lapses,
8110
+ * <code>protectionEnabled</code> will be reset to <code>false</code>.</p>
8111
+ * <p>If you don’t specify the time, then the task is automatically protected for 120
8112
+ * minutes (2 hours).</p>
8113
+ */
8114
+ expiresInMinutes?: number;
8115
+ }
8116
+ export interface UpdateTaskProtectionResponse {
8117
+ /**
8118
+ * <p>A list of tasks with the following information.</p>
8119
+ * <ul>
8120
+ * <li>
8121
+ * <p>
8122
+ * <code>taskArn</code>: The task ARN.</p>
8123
+ * </li>
8124
+ * <li>
8125
+ * <p>
8126
+ * <code>protectionEnabled</code>: The protection status of the task. If scale-in
8127
+ * protection is enabled for a task, the value is <code>true</code>. Otherwise, it
8128
+ * is <code>false</code>.</p>
8129
+ * </li>
8130
+ * <li>
8131
+ * <p>
8132
+ * <code>expirationDate</code>: The epoch time when protection for the task will
8133
+ * expire.</p>
8134
+ * </li>
8135
+ * </ul>
8136
+ */
8137
+ protectedTasks?: ProtectedTask[];
8138
+ /**
8139
+ * <p>Any failures associated with the call.</p>
8140
+ */
8141
+ failures?: Failure[];
8142
+ }
8032
8143
  export interface UpdateTaskSetRequest {
8033
8144
  /**
8034
8145
  * <p>The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task
@@ -8523,6 +8634,18 @@ export declare const SessionFilterSensitiveLog: (obj: Session) => any;
8523
8634
  * @internal
8524
8635
  */
8525
8636
  export declare const ExecuteCommandResponseFilterSensitiveLog: (obj: ExecuteCommandResponse) => any;
8637
+ /**
8638
+ * @internal
8639
+ */
8640
+ export declare const GetTaskProtectionRequestFilterSensitiveLog: (obj: GetTaskProtectionRequest) => any;
8641
+ /**
8642
+ * @internal
8643
+ */
8644
+ export declare const ProtectedTaskFilterSensitiveLog: (obj: ProtectedTask) => any;
8645
+ /**
8646
+ * @internal
8647
+ */
8648
+ export declare const GetTaskProtectionResponseFilterSensitiveLog: (obj: GetTaskProtectionResponse) => any;
8526
8649
  /**
8527
8650
  * @internal
8528
8651
  */
@@ -8783,6 +8906,14 @@ export declare const UpdateServicePrimaryTaskSetRequestFilterSensitiveLog: (obj:
8783
8906
  * @internal
8784
8907
  */
8785
8908
  export declare const UpdateServicePrimaryTaskSetResponseFilterSensitiveLog: (obj: UpdateServicePrimaryTaskSetResponse) => any;
8909
+ /**
8910
+ * @internal
8911
+ */
8912
+ export declare const UpdateTaskProtectionRequestFilterSensitiveLog: (obj: UpdateTaskProtectionRequest) => any;
8913
+ /**
8914
+ * @internal
8915
+ */
8916
+ export declare const UpdateTaskProtectionResponseFilterSensitiveLog: (obj: UpdateTaskProtectionResponse) => any;
8786
8917
  /**
8787
8918
  * @internal
8788
8919
  */
@@ -21,6 +21,7 @@ import { DescribeTasksCommandInput, DescribeTasksCommandOutput } from "../comman
21
21
  import { DescribeTaskSetsCommandInput, DescribeTaskSetsCommandOutput } from "../commands/DescribeTaskSetsCommand";
22
22
  import { DiscoverPollEndpointCommandInput, DiscoverPollEndpointCommandOutput } from "../commands/DiscoverPollEndpointCommand";
23
23
  import { ExecuteCommandCommandInput, ExecuteCommandCommandOutput } from "../commands/ExecuteCommandCommand";
24
+ import { GetTaskProtectionCommandInput, GetTaskProtectionCommandOutput } from "../commands/GetTaskProtectionCommand";
24
25
  import { ListAccountSettingsCommandInput, ListAccountSettingsCommandOutput } from "../commands/ListAccountSettingsCommand";
25
26
  import { ListAttributesCommandInput, ListAttributesCommandOutput } from "../commands/ListAttributesCommand";
26
27
  import { ListClustersCommandInput, ListClustersCommandOutput } from "../commands/ListClustersCommand";
@@ -51,6 +52,7 @@ import { UpdateContainerAgentCommandInput, UpdateContainerAgentCommandOutput } f
51
52
  import { UpdateContainerInstancesStateCommandInput, UpdateContainerInstancesStateCommandOutput } from "../commands/UpdateContainerInstancesStateCommand";
52
53
  import { UpdateServiceCommandInput, UpdateServiceCommandOutput } from "../commands/UpdateServiceCommand";
53
54
  import { UpdateServicePrimaryTaskSetCommandInput, UpdateServicePrimaryTaskSetCommandOutput } from "../commands/UpdateServicePrimaryTaskSetCommand";
55
+ import { UpdateTaskProtectionCommandInput, UpdateTaskProtectionCommandOutput } from "../commands/UpdateTaskProtectionCommand";
54
56
  import { UpdateTaskSetCommandInput, UpdateTaskSetCommandOutput } from "../commands/UpdateTaskSetCommand";
55
57
  export declare const serializeAws_json1_1CreateCapacityProviderCommand: (input: CreateCapacityProviderCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
56
58
  export declare const serializeAws_json1_1CreateClusterCommand: (input: CreateClusterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -73,6 +75,7 @@ export declare const serializeAws_json1_1DescribeTasksCommand: (input: DescribeT
73
75
  export declare const serializeAws_json1_1DescribeTaskSetsCommand: (input: DescribeTaskSetsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
74
76
  export declare const serializeAws_json1_1DiscoverPollEndpointCommand: (input: DiscoverPollEndpointCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
75
77
  export declare const serializeAws_json1_1ExecuteCommandCommand: (input: ExecuteCommandCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
78
+ export declare const serializeAws_json1_1GetTaskProtectionCommand: (input: GetTaskProtectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
76
79
  export declare const serializeAws_json1_1ListAccountSettingsCommand: (input: ListAccountSettingsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
77
80
  export declare const serializeAws_json1_1ListAttributesCommand: (input: ListAttributesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
78
81
  export declare const serializeAws_json1_1ListClustersCommand: (input: ListClustersCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -103,6 +106,7 @@ export declare const serializeAws_json1_1UpdateContainerAgentCommand: (input: Up
103
106
  export declare const serializeAws_json1_1UpdateContainerInstancesStateCommand: (input: UpdateContainerInstancesStateCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
104
107
  export declare const serializeAws_json1_1UpdateServiceCommand: (input: UpdateServiceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
105
108
  export declare const serializeAws_json1_1UpdateServicePrimaryTaskSetCommand: (input: UpdateServicePrimaryTaskSetCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
109
+ export declare const serializeAws_json1_1UpdateTaskProtectionCommand: (input: UpdateTaskProtectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
106
110
  export declare const serializeAws_json1_1UpdateTaskSetCommand: (input: UpdateTaskSetCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
107
111
  export declare const deserializeAws_json1_1CreateCapacityProviderCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateCapacityProviderCommandOutput>;
108
112
  export declare const deserializeAws_json1_1CreateClusterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateClusterCommandOutput>;
@@ -125,6 +129,7 @@ export declare const deserializeAws_json1_1DescribeTasksCommand: (output: __Http
125
129
  export declare const deserializeAws_json1_1DescribeTaskSetsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeTaskSetsCommandOutput>;
126
130
  export declare const deserializeAws_json1_1DiscoverPollEndpointCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DiscoverPollEndpointCommandOutput>;
127
131
  export declare const deserializeAws_json1_1ExecuteCommandCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ExecuteCommandCommandOutput>;
132
+ export declare const deserializeAws_json1_1GetTaskProtectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetTaskProtectionCommandOutput>;
128
133
  export declare const deserializeAws_json1_1ListAccountSettingsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListAccountSettingsCommandOutput>;
129
134
  export declare const deserializeAws_json1_1ListAttributesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListAttributesCommandOutput>;
130
135
  export declare const deserializeAws_json1_1ListClustersCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListClustersCommandOutput>;
@@ -155,4 +160,5 @@ export declare const deserializeAws_json1_1UpdateContainerAgentCommand: (output:
155
160
  export declare const deserializeAws_json1_1UpdateContainerInstancesStateCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateContainerInstancesStateCommandOutput>;
156
161
  export declare const deserializeAws_json1_1UpdateServiceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateServiceCommandOutput>;
157
162
  export declare const deserializeAws_json1_1UpdateServicePrimaryTaskSetCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateServicePrimaryTaskSetCommandOutput>;
163
+ export declare const deserializeAws_json1_1UpdateTaskProtectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateTaskProtectionCommandOutput>;
158
164
  export declare const deserializeAws_json1_1UpdateTaskSetCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateTaskSetCommandOutput>;
@@ -1,4 +1,3 @@
1
- import { Logger as __Logger } from "@aws-sdk/types";
2
1
  import { ECSClientConfig } from "./ECSClient";
3
2
  /**
4
3
  * @internal
@@ -9,9 +8,9 @@ export declare const getRuntimeConfig: (config: ECSClientConfig) => {
9
8
  base64Encoder: import("@aws-sdk/types").Encoder;
10
9
  disableHostPrefix: boolean;
11
10
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
12
- logger?: __Logger | undefined;
11
+ logger?: import("@aws-sdk/types").Logger | undefined;
13
12
  }) => import("@aws-sdk/types").EndpointV2;
14
- logger: __Logger;
13
+ logger: import("@aws-sdk/types").Logger;
15
14
  serviceId: string;
16
15
  urlParser: import("@aws-sdk/types").UrlParser;
17
16
  };
@@ -83,6 +83,10 @@ import {
83
83
  ExecuteCommandCommandInput,
84
84
  ExecuteCommandCommandOutput,
85
85
  } from "./commands/ExecuteCommandCommand";
86
+ import {
87
+ GetTaskProtectionCommandInput,
88
+ GetTaskProtectionCommandOutput,
89
+ } from "./commands/GetTaskProtectionCommand";
86
90
  import {
87
91
  ListAccountSettingsCommandInput,
88
92
  ListAccountSettingsCommandOutput,
@@ -203,6 +207,10 @@ import {
203
207
  UpdateServicePrimaryTaskSetCommandInput,
204
208
  UpdateServicePrimaryTaskSetCommandOutput,
205
209
  } from "./commands/UpdateServicePrimaryTaskSetCommand";
210
+ import {
211
+ UpdateTaskProtectionCommandInput,
212
+ UpdateTaskProtectionCommandOutput,
213
+ } from "./commands/UpdateTaskProtectionCommand";
206
214
  import {
207
215
  UpdateTaskSetCommandInput,
208
216
  UpdateTaskSetCommandOutput,
@@ -482,6 +490,19 @@ export declare class ECS extends ECSClient {
482
490
  options: __HttpHandlerOptions,
483
491
  cb: (err: any, data?: ExecuteCommandCommandOutput) => void
484
492
  ): void;
493
+ getTaskProtection(
494
+ args: GetTaskProtectionCommandInput,
495
+ options?: __HttpHandlerOptions
496
+ ): Promise<GetTaskProtectionCommandOutput>;
497
+ getTaskProtection(
498
+ args: GetTaskProtectionCommandInput,
499
+ cb: (err: any, data?: GetTaskProtectionCommandOutput) => void
500
+ ): void;
501
+ getTaskProtection(
502
+ args: GetTaskProtectionCommandInput,
503
+ options: __HttpHandlerOptions,
504
+ cb: (err: any, data?: GetTaskProtectionCommandOutput) => void
505
+ ): void;
485
506
  listAccountSettings(
486
507
  args: ListAccountSettingsCommandInput,
487
508
  options?: __HttpHandlerOptions
@@ -872,6 +893,19 @@ export declare class ECS extends ECSClient {
872
893
  options: __HttpHandlerOptions,
873
894
  cb: (err: any, data?: UpdateServicePrimaryTaskSetCommandOutput) => void
874
895
  ): void;
896
+ updateTaskProtection(
897
+ args: UpdateTaskProtectionCommandInput,
898
+ options?: __HttpHandlerOptions
899
+ ): Promise<UpdateTaskProtectionCommandOutput>;
900
+ updateTaskProtection(
901
+ args: UpdateTaskProtectionCommandInput,
902
+ cb: (err: any, data?: UpdateTaskProtectionCommandOutput) => void
903
+ ): void;
904
+ updateTaskProtection(
905
+ args: UpdateTaskProtectionCommandInput,
906
+ options: __HttpHandlerOptions,
907
+ cb: (err: any, data?: UpdateTaskProtectionCommandOutput) => void
908
+ ): void;
875
909
  updateTaskSet(
876
910
  args: UpdateTaskSetCommandInput,
877
911
  options?: __HttpHandlerOptions
@@ -127,6 +127,10 @@ import {
127
127
  ExecuteCommandCommandInput,
128
128
  ExecuteCommandCommandOutput,
129
129
  } from "./commands/ExecuteCommandCommand";
130
+ import {
131
+ GetTaskProtectionCommandInput,
132
+ GetTaskProtectionCommandOutput,
133
+ } from "./commands/GetTaskProtectionCommand";
130
134
  import {
131
135
  ListAccountSettingsCommandInput,
132
136
  ListAccountSettingsCommandOutput,
@@ -247,6 +251,10 @@ import {
247
251
  UpdateServicePrimaryTaskSetCommandInput,
248
252
  UpdateServicePrimaryTaskSetCommandOutput,
249
253
  } from "./commands/UpdateServicePrimaryTaskSetCommand";
254
+ import {
255
+ UpdateTaskProtectionCommandInput,
256
+ UpdateTaskProtectionCommandOutput,
257
+ } from "./commands/UpdateTaskProtectionCommand";
250
258
  import {
251
259
  UpdateTaskSetCommandInput,
252
260
  UpdateTaskSetCommandOutput,
@@ -278,6 +286,7 @@ export declare type ServiceInputTypes =
278
286
  | DescribeTasksCommandInput
279
287
  | DiscoverPollEndpointCommandInput
280
288
  | ExecuteCommandCommandInput
289
+ | GetTaskProtectionCommandInput
281
290
  | ListAccountSettingsCommandInput
282
291
  | ListAttributesCommandInput
283
292
  | ListClustersCommandInput
@@ -308,6 +317,7 @@ export declare type ServiceInputTypes =
308
317
  | UpdateContainerInstancesStateCommandInput
309
318
  | UpdateServiceCommandInput
310
319
  | UpdateServicePrimaryTaskSetCommandInput
320
+ | UpdateTaskProtectionCommandInput
311
321
  | UpdateTaskSetCommandInput;
312
322
  export declare type ServiceOutputTypes =
313
323
  | CreateCapacityProviderCommandOutput
@@ -331,6 +341,7 @@ export declare type ServiceOutputTypes =
331
341
  | DescribeTasksCommandOutput
332
342
  | DiscoverPollEndpointCommandOutput
333
343
  | ExecuteCommandCommandOutput
344
+ | GetTaskProtectionCommandOutput
334
345
  | ListAccountSettingsCommandOutput
335
346
  | ListAttributesCommandOutput
336
347
  | ListClustersCommandOutput
@@ -361,6 +372,7 @@ export declare type ServiceOutputTypes =
361
372
  | UpdateContainerInstancesStateCommandOutput
362
373
  | UpdateServiceCommandOutput
363
374
  | UpdateServicePrimaryTaskSetCommandOutput
375
+ | UpdateTaskProtectionCommandOutput
364
376
  | UpdateTaskSetCommandOutput;
365
377
  export interface ClientDefaults
366
378
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ ECSClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../ECSClient";
14
+ import {
15
+ GetTaskProtectionRequest,
16
+ GetTaskProtectionResponse,
17
+ } from "../models/models_0";
18
+ export interface GetTaskProtectionCommandInput
19
+ extends GetTaskProtectionRequest {}
20
+ export interface GetTaskProtectionCommandOutput
21
+ extends GetTaskProtectionResponse,
22
+ __MetadataBearer {}
23
+ export declare class GetTaskProtectionCommand extends $Command<
24
+ GetTaskProtectionCommandInput,
25
+ GetTaskProtectionCommandOutput,
26
+ ECSClientResolvedConfig
27
+ > {
28
+ readonly input: GetTaskProtectionCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: GetTaskProtectionCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: ECSClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<GetTaskProtectionCommandInput, GetTaskProtectionCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -0,0 +1,41 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ ECSClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../ECSClient";
14
+ import {
15
+ UpdateTaskProtectionRequest,
16
+ UpdateTaskProtectionResponse,
17
+ } from "../models/models_0";
18
+ export interface UpdateTaskProtectionCommandInput
19
+ extends UpdateTaskProtectionRequest {}
20
+ export interface UpdateTaskProtectionCommandOutput
21
+ extends UpdateTaskProtectionResponse,
22
+ __MetadataBearer {}
23
+ export declare class UpdateTaskProtectionCommand extends $Command<
24
+ UpdateTaskProtectionCommandInput,
25
+ UpdateTaskProtectionCommandOutput,
26
+ ECSClientResolvedConfig
27
+ > {
28
+ readonly input: UpdateTaskProtectionCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: UpdateTaskProtectionCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: ECSClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<
36
+ UpdateTaskProtectionCommandInput,
37
+ UpdateTaskProtectionCommandOutput
38
+ >;
39
+ private serialize;
40
+ private deserialize;
41
+ }
@@ -19,6 +19,7 @@ export * from "./DescribeTaskSetsCommand";
19
19
  export * from "./DescribeTasksCommand";
20
20
  export * from "./DiscoverPollEndpointCommand";
21
21
  export * from "./ExecuteCommandCommand";
22
+ export * from "./GetTaskProtectionCommand";
22
23
  export * from "./ListAccountSettingsCommand";
23
24
  export * from "./ListAttributesCommand";
24
25
  export * from "./ListClustersCommand";
@@ -49,4 +50,5 @@ export * from "./UpdateContainerAgentCommand";
49
50
  export * from "./UpdateContainerInstancesStateCommand";
50
51
  export * from "./UpdateServiceCommand";
51
52
  export * from "./UpdateServicePrimaryTaskSetCommand";
53
+ export * from "./UpdateTaskProtectionCommand";
52
54
  export * from "./UpdateTaskSetCommand";
@@ -1162,6 +1162,26 @@ export declare class TargetNotConnectedException extends __BaseException {
1162
1162
  opts: __ExceptionOptionType<TargetNotConnectedException, __BaseException>
1163
1163
  );
1164
1164
  }
1165
+ export interface GetTaskProtectionRequest {
1166
+ cluster: string | undefined;
1167
+ tasks?: string[];
1168
+ }
1169
+ export interface ProtectedTask {
1170
+ taskArn?: string;
1171
+ protectionEnabled?: boolean;
1172
+ expirationDate?: Date;
1173
+ }
1174
+ export interface GetTaskProtectionResponse {
1175
+ protectedTasks?: ProtectedTask[];
1176
+ failures?: Failure[];
1177
+ }
1178
+ export declare class ResourceNotFoundException extends __BaseException {
1179
+ readonly name: "ResourceNotFoundException";
1180
+ readonly $fault: "client";
1181
+ constructor(
1182
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
1183
+ );
1184
+ }
1165
1185
  export interface ListAccountSettingsRequest {
1166
1186
  name?: SettingName | string;
1167
1187
  value?: string;
@@ -1478,13 +1498,6 @@ export interface SubmitTaskStateChangeRequest {
1478
1498
  export interface SubmitTaskStateChangeResponse {
1479
1499
  acknowledgment?: string;
1480
1500
  }
1481
- export declare class ResourceNotFoundException extends __BaseException {
1482
- readonly name: "ResourceNotFoundException";
1483
- readonly $fault: "client";
1484
- constructor(
1485
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
1486
- );
1487
- }
1488
1501
  export interface TagResourceRequest {
1489
1502
  resourceArn: string | undefined;
1490
1503
  tags: Tag[] | undefined;
@@ -1581,6 +1594,16 @@ export interface UpdateServicePrimaryTaskSetRequest {
1581
1594
  export interface UpdateServicePrimaryTaskSetResponse {
1582
1595
  taskSet?: TaskSet;
1583
1596
  }
1597
+ export interface UpdateTaskProtectionRequest {
1598
+ cluster: string | undefined;
1599
+ tasks: string[] | undefined;
1600
+ protectionEnabled: boolean | undefined;
1601
+ expiresInMinutes?: number;
1602
+ }
1603
+ export interface UpdateTaskProtectionResponse {
1604
+ protectedTasks?: ProtectedTask[];
1605
+ failures?: Failure[];
1606
+ }
1584
1607
  export interface UpdateTaskSetRequest {
1585
1608
  cluster: string | undefined;
1586
1609
  service: string | undefined;
@@ -1881,6 +1904,15 @@ export declare const SessionFilterSensitiveLog: (obj: Session) => any;
1881
1904
  export declare const ExecuteCommandResponseFilterSensitiveLog: (
1882
1905
  obj: ExecuteCommandResponse
1883
1906
  ) => any;
1907
+ export declare const GetTaskProtectionRequestFilterSensitiveLog: (
1908
+ obj: GetTaskProtectionRequest
1909
+ ) => any;
1910
+ export declare const ProtectedTaskFilterSensitiveLog: (
1911
+ obj: ProtectedTask
1912
+ ) => any;
1913
+ export declare const GetTaskProtectionResponseFilterSensitiveLog: (
1914
+ obj: GetTaskProtectionResponse
1915
+ ) => any;
1884
1916
  export declare const ListAccountSettingsRequestFilterSensitiveLog: (
1885
1917
  obj: ListAccountSettingsRequest
1886
1918
  ) => any;
@@ -2076,6 +2108,12 @@ export declare const UpdateServicePrimaryTaskSetRequestFilterSensitiveLog: (
2076
2108
  export declare const UpdateServicePrimaryTaskSetResponseFilterSensitiveLog: (
2077
2109
  obj: UpdateServicePrimaryTaskSetResponse
2078
2110
  ) => any;
2111
+ export declare const UpdateTaskProtectionRequestFilterSensitiveLog: (
2112
+ obj: UpdateTaskProtectionRequest
2113
+ ) => any;
2114
+ export declare const UpdateTaskProtectionResponseFilterSensitiveLog: (
2115
+ obj: UpdateTaskProtectionResponse
2116
+ ) => any;
2079
2117
  export declare const UpdateTaskSetRequestFilterSensitiveLog: (
2080
2118
  obj: UpdateTaskSetRequest
2081
2119
  ) => any;
@@ -87,6 +87,10 @@ import {
87
87
  ExecuteCommandCommandInput,
88
88
  ExecuteCommandCommandOutput,
89
89
  } from "../commands/ExecuteCommandCommand";
90
+ import {
91
+ GetTaskProtectionCommandInput,
92
+ GetTaskProtectionCommandOutput,
93
+ } from "../commands/GetTaskProtectionCommand";
90
94
  import {
91
95
  ListAccountSettingsCommandInput,
92
96
  ListAccountSettingsCommandOutput,
@@ -207,6 +211,10 @@ import {
207
211
  UpdateServicePrimaryTaskSetCommandInput,
208
212
  UpdateServicePrimaryTaskSetCommandOutput,
209
213
  } from "../commands/UpdateServicePrimaryTaskSetCommand";
214
+ import {
215
+ UpdateTaskProtectionCommandInput,
216
+ UpdateTaskProtectionCommandOutput,
217
+ } from "../commands/UpdateTaskProtectionCommand";
210
218
  import {
211
219
  UpdateTaskSetCommandInput,
212
220
  UpdateTaskSetCommandOutput,
@@ -295,6 +303,10 @@ export declare const serializeAws_json1_1ExecuteCommandCommand: (
295
303
  input: ExecuteCommandCommandInput,
296
304
  context: __SerdeContext
297
305
  ) => Promise<__HttpRequest>;
306
+ export declare const serializeAws_json1_1GetTaskProtectionCommand: (
307
+ input: GetTaskProtectionCommandInput,
308
+ context: __SerdeContext
309
+ ) => Promise<__HttpRequest>;
298
310
  export declare const serializeAws_json1_1ListAccountSettingsCommand: (
299
311
  input: ListAccountSettingsCommandInput,
300
312
  context: __SerdeContext
@@ -415,6 +427,10 @@ export declare const serializeAws_json1_1UpdateServicePrimaryTaskSetCommand: (
415
427
  input: UpdateServicePrimaryTaskSetCommandInput,
416
428
  context: __SerdeContext
417
429
  ) => Promise<__HttpRequest>;
430
+ export declare const serializeAws_json1_1UpdateTaskProtectionCommand: (
431
+ input: UpdateTaskProtectionCommandInput,
432
+ context: __SerdeContext
433
+ ) => Promise<__HttpRequest>;
418
434
  export declare const serializeAws_json1_1UpdateTaskSetCommand: (
419
435
  input: UpdateTaskSetCommandInput,
420
436
  context: __SerdeContext
@@ -503,6 +519,10 @@ export declare const deserializeAws_json1_1ExecuteCommandCommand: (
503
519
  output: __HttpResponse,
504
520
  context: __SerdeContext
505
521
  ) => Promise<ExecuteCommandCommandOutput>;
522
+ export declare const deserializeAws_json1_1GetTaskProtectionCommand: (
523
+ output: __HttpResponse,
524
+ context: __SerdeContext
525
+ ) => Promise<GetTaskProtectionCommandOutput>;
506
526
  export declare const deserializeAws_json1_1ListAccountSettingsCommand: (
507
527
  output: __HttpResponse,
508
528
  context: __SerdeContext
@@ -623,6 +643,10 @@ export declare const deserializeAws_json1_1UpdateServicePrimaryTaskSetCommand: (
623
643
  output: __HttpResponse,
624
644
  context: __SerdeContext
625
645
  ) => Promise<UpdateServicePrimaryTaskSetCommandOutput>;
646
+ export declare const deserializeAws_json1_1UpdateTaskProtectionCommand: (
647
+ output: __HttpResponse,
648
+ context: __SerdeContext
649
+ ) => Promise<UpdateTaskProtectionCommandOutput>;
626
650
  export declare const deserializeAws_json1_1UpdateTaskSetCommand: (
627
651
  output: __HttpResponse,
628
652
  context: __SerdeContext