@aws-sdk/client-ecs 3.309.0 → 3.312.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.
- package/dist-cjs/models/models_0.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +62 -224
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +62 -224
- package/dist-types/ECS.d.ts +11 -11
- package/dist-types/commands/DeleteAccountSettingCommand.d.ts +1 -1
- package/dist-types/commands/ExecuteCommandCommand.d.ts +3 -3
- package/dist-types/commands/ListAccountSettingsCommand.d.ts +1 -1
- package/dist-types/commands/PutAccountSettingCommand.d.ts +10 -10
- package/dist-types/commands/PutAccountSettingDefaultCommand.d.ts +1 -1
- package/dist-types/commands/UpdateTaskProtectionCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +51 -42
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/package.json +36 -36
|
@@ -3,505 +3,337 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
|
|
|
3
3
|
import { ECSServiceException as __BaseException } from "../models/ECSServiceException";
|
|
4
4
|
import { AccessDeniedException, AttributeLimitExceededException, BlockedException, ClientException, ClusterContainsContainerInstancesException, ClusterContainsServicesException, ClusterContainsTasksException, ClusterNotFoundException, InvalidParameterException, LimitExceededException, MissingVersionException, NamespaceNotFoundException, NoUpdateAvailableException, PlatformTaskDefinitionIncompatibilityException, PlatformUnknownException, ResourceInUseException, ResourceNotFoundException, ServerException, ServiceNotActiveException, ServiceNotFoundException, TargetNotConnectedException, TargetNotFoundException, TaskSetNotFoundException, UnsupportedFeatureException, UpdateInProgressException, } from "../models/models_0";
|
|
5
5
|
export const se_CreateCapacityProviderCommand = async (input, context) => {
|
|
6
|
-
const headers =
|
|
7
|
-
"content-type": "application/x-amz-json-1.1",
|
|
8
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.CreateCapacityProvider",
|
|
9
|
-
};
|
|
6
|
+
const headers = sharedHeaders("CreateCapacityProvider");
|
|
10
7
|
let body;
|
|
11
8
|
body = JSON.stringify(se_CreateCapacityProviderRequest(input, context));
|
|
12
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
10
|
};
|
|
14
11
|
export const se_CreateClusterCommand = async (input, context) => {
|
|
15
|
-
const headers =
|
|
16
|
-
"content-type": "application/x-amz-json-1.1",
|
|
17
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.CreateCluster",
|
|
18
|
-
};
|
|
12
|
+
const headers = sharedHeaders("CreateCluster");
|
|
19
13
|
let body;
|
|
20
14
|
body = JSON.stringify(se_CreateClusterRequest(input, context));
|
|
21
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
16
|
};
|
|
23
17
|
export const se_CreateServiceCommand = async (input, context) => {
|
|
24
|
-
const headers =
|
|
25
|
-
"content-type": "application/x-amz-json-1.1",
|
|
26
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.CreateService",
|
|
27
|
-
};
|
|
18
|
+
const headers = sharedHeaders("CreateService");
|
|
28
19
|
let body;
|
|
29
20
|
body = JSON.stringify(se_CreateServiceRequest(input, context));
|
|
30
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
22
|
};
|
|
32
23
|
export const se_CreateTaskSetCommand = async (input, context) => {
|
|
33
|
-
const headers =
|
|
34
|
-
"content-type": "application/x-amz-json-1.1",
|
|
35
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.CreateTaskSet",
|
|
36
|
-
};
|
|
24
|
+
const headers = sharedHeaders("CreateTaskSet");
|
|
37
25
|
let body;
|
|
38
26
|
body = JSON.stringify(se_CreateTaskSetRequest(input, context));
|
|
39
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
28
|
};
|
|
41
29
|
export const se_DeleteAccountSettingCommand = async (input, context) => {
|
|
42
|
-
const headers =
|
|
43
|
-
"content-type": "application/x-amz-json-1.1",
|
|
44
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.DeleteAccountSetting",
|
|
45
|
-
};
|
|
30
|
+
const headers = sharedHeaders("DeleteAccountSetting");
|
|
46
31
|
let body;
|
|
47
32
|
body = JSON.stringify(se_DeleteAccountSettingRequest(input, context));
|
|
48
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
34
|
};
|
|
50
35
|
export const se_DeleteAttributesCommand = async (input, context) => {
|
|
51
|
-
const headers =
|
|
52
|
-
"content-type": "application/x-amz-json-1.1",
|
|
53
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.DeleteAttributes",
|
|
54
|
-
};
|
|
36
|
+
const headers = sharedHeaders("DeleteAttributes");
|
|
55
37
|
let body;
|
|
56
38
|
body = JSON.stringify(se_DeleteAttributesRequest(input, context));
|
|
57
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
40
|
};
|
|
59
41
|
export const se_DeleteCapacityProviderCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.DeleteCapacityProvider",
|
|
63
|
-
};
|
|
42
|
+
const headers = sharedHeaders("DeleteCapacityProvider");
|
|
64
43
|
let body;
|
|
65
44
|
body = JSON.stringify(se_DeleteCapacityProviderRequest(input, context));
|
|
66
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
46
|
};
|
|
68
47
|
export const se_DeleteClusterCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.DeleteCluster",
|
|
72
|
-
};
|
|
48
|
+
const headers = sharedHeaders("DeleteCluster");
|
|
73
49
|
let body;
|
|
74
50
|
body = JSON.stringify(se_DeleteClusterRequest(input, context));
|
|
75
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
52
|
};
|
|
77
53
|
export const se_DeleteServiceCommand = async (input, context) => {
|
|
78
|
-
const headers =
|
|
79
|
-
"content-type": "application/x-amz-json-1.1",
|
|
80
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.DeleteService",
|
|
81
|
-
};
|
|
54
|
+
const headers = sharedHeaders("DeleteService");
|
|
82
55
|
let body;
|
|
83
56
|
body = JSON.stringify(se_DeleteServiceRequest(input, context));
|
|
84
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
58
|
};
|
|
86
59
|
export const se_DeleteTaskDefinitionsCommand = async (input, context) => {
|
|
87
|
-
const headers =
|
|
88
|
-
"content-type": "application/x-amz-json-1.1",
|
|
89
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.DeleteTaskDefinitions",
|
|
90
|
-
};
|
|
60
|
+
const headers = sharedHeaders("DeleteTaskDefinitions");
|
|
91
61
|
let body;
|
|
92
62
|
body = JSON.stringify(se_DeleteTaskDefinitionsRequest(input, context));
|
|
93
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
64
|
};
|
|
95
65
|
export const se_DeleteTaskSetCommand = async (input, context) => {
|
|
96
|
-
const headers =
|
|
97
|
-
"content-type": "application/x-amz-json-1.1",
|
|
98
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.DeleteTaskSet",
|
|
99
|
-
};
|
|
66
|
+
const headers = sharedHeaders("DeleteTaskSet");
|
|
100
67
|
let body;
|
|
101
68
|
body = JSON.stringify(se_DeleteTaskSetRequest(input, context));
|
|
102
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
70
|
};
|
|
104
71
|
export const se_DeregisterContainerInstanceCommand = async (input, context) => {
|
|
105
|
-
const headers =
|
|
106
|
-
"content-type": "application/x-amz-json-1.1",
|
|
107
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.DeregisterContainerInstance",
|
|
108
|
-
};
|
|
72
|
+
const headers = sharedHeaders("DeregisterContainerInstance");
|
|
109
73
|
let body;
|
|
110
74
|
body = JSON.stringify(se_DeregisterContainerInstanceRequest(input, context));
|
|
111
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
76
|
};
|
|
113
77
|
export const se_DeregisterTaskDefinitionCommand = async (input, context) => {
|
|
114
|
-
const headers =
|
|
115
|
-
"content-type": "application/x-amz-json-1.1",
|
|
116
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.DeregisterTaskDefinition",
|
|
117
|
-
};
|
|
78
|
+
const headers = sharedHeaders("DeregisterTaskDefinition");
|
|
118
79
|
let body;
|
|
119
80
|
body = JSON.stringify(se_DeregisterTaskDefinitionRequest(input, context));
|
|
120
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
82
|
};
|
|
122
83
|
export const se_DescribeCapacityProvidersCommand = async (input, context) => {
|
|
123
|
-
const headers =
|
|
124
|
-
"content-type": "application/x-amz-json-1.1",
|
|
125
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.DescribeCapacityProviders",
|
|
126
|
-
};
|
|
84
|
+
const headers = sharedHeaders("DescribeCapacityProviders");
|
|
127
85
|
let body;
|
|
128
86
|
body = JSON.stringify(se_DescribeCapacityProvidersRequest(input, context));
|
|
129
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
88
|
};
|
|
131
89
|
export const se_DescribeClustersCommand = async (input, context) => {
|
|
132
|
-
const headers =
|
|
133
|
-
"content-type": "application/x-amz-json-1.1",
|
|
134
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.DescribeClusters",
|
|
135
|
-
};
|
|
90
|
+
const headers = sharedHeaders("DescribeClusters");
|
|
136
91
|
let body;
|
|
137
92
|
body = JSON.stringify(se_DescribeClustersRequest(input, context));
|
|
138
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
94
|
};
|
|
140
95
|
export const se_DescribeContainerInstancesCommand = async (input, context) => {
|
|
141
|
-
const headers =
|
|
142
|
-
"content-type": "application/x-amz-json-1.1",
|
|
143
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.DescribeContainerInstances",
|
|
144
|
-
};
|
|
96
|
+
const headers = sharedHeaders("DescribeContainerInstances");
|
|
145
97
|
let body;
|
|
146
98
|
body = JSON.stringify(se_DescribeContainerInstancesRequest(input, context));
|
|
147
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
100
|
};
|
|
149
101
|
export const se_DescribeServicesCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.1",
|
|
152
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.DescribeServices",
|
|
153
|
-
};
|
|
102
|
+
const headers = sharedHeaders("DescribeServices");
|
|
154
103
|
let body;
|
|
155
104
|
body = JSON.stringify(se_DescribeServicesRequest(input, context));
|
|
156
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
106
|
};
|
|
158
107
|
export const se_DescribeTaskDefinitionCommand = async (input, context) => {
|
|
159
|
-
const headers =
|
|
160
|
-
"content-type": "application/x-amz-json-1.1",
|
|
161
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.DescribeTaskDefinition",
|
|
162
|
-
};
|
|
108
|
+
const headers = sharedHeaders("DescribeTaskDefinition");
|
|
163
109
|
let body;
|
|
164
110
|
body = JSON.stringify(se_DescribeTaskDefinitionRequest(input, context));
|
|
165
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
112
|
};
|
|
167
113
|
export const se_DescribeTasksCommand = async (input, context) => {
|
|
168
|
-
const headers =
|
|
169
|
-
"content-type": "application/x-amz-json-1.1",
|
|
170
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.DescribeTasks",
|
|
171
|
-
};
|
|
114
|
+
const headers = sharedHeaders("DescribeTasks");
|
|
172
115
|
let body;
|
|
173
116
|
body = JSON.stringify(se_DescribeTasksRequest(input, context));
|
|
174
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
118
|
};
|
|
176
119
|
export const se_DescribeTaskSetsCommand = async (input, context) => {
|
|
177
|
-
const headers =
|
|
178
|
-
"content-type": "application/x-amz-json-1.1",
|
|
179
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.DescribeTaskSets",
|
|
180
|
-
};
|
|
120
|
+
const headers = sharedHeaders("DescribeTaskSets");
|
|
181
121
|
let body;
|
|
182
122
|
body = JSON.stringify(se_DescribeTaskSetsRequest(input, context));
|
|
183
123
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
124
|
};
|
|
185
125
|
export const se_DiscoverPollEndpointCommand = async (input, context) => {
|
|
186
|
-
const headers =
|
|
187
|
-
"content-type": "application/x-amz-json-1.1",
|
|
188
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.DiscoverPollEndpoint",
|
|
189
|
-
};
|
|
126
|
+
const headers = sharedHeaders("DiscoverPollEndpoint");
|
|
190
127
|
let body;
|
|
191
128
|
body = JSON.stringify(se_DiscoverPollEndpointRequest(input, context));
|
|
192
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
130
|
};
|
|
194
131
|
export const se_ExecuteCommandCommand = async (input, context) => {
|
|
195
|
-
const headers =
|
|
196
|
-
"content-type": "application/x-amz-json-1.1",
|
|
197
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.ExecuteCommand",
|
|
198
|
-
};
|
|
132
|
+
const headers = sharedHeaders("ExecuteCommand");
|
|
199
133
|
let body;
|
|
200
134
|
body = JSON.stringify(se_ExecuteCommandRequest(input, context));
|
|
201
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
136
|
};
|
|
203
137
|
export const se_GetTaskProtectionCommand = async (input, context) => {
|
|
204
|
-
const headers =
|
|
205
|
-
"content-type": "application/x-amz-json-1.1",
|
|
206
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.GetTaskProtection",
|
|
207
|
-
};
|
|
138
|
+
const headers = sharedHeaders("GetTaskProtection");
|
|
208
139
|
let body;
|
|
209
140
|
body = JSON.stringify(se_GetTaskProtectionRequest(input, context));
|
|
210
141
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
142
|
};
|
|
212
143
|
export const se_ListAccountSettingsCommand = async (input, context) => {
|
|
213
|
-
const headers =
|
|
214
|
-
"content-type": "application/x-amz-json-1.1",
|
|
215
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.ListAccountSettings",
|
|
216
|
-
};
|
|
144
|
+
const headers = sharedHeaders("ListAccountSettings");
|
|
217
145
|
let body;
|
|
218
146
|
body = JSON.stringify(se_ListAccountSettingsRequest(input, context));
|
|
219
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
148
|
};
|
|
221
149
|
export const se_ListAttributesCommand = async (input, context) => {
|
|
222
|
-
const headers =
|
|
223
|
-
"content-type": "application/x-amz-json-1.1",
|
|
224
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.ListAttributes",
|
|
225
|
-
};
|
|
150
|
+
const headers = sharedHeaders("ListAttributes");
|
|
226
151
|
let body;
|
|
227
152
|
body = JSON.stringify(se_ListAttributesRequest(input, context));
|
|
228
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
229
154
|
};
|
|
230
155
|
export const se_ListClustersCommand = async (input, context) => {
|
|
231
|
-
const headers =
|
|
232
|
-
"content-type": "application/x-amz-json-1.1",
|
|
233
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.ListClusters",
|
|
234
|
-
};
|
|
156
|
+
const headers = sharedHeaders("ListClusters");
|
|
235
157
|
let body;
|
|
236
158
|
body = JSON.stringify(se_ListClustersRequest(input, context));
|
|
237
159
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
160
|
};
|
|
239
161
|
export const se_ListContainerInstancesCommand = async (input, context) => {
|
|
240
|
-
const headers =
|
|
241
|
-
"content-type": "application/x-amz-json-1.1",
|
|
242
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.ListContainerInstances",
|
|
243
|
-
};
|
|
162
|
+
const headers = sharedHeaders("ListContainerInstances");
|
|
244
163
|
let body;
|
|
245
164
|
body = JSON.stringify(se_ListContainerInstancesRequest(input, context));
|
|
246
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
166
|
};
|
|
248
167
|
export const se_ListServicesCommand = async (input, context) => {
|
|
249
|
-
const headers =
|
|
250
|
-
"content-type": "application/x-amz-json-1.1",
|
|
251
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.ListServices",
|
|
252
|
-
};
|
|
168
|
+
const headers = sharedHeaders("ListServices");
|
|
253
169
|
let body;
|
|
254
170
|
body = JSON.stringify(se_ListServicesRequest(input, context));
|
|
255
171
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
256
172
|
};
|
|
257
173
|
export const se_ListServicesByNamespaceCommand = async (input, context) => {
|
|
258
|
-
const headers =
|
|
259
|
-
"content-type": "application/x-amz-json-1.1",
|
|
260
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.ListServicesByNamespace",
|
|
261
|
-
};
|
|
174
|
+
const headers = sharedHeaders("ListServicesByNamespace");
|
|
262
175
|
let body;
|
|
263
176
|
body = JSON.stringify(se_ListServicesByNamespaceRequest(input, context));
|
|
264
177
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
265
178
|
};
|
|
266
179
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
267
|
-
const headers =
|
|
268
|
-
"content-type": "application/x-amz-json-1.1",
|
|
269
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.ListTagsForResource",
|
|
270
|
-
};
|
|
180
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
271
181
|
let body;
|
|
272
182
|
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
273
183
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
274
184
|
};
|
|
275
185
|
export const se_ListTaskDefinitionFamiliesCommand = async (input, context) => {
|
|
276
|
-
const headers =
|
|
277
|
-
"content-type": "application/x-amz-json-1.1",
|
|
278
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.ListTaskDefinitionFamilies",
|
|
279
|
-
};
|
|
186
|
+
const headers = sharedHeaders("ListTaskDefinitionFamilies");
|
|
280
187
|
let body;
|
|
281
188
|
body = JSON.stringify(se_ListTaskDefinitionFamiliesRequest(input, context));
|
|
282
189
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
283
190
|
};
|
|
284
191
|
export const se_ListTaskDefinitionsCommand = async (input, context) => {
|
|
285
|
-
const headers =
|
|
286
|
-
"content-type": "application/x-amz-json-1.1",
|
|
287
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.ListTaskDefinitions",
|
|
288
|
-
};
|
|
192
|
+
const headers = sharedHeaders("ListTaskDefinitions");
|
|
289
193
|
let body;
|
|
290
194
|
body = JSON.stringify(se_ListTaskDefinitionsRequest(input, context));
|
|
291
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
292
196
|
};
|
|
293
197
|
export const se_ListTasksCommand = async (input, context) => {
|
|
294
|
-
const headers =
|
|
295
|
-
"content-type": "application/x-amz-json-1.1",
|
|
296
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.ListTasks",
|
|
297
|
-
};
|
|
198
|
+
const headers = sharedHeaders("ListTasks");
|
|
298
199
|
let body;
|
|
299
200
|
body = JSON.stringify(se_ListTasksRequest(input, context));
|
|
300
201
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
301
202
|
};
|
|
302
203
|
export const se_PutAccountSettingCommand = async (input, context) => {
|
|
303
|
-
const headers =
|
|
304
|
-
"content-type": "application/x-amz-json-1.1",
|
|
305
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.PutAccountSetting",
|
|
306
|
-
};
|
|
204
|
+
const headers = sharedHeaders("PutAccountSetting");
|
|
307
205
|
let body;
|
|
308
206
|
body = JSON.stringify(se_PutAccountSettingRequest(input, context));
|
|
309
207
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
310
208
|
};
|
|
311
209
|
export const se_PutAccountSettingDefaultCommand = async (input, context) => {
|
|
312
|
-
const headers =
|
|
313
|
-
"content-type": "application/x-amz-json-1.1",
|
|
314
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.PutAccountSettingDefault",
|
|
315
|
-
};
|
|
210
|
+
const headers = sharedHeaders("PutAccountSettingDefault");
|
|
316
211
|
let body;
|
|
317
212
|
body = JSON.stringify(se_PutAccountSettingDefaultRequest(input, context));
|
|
318
213
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
319
214
|
};
|
|
320
215
|
export const se_PutAttributesCommand = async (input, context) => {
|
|
321
|
-
const headers =
|
|
322
|
-
"content-type": "application/x-amz-json-1.1",
|
|
323
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.PutAttributes",
|
|
324
|
-
};
|
|
216
|
+
const headers = sharedHeaders("PutAttributes");
|
|
325
217
|
let body;
|
|
326
218
|
body = JSON.stringify(se_PutAttributesRequest(input, context));
|
|
327
219
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
328
220
|
};
|
|
329
221
|
export const se_PutClusterCapacityProvidersCommand = async (input, context) => {
|
|
330
|
-
const headers =
|
|
331
|
-
"content-type": "application/x-amz-json-1.1",
|
|
332
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.PutClusterCapacityProviders",
|
|
333
|
-
};
|
|
222
|
+
const headers = sharedHeaders("PutClusterCapacityProviders");
|
|
334
223
|
let body;
|
|
335
224
|
body = JSON.stringify(se_PutClusterCapacityProvidersRequest(input, context));
|
|
336
225
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
226
|
};
|
|
338
227
|
export const se_RegisterContainerInstanceCommand = async (input, context) => {
|
|
339
|
-
const headers =
|
|
340
|
-
"content-type": "application/x-amz-json-1.1",
|
|
341
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.RegisterContainerInstance",
|
|
342
|
-
};
|
|
228
|
+
const headers = sharedHeaders("RegisterContainerInstance");
|
|
343
229
|
let body;
|
|
344
230
|
body = JSON.stringify(se_RegisterContainerInstanceRequest(input, context));
|
|
345
231
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
346
232
|
};
|
|
347
233
|
export const se_RegisterTaskDefinitionCommand = async (input, context) => {
|
|
348
|
-
const headers =
|
|
349
|
-
"content-type": "application/x-amz-json-1.1",
|
|
350
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.RegisterTaskDefinition",
|
|
351
|
-
};
|
|
234
|
+
const headers = sharedHeaders("RegisterTaskDefinition");
|
|
352
235
|
let body;
|
|
353
236
|
body = JSON.stringify(se_RegisterTaskDefinitionRequest(input, context));
|
|
354
237
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
355
238
|
};
|
|
356
239
|
export const se_RunTaskCommand = async (input, context) => {
|
|
357
|
-
const headers =
|
|
358
|
-
"content-type": "application/x-amz-json-1.1",
|
|
359
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.RunTask",
|
|
360
|
-
};
|
|
240
|
+
const headers = sharedHeaders("RunTask");
|
|
361
241
|
let body;
|
|
362
242
|
body = JSON.stringify(se_RunTaskRequest(input, context));
|
|
363
243
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
364
244
|
};
|
|
365
245
|
export const se_StartTaskCommand = async (input, context) => {
|
|
366
|
-
const headers =
|
|
367
|
-
"content-type": "application/x-amz-json-1.1",
|
|
368
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.StartTask",
|
|
369
|
-
};
|
|
246
|
+
const headers = sharedHeaders("StartTask");
|
|
370
247
|
let body;
|
|
371
248
|
body = JSON.stringify(se_StartTaskRequest(input, context));
|
|
372
249
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
373
250
|
};
|
|
374
251
|
export const se_StopTaskCommand = async (input, context) => {
|
|
375
|
-
const headers =
|
|
376
|
-
"content-type": "application/x-amz-json-1.1",
|
|
377
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.StopTask",
|
|
378
|
-
};
|
|
252
|
+
const headers = sharedHeaders("StopTask");
|
|
379
253
|
let body;
|
|
380
254
|
body = JSON.stringify(se_StopTaskRequest(input, context));
|
|
381
255
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
382
256
|
};
|
|
383
257
|
export const se_SubmitAttachmentStateChangesCommand = async (input, context) => {
|
|
384
|
-
const headers =
|
|
385
|
-
"content-type": "application/x-amz-json-1.1",
|
|
386
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.SubmitAttachmentStateChanges",
|
|
387
|
-
};
|
|
258
|
+
const headers = sharedHeaders("SubmitAttachmentStateChanges");
|
|
388
259
|
let body;
|
|
389
260
|
body = JSON.stringify(se_SubmitAttachmentStateChangesRequest(input, context));
|
|
390
261
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
391
262
|
};
|
|
392
263
|
export const se_SubmitContainerStateChangeCommand = async (input, context) => {
|
|
393
|
-
const headers =
|
|
394
|
-
"content-type": "application/x-amz-json-1.1",
|
|
395
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.SubmitContainerStateChange",
|
|
396
|
-
};
|
|
264
|
+
const headers = sharedHeaders("SubmitContainerStateChange");
|
|
397
265
|
let body;
|
|
398
266
|
body = JSON.stringify(se_SubmitContainerStateChangeRequest(input, context));
|
|
399
267
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
400
268
|
};
|
|
401
269
|
export const se_SubmitTaskStateChangeCommand = async (input, context) => {
|
|
402
|
-
const headers =
|
|
403
|
-
"content-type": "application/x-amz-json-1.1",
|
|
404
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.SubmitTaskStateChange",
|
|
405
|
-
};
|
|
270
|
+
const headers = sharedHeaders("SubmitTaskStateChange");
|
|
406
271
|
let body;
|
|
407
272
|
body = JSON.stringify(se_SubmitTaskStateChangeRequest(input, context));
|
|
408
273
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
409
274
|
};
|
|
410
275
|
export const se_TagResourceCommand = async (input, context) => {
|
|
411
|
-
const headers =
|
|
412
|
-
"content-type": "application/x-amz-json-1.1",
|
|
413
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.TagResource",
|
|
414
|
-
};
|
|
276
|
+
const headers = sharedHeaders("TagResource");
|
|
415
277
|
let body;
|
|
416
278
|
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
417
279
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
418
280
|
};
|
|
419
281
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
420
|
-
const headers =
|
|
421
|
-
"content-type": "application/x-amz-json-1.1",
|
|
422
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.UntagResource",
|
|
423
|
-
};
|
|
282
|
+
const headers = sharedHeaders("UntagResource");
|
|
424
283
|
let body;
|
|
425
284
|
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
426
285
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
427
286
|
};
|
|
428
287
|
export const se_UpdateCapacityProviderCommand = async (input, context) => {
|
|
429
|
-
const headers =
|
|
430
|
-
"content-type": "application/x-amz-json-1.1",
|
|
431
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.UpdateCapacityProvider",
|
|
432
|
-
};
|
|
288
|
+
const headers = sharedHeaders("UpdateCapacityProvider");
|
|
433
289
|
let body;
|
|
434
290
|
body = JSON.stringify(se_UpdateCapacityProviderRequest(input, context));
|
|
435
291
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
436
292
|
};
|
|
437
293
|
export const se_UpdateClusterCommand = async (input, context) => {
|
|
438
|
-
const headers =
|
|
439
|
-
"content-type": "application/x-amz-json-1.1",
|
|
440
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.UpdateCluster",
|
|
441
|
-
};
|
|
294
|
+
const headers = sharedHeaders("UpdateCluster");
|
|
442
295
|
let body;
|
|
443
296
|
body = JSON.stringify(se_UpdateClusterRequest(input, context));
|
|
444
297
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
445
298
|
};
|
|
446
299
|
export const se_UpdateClusterSettingsCommand = async (input, context) => {
|
|
447
|
-
const headers =
|
|
448
|
-
"content-type": "application/x-amz-json-1.1",
|
|
449
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.UpdateClusterSettings",
|
|
450
|
-
};
|
|
300
|
+
const headers = sharedHeaders("UpdateClusterSettings");
|
|
451
301
|
let body;
|
|
452
302
|
body = JSON.stringify(se_UpdateClusterSettingsRequest(input, context));
|
|
453
303
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
454
304
|
};
|
|
455
305
|
export const se_UpdateContainerAgentCommand = async (input, context) => {
|
|
456
|
-
const headers =
|
|
457
|
-
"content-type": "application/x-amz-json-1.1",
|
|
458
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.UpdateContainerAgent",
|
|
459
|
-
};
|
|
306
|
+
const headers = sharedHeaders("UpdateContainerAgent");
|
|
460
307
|
let body;
|
|
461
308
|
body = JSON.stringify(se_UpdateContainerAgentRequest(input, context));
|
|
462
309
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
463
310
|
};
|
|
464
311
|
export const se_UpdateContainerInstancesStateCommand = async (input, context) => {
|
|
465
|
-
const headers =
|
|
466
|
-
"content-type": "application/x-amz-json-1.1",
|
|
467
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.UpdateContainerInstancesState",
|
|
468
|
-
};
|
|
312
|
+
const headers = sharedHeaders("UpdateContainerInstancesState");
|
|
469
313
|
let body;
|
|
470
314
|
body = JSON.stringify(se_UpdateContainerInstancesStateRequest(input, context));
|
|
471
315
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
472
316
|
};
|
|
473
317
|
export const se_UpdateServiceCommand = async (input, context) => {
|
|
474
|
-
const headers =
|
|
475
|
-
"content-type": "application/x-amz-json-1.1",
|
|
476
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.UpdateService",
|
|
477
|
-
};
|
|
318
|
+
const headers = sharedHeaders("UpdateService");
|
|
478
319
|
let body;
|
|
479
320
|
body = JSON.stringify(se_UpdateServiceRequest(input, context));
|
|
480
321
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
481
322
|
};
|
|
482
323
|
export const se_UpdateServicePrimaryTaskSetCommand = async (input, context) => {
|
|
483
|
-
const headers =
|
|
484
|
-
"content-type": "application/x-amz-json-1.1",
|
|
485
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.UpdateServicePrimaryTaskSet",
|
|
486
|
-
};
|
|
324
|
+
const headers = sharedHeaders("UpdateServicePrimaryTaskSet");
|
|
487
325
|
let body;
|
|
488
326
|
body = JSON.stringify(se_UpdateServicePrimaryTaskSetRequest(input, context));
|
|
489
327
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
490
328
|
};
|
|
491
329
|
export const se_UpdateTaskProtectionCommand = async (input, context) => {
|
|
492
|
-
const headers =
|
|
493
|
-
"content-type": "application/x-amz-json-1.1",
|
|
494
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.UpdateTaskProtection",
|
|
495
|
-
};
|
|
330
|
+
const headers = sharedHeaders("UpdateTaskProtection");
|
|
496
331
|
let body;
|
|
497
332
|
body = JSON.stringify(se_UpdateTaskProtectionRequest(input, context));
|
|
498
333
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
499
334
|
};
|
|
500
335
|
export const se_UpdateTaskSetCommand = async (input, context) => {
|
|
501
|
-
const headers =
|
|
502
|
-
"content-type": "application/x-amz-json-1.1",
|
|
503
|
-
"x-amz-target": "AmazonEC2ContainerServiceV20141113.UpdateTaskSet",
|
|
504
|
-
};
|
|
336
|
+
const headers = sharedHeaders("UpdateTaskSet");
|
|
505
337
|
let body;
|
|
506
338
|
body = JSON.stringify(se_UpdateTaskSetRequest(input, context));
|
|
507
339
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -6670,6 +6502,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
6670
6502
|
}
|
|
6671
6503
|
return new __HttpRequest(contents);
|
|
6672
6504
|
};
|
|
6505
|
+
function sharedHeaders(operation) {
|
|
6506
|
+
return {
|
|
6507
|
+
"content-type": "application/x-amz-json-1.1",
|
|
6508
|
+
"x-amz-target": `AmazonEC2ContainerServiceV20141113.${operation}`,
|
|
6509
|
+
};
|
|
6510
|
+
}
|
|
6673
6511
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
6674
6512
|
if (encoded.length) {
|
|
6675
6513
|
return JSON.parse(encoded);
|
package/dist-types/ECS.d.ts
CHANGED
|
@@ -424,7 +424,7 @@ export declare class ECS extends ECSClient {
|
|
|
424
424
|
* statement, for example limit the actions to a specific cluster, you receive an
|
|
425
425
|
* <code>AccessDeniedException</code> when there is a mismatch between the condition
|
|
426
426
|
* key value and the corresponding parameter value.</p>
|
|
427
|
-
* <p>For information about required permissions and considerations, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-exec.
|
|
427
|
+
* <p>For information about required permissions and considerations, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-exec.html">Using Amazon ECS Exec for
|
|
428
428
|
* debugging</a> in the <i>Amazon ECS Developer Guide</i>. </p>
|
|
429
429
|
*/
|
|
430
430
|
executeCommand(args: ExecuteCommandCommandInput, options?: __HttpHandlerOptions): Promise<ExecuteCommandCommandOutput>;
|
|
@@ -535,9 +535,9 @@ export declare class ECS extends ECSClient {
|
|
|
535
535
|
/**
|
|
536
536
|
* @public
|
|
537
537
|
* <p>Modifies an account setting. Account settings are set on a per-Region basis.</p>
|
|
538
|
-
* <p>If you change the account setting
|
|
539
|
-
*
|
|
540
|
-
*
|
|
538
|
+
* <p>If you change the root user account setting, the default settings are reset for users
|
|
539
|
+
* and roles that do not have specified individual account settings. For more information,
|
|
540
|
+
* see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html">Account
|
|
541
541
|
* Settings</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
542
542
|
* <p>When <code>serviceLongArnFormat</code>, <code>taskLongArnFormat</code>, or
|
|
543
543
|
* <code>containerInstanceLongArnFormat</code> are specified, the Amazon Resource Name
|
|
@@ -548,15 +548,15 @@ export declare class ECS extends ECSClient {
|
|
|
548
548
|
* must turn on this setting to use Amazon ECS features such as resource tagging.</p>
|
|
549
549
|
* <p>When <code>awsvpcTrunking</code> is specified, the elastic network interface (ENI)
|
|
550
550
|
* limit for any new container instances that support the feature is changed. If
|
|
551
|
-
* <code>awsvpcTrunking</code> is
|
|
551
|
+
* <code>awsvpcTrunking</code> is turned on, any new container instances that support the
|
|
552
552
|
* feature are launched have the increased ENI limits available to them. For more
|
|
553
553
|
* information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container-instance-eni.html">Elastic Network
|
|
554
554
|
* Interface Trunking</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
555
|
-
* <p>When <code>containerInsights</code> is specified, the default setting indicating
|
|
556
|
-
*
|
|
557
|
-
* <code>containerInsights</code> is
|
|
558
|
-
* have Container Insights
|
|
559
|
-
* information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cloudwatch-container-insights.html">CloudWatch
|
|
555
|
+
* <p>When <code>containerInsights</code> is specified, the default setting indicating whether
|
|
556
|
+
* Amazon Web Services CloudWatch Container Insights is turned on for your clusters is changed. If
|
|
557
|
+
* <code>containerInsights</code> is turned on, any new clusters that are created will
|
|
558
|
+
* have Container Insights turned on unless you disable it during cluster creation. For
|
|
559
|
+
* more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cloudwatch-container-insights.html">CloudWatch
|
|
560
560
|
* Container Insights</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
561
561
|
*/
|
|
562
562
|
putAccountSetting(args: PutAccountSettingCommandInput, options?: __HttpHandlerOptions): Promise<PutAccountSettingCommandOutput>;
|
|
@@ -999,7 +999,7 @@ export declare class ECS extends ECSClient {
|
|
|
999
999
|
* <code>true</code> to protect your task from termination during scale-in events from
|
|
1000
1000
|
* <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-auto-scaling.html">Service
|
|
1001
1001
|
* Autoscaling</a> or <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html">deployments</a>.</p>
|
|
1002
|
-
* <p>Task-protection, by default, expires after 2 hours at which point Amazon ECS
|
|
1002
|
+
* <p>Task-protection, by default, expires after 2 hours at which point Amazon ECS clears the
|
|
1003
1003
|
* <code>protectionEnabled</code> property making the task eligible for termination by
|
|
1004
1004
|
* a subsequent scale-in event.</p>
|
|
1005
1005
|
* <p>You can specify a custom expiration period for task protection from 1 minute to up to
|
|
@@ -28,7 +28,7 @@ export interface DeleteAccountSettingCommandOutput extends DeleteAccountSettingR
|
|
|
28
28
|
* // const { ECSClient, DeleteAccountSettingCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
29
29
|
* const client = new ECSClient(config);
|
|
30
30
|
* const input = { // DeleteAccountSettingRequest
|
|
31
|
-
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights", // required
|
|
31
|
+
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode", // required
|
|
32
32
|
* principalArn: "STRING_VALUE",
|
|
33
33
|
* };
|
|
34
34
|
* const command = new DeleteAccountSettingCommand(input);
|