@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.
- package/README.md +8 -0
- package/dist-cjs/index.js +77 -0
- package/dist-es/ECS.js +2 -0
- package/dist-es/commands/StopServiceDeploymentCommand.js +22 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +18 -0
- package/dist-es/protocols/Aws_json1_1.js +32 -1
- package/dist-types/ECS.d.ts +7 -0
- package/dist-types/ECSClient.d.ts +3 -2
- package/dist-types/commands/DeleteAccountSettingCommand.d.ts +2 -2
- package/dist-types/commands/DescribeServiceDeploymentsCommand.d.ts +2 -3
- package/dist-types/commands/ListAccountSettingsCommand.d.ts +2 -2
- package/dist-types/commands/ListServiceDeploymentsCommand.d.ts +2 -2
- package/dist-types/commands/PutAccountSettingCommand.d.ts +2 -2
- package/dist-types/commands/PutAccountSettingDefaultCommand.d.ts +2 -2
- package/dist-types/commands/StopServiceDeploymentCommand.d.ts +149 -0
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +147 -144
- package/dist-types/models/models_1.d.ts +88 -1
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/ECS.d.ts +17 -0
- package/dist-types/ts3.4/ECSClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/StopServiceDeploymentCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +25 -10
- package/dist-types/ts3.4/models/models_1.d.ts +11 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -567,6 +567,14 @@ StartTask
|
|
|
567
567
|
|
|
568
568
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecs/command/StartTaskCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecs/Interface/StartTaskCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecs/Interface/StartTaskCommandOutput/)
|
|
569
569
|
|
|
570
|
+
</details>
|
|
571
|
+
<details>
|
|
572
|
+
<summary>
|
|
573
|
+
StopServiceDeployment
|
|
574
|
+
</summary>
|
|
575
|
+
|
|
576
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecs/command/StopServiceDeploymentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecs/Interface/StopServiceDeploymentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecs/Interface/StopServiceDeploymentCommandOutput/)
|
|
577
|
+
|
|
570
578
|
</details>
|
|
571
579
|
<details>
|
|
572
580
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -134,6 +134,7 @@ __export(index_exports, {
|
|
|
134
134
|
SchedulingStrategy: () => SchedulingStrategy,
|
|
135
135
|
Scope: () => Scope,
|
|
136
136
|
ServerException: () => ServerException,
|
|
137
|
+
ServiceDeploymentNotFoundException: () => ServiceDeploymentNotFoundException,
|
|
137
138
|
ServiceDeploymentRollbackMonitorsStatus: () => ServiceDeploymentRollbackMonitorsStatus,
|
|
138
139
|
ServiceDeploymentStatus: () => ServiceDeploymentStatus,
|
|
139
140
|
ServiceField: () => ServiceField,
|
|
@@ -145,6 +146,8 @@ __export(index_exports, {
|
|
|
145
146
|
SortOrder: () => SortOrder,
|
|
146
147
|
StabilityStatus: () => StabilityStatus,
|
|
147
148
|
StartTaskCommand: () => StartTaskCommand,
|
|
149
|
+
StopServiceDeploymentCommand: () => StopServiceDeploymentCommand,
|
|
150
|
+
StopServiceDeploymentStopType: () => StopServiceDeploymentStopType,
|
|
148
151
|
StopTaskCommand: () => StopTaskCommand,
|
|
149
152
|
SubmitAttachmentStateChangesCommand: () => SubmitAttachmentStateChangesCommand,
|
|
150
153
|
SubmitContainerStateChangeCommand: () => SubmitContainerStateChangeCommand,
|
|
@@ -715,6 +718,7 @@ var SettingName = {
|
|
|
715
718
|
AWSVPC_TRUNKING: "awsvpcTrunking",
|
|
716
719
|
CONTAINER_INSIGHTS: "containerInsights",
|
|
717
720
|
CONTAINER_INSTANCE_LONG_ARN_FORMAT: "containerInstanceLongArnFormat",
|
|
721
|
+
DEFAULT_LOG_DRIVER_MODE: "defaultLogDriverMode",
|
|
718
722
|
FARGATE_FIPS_MODE: "fargateFIPSMode",
|
|
719
723
|
FARGATE_TASK_RETIREMENT_WAIT_PERIOD: "fargateTaskRetirementWaitPeriod",
|
|
720
724
|
GUARD_DUTY_ACTIVATE: "guardDutyActivate",
|
|
@@ -962,6 +966,7 @@ var ServiceDeploymentStatus = {
|
|
|
962
966
|
PENDING: "PENDING",
|
|
963
967
|
ROLLBACK_FAILED: "ROLLBACK_FAILED",
|
|
964
968
|
ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS",
|
|
969
|
+
ROLLBACK_REQUESTED: "ROLLBACK_REQUESTED",
|
|
965
970
|
ROLLBACK_SUCCESSFUL: "ROLLBACK_SUCCESSFUL",
|
|
966
971
|
STOPPED: "STOPPED",
|
|
967
972
|
STOP_REQUESTED: "STOP_REQUESTED",
|
|
@@ -1138,6 +1143,28 @@ var ConflictException = class _ConflictException extends ECSServiceException {
|
|
|
1138
1143
|
this.resourceIds = opts.resourceIds;
|
|
1139
1144
|
}
|
|
1140
1145
|
};
|
|
1146
|
+
var ServiceDeploymentNotFoundException = class _ServiceDeploymentNotFoundException extends ECSServiceException {
|
|
1147
|
+
static {
|
|
1148
|
+
__name(this, "ServiceDeploymentNotFoundException");
|
|
1149
|
+
}
|
|
1150
|
+
name = "ServiceDeploymentNotFoundException";
|
|
1151
|
+
$fault = "client";
|
|
1152
|
+
/**
|
|
1153
|
+
* @internal
|
|
1154
|
+
*/
|
|
1155
|
+
constructor(opts) {
|
|
1156
|
+
super({
|
|
1157
|
+
name: "ServiceDeploymentNotFoundException",
|
|
1158
|
+
$fault: "client",
|
|
1159
|
+
...opts
|
|
1160
|
+
});
|
|
1161
|
+
Object.setPrototypeOf(this, _ServiceDeploymentNotFoundException.prototype);
|
|
1162
|
+
}
|
|
1163
|
+
};
|
|
1164
|
+
var StopServiceDeploymentStopType = {
|
|
1165
|
+
ABORT: "ABORT",
|
|
1166
|
+
ROLLBACK: "ROLLBACK"
|
|
1167
|
+
};
|
|
1141
1168
|
var SessionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1142
1169
|
...obj,
|
|
1143
1170
|
...obj.tokenValue && { tokenValue: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -1450,6 +1477,12 @@ var se_StartTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1450
1477
|
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
1451
1478
|
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
1452
1479
|
}, "se_StartTaskCommand");
|
|
1480
|
+
var se_StopServiceDeploymentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1481
|
+
const headers = sharedHeaders("StopServiceDeployment");
|
|
1482
|
+
let body;
|
|
1483
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
1484
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
1485
|
+
}, "se_StopServiceDeploymentCommand");
|
|
1453
1486
|
var se_StopTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1454
1487
|
const headers = sharedHeaders("StopTask");
|
|
1455
1488
|
let body;
|
|
@@ -2112,6 +2145,19 @@ var de_StartTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2112
2145
|
};
|
|
2113
2146
|
return response;
|
|
2114
2147
|
}, "de_StartTaskCommand");
|
|
2148
|
+
var de_StopServiceDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2149
|
+
if (output.statusCode >= 300) {
|
|
2150
|
+
return de_CommandError(output, context);
|
|
2151
|
+
}
|
|
2152
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2153
|
+
let contents = {};
|
|
2154
|
+
contents = (0, import_smithy_client._json)(data);
|
|
2155
|
+
const response = {
|
|
2156
|
+
$metadata: deserializeMetadata(output),
|
|
2157
|
+
...contents
|
|
2158
|
+
};
|
|
2159
|
+
return response;
|
|
2160
|
+
}, "de_StopServiceDeploymentCommand");
|
|
2115
2161
|
var de_StopTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2116
2162
|
if (output.statusCode >= 300) {
|
|
2117
2163
|
return de_CommandError(output, context);
|
|
@@ -2386,6 +2432,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2386
2432
|
case "ConflictException":
|
|
2387
2433
|
case "com.amazonaws.ecs#ConflictException":
|
|
2388
2434
|
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2435
|
+
case "ServiceDeploymentNotFoundException":
|
|
2436
|
+
case "com.amazonaws.ecs#ServiceDeploymentNotFoundException":
|
|
2437
|
+
throw await de_ServiceDeploymentNotFoundExceptionRes(parsedOutput, context);
|
|
2389
2438
|
case "MissingVersionException":
|
|
2390
2439
|
case "com.amazonaws.ecs#MissingVersionException":
|
|
2391
2440
|
throw await de_MissingVersionExceptionRes(parsedOutput, context);
|
|
@@ -2572,6 +2621,15 @@ var de_ServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context)
|
|
|
2572
2621
|
});
|
|
2573
2622
|
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
2574
2623
|
}, "de_ServerExceptionRes");
|
|
2624
|
+
var de_ServiceDeploymentNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2625
|
+
const body = parsedOutput.body;
|
|
2626
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
2627
|
+
const exception = new ServiceDeploymentNotFoundException({
|
|
2628
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2629
|
+
...deserialized
|
|
2630
|
+
});
|
|
2631
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
2632
|
+
}, "de_ServiceDeploymentNotFoundExceptionRes");
|
|
2575
2633
|
var de_ServiceNotActiveExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2576
2634
|
const body = parsedOutput.body;
|
|
2577
2635
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -3994,6 +4052,21 @@ var StartTaskCommand = class extends import_smithy_client.Command.classBuilder()
|
|
|
3994
4052
|
}
|
|
3995
4053
|
};
|
|
3996
4054
|
|
|
4055
|
+
// src/commands/StopServiceDeploymentCommand.ts
|
|
4056
|
+
|
|
4057
|
+
|
|
4058
|
+
|
|
4059
|
+
var StopServiceDeploymentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
4060
|
+
return [
|
|
4061
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
4062
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
4063
|
+
];
|
|
4064
|
+
}).s("AmazonEC2ContainerServiceV20141113", "StopServiceDeployment", {}).n("ECSClient", "StopServiceDeploymentCommand").f(void 0, void 0).ser(se_StopServiceDeploymentCommand).de(de_StopServiceDeploymentCommand).build() {
|
|
4065
|
+
static {
|
|
4066
|
+
__name(this, "StopServiceDeploymentCommand");
|
|
4067
|
+
}
|
|
4068
|
+
};
|
|
4069
|
+
|
|
3997
4070
|
// src/commands/StopTaskCommand.ts
|
|
3998
4071
|
|
|
3999
4072
|
|
|
@@ -4265,6 +4338,7 @@ var commands = {
|
|
|
4265
4338
|
RegisterTaskDefinitionCommand,
|
|
4266
4339
|
RunTaskCommand,
|
|
4267
4340
|
StartTaskCommand,
|
|
4341
|
+
StopServiceDeploymentCommand,
|
|
4268
4342
|
StopTaskCommand,
|
|
4269
4343
|
SubmitAttachmentStateChangesCommand,
|
|
4270
4344
|
SubmitContainerStateChangeCommand,
|
|
@@ -4614,6 +4688,7 @@ var waitUntilTasksStopped = /* @__PURE__ */ __name(async (params, input) => {
|
|
|
4614
4688
|
RegisterTaskDefinitionCommand,
|
|
4615
4689
|
RunTaskCommand,
|
|
4616
4690
|
StartTaskCommand,
|
|
4691
|
+
StopServiceDeploymentCommand,
|
|
4617
4692
|
StopTaskCommand,
|
|
4618
4693
|
SubmitAttachmentStateChangesCommand,
|
|
4619
4694
|
SubmitContainerStateChangeCommand,
|
|
@@ -4736,6 +4811,8 @@ var waitUntilTasksStopped = /* @__PURE__ */ __name(async (params, input) => {
|
|
|
4736
4811
|
PlatformDeviceType,
|
|
4737
4812
|
BlockedException,
|
|
4738
4813
|
ConflictException,
|
|
4814
|
+
ServiceDeploymentNotFoundException,
|
|
4815
|
+
StopServiceDeploymentStopType,
|
|
4739
4816
|
SessionFilterSensitiveLog,
|
|
4740
4817
|
ExecuteCommandResponseFilterSensitiveLog,
|
|
4741
4818
|
MissingVersionException,
|
package/dist-es/ECS.js
CHANGED
|
@@ -43,6 +43,7 @@ import { RegisterContainerInstanceCommand, } from "./commands/RegisterContainerI
|
|
|
43
43
|
import { RegisterTaskDefinitionCommand, } from "./commands/RegisterTaskDefinitionCommand";
|
|
44
44
|
import { RunTaskCommand } from "./commands/RunTaskCommand";
|
|
45
45
|
import { StartTaskCommand } from "./commands/StartTaskCommand";
|
|
46
|
+
import { StopServiceDeploymentCommand, } from "./commands/StopServiceDeploymentCommand";
|
|
46
47
|
import { StopTaskCommand } from "./commands/StopTaskCommand";
|
|
47
48
|
import { SubmitAttachmentStateChangesCommand, } from "./commands/SubmitAttachmentStateChangesCommand";
|
|
48
49
|
import { SubmitContainerStateChangeCommand, } from "./commands/SubmitContainerStateChangeCommand";
|
|
@@ -104,6 +105,7 @@ const commands = {
|
|
|
104
105
|
RegisterTaskDefinitionCommand,
|
|
105
106
|
RunTaskCommand,
|
|
106
107
|
StartTaskCommand,
|
|
108
|
+
StopServiceDeploymentCommand,
|
|
107
109
|
StopTaskCommand,
|
|
108
110
|
SubmitAttachmentStateChangesCommand,
|
|
109
111
|
SubmitContainerStateChangeCommand,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_StopServiceDeploymentCommand, se_StopServiceDeploymentCommand } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class StopServiceDeploymentCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AmazonEC2ContainerServiceV20141113", "StopServiceDeployment", {})
|
|
17
|
+
.n("ECSClient", "StopServiceDeploymentCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_StopServiceDeploymentCommand)
|
|
20
|
+
.de(de_StopServiceDeploymentCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -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";
|
|
@@ -267,6 +267,7 @@ export const SettingName = {
|
|
|
267
267
|
AWSVPC_TRUNKING: "awsvpcTrunking",
|
|
268
268
|
CONTAINER_INSIGHTS: "containerInsights",
|
|
269
269
|
CONTAINER_INSTANCE_LONG_ARN_FORMAT: "containerInstanceLongArnFormat",
|
|
270
|
+
DEFAULT_LOG_DRIVER_MODE: "defaultLogDriverMode",
|
|
270
271
|
FARGATE_FIPS_MODE: "fargateFIPSMode",
|
|
271
272
|
FARGATE_TASK_RETIREMENT_WAIT_PERIOD: "fargateTaskRetirementWaitPeriod",
|
|
272
273
|
GUARD_DUTY_ACTIVATE: "guardDutyActivate",
|
|
@@ -484,6 +485,7 @@ export const ServiceDeploymentStatus = {
|
|
|
484
485
|
PENDING: "PENDING",
|
|
485
486
|
ROLLBACK_FAILED: "ROLLBACK_FAILED",
|
|
486
487
|
ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS",
|
|
488
|
+
ROLLBACK_REQUESTED: "ROLLBACK_REQUESTED",
|
|
487
489
|
ROLLBACK_SUCCESSFUL: "ROLLBACK_SUCCESSFUL",
|
|
488
490
|
STOPPED: "STOPPED",
|
|
489
491
|
STOP_REQUESTED: "STOP_REQUESTED",
|
|
@@ -619,6 +621,22 @@ export class ConflictException extends __BaseException {
|
|
|
619
621
|
this.resourceIds = opts.resourceIds;
|
|
620
622
|
}
|
|
621
623
|
}
|
|
624
|
+
export class ServiceDeploymentNotFoundException extends __BaseException {
|
|
625
|
+
name = "ServiceDeploymentNotFoundException";
|
|
626
|
+
$fault = "client";
|
|
627
|
+
constructor(opts) {
|
|
628
|
+
super({
|
|
629
|
+
name: "ServiceDeploymentNotFoundException",
|
|
630
|
+
$fault: "client",
|
|
631
|
+
...opts,
|
|
632
|
+
});
|
|
633
|
+
Object.setPrototypeOf(this, ServiceDeploymentNotFoundException.prototype);
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
export const StopServiceDeploymentStopType = {
|
|
637
|
+
ABORT: "ABORT",
|
|
638
|
+
ROLLBACK: "ROLLBACK",
|
|
639
|
+
};
|
|
622
640
|
export const SessionFilterSensitiveLog = (obj) => ({
|
|
623
641
|
...obj,
|
|
624
642
|
...(obj.tokenValue && { tokenValue: SENSITIVE_STRING }),
|
|
@@ -3,7 +3,7 @@ import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { ECSServiceException as __BaseException } from "../models/ECSServiceException";
|
|
6
|
-
import { AccessDeniedException, AttributeLimitExceededException, BlockedException, ClientException, ClusterContainsContainerInstancesException, ClusterContainsServicesException, ClusterContainsTasksException, ClusterNotFoundException, ConflictException, InvalidParameterException, LimitExceededException, NamespaceNotFoundException, PlatformTaskDefinitionIncompatibilityException, PlatformUnknownException, ResourceInUseException, ResourceNotFoundException, ServerException, ServiceNotActiveException, ServiceNotFoundException, TargetNotConnectedException, TargetNotFoundException, TaskSetNotFoundException, UnsupportedFeatureException, UpdateInProgressException, } from "../models/models_0";
|
|
6
|
+
import { AccessDeniedException, AttributeLimitExceededException, BlockedException, ClientException, ClusterContainsContainerInstancesException, ClusterContainsServicesException, ClusterContainsTasksException, ClusterNotFoundException, ConflictException, InvalidParameterException, LimitExceededException, NamespaceNotFoundException, PlatformTaskDefinitionIncompatibilityException, PlatformUnknownException, ResourceInUseException, ResourceNotFoundException, ServerException, ServiceDeploymentNotFoundException, ServiceNotActiveException, ServiceNotFoundException, TargetNotConnectedException, TargetNotFoundException, TaskSetNotFoundException, UnsupportedFeatureException, UpdateInProgressException, } from "../models/models_0";
|
|
7
7
|
import { MissingVersionException, NoUpdateAvailableException, } from "../models/models_1";
|
|
8
8
|
export const se_CreateCapacityProviderCommand = async (input, context) => {
|
|
9
9
|
const headers = sharedHeaders("CreateCapacityProvider");
|
|
@@ -269,6 +269,12 @@ export const se_StartTaskCommand = async (input, context) => {
|
|
|
269
269
|
body = JSON.stringify(_json(input));
|
|
270
270
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
271
271
|
};
|
|
272
|
+
export const se_StopServiceDeploymentCommand = async (input, context) => {
|
|
273
|
+
const headers = sharedHeaders("StopServiceDeployment");
|
|
274
|
+
let body;
|
|
275
|
+
body = JSON.stringify(_json(input));
|
|
276
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
277
|
+
};
|
|
272
278
|
export const se_StopTaskCommand = async (input, context) => {
|
|
273
279
|
const headers = sharedHeaders("StopTask");
|
|
274
280
|
let body;
|
|
@@ -931,6 +937,19 @@ export const de_StartTaskCommand = async (output, context) => {
|
|
|
931
937
|
};
|
|
932
938
|
return response;
|
|
933
939
|
};
|
|
940
|
+
export const de_StopServiceDeploymentCommand = async (output, context) => {
|
|
941
|
+
if (output.statusCode >= 300) {
|
|
942
|
+
return de_CommandError(output, context);
|
|
943
|
+
}
|
|
944
|
+
const data = await parseBody(output.body, context);
|
|
945
|
+
let contents = {};
|
|
946
|
+
contents = _json(data);
|
|
947
|
+
const response = {
|
|
948
|
+
$metadata: deserializeMetadata(output),
|
|
949
|
+
...contents,
|
|
950
|
+
};
|
|
951
|
+
return response;
|
|
952
|
+
};
|
|
934
953
|
export const de_StopTaskCommand = async (output, context) => {
|
|
935
954
|
if (output.statusCode >= 300) {
|
|
936
955
|
return de_CommandError(output, context);
|
|
@@ -1205,6 +1224,9 @@ const de_CommandError = async (output, context) => {
|
|
|
1205
1224
|
case "ConflictException":
|
|
1206
1225
|
case "com.amazonaws.ecs#ConflictException":
|
|
1207
1226
|
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1227
|
+
case "ServiceDeploymentNotFoundException":
|
|
1228
|
+
case "com.amazonaws.ecs#ServiceDeploymentNotFoundException":
|
|
1229
|
+
throw await de_ServiceDeploymentNotFoundExceptionRes(parsedOutput, context);
|
|
1208
1230
|
case "MissingVersionException":
|
|
1209
1231
|
case "com.amazonaws.ecs#MissingVersionException":
|
|
1210
1232
|
throw await de_MissingVersionExceptionRes(parsedOutput, context);
|
|
@@ -1391,6 +1413,15 @@ const de_ServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1391
1413
|
});
|
|
1392
1414
|
return __decorateServiceException(exception, body);
|
|
1393
1415
|
};
|
|
1416
|
+
const de_ServiceDeploymentNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1417
|
+
const body = parsedOutput.body;
|
|
1418
|
+
const deserialized = _json(body);
|
|
1419
|
+
const exception = new ServiceDeploymentNotFoundException({
|
|
1420
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1421
|
+
...deserialized,
|
|
1422
|
+
});
|
|
1423
|
+
return __decorateServiceException(exception, body);
|
|
1424
|
+
};
|
|
1394
1425
|
const de_ServiceNotActiveExceptionRes = async (parsedOutput, context) => {
|
|
1395
1426
|
const body = parsedOutput.body;
|
|
1396
1427
|
const deserialized = _json(body);
|
package/dist-types/ECS.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ import { RegisterContainerInstanceCommandInput, RegisterContainerInstanceCommand
|
|
|
43
43
|
import { RegisterTaskDefinitionCommandInput, RegisterTaskDefinitionCommandOutput } from "./commands/RegisterTaskDefinitionCommand";
|
|
44
44
|
import { RunTaskCommandInput, RunTaskCommandOutput } from "./commands/RunTaskCommand";
|
|
45
45
|
import { StartTaskCommandInput, StartTaskCommandOutput } from "./commands/StartTaskCommand";
|
|
46
|
+
import { StopServiceDeploymentCommandInput, StopServiceDeploymentCommandOutput } from "./commands/StopServiceDeploymentCommand";
|
|
46
47
|
import { StopTaskCommandInput, StopTaskCommandOutput } from "./commands/StopTaskCommand";
|
|
47
48
|
import { SubmitAttachmentStateChangesCommandInput, SubmitAttachmentStateChangesCommandOutput } from "./commands/SubmitAttachmentStateChangesCommand";
|
|
48
49
|
import { SubmitContainerStateChangeCommandInput, SubmitContainerStateChangeCommandOutput } from "./commands/SubmitContainerStateChangeCommand";
|
|
@@ -336,6 +337,12 @@ export interface ECS {
|
|
|
336
337
|
startTask(args: StartTaskCommandInput, options?: __HttpHandlerOptions): Promise<StartTaskCommandOutput>;
|
|
337
338
|
startTask(args: StartTaskCommandInput, cb: (err: any, data?: StartTaskCommandOutput) => void): void;
|
|
338
339
|
startTask(args: StartTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartTaskCommandOutput) => void): void;
|
|
340
|
+
/**
|
|
341
|
+
* @see {@link StopServiceDeploymentCommand}
|
|
342
|
+
*/
|
|
343
|
+
stopServiceDeployment(args: StopServiceDeploymentCommandInput, options?: __HttpHandlerOptions): Promise<StopServiceDeploymentCommandOutput>;
|
|
344
|
+
stopServiceDeployment(args: StopServiceDeploymentCommandInput, cb: (err: any, data?: StopServiceDeploymentCommandOutput) => void): void;
|
|
345
|
+
stopServiceDeployment(args: StopServiceDeploymentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopServiceDeploymentCommandOutput) => void): void;
|
|
339
346
|
/**
|
|
340
347
|
* @see {@link StopTaskCommand}
|
|
341
348
|
*/
|
|
@@ -51,6 +51,7 @@ import { RegisterContainerInstanceCommandInput, RegisterContainerInstanceCommand
|
|
|
51
51
|
import { RegisterTaskDefinitionCommandInput, RegisterTaskDefinitionCommandOutput } from "./commands/RegisterTaskDefinitionCommand";
|
|
52
52
|
import { RunTaskCommandInput, RunTaskCommandOutput } from "./commands/RunTaskCommand";
|
|
53
53
|
import { StartTaskCommandInput, StartTaskCommandOutput } from "./commands/StartTaskCommand";
|
|
54
|
+
import { StopServiceDeploymentCommandInput, StopServiceDeploymentCommandOutput } from "./commands/StopServiceDeploymentCommand";
|
|
54
55
|
import { StopTaskCommandInput, StopTaskCommandOutput } from "./commands/StopTaskCommand";
|
|
55
56
|
import { SubmitAttachmentStateChangesCommandInput, SubmitAttachmentStateChangesCommandOutput } from "./commands/SubmitAttachmentStateChangesCommand";
|
|
56
57
|
import { SubmitContainerStateChangeCommandInput, SubmitContainerStateChangeCommandOutput } from "./commands/SubmitContainerStateChangeCommand";
|
|
@@ -72,11 +73,11 @@ export { __Client };
|
|
|
72
73
|
/**
|
|
73
74
|
* @public
|
|
74
75
|
*/
|
|
75
|
-
export type ServiceInputTypes = CreateCapacityProviderCommandInput | CreateClusterCommandInput | CreateServiceCommandInput | CreateTaskSetCommandInput | DeleteAccountSettingCommandInput | DeleteAttributesCommandInput | DeleteCapacityProviderCommandInput | DeleteClusterCommandInput | DeleteServiceCommandInput | DeleteTaskDefinitionsCommandInput | DeleteTaskSetCommandInput | DeregisterContainerInstanceCommandInput | DeregisterTaskDefinitionCommandInput | DescribeCapacityProvidersCommandInput | DescribeClustersCommandInput | DescribeContainerInstancesCommandInput | DescribeServiceDeploymentsCommandInput | DescribeServiceRevisionsCommandInput | DescribeServicesCommandInput | DescribeTaskDefinitionCommandInput | DescribeTaskSetsCommandInput | DescribeTasksCommandInput | DiscoverPollEndpointCommandInput | ExecuteCommandCommandInput | GetTaskProtectionCommandInput | ListAccountSettingsCommandInput | ListAttributesCommandInput | ListClustersCommandInput | ListContainerInstancesCommandInput | ListServiceDeploymentsCommandInput | ListServicesByNamespaceCommandInput | ListServicesCommandInput | ListTagsForResourceCommandInput | ListTaskDefinitionFamiliesCommandInput | ListTaskDefinitionsCommandInput | ListTasksCommandInput | PutAccountSettingCommandInput | PutAccountSettingDefaultCommandInput | PutAttributesCommandInput | PutClusterCapacityProvidersCommandInput | RegisterContainerInstanceCommandInput | RegisterTaskDefinitionCommandInput | RunTaskCommandInput | StartTaskCommandInput | StopTaskCommandInput | SubmitAttachmentStateChangesCommandInput | SubmitContainerStateChangeCommandInput | SubmitTaskStateChangeCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCapacityProviderCommandInput | UpdateClusterCommandInput | UpdateClusterSettingsCommandInput | UpdateContainerAgentCommandInput | UpdateContainerInstancesStateCommandInput | UpdateServiceCommandInput | UpdateServicePrimaryTaskSetCommandInput | UpdateTaskProtectionCommandInput | UpdateTaskSetCommandInput;
|
|
76
|
+
export type ServiceInputTypes = CreateCapacityProviderCommandInput | CreateClusterCommandInput | CreateServiceCommandInput | CreateTaskSetCommandInput | DeleteAccountSettingCommandInput | DeleteAttributesCommandInput | DeleteCapacityProviderCommandInput | DeleteClusterCommandInput | DeleteServiceCommandInput | DeleteTaskDefinitionsCommandInput | DeleteTaskSetCommandInput | DeregisterContainerInstanceCommandInput | DeregisterTaskDefinitionCommandInput | DescribeCapacityProvidersCommandInput | DescribeClustersCommandInput | DescribeContainerInstancesCommandInput | DescribeServiceDeploymentsCommandInput | DescribeServiceRevisionsCommandInput | DescribeServicesCommandInput | DescribeTaskDefinitionCommandInput | DescribeTaskSetsCommandInput | DescribeTasksCommandInput | DiscoverPollEndpointCommandInput | ExecuteCommandCommandInput | GetTaskProtectionCommandInput | ListAccountSettingsCommandInput | ListAttributesCommandInput | ListClustersCommandInput | ListContainerInstancesCommandInput | ListServiceDeploymentsCommandInput | ListServicesByNamespaceCommandInput | ListServicesCommandInput | ListTagsForResourceCommandInput | ListTaskDefinitionFamiliesCommandInput | ListTaskDefinitionsCommandInput | ListTasksCommandInput | PutAccountSettingCommandInput | PutAccountSettingDefaultCommandInput | PutAttributesCommandInput | PutClusterCapacityProvidersCommandInput | RegisterContainerInstanceCommandInput | RegisterTaskDefinitionCommandInput | RunTaskCommandInput | StartTaskCommandInput | StopServiceDeploymentCommandInput | StopTaskCommandInput | SubmitAttachmentStateChangesCommandInput | SubmitContainerStateChangeCommandInput | SubmitTaskStateChangeCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCapacityProviderCommandInput | UpdateClusterCommandInput | UpdateClusterSettingsCommandInput | UpdateContainerAgentCommandInput | UpdateContainerInstancesStateCommandInput | UpdateServiceCommandInput | UpdateServicePrimaryTaskSetCommandInput | UpdateTaskProtectionCommandInput | UpdateTaskSetCommandInput;
|
|
76
77
|
/**
|
|
77
78
|
* @public
|
|
78
79
|
*/
|
|
79
|
-
export type ServiceOutputTypes = CreateCapacityProviderCommandOutput | CreateClusterCommandOutput | CreateServiceCommandOutput | CreateTaskSetCommandOutput | DeleteAccountSettingCommandOutput | DeleteAttributesCommandOutput | DeleteCapacityProviderCommandOutput | DeleteClusterCommandOutput | DeleteServiceCommandOutput | DeleteTaskDefinitionsCommandOutput | DeleteTaskSetCommandOutput | DeregisterContainerInstanceCommandOutput | DeregisterTaskDefinitionCommandOutput | DescribeCapacityProvidersCommandOutput | DescribeClustersCommandOutput | DescribeContainerInstancesCommandOutput | DescribeServiceDeploymentsCommandOutput | DescribeServiceRevisionsCommandOutput | DescribeServicesCommandOutput | DescribeTaskDefinitionCommandOutput | DescribeTaskSetsCommandOutput | DescribeTasksCommandOutput | DiscoverPollEndpointCommandOutput | ExecuteCommandCommandOutput | GetTaskProtectionCommandOutput | ListAccountSettingsCommandOutput | ListAttributesCommandOutput | ListClustersCommandOutput | ListContainerInstancesCommandOutput | ListServiceDeploymentsCommandOutput | ListServicesByNamespaceCommandOutput | ListServicesCommandOutput | ListTagsForResourceCommandOutput | ListTaskDefinitionFamiliesCommandOutput | ListTaskDefinitionsCommandOutput | ListTasksCommandOutput | PutAccountSettingCommandOutput | PutAccountSettingDefaultCommandOutput | PutAttributesCommandOutput | PutClusterCapacityProvidersCommandOutput | RegisterContainerInstanceCommandOutput | RegisterTaskDefinitionCommandOutput | RunTaskCommandOutput | StartTaskCommandOutput | StopTaskCommandOutput | SubmitAttachmentStateChangesCommandOutput | SubmitContainerStateChangeCommandOutput | SubmitTaskStateChangeCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCapacityProviderCommandOutput | UpdateClusterCommandOutput | UpdateClusterSettingsCommandOutput | UpdateContainerAgentCommandOutput | UpdateContainerInstancesStateCommandOutput | UpdateServiceCommandOutput | UpdateServicePrimaryTaskSetCommandOutput | UpdateTaskProtectionCommandOutput | UpdateTaskSetCommandOutput;
|
|
80
|
+
export type ServiceOutputTypes = CreateCapacityProviderCommandOutput | CreateClusterCommandOutput | CreateServiceCommandOutput | CreateTaskSetCommandOutput | DeleteAccountSettingCommandOutput | DeleteAttributesCommandOutput | DeleteCapacityProviderCommandOutput | DeleteClusterCommandOutput | DeleteServiceCommandOutput | DeleteTaskDefinitionsCommandOutput | DeleteTaskSetCommandOutput | DeregisterContainerInstanceCommandOutput | DeregisterTaskDefinitionCommandOutput | DescribeCapacityProvidersCommandOutput | DescribeClustersCommandOutput | DescribeContainerInstancesCommandOutput | DescribeServiceDeploymentsCommandOutput | DescribeServiceRevisionsCommandOutput | DescribeServicesCommandOutput | DescribeTaskDefinitionCommandOutput | DescribeTaskSetsCommandOutput | DescribeTasksCommandOutput | DiscoverPollEndpointCommandOutput | ExecuteCommandCommandOutput | GetTaskProtectionCommandOutput | ListAccountSettingsCommandOutput | ListAttributesCommandOutput | ListClustersCommandOutput | ListContainerInstancesCommandOutput | ListServiceDeploymentsCommandOutput | ListServicesByNamespaceCommandOutput | ListServicesCommandOutput | ListTagsForResourceCommandOutput | ListTaskDefinitionFamiliesCommandOutput | ListTaskDefinitionsCommandOutput | ListTasksCommandOutput | PutAccountSettingCommandOutput | PutAccountSettingDefaultCommandOutput | PutAttributesCommandOutput | PutClusterCapacityProvidersCommandOutput | RegisterContainerInstanceCommandOutput | RegisterTaskDefinitionCommandOutput | RunTaskCommandOutput | StartTaskCommandOutput | StopServiceDeploymentCommandOutput | StopTaskCommandOutput | SubmitAttachmentStateChangesCommandOutput | SubmitContainerStateChangeCommandOutput | SubmitTaskStateChangeCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCapacityProviderCommandOutput | UpdateClusterCommandOutput | UpdateClusterSettingsCommandOutput | UpdateContainerAgentCommandOutput | UpdateContainerInstancesStateCommandOutput | UpdateServiceCommandOutput | UpdateServicePrimaryTaskSetCommandOutput | UpdateTaskProtectionCommandOutput | UpdateTaskSetCommandOutput;
|
|
80
81
|
/**
|
|
81
82
|
* @public
|
|
82
83
|
*/
|
|
@@ -36,14 +36,14 @@ declare const DeleteAccountSettingCommand_base: {
|
|
|
36
36
|
* // const { ECSClient, DeleteAccountSettingCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
37
37
|
* const client = new ECSClient(config);
|
|
38
38
|
* const input = { // DeleteAccountSettingRequest
|
|
39
|
-
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod" || "guardDutyActivate", // required
|
|
39
|
+
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod" || "guardDutyActivate" || "defaultLogDriverMode", // required
|
|
40
40
|
* principalArn: "STRING_VALUE",
|
|
41
41
|
* };
|
|
42
42
|
* const command = new DeleteAccountSettingCommand(input);
|
|
43
43
|
* const response = await client.send(command);
|
|
44
44
|
* // { // DeleteAccountSettingResponse
|
|
45
45
|
* // setting: { // Setting
|
|
46
|
-
* // name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod" || "guardDutyActivate",
|
|
46
|
+
* // name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod" || "guardDutyActivate" || "defaultLogDriverMode",
|
|
47
47
|
* // value: "STRING_VALUE",
|
|
48
48
|
* // principalArn: "STRING_VALUE",
|
|
49
49
|
* // type: "user" || "aws_managed",
|
|
@@ -29,8 +29,7 @@ declare const DescribeServiceDeploymentsCommand_base: {
|
|
|
29
29
|
/**
|
|
30
30
|
* <p>Describes one or more of your service deployments.</p>
|
|
31
31
|
* <p>A service deployment happens when you release a software update for the service. For
|
|
32
|
-
* more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-
|
|
33
|
-
* deployments</a>.</p>
|
|
32
|
+
* more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-deployment.html">View service history using Amazon ECS service deployments</a>.</p>
|
|
34
33
|
* @example
|
|
35
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
36
35
|
* ```javascript
|
|
@@ -69,7 +68,7 @@ declare const DescribeServiceDeploymentsCommand_base: {
|
|
|
69
68
|
* // runningTaskCount: Number("int"),
|
|
70
69
|
* // pendingTaskCount: Number("int"),
|
|
71
70
|
* // },
|
|
72
|
-
* // status: "PENDING" || "SUCCESSFUL" || "STOPPED" || "STOP_REQUESTED" || "IN_PROGRESS" || "ROLLBACK_IN_PROGRESS" || "ROLLBACK_SUCCESSFUL" || "ROLLBACK_FAILED",
|
|
71
|
+
* // status: "PENDING" || "SUCCESSFUL" || "STOPPED" || "STOP_REQUESTED" || "IN_PROGRESS" || "ROLLBACK_REQUESTED" || "ROLLBACK_IN_PROGRESS" || "ROLLBACK_SUCCESSFUL" || "ROLLBACK_FAILED",
|
|
73
72
|
* // statusReason: "STRING_VALUE",
|
|
74
73
|
* // deploymentConfiguration: { // DeploymentConfiguration
|
|
75
74
|
* // deploymentCircuitBreaker: { // DeploymentCircuitBreaker
|
|
@@ -35,7 +35,7 @@ declare const ListAccountSettingsCommand_base: {
|
|
|
35
35
|
* // const { ECSClient, ListAccountSettingsCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
36
36
|
* const client = new ECSClient(config);
|
|
37
37
|
* const input = { // ListAccountSettingsRequest
|
|
38
|
-
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod" || "guardDutyActivate",
|
|
38
|
+
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod" || "guardDutyActivate" || "defaultLogDriverMode",
|
|
39
39
|
* value: "STRING_VALUE",
|
|
40
40
|
* principalArn: "STRING_VALUE",
|
|
41
41
|
* effectiveSettings: true || false,
|
|
@@ -47,7 +47,7 @@ declare const ListAccountSettingsCommand_base: {
|
|
|
47
47
|
* // { // ListAccountSettingsResponse
|
|
48
48
|
* // settings: [ // Settings
|
|
49
49
|
* // { // Setting
|
|
50
|
-
* // name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod" || "guardDutyActivate",
|
|
50
|
+
* // name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod" || "guardDutyActivate" || "defaultLogDriverMode",
|
|
51
51
|
* // value: "STRING_VALUE",
|
|
52
52
|
* // principalArn: "STRING_VALUE",
|
|
53
53
|
* // type: "user" || "aws_managed",
|
|
@@ -43,7 +43,7 @@ declare const ListServiceDeploymentsCommand_base: {
|
|
|
43
43
|
* service: "STRING_VALUE", // required
|
|
44
44
|
* cluster: "STRING_VALUE",
|
|
45
45
|
* status: [ // ServiceDeploymentStatusList
|
|
46
|
-
* "PENDING" || "SUCCESSFUL" || "STOPPED" || "STOP_REQUESTED" || "IN_PROGRESS" || "ROLLBACK_IN_PROGRESS" || "ROLLBACK_SUCCESSFUL" || "ROLLBACK_FAILED",
|
|
46
|
+
* "PENDING" || "SUCCESSFUL" || "STOPPED" || "STOP_REQUESTED" || "IN_PROGRESS" || "ROLLBACK_REQUESTED" || "ROLLBACK_IN_PROGRESS" || "ROLLBACK_SUCCESSFUL" || "ROLLBACK_FAILED",
|
|
47
47
|
* ],
|
|
48
48
|
* createdAt: { // CreatedAt
|
|
49
49
|
* before: new Date("TIMESTAMP"),
|
|
@@ -64,7 +64,7 @@ declare const ListServiceDeploymentsCommand_base: {
|
|
|
64
64
|
* // createdAt: new Date("TIMESTAMP"),
|
|
65
65
|
* // finishedAt: new Date("TIMESTAMP"),
|
|
66
66
|
* // targetServiceRevisionArn: "STRING_VALUE",
|
|
67
|
-
* // status: "PENDING" || "SUCCESSFUL" || "STOPPED" || "STOP_REQUESTED" || "IN_PROGRESS" || "ROLLBACK_IN_PROGRESS" || "ROLLBACK_SUCCESSFUL" || "ROLLBACK_FAILED",
|
|
67
|
+
* // status: "PENDING" || "SUCCESSFUL" || "STOPPED" || "STOP_REQUESTED" || "IN_PROGRESS" || "ROLLBACK_REQUESTED" || "ROLLBACK_IN_PROGRESS" || "ROLLBACK_SUCCESSFUL" || "ROLLBACK_FAILED",
|
|
68
68
|
* // statusReason: "STRING_VALUE",
|
|
69
69
|
* // },
|
|
70
70
|
* // ],
|
|
@@ -39,7 +39,7 @@ declare const PutAccountSettingCommand_base: {
|
|
|
39
39
|
* // const { ECSClient, PutAccountSettingCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
40
40
|
* const client = new ECSClient(config);
|
|
41
41
|
* const input = { // PutAccountSettingRequest
|
|
42
|
-
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod" || "guardDutyActivate", // required
|
|
42
|
+
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod" || "guardDutyActivate" || "defaultLogDriverMode", // required
|
|
43
43
|
* value: "STRING_VALUE", // required
|
|
44
44
|
* principalArn: "STRING_VALUE",
|
|
45
45
|
* };
|
|
@@ -47,7 +47,7 @@ declare const PutAccountSettingCommand_base: {
|
|
|
47
47
|
* const response = await client.send(command);
|
|
48
48
|
* // { // PutAccountSettingResponse
|
|
49
49
|
* // setting: { // Setting
|
|
50
|
-
* // name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod" || "guardDutyActivate",
|
|
50
|
+
* // name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod" || "guardDutyActivate" || "defaultLogDriverMode",
|
|
51
51
|
* // value: "STRING_VALUE",
|
|
52
52
|
* // principalArn: "STRING_VALUE",
|
|
53
53
|
* // type: "user" || "aws_managed",
|
|
@@ -36,14 +36,14 @@ declare const PutAccountSettingDefaultCommand_base: {
|
|
|
36
36
|
* // const { ECSClient, PutAccountSettingDefaultCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
37
37
|
* const client = new ECSClient(config);
|
|
38
38
|
* const input = { // PutAccountSettingDefaultRequest
|
|
39
|
-
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod" || "guardDutyActivate", // required
|
|
39
|
+
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod" || "guardDutyActivate" || "defaultLogDriverMode", // required
|
|
40
40
|
* value: "STRING_VALUE", // required
|
|
41
41
|
* };
|
|
42
42
|
* const command = new PutAccountSettingDefaultCommand(input);
|
|
43
43
|
* const response = await client.send(command);
|
|
44
44
|
* // { // PutAccountSettingDefaultResponse
|
|
45
45
|
* // setting: { // Setting
|
|
46
|
-
* // name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod" || "guardDutyActivate",
|
|
46
|
+
* // name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod" || "guardDutyActivate" || "defaultLogDriverMode",
|
|
47
47
|
* // value: "STRING_VALUE",
|
|
48
48
|
* // principalArn: "STRING_VALUE",
|
|
49
49
|
* // type: "user" || "aws_managed",
|