@aws-sdk/client-ecs 3.935.0 → 3.937.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 (40) hide show
  1. package/README.md +32 -0
  2. package/dist-cjs/index.js +526 -45
  3. package/dist-es/ECS.js +8 -0
  4. package/dist-es/commands/CreateExpressGatewayServiceCommand.js +16 -0
  5. package/dist-es/commands/DeleteExpressGatewayServiceCommand.js +16 -0
  6. package/dist-es/commands/DescribeExpressGatewayServiceCommand.js +16 -0
  7. package/dist-es/commands/UpdateExpressGatewayServiceCommand.js +16 -0
  8. package/dist-es/commands/index.js +4 -0
  9. package/dist-es/models/enums.js +28 -0
  10. package/dist-es/models/errors.js +8 -8
  11. package/dist-es/schemas/schemas_0.js +429 -37
  12. package/dist-types/ECS.d.ts +28 -0
  13. package/dist-types/ECSClient.d.ts +6 -2
  14. package/dist-types/commands/CreateExpressGatewayServiceCommand.d.ts +240 -0
  15. package/dist-types/commands/CreateServiceCommand.d.ts +10 -0
  16. package/dist-types/commands/DeleteExpressGatewayServiceCommand.d.ts +187 -0
  17. package/dist-types/commands/DeleteServiceCommand.d.ts +10 -0
  18. package/dist-types/commands/DescribeExpressGatewayServiceCommand.d.ts +184 -0
  19. package/dist-types/commands/DescribeServiceRevisionsCommand.d.ts +105 -0
  20. package/dist-types/commands/DescribeServicesCommand.d.ts +10 -0
  21. package/dist-types/commands/ListServicesCommand.d.ts +1 -0
  22. package/dist-types/commands/UpdateExpressGatewayServiceCommand.d.ts +222 -0
  23. package/dist-types/commands/UpdateServiceCommand.d.ts +10 -0
  24. package/dist-types/commands/index.d.ts +4 -0
  25. package/dist-types/models/enums.d.ts +76 -0
  26. package/dist-types/models/errors.d.ts +12 -12
  27. package/dist-types/models/models_0.d.ts +3808 -2758
  28. package/dist-types/schemas/schemas_0.d.ts +46 -0
  29. package/dist-types/ts3.4/ECS.d.ts +68 -0
  30. package/dist-types/ts3.4/ECSClient.d.ts +24 -0
  31. package/dist-types/ts3.4/commands/CreateExpressGatewayServiceCommand.d.ts +51 -0
  32. package/dist-types/ts3.4/commands/DeleteExpressGatewayServiceCommand.d.ts +51 -0
  33. package/dist-types/ts3.4/commands/DescribeExpressGatewayServiceCommand.d.ts +51 -0
  34. package/dist-types/ts3.4/commands/UpdateExpressGatewayServiceCommand.d.ts +51 -0
  35. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  36. package/dist-types/ts3.4/models/enums.d.ts +39 -0
  37. package/dist-types/ts3.4/models/errors.d.ts +6 -6
  38. package/dist-types/ts3.4/models/models_0.d.ts +229 -4
  39. package/dist-types/ts3.4/schemas/schemas_0.d.ts +46 -0
  40. package/package.json +12 -12
package/dist-es/ECS.js CHANGED
@@ -1,12 +1,14 @@
1
1
  import { createAggregatedClient } from "@smithy/smithy-client";
2
2
  import { CreateCapacityProviderCommand, } from "./commands/CreateCapacityProviderCommand";
3
3
  import { CreateClusterCommand, } from "./commands/CreateClusterCommand";
4
+ import { CreateExpressGatewayServiceCommand, } from "./commands/CreateExpressGatewayServiceCommand";
4
5
  import { CreateServiceCommand, } from "./commands/CreateServiceCommand";
5
6
  import { CreateTaskSetCommand, } from "./commands/CreateTaskSetCommand";
6
7
  import { DeleteAccountSettingCommand, } from "./commands/DeleteAccountSettingCommand";
7
8
  import { DeleteAttributesCommand, } from "./commands/DeleteAttributesCommand";
8
9
  import { DeleteCapacityProviderCommand, } from "./commands/DeleteCapacityProviderCommand";
9
10
  import { DeleteClusterCommand, } from "./commands/DeleteClusterCommand";
11
+ import { DeleteExpressGatewayServiceCommand, } from "./commands/DeleteExpressGatewayServiceCommand";
10
12
  import { DeleteServiceCommand, } from "./commands/DeleteServiceCommand";
11
13
  import { DeleteTaskDefinitionsCommand, } from "./commands/DeleteTaskDefinitionsCommand";
12
14
  import { DeleteTaskSetCommand, } from "./commands/DeleteTaskSetCommand";
@@ -15,6 +17,7 @@ import { DeregisterTaskDefinitionCommand, } from "./commands/DeregisterTaskDefin
15
17
  import { DescribeCapacityProvidersCommand, } from "./commands/DescribeCapacityProvidersCommand";
16
18
  import { DescribeClustersCommand, } from "./commands/DescribeClustersCommand";
17
19
  import { DescribeContainerInstancesCommand, } from "./commands/DescribeContainerInstancesCommand";
20
+ import { DescribeExpressGatewayServiceCommand, } from "./commands/DescribeExpressGatewayServiceCommand";
18
21
  import { DescribeServiceDeploymentsCommand, } from "./commands/DescribeServiceDeploymentsCommand";
19
22
  import { DescribeServiceRevisionsCommand, } from "./commands/DescribeServiceRevisionsCommand";
20
23
  import { DescribeServicesCommand, } from "./commands/DescribeServicesCommand";
@@ -55,6 +58,7 @@ import { UpdateClusterCommand, } from "./commands/UpdateClusterCommand";
55
58
  import { UpdateClusterSettingsCommand, } from "./commands/UpdateClusterSettingsCommand";
56
59
  import { UpdateContainerAgentCommand, } from "./commands/UpdateContainerAgentCommand";
57
60
  import { UpdateContainerInstancesStateCommand, } from "./commands/UpdateContainerInstancesStateCommand";
61
+ import { UpdateExpressGatewayServiceCommand, } from "./commands/UpdateExpressGatewayServiceCommand";
58
62
  import { UpdateServiceCommand, } from "./commands/UpdateServiceCommand";
59
63
  import { UpdateServicePrimaryTaskSetCommand, } from "./commands/UpdateServicePrimaryTaskSetCommand";
60
64
  import { UpdateTaskProtectionCommand, } from "./commands/UpdateTaskProtectionCommand";
@@ -63,12 +67,14 @@ import { ECSClient } from "./ECSClient";
63
67
  const commands = {
64
68
  CreateCapacityProviderCommand,
65
69
  CreateClusterCommand,
70
+ CreateExpressGatewayServiceCommand,
66
71
  CreateServiceCommand,
67
72
  CreateTaskSetCommand,
68
73
  DeleteAccountSettingCommand,
69
74
  DeleteAttributesCommand,
70
75
  DeleteCapacityProviderCommand,
71
76
  DeleteClusterCommand,
77
+ DeleteExpressGatewayServiceCommand,
72
78
  DeleteServiceCommand,
73
79
  DeleteTaskDefinitionsCommand,
74
80
  DeleteTaskSetCommand,
@@ -77,6 +83,7 @@ const commands = {
77
83
  DescribeCapacityProvidersCommand,
78
84
  DescribeClustersCommand,
79
85
  DescribeContainerInstancesCommand,
86
+ DescribeExpressGatewayServiceCommand,
80
87
  DescribeServiceDeploymentsCommand,
81
88
  DescribeServiceRevisionsCommand,
82
89
  DescribeServicesCommand,
@@ -117,6 +124,7 @@ const commands = {
117
124
  UpdateClusterSettingsCommand,
118
125
  UpdateContainerAgentCommand,
119
126
  UpdateContainerInstancesStateCommand,
127
+ UpdateExpressGatewayServiceCommand,
120
128
  UpdateServiceCommand,
121
129
  UpdateServicePrimaryTaskSetCommand,
122
130
  UpdateTaskProtectionCommand,
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { CreateExpressGatewayService } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class CreateExpressGatewayServiceCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonEC2ContainerServiceV20141113", "CreateExpressGatewayService", {})
13
+ .n("ECSClient", "CreateExpressGatewayServiceCommand")
14
+ .sc(CreateExpressGatewayService)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DeleteExpressGatewayService } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DeleteExpressGatewayServiceCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonEC2ContainerServiceV20141113", "DeleteExpressGatewayService", {})
13
+ .n("ECSClient", "DeleteExpressGatewayServiceCommand")
14
+ .sc(DeleteExpressGatewayService)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DescribeExpressGatewayService } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DescribeExpressGatewayServiceCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonEC2ContainerServiceV20141113", "DescribeExpressGatewayService", {})
13
+ .n("ECSClient", "DescribeExpressGatewayServiceCommand")
14
+ .sc(DescribeExpressGatewayService)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UpdateExpressGatewayService } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UpdateExpressGatewayServiceCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonEC2ContainerServiceV20141113", "UpdateExpressGatewayService", {})
13
+ .n("ECSClient", "UpdateExpressGatewayServiceCommand")
14
+ .sc(UpdateExpressGatewayService)
15
+ .build() {
16
+ }
@@ -1,11 +1,13 @@
1
1
  export * from "./CreateCapacityProviderCommand";
2
2
  export * from "./CreateClusterCommand";
3
+ export * from "./CreateExpressGatewayServiceCommand";
3
4
  export * from "./CreateServiceCommand";
4
5
  export * from "./CreateTaskSetCommand";
5
6
  export * from "./DeleteAccountSettingCommand";
6
7
  export * from "./DeleteAttributesCommand";
7
8
  export * from "./DeleteCapacityProviderCommand";
8
9
  export * from "./DeleteClusterCommand";
10
+ export * from "./DeleteExpressGatewayServiceCommand";
9
11
  export * from "./DeleteServiceCommand";
10
12
  export * from "./DeleteTaskDefinitionsCommand";
11
13
  export * from "./DeleteTaskSetCommand";
@@ -14,6 +16,7 @@ export * from "./DeregisterTaskDefinitionCommand";
14
16
  export * from "./DescribeCapacityProvidersCommand";
15
17
  export * from "./DescribeClustersCommand";
16
18
  export * from "./DescribeContainerInstancesCommand";
19
+ export * from "./DescribeExpressGatewayServiceCommand";
17
20
  export * from "./DescribeServiceDeploymentsCommand";
18
21
  export * from "./DescribeServiceRevisionsCommand";
19
22
  export * from "./DescribeServicesCommand";
@@ -54,6 +57,7 @@ export * from "./UpdateClusterCommand";
54
57
  export * from "./UpdateClusterSettingsCommand";
55
58
  export * from "./UpdateContainerAgentCommand";
56
59
  export * from "./UpdateContainerInstancesStateCommand";
60
+ export * from "./UpdateExpressGatewayServiceCommand";
57
61
  export * from "./UpdateServiceCommand";
58
62
  export * from "./UpdateServicePrimaryTaskSetCommand";
59
63
  export * from "./UpdateTaskProtectionCommand";
@@ -24,6 +24,10 @@ export const AcceleratorType = {
24
24
  GPU: "gpu",
25
25
  INFERENCE: "inference",
26
26
  };
27
+ export const AccessType = {
28
+ PRIVATE: "PRIVATE",
29
+ PUBLIC: "PUBLIC",
30
+ };
27
31
  export const AgentUpdateStatus = {
28
32
  FAILED: "FAILED",
29
33
  PENDING: "PENDING",
@@ -111,6 +115,16 @@ export const ExecuteCommandLogging = {
111
115
  export const ClusterSettingName = {
112
116
  CONTAINER_INSIGHTS: "containerInsights",
113
117
  };
118
+ export const ExpressGatewayServiceScalingMetric = {
119
+ AverageCPUUtilization: "AVERAGE_CPU",
120
+ AverageMemoryUtilization: "AVERAGE_MEMORY",
121
+ RequestCountPerTarget: "REQUEST_COUNT_PER_TARGET",
122
+ };
123
+ export const ExpressGatewayServiceStatusCode = {
124
+ ACTIVE: "ACTIVE",
125
+ DRAINING: "DRAINING",
126
+ INACTIVE: "INACTIVE",
127
+ };
114
128
  export const AvailabilityZoneRebalancing = {
115
129
  DISABLED: "DISABLED",
116
130
  ENABLED: "ENABLED",
@@ -195,6 +209,10 @@ export const DeploymentRolloutState = {
195
209
  FAILED: "FAILED",
196
210
  IN_PROGRESS: "IN_PROGRESS",
197
211
  };
212
+ export const ResourceManagementType = {
213
+ CUSTOMER: "CUSTOMER",
214
+ ECS: "ECS",
215
+ };
198
216
  export const ScaleUnit = {
199
217
  PERCENT: "PERCENT",
200
218
  };
@@ -356,6 +374,9 @@ export const ContainerInstanceField = {
356
374
  CONTAINER_INSTANCE_HEALTH: "CONTAINER_INSTANCE_HEALTH",
357
375
  TAGS: "TAGS",
358
376
  };
377
+ export const ExpressGatewayServiceInclude = {
378
+ TAGS: "TAGS",
379
+ };
359
380
  export const ServiceDeploymentRollbackMonitorsStatus = {
360
381
  DISABLED: "DISABLED",
361
382
  MONITORING: "MONITORING",
@@ -385,6 +406,13 @@ export const ServiceDeploymentStatus = {
385
406
  STOP_REQUESTED: "STOP_REQUESTED",
386
407
  SUCCESSFUL: "SUCCESSFUL",
387
408
  };
409
+ export const ManagedResourceStatus = {
410
+ ACTIVE: "ACTIVE",
411
+ DELETED: "DELETED",
412
+ DEPROVISIONING: "DEPROVISIONING",
413
+ FAILED: "FAILED",
414
+ PROVISIONING: "PROVISIONING",
415
+ };
388
416
  export const ServiceField = {
389
417
  TAGS: "TAGS",
390
418
  };
@@ -227,28 +227,28 @@ export class TaskSetNotFoundException extends __BaseException {
227
227
  Object.setPrototypeOf(this, TaskSetNotFoundException.prototype);
228
228
  }
229
229
  }
230
- export class TargetNotConnectedException extends __BaseException {
231
- name = "TargetNotConnectedException";
230
+ export class ResourceNotFoundException extends __BaseException {
231
+ name = "ResourceNotFoundException";
232
232
  $fault = "client";
233
233
  constructor(opts) {
234
234
  super({
235
- name: "TargetNotConnectedException",
235
+ name: "ResourceNotFoundException",
236
236
  $fault: "client",
237
237
  ...opts,
238
238
  });
239
- Object.setPrototypeOf(this, TargetNotConnectedException.prototype);
239
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
240
240
  }
241
241
  }
242
- export class ResourceNotFoundException extends __BaseException {
243
- name = "ResourceNotFoundException";
242
+ export class TargetNotConnectedException extends __BaseException {
243
+ name = "TargetNotConnectedException";
244
244
  $fault = "client";
245
245
  constructor(opts) {
246
246
  super({
247
- name: "ResourceNotFoundException",
247
+ name: "TargetNotConnectedException",
248
248
  $fault: "client",
249
249
  ...opts,
250
250
  });
251
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
251
+ Object.setPrototypeOf(this, TargetNotConnectedException.prototype);
252
252
  }
253
253
  }
254
254
  export class AttributeLimitExceededException extends __BaseException {