@aws-sdk/client-ecs 3.325.0 → 3.327.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 +14 -14
- package/dist-cjs/protocols/Aws_json1_1.js +6 -0
- package/dist-es/models/models_0.js +12 -12
- package/dist-es/protocols/Aws_json1_1.js +6 -0
- package/dist-types/commands/CreateCapacityProviderCommand.d.ts +29 -0
- package/dist-types/commands/CreateClusterCommand.d.ts +75 -0
- package/dist-types/commands/CreateServiceCommand.d.ts +236 -0
- package/dist-types/commands/CreateTaskSetCommand.d.ts +69 -0
- package/dist-types/commands/DeleteAccountSettingCommand.d.ts +10 -0
- package/dist-types/commands/DeleteAttributesCommand.d.ts +13 -0
- package/dist-types/commands/DeleteCapacityProviderCommand.d.ts +29 -0
- package/dist-types/commands/DeleteClusterCommand.d.ts +72 -0
- package/dist-types/commands/DeleteServiceCommand.d.ts +236 -0
- package/dist-types/commands/DeleteTaskDefinitionsCommand.d.ts +275 -0
- package/dist-types/commands/DeleteTaskSetCommand.d.ts +69 -0
- package/dist-types/commands/DeregisterContainerInstanceCommand.d.ts +85 -0
- package/dist-types/commands/DeregisterTaskDefinitionCommand.d.ts +266 -0
- package/dist-types/commands/DescribeCapacityProvidersCommand.d.ts +39 -0
- package/dist-types/commands/DescribeClustersCommand.d.ts +81 -0
- package/dist-types/commands/DescribeContainerInstancesCommand.d.ts +94 -0
- package/dist-types/commands/DescribeServicesCommand.d.ts +245 -0
- package/dist-types/commands/DescribeTaskDefinitionCommand.d.ts +272 -0
- package/dist-types/commands/DescribeTaskSetsCommand.d.ts +78 -0
- package/dist-types/commands/DescribeTasksCommand.d.ts +170 -0
- package/dist-types/commands/DiscoverPollEndpointCommand.d.ts +8 -0
- package/dist-types/commands/ExecuteCommandCommand.d.ts +15 -0
- package/dist-types/commands/GetTaskProtectionCommand.d.ts +19 -0
- package/dist-types/commands/ListAccountSettingsCommand.d.ts +13 -0
- package/dist-types/commands/ListAttributesCommand.d.ts +14 -0
- package/dist-types/commands/ListClustersCommand.d.ts +9 -0
- package/dist-types/commands/ListContainerInstancesCommand.d.ts +9 -0
- package/dist-types/commands/ListServicesByNamespaceCommand.d.ts +9 -0
- package/dist-types/commands/ListServicesCommand.d.ts +9 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +11 -0
- package/dist-types/commands/ListTaskDefinitionFamiliesCommand.d.ts +9 -0
- package/dist-types/commands/ListTaskDefinitionsCommand.d.ts +9 -0
- package/dist-types/commands/ListTasksCommand.d.ts +9 -0
- package/dist-types/commands/PutAccountSettingCommand.d.ts +10 -0
- package/dist-types/commands/PutAccountSettingDefaultCommand.d.ts +10 -0
- package/dist-types/commands/PutAttributesCommand.d.ts +13 -0
- package/dist-types/commands/PutClusterCapacityProvidersCommand.d.ts +72 -0
- package/dist-types/commands/RegisterContainerInstanceCommand.d.ts +85 -0
- package/dist-types/commands/RegisterTaskDefinitionCommand.d.ts +272 -0
- package/dist-types/commands/RunTaskCommand.d.ts +170 -0
- package/dist-types/commands/StartTaskCommand.d.ts +170 -0
- package/dist-types/commands/StopTaskCommand.d.ts +161 -0
- package/dist-types/commands/SubmitAttachmentStateChangesCommand.d.ts +6 -0
- package/dist-types/commands/SubmitContainerStateChangeCommand.d.ts +6 -0
- package/dist-types/commands/SubmitTaskStateChangeCommand.d.ts +6 -0
- package/dist-types/commands/TagResourceCommand.d.ts +4 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +4 -0
- package/dist-types/commands/UpdateCapacityProviderCommand.d.ts +29 -0
- package/dist-types/commands/UpdateClusterCommand.d.ts +75 -0
- package/dist-types/commands/UpdateClusterSettingsCommand.d.ts +72 -0
- package/dist-types/commands/UpdateContainerAgentCommand.d.ts +85 -0
- package/dist-types/commands/UpdateContainerInstancesStateCommand.d.ts +94 -0
- package/dist-types/commands/UpdateServiceCommand.d.ts +236 -0
- package/dist-types/commands/UpdateServicePrimaryTaskSetCommand.d.ts +69 -0
- package/dist-types/commands/UpdateTaskProtectionCommand.d.ts +19 -0
- package/dist-types/commands/UpdateTaskSetCommand.d.ts +69 -0
- package/dist-types/models/models_0.d.ts +12 -12
- package/dist-types/ts3.4/models/models_0.d.ts +7 -7
- package/package.json +7 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TaskDefinitionPlacementConstraintType = exports.PidMode = exports.NetworkMode = exports.IpcMode = exports.UlimitName = exports.ResourceType = exports.TransportProtocol = exports.ApplicationProtocol = exports.DeviceCgroupPermission = exports.FirelensConfigurationType = exports.EnvironmentFileType = exports.ContainerCondition = exports.Compatibility = exports.ClusterContainsTasksException = exports.ClusterContainsServicesException = exports.ClusterContainsContainerInstancesException = exports.TargetNotFoundException = exports.TargetType = exports.SettingName = exports.ServiceNotFoundException = exports.ServiceNotActiveException = exports.UnsupportedFeatureException = exports.PlatformUnknownException = exports.PlatformTaskDefinitionIncompatibilityException = exports.
|
|
3
|
+
exports.TaskDefinitionPlacementConstraintType = exports.PidMode = exports.NetworkMode = exports.IpcMode = exports.UlimitName = exports.ResourceType = exports.TransportProtocol = exports.ApplicationProtocol = exports.DeviceCgroupPermission = exports.FirelensConfigurationType = exports.EnvironmentFileType = exports.ContainerCondition = exports.Compatibility = exports.ClusterContainsTasksException = exports.ClusterContainsServicesException = exports.ClusterContainsContainerInstancesException = exports.TargetNotFoundException = exports.TargetType = exports.SettingName = exports.ServiceNotFoundException = exports.ServiceNotActiveException = exports.UnsupportedFeatureException = exports.PlatformUnknownException = exports.PlatformTaskDefinitionIncompatibilityException = exports.StabilityStatus = exports.ScaleUnit = exports.DeploymentRolloutState = exports.LogDriver = exports.SchedulingStrategy = exports.PropagateTags = exports.PlacementStrategyType = exports.PlacementConstraintType = exports.AssignPublicIp = exports.LaunchType = exports.DeploymentControllerType = exports.ClusterNotFoundException = exports.NamespaceNotFoundException = exports.ClusterSettingName = exports.ExecuteCommandLogging = exports.UpdateInProgressException = exports.ServerException = exports.LimitExceededException = exports.InvalidParameterException = exports.CapacityProviderUpdateStatus = exports.CapacityProviderStatus = exports.ManagedTerminationProtection = exports.ManagedScalingStatus = exports.ClientException = exports.AgentUpdateStatus = exports.AccessDeniedException = void 0;
|
|
4
4
|
exports.ExecuteCommandResponseFilterSensitiveLog = exports.SessionFilterSensitiveLog = exports.NoUpdateAvailableException = exports.MissingVersionException = exports.BlockedException = exports.PlatformDeviceType = exports.ResourceInUseException = exports.AttributeLimitExceededException = exports.DesiredStatus = exports.SortOrder = exports.TaskDefinitionFamilyStatus = exports.ContainerInstanceStatus = exports.ResourceNotFoundException = exports.TargetNotConnectedException = exports.TaskSetField = exports.TaskStopCode = exports.ManagedAgentName = exports.HealthStatus = exports.Connectivity = exports.TaskField = exports.TaskDefinitionField = exports.ServiceField = exports.ContainerInstanceField = exports.ClusterField = exports.CapacityProviderField = exports.InstanceHealthCheckType = exports.InstanceHealthCheckState = exports.TaskSetNotFoundException = exports.EFSTransitEncryption = exports.EFSAuthorizationConfigIAM = exports.Scope = exports.TaskDefinitionStatus = exports.OSFamily = exports.CPUArchitecture = exports.ProxyConfigurationType = void 0;
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const ECSServiceException_1 = require("./ECSServiceException");
|
|
@@ -118,6 +118,19 @@ exports.ExecuteCommandLogging = {
|
|
|
118
118
|
exports.ClusterSettingName = {
|
|
119
119
|
CONTAINER_INSIGHTS: "containerInsights",
|
|
120
120
|
};
|
|
121
|
+
class NamespaceNotFoundException extends ECSServiceException_1.ECSServiceException {
|
|
122
|
+
constructor(opts) {
|
|
123
|
+
super({
|
|
124
|
+
name: "NamespaceNotFoundException",
|
|
125
|
+
$fault: "client",
|
|
126
|
+
...opts,
|
|
127
|
+
});
|
|
128
|
+
this.name = "NamespaceNotFoundException";
|
|
129
|
+
this.$fault = "client";
|
|
130
|
+
Object.setPrototypeOf(this, NamespaceNotFoundException.prototype);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
exports.NamespaceNotFoundException = NamespaceNotFoundException;
|
|
121
134
|
class ClusterNotFoundException extends ECSServiceException_1.ECSServiceException {
|
|
122
135
|
constructor(opts) {
|
|
123
136
|
super({
|
|
@@ -185,19 +198,6 @@ exports.StabilityStatus = {
|
|
|
185
198
|
STABILIZING: "STABILIZING",
|
|
186
199
|
STEADY_STATE: "STEADY_STATE",
|
|
187
200
|
};
|
|
188
|
-
class NamespaceNotFoundException extends ECSServiceException_1.ECSServiceException {
|
|
189
|
-
constructor(opts) {
|
|
190
|
-
super({
|
|
191
|
-
name: "NamespaceNotFoundException",
|
|
192
|
-
$fault: "client",
|
|
193
|
-
...opts,
|
|
194
|
-
});
|
|
195
|
-
this.name = "NamespaceNotFoundException";
|
|
196
|
-
this.$fault = "client";
|
|
197
|
-
Object.setPrototypeOf(this, NamespaceNotFoundException.prototype);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
exports.NamespaceNotFoundException = NamespaceNotFoundException;
|
|
201
201
|
class PlatformTaskDefinitionIncompatibilityException extends ECSServiceException_1.ECSServiceException {
|
|
202
202
|
constructor(opts) {
|
|
203
203
|
super({
|
|
@@ -471,6 +471,9 @@ const de_CreateClusterCommandError = async (output, context) => {
|
|
|
471
471
|
case "InvalidParameterException":
|
|
472
472
|
case "com.amazonaws.ecs#InvalidParameterException":
|
|
473
473
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
474
|
+
case "NamespaceNotFoundException":
|
|
475
|
+
case "com.amazonaws.ecs#NamespaceNotFoundException":
|
|
476
|
+
throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context);
|
|
474
477
|
case "ServerException":
|
|
475
478
|
case "com.amazonaws.ecs#ServerException":
|
|
476
479
|
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
@@ -2505,6 +2508,9 @@ const de_UpdateClusterCommandError = async (output, context) => {
|
|
|
2505
2508
|
case "InvalidParameterException":
|
|
2506
2509
|
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2507
2510
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2511
|
+
case "NamespaceNotFoundException":
|
|
2512
|
+
case "com.amazonaws.ecs#NamespaceNotFoundException":
|
|
2513
|
+
throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context);
|
|
2508
2514
|
case "ServerException":
|
|
2509
2515
|
case "com.amazonaws.ecs#ServerException":
|
|
2510
2516
|
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
@@ -108,6 +108,18 @@ export const ExecuteCommandLogging = {
|
|
|
108
108
|
export const ClusterSettingName = {
|
|
109
109
|
CONTAINER_INSIGHTS: "containerInsights",
|
|
110
110
|
};
|
|
111
|
+
export class NamespaceNotFoundException extends __BaseException {
|
|
112
|
+
constructor(opts) {
|
|
113
|
+
super({
|
|
114
|
+
name: "NamespaceNotFoundException",
|
|
115
|
+
$fault: "client",
|
|
116
|
+
...opts,
|
|
117
|
+
});
|
|
118
|
+
this.name = "NamespaceNotFoundException";
|
|
119
|
+
this.$fault = "client";
|
|
120
|
+
Object.setPrototypeOf(this, NamespaceNotFoundException.prototype);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
111
123
|
export class ClusterNotFoundException extends __BaseException {
|
|
112
124
|
constructor(opts) {
|
|
113
125
|
super({
|
|
@@ -174,18 +186,6 @@ export const StabilityStatus = {
|
|
|
174
186
|
STABILIZING: "STABILIZING",
|
|
175
187
|
STEADY_STATE: "STEADY_STATE",
|
|
176
188
|
};
|
|
177
|
-
export class NamespaceNotFoundException extends __BaseException {
|
|
178
|
-
constructor(opts) {
|
|
179
|
-
super({
|
|
180
|
-
name: "NamespaceNotFoundException",
|
|
181
|
-
$fault: "client",
|
|
182
|
-
...opts,
|
|
183
|
-
});
|
|
184
|
-
this.name = "NamespaceNotFoundException";
|
|
185
|
-
this.$fault = "client";
|
|
186
|
-
Object.setPrototypeOf(this, NamespaceNotFoundException.prototype);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
189
|
export class PlatformTaskDefinitionIncompatibilityException extends __BaseException {
|
|
190
190
|
constructor(opts) {
|
|
191
191
|
super({
|
|
@@ -408,6 +408,9 @@ const de_CreateClusterCommandError = async (output, context) => {
|
|
|
408
408
|
case "InvalidParameterException":
|
|
409
409
|
case "com.amazonaws.ecs#InvalidParameterException":
|
|
410
410
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
411
|
+
case "NamespaceNotFoundException":
|
|
412
|
+
case "com.amazonaws.ecs#NamespaceNotFoundException":
|
|
413
|
+
throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context);
|
|
411
414
|
case "ServerException":
|
|
412
415
|
case "com.amazonaws.ecs#ServerException":
|
|
413
416
|
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
@@ -2395,6 +2398,9 @@ const de_UpdateClusterCommandError = async (output, context) => {
|
|
|
2395
2398
|
case "InvalidParameterException":
|
|
2396
2399
|
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2397
2400
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2401
|
+
case "NamespaceNotFoundException":
|
|
2402
|
+
case "com.amazonaws.ecs#NamespaceNotFoundException":
|
|
2403
|
+
throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context);
|
|
2398
2404
|
case "ServerException":
|
|
2399
2405
|
case "com.amazonaws.ecs#ServerException":
|
|
2400
2406
|
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
@@ -54,6 +54,33 @@ export interface CreateCapacityProviderCommandOutput extends CreateCapacityProvi
|
|
|
54
54
|
* };
|
|
55
55
|
* const command = new CreateCapacityProviderCommand(input);
|
|
56
56
|
* const response = await client.send(command);
|
|
57
|
+
* // { // CreateCapacityProviderResponse
|
|
58
|
+
* // capacityProvider: { // CapacityProvider
|
|
59
|
+
* // capacityProviderArn: "STRING_VALUE",
|
|
60
|
+
* // name: "STRING_VALUE",
|
|
61
|
+
* // status: "ACTIVE" || "INACTIVE",
|
|
62
|
+
* // autoScalingGroupProvider: { // AutoScalingGroupProvider
|
|
63
|
+
* // autoScalingGroupArn: "STRING_VALUE", // required
|
|
64
|
+
* // managedScaling: { // ManagedScaling
|
|
65
|
+
* // status: "ENABLED" || "DISABLED",
|
|
66
|
+
* // targetCapacity: Number("int"),
|
|
67
|
+
* // minimumScalingStepSize: Number("int"),
|
|
68
|
+
* // maximumScalingStepSize: Number("int"),
|
|
69
|
+
* // instanceWarmupPeriod: Number("int"),
|
|
70
|
+
* // },
|
|
71
|
+
* // managedTerminationProtection: "ENABLED" || "DISABLED",
|
|
72
|
+
* // },
|
|
73
|
+
* // updateStatus: "DELETE_IN_PROGRESS" || "DELETE_COMPLETE" || "DELETE_FAILED" || "UPDATE_IN_PROGRESS" || "UPDATE_COMPLETE" || "UPDATE_FAILED",
|
|
74
|
+
* // updateStatusReason: "STRING_VALUE",
|
|
75
|
+
* // tags: [ // Tags
|
|
76
|
+
* // { // Tag
|
|
77
|
+
* // key: "STRING_VALUE",
|
|
78
|
+
* // value: "STRING_VALUE",
|
|
79
|
+
* // },
|
|
80
|
+
* // ],
|
|
81
|
+
* // },
|
|
82
|
+
* // };
|
|
83
|
+
*
|
|
57
84
|
* ```
|
|
58
85
|
*
|
|
59
86
|
* @param CreateCapacityProviderCommandInput - {@link CreateCapacityProviderCommandInput}
|
|
@@ -84,6 +111,8 @@ export interface CreateCapacityProviderCommandOutput extends CreateCapacityProvi
|
|
|
84
111
|
* process can get stuck in that state. However, when the agent reconnects, it resumes
|
|
85
112
|
* where it stopped previously.</p>
|
|
86
113
|
*
|
|
114
|
+
* @throws {@link ECSServiceException}
|
|
115
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
87
116
|
*
|
|
88
117
|
*/
|
|
89
118
|
export declare class CreateCapacityProviderCommand extends $Command<CreateCapacityProviderCommandInput, CreateCapacityProviderCommandOutput, ECSClientResolvedConfig> {
|
|
@@ -79,6 +79,76 @@ export interface CreateClusterCommandOutput extends CreateClusterResponse, __Met
|
|
|
79
79
|
* };
|
|
80
80
|
* const command = new CreateClusterCommand(input);
|
|
81
81
|
* const response = await client.send(command);
|
|
82
|
+
* // { // CreateClusterResponse
|
|
83
|
+
* // cluster: { // Cluster
|
|
84
|
+
* // clusterArn: "STRING_VALUE",
|
|
85
|
+
* // clusterName: "STRING_VALUE",
|
|
86
|
+
* // configuration: { // ClusterConfiguration
|
|
87
|
+
* // executeCommandConfiguration: { // ExecuteCommandConfiguration
|
|
88
|
+
* // kmsKeyId: "STRING_VALUE",
|
|
89
|
+
* // logging: "NONE" || "DEFAULT" || "OVERRIDE",
|
|
90
|
+
* // logConfiguration: { // ExecuteCommandLogConfiguration
|
|
91
|
+
* // cloudWatchLogGroupName: "STRING_VALUE",
|
|
92
|
+
* // cloudWatchEncryptionEnabled: true || false,
|
|
93
|
+
* // s3BucketName: "STRING_VALUE",
|
|
94
|
+
* // s3EncryptionEnabled: true || false,
|
|
95
|
+
* // s3KeyPrefix: "STRING_VALUE",
|
|
96
|
+
* // },
|
|
97
|
+
* // },
|
|
98
|
+
* // },
|
|
99
|
+
* // status: "STRING_VALUE",
|
|
100
|
+
* // registeredContainerInstancesCount: Number("int"),
|
|
101
|
+
* // runningTasksCount: Number("int"),
|
|
102
|
+
* // pendingTasksCount: Number("int"),
|
|
103
|
+
* // activeServicesCount: Number("int"),
|
|
104
|
+
* // statistics: [ // Statistics
|
|
105
|
+
* // { // KeyValuePair
|
|
106
|
+
* // name: "STRING_VALUE",
|
|
107
|
+
* // value: "STRING_VALUE",
|
|
108
|
+
* // },
|
|
109
|
+
* // ],
|
|
110
|
+
* // tags: [ // Tags
|
|
111
|
+
* // { // Tag
|
|
112
|
+
* // key: "STRING_VALUE",
|
|
113
|
+
* // value: "STRING_VALUE",
|
|
114
|
+
* // },
|
|
115
|
+
* // ],
|
|
116
|
+
* // settings: [ // ClusterSettings
|
|
117
|
+
* // { // ClusterSetting
|
|
118
|
+
* // name: "containerInsights",
|
|
119
|
+
* // value: "STRING_VALUE",
|
|
120
|
+
* // },
|
|
121
|
+
* // ],
|
|
122
|
+
* // capacityProviders: [ // StringList
|
|
123
|
+
* // "STRING_VALUE",
|
|
124
|
+
* // ],
|
|
125
|
+
* // defaultCapacityProviderStrategy: [ // CapacityProviderStrategy
|
|
126
|
+
* // { // CapacityProviderStrategyItem
|
|
127
|
+
* // capacityProvider: "STRING_VALUE", // required
|
|
128
|
+
* // weight: Number("int"),
|
|
129
|
+
* // base: Number("int"),
|
|
130
|
+
* // },
|
|
131
|
+
* // ],
|
|
132
|
+
* // attachments: [ // Attachments
|
|
133
|
+
* // { // Attachment
|
|
134
|
+
* // id: "STRING_VALUE",
|
|
135
|
+
* // type: "STRING_VALUE",
|
|
136
|
+
* // status: "STRING_VALUE",
|
|
137
|
+
* // details: [ // AttachmentDetails
|
|
138
|
+
* // {
|
|
139
|
+
* // name: "STRING_VALUE",
|
|
140
|
+
* // value: "STRING_VALUE",
|
|
141
|
+
* // },
|
|
142
|
+
* // ],
|
|
143
|
+
* // },
|
|
144
|
+
* // ],
|
|
145
|
+
* // attachmentsStatus: "STRING_VALUE",
|
|
146
|
+
* // serviceConnectDefaults: { // ClusterServiceConnectDefaults
|
|
147
|
+
* // namespace: "STRING_VALUE",
|
|
148
|
+
* // },
|
|
149
|
+
* // },
|
|
150
|
+
* // };
|
|
151
|
+
*
|
|
82
152
|
* ```
|
|
83
153
|
*
|
|
84
154
|
* @param CreateClusterCommandInput - {@link CreateClusterCommandInput}
|
|
@@ -96,9 +166,14 @@ export interface CreateClusterCommandOutput extends CreateClusterResponse, __Met
|
|
|
96
166
|
* <p>The specified parameter isn't valid. Review the available parameters for the API
|
|
97
167
|
* request.</p>
|
|
98
168
|
*
|
|
169
|
+
* @throws {@link NamespaceNotFoundException} (client fault)
|
|
170
|
+
* <p>The specified namespace wasn't found.</p>
|
|
171
|
+
*
|
|
99
172
|
* @throws {@link ServerException} (server fault)
|
|
100
173
|
* <p>These errors are usually caused by a server issue.</p>
|
|
101
174
|
*
|
|
175
|
+
* @throws {@link ECSServiceException}
|
|
176
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
102
177
|
*
|
|
103
178
|
* @example To create a new cluster
|
|
104
179
|
* ```javascript
|
|
@@ -221,6 +221,240 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met
|
|
|
221
221
|
* };
|
|
222
222
|
* const command = new CreateServiceCommand(input);
|
|
223
223
|
* const response = await client.send(command);
|
|
224
|
+
* // { // CreateServiceResponse
|
|
225
|
+
* // service: { // Service
|
|
226
|
+
* // serviceArn: "STRING_VALUE",
|
|
227
|
+
* // serviceName: "STRING_VALUE",
|
|
228
|
+
* // clusterArn: "STRING_VALUE",
|
|
229
|
+
* // loadBalancers: [ // LoadBalancers
|
|
230
|
+
* // { // LoadBalancer
|
|
231
|
+
* // targetGroupArn: "STRING_VALUE",
|
|
232
|
+
* // loadBalancerName: "STRING_VALUE",
|
|
233
|
+
* // containerName: "STRING_VALUE",
|
|
234
|
+
* // containerPort: Number("int"),
|
|
235
|
+
* // },
|
|
236
|
+
* // ],
|
|
237
|
+
* // serviceRegistries: [ // ServiceRegistries
|
|
238
|
+
* // { // ServiceRegistry
|
|
239
|
+
* // registryArn: "STRING_VALUE",
|
|
240
|
+
* // port: Number("int"),
|
|
241
|
+
* // containerName: "STRING_VALUE",
|
|
242
|
+
* // containerPort: Number("int"),
|
|
243
|
+
* // },
|
|
244
|
+
* // ],
|
|
245
|
+
* // status: "STRING_VALUE",
|
|
246
|
+
* // desiredCount: Number("int"),
|
|
247
|
+
* // runningCount: Number("int"),
|
|
248
|
+
* // pendingCount: Number("int"),
|
|
249
|
+
* // launchType: "EC2" || "FARGATE" || "EXTERNAL",
|
|
250
|
+
* // capacityProviderStrategy: [ // CapacityProviderStrategy
|
|
251
|
+
* // { // CapacityProviderStrategyItem
|
|
252
|
+
* // capacityProvider: "STRING_VALUE", // required
|
|
253
|
+
* // weight: Number("int"),
|
|
254
|
+
* // base: Number("int"),
|
|
255
|
+
* // },
|
|
256
|
+
* // ],
|
|
257
|
+
* // platformVersion: "STRING_VALUE",
|
|
258
|
+
* // platformFamily: "STRING_VALUE",
|
|
259
|
+
* // taskDefinition: "STRING_VALUE",
|
|
260
|
+
* // deploymentConfiguration: { // DeploymentConfiguration
|
|
261
|
+
* // deploymentCircuitBreaker: { // DeploymentCircuitBreaker
|
|
262
|
+
* // enable: true || false, // required
|
|
263
|
+
* // rollback: true || false, // required
|
|
264
|
+
* // },
|
|
265
|
+
* // maximumPercent: Number("int"),
|
|
266
|
+
* // minimumHealthyPercent: Number("int"),
|
|
267
|
+
* // alarms: { // DeploymentAlarms
|
|
268
|
+
* // alarmNames: [ // StringList // required
|
|
269
|
+
* // "STRING_VALUE",
|
|
270
|
+
* // ],
|
|
271
|
+
* // enable: true || false, // required
|
|
272
|
+
* // rollback: true || false, // required
|
|
273
|
+
* // },
|
|
274
|
+
* // },
|
|
275
|
+
* // taskSets: [ // TaskSets
|
|
276
|
+
* // { // TaskSet
|
|
277
|
+
* // id: "STRING_VALUE",
|
|
278
|
+
* // taskSetArn: "STRING_VALUE",
|
|
279
|
+
* // serviceArn: "STRING_VALUE",
|
|
280
|
+
* // clusterArn: "STRING_VALUE",
|
|
281
|
+
* // startedBy: "STRING_VALUE",
|
|
282
|
+
* // externalId: "STRING_VALUE",
|
|
283
|
+
* // status: "STRING_VALUE",
|
|
284
|
+
* // taskDefinition: "STRING_VALUE",
|
|
285
|
+
* // computedDesiredCount: Number("int"),
|
|
286
|
+
* // pendingCount: Number("int"),
|
|
287
|
+
* // runningCount: Number("int"),
|
|
288
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
289
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
290
|
+
* // launchType: "EC2" || "FARGATE" || "EXTERNAL",
|
|
291
|
+
* // capacityProviderStrategy: [
|
|
292
|
+
* // {
|
|
293
|
+
* // capacityProvider: "STRING_VALUE", // required
|
|
294
|
+
* // weight: Number("int"),
|
|
295
|
+
* // base: Number("int"),
|
|
296
|
+
* // },
|
|
297
|
+
* // ],
|
|
298
|
+
* // platformVersion: "STRING_VALUE",
|
|
299
|
+
* // platformFamily: "STRING_VALUE",
|
|
300
|
+
* // networkConfiguration: { // NetworkConfiguration
|
|
301
|
+
* // awsvpcConfiguration: { // AwsVpcConfiguration
|
|
302
|
+
* // subnets: [ // required
|
|
303
|
+
* // "STRING_VALUE",
|
|
304
|
+
* // ],
|
|
305
|
+
* // securityGroups: [
|
|
306
|
+
* // "STRING_VALUE",
|
|
307
|
+
* // ],
|
|
308
|
+
* // assignPublicIp: "ENABLED" || "DISABLED",
|
|
309
|
+
* // },
|
|
310
|
+
* // },
|
|
311
|
+
* // loadBalancers: [
|
|
312
|
+
* // {
|
|
313
|
+
* // targetGroupArn: "STRING_VALUE",
|
|
314
|
+
* // loadBalancerName: "STRING_VALUE",
|
|
315
|
+
* // containerName: "STRING_VALUE",
|
|
316
|
+
* // containerPort: Number("int"),
|
|
317
|
+
* // },
|
|
318
|
+
* // ],
|
|
319
|
+
* // serviceRegistries: [
|
|
320
|
+
* // {
|
|
321
|
+
* // registryArn: "STRING_VALUE",
|
|
322
|
+
* // port: Number("int"),
|
|
323
|
+
* // containerName: "STRING_VALUE",
|
|
324
|
+
* // containerPort: Number("int"),
|
|
325
|
+
* // },
|
|
326
|
+
* // ],
|
|
327
|
+
* // scale: { // Scale
|
|
328
|
+
* // value: Number("double"),
|
|
329
|
+
* // unit: "PERCENT",
|
|
330
|
+
* // },
|
|
331
|
+
* // stabilityStatus: "STEADY_STATE" || "STABILIZING",
|
|
332
|
+
* // stabilityStatusAt: new Date("TIMESTAMP"),
|
|
333
|
+
* // tags: [ // Tags
|
|
334
|
+
* // { // Tag
|
|
335
|
+
* // key: "STRING_VALUE",
|
|
336
|
+
* // value: "STRING_VALUE",
|
|
337
|
+
* // },
|
|
338
|
+
* // ],
|
|
339
|
+
* // },
|
|
340
|
+
* // ],
|
|
341
|
+
* // deployments: [ // Deployments
|
|
342
|
+
* // { // Deployment
|
|
343
|
+
* // id: "STRING_VALUE",
|
|
344
|
+
* // status: "STRING_VALUE",
|
|
345
|
+
* // taskDefinition: "STRING_VALUE",
|
|
346
|
+
* // desiredCount: Number("int"),
|
|
347
|
+
* // pendingCount: Number("int"),
|
|
348
|
+
* // runningCount: Number("int"),
|
|
349
|
+
* // failedTasks: Number("int"),
|
|
350
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
351
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
352
|
+
* // capacityProviderStrategy: [
|
|
353
|
+
* // {
|
|
354
|
+
* // capacityProvider: "STRING_VALUE", // required
|
|
355
|
+
* // weight: Number("int"),
|
|
356
|
+
* // base: Number("int"),
|
|
357
|
+
* // },
|
|
358
|
+
* // ],
|
|
359
|
+
* // launchType: "EC2" || "FARGATE" || "EXTERNAL",
|
|
360
|
+
* // platformVersion: "STRING_VALUE",
|
|
361
|
+
* // platformFamily: "STRING_VALUE",
|
|
362
|
+
* // networkConfiguration: {
|
|
363
|
+
* // awsvpcConfiguration: {
|
|
364
|
+
* // subnets: [ // required
|
|
365
|
+
* // "STRING_VALUE",
|
|
366
|
+
* // ],
|
|
367
|
+
* // securityGroups: [
|
|
368
|
+
* // "STRING_VALUE",
|
|
369
|
+
* // ],
|
|
370
|
+
* // assignPublicIp: "ENABLED" || "DISABLED",
|
|
371
|
+
* // },
|
|
372
|
+
* // },
|
|
373
|
+
* // rolloutState: "COMPLETED" || "FAILED" || "IN_PROGRESS",
|
|
374
|
+
* // rolloutStateReason: "STRING_VALUE",
|
|
375
|
+
* // serviceConnectConfiguration: { // ServiceConnectConfiguration
|
|
376
|
+
* // enabled: true || false, // required
|
|
377
|
+
* // namespace: "STRING_VALUE",
|
|
378
|
+
* // services: [ // ServiceConnectServiceList
|
|
379
|
+
* // { // ServiceConnectService
|
|
380
|
+
* // portName: "STRING_VALUE", // required
|
|
381
|
+
* // discoveryName: "STRING_VALUE",
|
|
382
|
+
* // clientAliases: [ // ServiceConnectClientAliasList
|
|
383
|
+
* // { // ServiceConnectClientAlias
|
|
384
|
+
* // port: Number("int"), // required
|
|
385
|
+
* // dnsName: "STRING_VALUE",
|
|
386
|
+
* // },
|
|
387
|
+
* // ],
|
|
388
|
+
* // ingressPortOverride: Number("int"),
|
|
389
|
+
* // },
|
|
390
|
+
* // ],
|
|
391
|
+
* // logConfiguration: { // LogConfiguration
|
|
392
|
+
* // logDriver: "json-file" || "syslog" || "journald" || "gelf" || "fluentd" || "awslogs" || "splunk" || "awsfirelens", // required
|
|
393
|
+
* // options: { // LogConfigurationOptionsMap
|
|
394
|
+
* // "<keys>": "STRING_VALUE",
|
|
395
|
+
* // },
|
|
396
|
+
* // secretOptions: [ // SecretList
|
|
397
|
+
* // { // Secret
|
|
398
|
+
* // name: "STRING_VALUE", // required
|
|
399
|
+
* // valueFrom: "STRING_VALUE", // required
|
|
400
|
+
* // },
|
|
401
|
+
* // ],
|
|
402
|
+
* // },
|
|
403
|
+
* // },
|
|
404
|
+
* // serviceConnectResources: [ // ServiceConnectServiceResourceList
|
|
405
|
+
* // { // ServiceConnectServiceResource
|
|
406
|
+
* // discoveryName: "STRING_VALUE",
|
|
407
|
+
* // discoveryArn: "STRING_VALUE",
|
|
408
|
+
* // },
|
|
409
|
+
* // ],
|
|
410
|
+
* // },
|
|
411
|
+
* // ],
|
|
412
|
+
* // roleArn: "STRING_VALUE",
|
|
413
|
+
* // events: [ // ServiceEvents
|
|
414
|
+
* // { // ServiceEvent
|
|
415
|
+
* // id: "STRING_VALUE",
|
|
416
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
417
|
+
* // message: "STRING_VALUE",
|
|
418
|
+
* // },
|
|
419
|
+
* // ],
|
|
420
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
421
|
+
* // placementConstraints: [ // PlacementConstraints
|
|
422
|
+
* // { // PlacementConstraint
|
|
423
|
+
* // type: "distinctInstance" || "memberOf",
|
|
424
|
+
* // expression: "STRING_VALUE",
|
|
425
|
+
* // },
|
|
426
|
+
* // ],
|
|
427
|
+
* // placementStrategy: [ // PlacementStrategies
|
|
428
|
+
* // { // PlacementStrategy
|
|
429
|
+
* // type: "random" || "spread" || "binpack",
|
|
430
|
+
* // field: "STRING_VALUE",
|
|
431
|
+
* // },
|
|
432
|
+
* // ],
|
|
433
|
+
* // networkConfiguration: {
|
|
434
|
+
* // awsvpcConfiguration: {
|
|
435
|
+
* // subnets: "<StringList>", // required
|
|
436
|
+
* // securityGroups: "<StringList>",
|
|
437
|
+
* // assignPublicIp: "ENABLED" || "DISABLED",
|
|
438
|
+
* // },
|
|
439
|
+
* // },
|
|
440
|
+
* // healthCheckGracePeriodSeconds: Number("int"),
|
|
441
|
+
* // schedulingStrategy: "REPLICA" || "DAEMON",
|
|
442
|
+
* // deploymentController: { // DeploymentController
|
|
443
|
+
* // type: "ECS" || "CODE_DEPLOY" || "EXTERNAL", // required
|
|
444
|
+
* // },
|
|
445
|
+
* // tags: [
|
|
446
|
+
* // {
|
|
447
|
+
* // key: "STRING_VALUE",
|
|
448
|
+
* // value: "STRING_VALUE",
|
|
449
|
+
* // },
|
|
450
|
+
* // ],
|
|
451
|
+
* // createdBy: "STRING_VALUE",
|
|
452
|
+
* // enableECSManagedTags: true || false,
|
|
453
|
+
* // propagateTags: "TASK_DEFINITION" || "SERVICE" || "NONE",
|
|
454
|
+
* // enableExecuteCommand: true || false,
|
|
455
|
+
* // },
|
|
456
|
+
* // };
|
|
457
|
+
*
|
|
224
458
|
* ```
|
|
225
459
|
*
|
|
226
460
|
* @param CreateServiceCommandInput - {@link CreateServiceCommandInput}
|
|
@@ -260,6 +494,8 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met
|
|
|
260
494
|
* @throws {@link UnsupportedFeatureException} (client fault)
|
|
261
495
|
* <p>The specified task isn't supported in this Region.</p>
|
|
262
496
|
*
|
|
497
|
+
* @throws {@link ECSServiceException}
|
|
498
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
263
499
|
*
|
|
264
500
|
* @example To create a new service
|
|
265
501
|
* ```javascript
|
|
@@ -84,6 +84,73 @@ export interface CreateTaskSetCommandOutput extends CreateTaskSetResponse, __Met
|
|
|
84
84
|
* };
|
|
85
85
|
* const command = new CreateTaskSetCommand(input);
|
|
86
86
|
* const response = await client.send(command);
|
|
87
|
+
* // { // CreateTaskSetResponse
|
|
88
|
+
* // taskSet: { // TaskSet
|
|
89
|
+
* // id: "STRING_VALUE",
|
|
90
|
+
* // taskSetArn: "STRING_VALUE",
|
|
91
|
+
* // serviceArn: "STRING_VALUE",
|
|
92
|
+
* // clusterArn: "STRING_VALUE",
|
|
93
|
+
* // startedBy: "STRING_VALUE",
|
|
94
|
+
* // externalId: "STRING_VALUE",
|
|
95
|
+
* // status: "STRING_VALUE",
|
|
96
|
+
* // taskDefinition: "STRING_VALUE",
|
|
97
|
+
* // computedDesiredCount: Number("int"),
|
|
98
|
+
* // pendingCount: Number("int"),
|
|
99
|
+
* // runningCount: Number("int"),
|
|
100
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
101
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
102
|
+
* // launchType: "EC2" || "FARGATE" || "EXTERNAL",
|
|
103
|
+
* // capacityProviderStrategy: [ // CapacityProviderStrategy
|
|
104
|
+
* // { // CapacityProviderStrategyItem
|
|
105
|
+
* // capacityProvider: "STRING_VALUE", // required
|
|
106
|
+
* // weight: Number("int"),
|
|
107
|
+
* // base: Number("int"),
|
|
108
|
+
* // },
|
|
109
|
+
* // ],
|
|
110
|
+
* // platformVersion: "STRING_VALUE",
|
|
111
|
+
* // platformFamily: "STRING_VALUE",
|
|
112
|
+
* // networkConfiguration: { // NetworkConfiguration
|
|
113
|
+
* // awsvpcConfiguration: { // AwsVpcConfiguration
|
|
114
|
+
* // subnets: [ // StringList // required
|
|
115
|
+
* // "STRING_VALUE",
|
|
116
|
+
* // ],
|
|
117
|
+
* // securityGroups: [
|
|
118
|
+
* // "STRING_VALUE",
|
|
119
|
+
* // ],
|
|
120
|
+
* // assignPublicIp: "ENABLED" || "DISABLED",
|
|
121
|
+
* // },
|
|
122
|
+
* // },
|
|
123
|
+
* // loadBalancers: [ // LoadBalancers
|
|
124
|
+
* // { // LoadBalancer
|
|
125
|
+
* // targetGroupArn: "STRING_VALUE",
|
|
126
|
+
* // loadBalancerName: "STRING_VALUE",
|
|
127
|
+
* // containerName: "STRING_VALUE",
|
|
128
|
+
* // containerPort: Number("int"),
|
|
129
|
+
* // },
|
|
130
|
+
* // ],
|
|
131
|
+
* // serviceRegistries: [ // ServiceRegistries
|
|
132
|
+
* // { // ServiceRegistry
|
|
133
|
+
* // registryArn: "STRING_VALUE",
|
|
134
|
+
* // port: Number("int"),
|
|
135
|
+
* // containerName: "STRING_VALUE",
|
|
136
|
+
* // containerPort: Number("int"),
|
|
137
|
+
* // },
|
|
138
|
+
* // ],
|
|
139
|
+
* // scale: { // Scale
|
|
140
|
+
* // value: Number("double"),
|
|
141
|
+
* // unit: "PERCENT",
|
|
142
|
+
* // },
|
|
143
|
+
* // stabilityStatus: "STEADY_STATE" || "STABILIZING",
|
|
144
|
+
* // stabilityStatusAt: new Date("TIMESTAMP"),
|
|
145
|
+
* // tags: [ // Tags
|
|
146
|
+
* // { // Tag
|
|
147
|
+
* // key: "STRING_VALUE",
|
|
148
|
+
* // value: "STRING_VALUE",
|
|
149
|
+
* // },
|
|
150
|
+
* // ],
|
|
151
|
+
* // },
|
|
152
|
+
* // };
|
|
153
|
+
*
|
|
87
154
|
* ```
|
|
88
155
|
*
|
|
89
156
|
* @param CreateTaskSetCommandInput - {@link CreateTaskSetCommandInput}
|
|
@@ -131,6 +198,8 @@ export interface CreateTaskSetCommandOutput extends CreateTaskSetResponse, __Met
|
|
|
131
198
|
* @throws {@link UnsupportedFeatureException} (client fault)
|
|
132
199
|
* <p>The specified task isn't supported in this Region.</p>
|
|
133
200
|
*
|
|
201
|
+
* @throws {@link ECSServiceException}
|
|
202
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
134
203
|
*
|
|
135
204
|
*/
|
|
136
205
|
export declare class CreateTaskSetCommand extends $Command<CreateTaskSetCommandInput, CreateTaskSetCommandOutput, ECSClientResolvedConfig> {
|
|
@@ -33,6 +33,14 @@ export interface DeleteAccountSettingCommandOutput extends DeleteAccountSettingR
|
|
|
33
33
|
* };
|
|
34
34
|
* const command = new DeleteAccountSettingCommand(input);
|
|
35
35
|
* const response = await client.send(command);
|
|
36
|
+
* // { // DeleteAccountSettingResponse
|
|
37
|
+
* // setting: { // Setting
|
|
38
|
+
* // name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization",
|
|
39
|
+
* // value: "STRING_VALUE",
|
|
40
|
+
* // principalArn: "STRING_VALUE",
|
|
41
|
+
* // },
|
|
42
|
+
* // };
|
|
43
|
+
*
|
|
36
44
|
* ```
|
|
37
45
|
*
|
|
38
46
|
* @param DeleteAccountSettingCommandInput - {@link DeleteAccountSettingCommandInput}
|
|
@@ -53,6 +61,8 @@ export interface DeleteAccountSettingCommandOutput extends DeleteAccountSettingR
|
|
|
53
61
|
* @throws {@link ServerException} (server fault)
|
|
54
62
|
* <p>These errors are usually caused by a server issue.</p>
|
|
55
63
|
*
|
|
64
|
+
* @throws {@link ECSServiceException}
|
|
65
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
56
66
|
*
|
|
57
67
|
* @example To delete your account setting
|
|
58
68
|
* ```javascript
|
|
@@ -39,6 +39,17 @@ export interface DeleteAttributesCommandOutput extends DeleteAttributesResponse,
|
|
|
39
39
|
* };
|
|
40
40
|
* const command = new DeleteAttributesCommand(input);
|
|
41
41
|
* const response = await client.send(command);
|
|
42
|
+
* // { // DeleteAttributesResponse
|
|
43
|
+
* // attributes: [ // Attributes
|
|
44
|
+
* // { // Attribute
|
|
45
|
+
* // name: "STRING_VALUE", // required
|
|
46
|
+
* // value: "STRING_VALUE",
|
|
47
|
+
* // targetType: "container-instance",
|
|
48
|
+
* // targetId: "STRING_VALUE",
|
|
49
|
+
* // },
|
|
50
|
+
* // ],
|
|
51
|
+
* // };
|
|
52
|
+
*
|
|
42
53
|
* ```
|
|
43
54
|
*
|
|
44
55
|
* @param DeleteAttributesCommandInput - {@link DeleteAttributesCommandInput}
|
|
@@ -59,6 +70,8 @@ export interface DeleteAttributesCommandOutput extends DeleteAttributesResponse,
|
|
|
59
70
|
* with <a>ListContainerInstances</a>. Amazon ECS container instances are
|
|
60
71
|
* cluster-specific and Region-specific.</p>
|
|
61
72
|
*
|
|
73
|
+
* @throws {@link ECSServiceException}
|
|
74
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
62
75
|
*
|
|
63
76
|
*/
|
|
64
77
|
export declare class DeleteAttributesCommand extends $Command<DeleteAttributesCommandInput, DeleteAttributesCommandOutput, ECSClientResolvedConfig> {
|