@aws-sdk/client-ecs 3.215.0 → 3.218.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/ECS.js +15 -0
- package/dist-cjs/commands/ListServicesByNamespaceCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +79 -25
- package/dist-cjs/pagination/ListServicesByNamespacePaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +233 -3
- package/dist-es/ECS.js +15 -0
- package/dist-es/commands/ListServicesByNamespaceCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +62 -17
- package/dist-es/pagination/ListServicesByNamespacePaginator.js +32 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +229 -1
- package/dist-types/ECS.d.ts +25 -9
- package/dist-types/ECSClient.d.ts +3 -2
- package/dist-types/commands/CreateServiceCommand.d.ts +2 -3
- package/dist-types/commands/ExecuteCommandCommand.d.ts +1 -1
- package/dist-types/commands/ListServicesByNamespaceCommand.d.ts +41 -0
- package/dist-types/commands/UpdateContainerAgentCommand.d.ts +5 -0
- package/dist-types/commands/UpdateTaskProtectionCommand.d.ts +6 -5
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +610 -147
- package/dist-types/pagination/ListServicesByNamespacePaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +3 -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/ListServicesByNamespaceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +107 -23
- package/dist-types/ts3.4/pagination/ListServicesByNamespacePaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/package.json +4 -4
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ListServicesByNamespaceCommand, } from "../commands/ListServicesByNamespaceCommand";
|
|
2
|
+
import { ECS } from "../ECS";
|
|
3
|
+
import { ECSClient } from "../ECSClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListServicesByNamespaceCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listServicesByNamespace(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListServicesByNamespace(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.nextToken = token;
|
|
16
|
+
input["maxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof ECS) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof ECSClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected ECS | ECSClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.nextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -3,6 +3,7 @@ export * from "./ListAccountSettingsPaginator";
|
|
|
3
3
|
export * from "./ListAttributesPaginator";
|
|
4
4
|
export * from "./ListClustersPaginator";
|
|
5
5
|
export * from "./ListContainerInstancesPaginator";
|
|
6
|
+
export * from "./ListServicesByNamespacePaginator";
|
|
6
7
|
export * from "./ListServicesPaginator";
|
|
7
8
|
export * from "./ListTaskDefinitionFamiliesPaginator";
|
|
8
9
|
export * from "./ListTaskDefinitionsPaginator";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
2
|
import { 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, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { ECSServiceException as __BaseException } from "../models/ECSServiceException";
|
|
4
|
-
import { AccessDeniedException, AttributeLimitExceededException, BlockedException, ClientException, ClusterContainsContainerInstancesException, ClusterContainsServicesException, ClusterContainsTasksException, ClusterNotFoundException, InvalidParameterException, LimitExceededException, MissingVersionException, NoUpdateAvailableException, PlatformTaskDefinitionIncompatibilityException, PlatformUnknownException, ResourceInUseException, ResourceNotFoundException, ServerException, ServiceNotActiveException, ServiceNotFoundException, TargetNotConnectedException, TargetNotFoundException, TaskSetNotFoundException, UnsupportedFeatureException, UpdateInProgressException, } from "../models/models_0";
|
|
4
|
+
import { AccessDeniedException, AttributeLimitExceededException, BlockedException, ClientException, ClusterContainsContainerInstancesException, ClusterContainsServicesException, ClusterContainsTasksException, ClusterNotFoundException, InvalidParameterException, LimitExceededException, MissingVersionException, NamespaceNotFoundException, NoUpdateAvailableException, PlatformTaskDefinitionIncompatibilityException, PlatformUnknownException, ResourceInUseException, ResourceNotFoundException, ServerException, ServiceNotActiveException, ServiceNotFoundException, TargetNotConnectedException, TargetNotFoundException, TaskSetNotFoundException, UnsupportedFeatureException, UpdateInProgressException, } from "../models/models_0";
|
|
5
5
|
export const serializeAws_json1_1CreateCapacityProviderCommand = async (input, context) => {
|
|
6
6
|
const headers = {
|
|
7
7
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -245,6 +245,15 @@ export const serializeAws_json1_1ListServicesCommand = async (input, context) =>
|
|
|
245
245
|
body = JSON.stringify(serializeAws_json1_1ListServicesRequest(input, context));
|
|
246
246
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
247
|
};
|
|
248
|
+
export const serializeAws_json1_1ListServicesByNamespaceCommand = async (input, context) => {
|
|
249
|
+
const headers = {
|
|
250
|
+
"content-type": "application/x-amz-json-1.1",
|
|
251
|
+
"x-amz-target": "AmazonEC2ContainerServiceV20141113.ListServicesByNamespace",
|
|
252
|
+
};
|
|
253
|
+
let body;
|
|
254
|
+
body = JSON.stringify(serializeAws_json1_1ListServicesByNamespaceRequest(input, context));
|
|
255
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
256
|
+
};
|
|
248
257
|
export const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) => {
|
|
249
258
|
const headers = {
|
|
250
259
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -604,6 +613,9 @@ const deserializeAws_json1_1CreateServiceCommandError = async (output, context)
|
|
|
604
613
|
case "InvalidParameterException":
|
|
605
614
|
case "com.amazonaws.ecs#InvalidParameterException":
|
|
606
615
|
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
616
|
+
case "NamespaceNotFoundException":
|
|
617
|
+
case "com.amazonaws.ecs#NamespaceNotFoundException":
|
|
618
|
+
throw await deserializeAws_json1_1NamespaceNotFoundExceptionResponse(parsedOutput, context);
|
|
607
619
|
case "PlatformTaskDefinitionIncompatibilityException":
|
|
608
620
|
case "com.amazonaws.ecs#PlatformTaskDefinitionIncompatibilityException":
|
|
609
621
|
throw await deserializeAws_json1_1PlatformTaskDefinitionIncompatibilityExceptionResponse(parsedOutput, context);
|
|
@@ -658,6 +670,9 @@ const deserializeAws_json1_1CreateTaskSetCommandError = async (output, context)
|
|
|
658
670
|
case "InvalidParameterException":
|
|
659
671
|
case "com.amazonaws.ecs#InvalidParameterException":
|
|
660
672
|
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
673
|
+
case "NamespaceNotFoundException":
|
|
674
|
+
case "com.amazonaws.ecs#NamespaceNotFoundException":
|
|
675
|
+
throw await deserializeAws_json1_1NamespaceNotFoundExceptionResponse(parsedOutput, context);
|
|
661
676
|
case "PlatformTaskDefinitionIncompatibilityException":
|
|
662
677
|
case "com.amazonaws.ecs#PlatformTaskDefinitionIncompatibilityException":
|
|
663
678
|
throw await deserializeAws_json1_1PlatformTaskDefinitionIncompatibilityExceptionResponse(parsedOutput, context);
|
|
@@ -1670,6 +1685,48 @@ const deserializeAws_json1_1ListServicesCommandError = async (output, context) =
|
|
|
1670
1685
|
});
|
|
1671
1686
|
}
|
|
1672
1687
|
};
|
|
1688
|
+
export const deserializeAws_json1_1ListServicesByNamespaceCommand = async (output, context) => {
|
|
1689
|
+
if (output.statusCode >= 300) {
|
|
1690
|
+
return deserializeAws_json1_1ListServicesByNamespaceCommandError(output, context);
|
|
1691
|
+
}
|
|
1692
|
+
const data = await parseBody(output.body, context);
|
|
1693
|
+
let contents = {};
|
|
1694
|
+
contents = deserializeAws_json1_1ListServicesByNamespaceResponse(data, context);
|
|
1695
|
+
const response = {
|
|
1696
|
+
$metadata: deserializeMetadata(output),
|
|
1697
|
+
...contents,
|
|
1698
|
+
};
|
|
1699
|
+
return Promise.resolve(response);
|
|
1700
|
+
};
|
|
1701
|
+
const deserializeAws_json1_1ListServicesByNamespaceCommandError = async (output, context) => {
|
|
1702
|
+
const parsedOutput = {
|
|
1703
|
+
...output,
|
|
1704
|
+
body: await parseErrorBody(output.body, context),
|
|
1705
|
+
};
|
|
1706
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1707
|
+
switch (errorCode) {
|
|
1708
|
+
case "ClientException":
|
|
1709
|
+
case "com.amazonaws.ecs#ClientException":
|
|
1710
|
+
throw await deserializeAws_json1_1ClientExceptionResponse(parsedOutput, context);
|
|
1711
|
+
case "InvalidParameterException":
|
|
1712
|
+
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1713
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1714
|
+
case "NamespaceNotFoundException":
|
|
1715
|
+
case "com.amazonaws.ecs#NamespaceNotFoundException":
|
|
1716
|
+
throw await deserializeAws_json1_1NamespaceNotFoundExceptionResponse(parsedOutput, context);
|
|
1717
|
+
case "ServerException":
|
|
1718
|
+
case "com.amazonaws.ecs#ServerException":
|
|
1719
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1720
|
+
default:
|
|
1721
|
+
const parsedBody = parsedOutput.body;
|
|
1722
|
+
throwDefaultError({
|
|
1723
|
+
output,
|
|
1724
|
+
parsedBody,
|
|
1725
|
+
exceptionCtor: __BaseException,
|
|
1726
|
+
errorCode,
|
|
1727
|
+
});
|
|
1728
|
+
}
|
|
1729
|
+
};
|
|
1673
1730
|
export const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
1674
1731
|
if (output.statusCode >= 300) {
|
|
1675
1732
|
return deserializeAws_json1_1ListTagsForResourceCommandError(output, context);
|
|
@@ -2683,6 +2740,9 @@ const deserializeAws_json1_1UpdateServiceCommandError = async (output, context)
|
|
|
2683
2740
|
case "InvalidParameterException":
|
|
2684
2741
|
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2685
2742
|
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2743
|
+
case "NamespaceNotFoundException":
|
|
2744
|
+
case "com.amazonaws.ecs#NamespaceNotFoundException":
|
|
2745
|
+
throw await deserializeAws_json1_1NamespaceNotFoundExceptionResponse(parsedOutput, context);
|
|
2686
2746
|
case "PlatformTaskDefinitionIncompatibilityException":
|
|
2687
2747
|
case "com.amazonaws.ecs#PlatformTaskDefinitionIncompatibilityException":
|
|
2688
2748
|
throw await deserializeAws_json1_1PlatformTaskDefinitionIncompatibilityExceptionResponse(parsedOutput, context);
|
|
@@ -2972,6 +3032,15 @@ const deserializeAws_json1_1MissingVersionExceptionResponse = async (parsedOutpu
|
|
|
2972
3032
|
});
|
|
2973
3033
|
return __decorateServiceException(exception, body);
|
|
2974
3034
|
};
|
|
3035
|
+
const deserializeAws_json1_1NamespaceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3036
|
+
const body = parsedOutput.body;
|
|
3037
|
+
const deserialized = deserializeAws_json1_1NamespaceNotFoundException(body, context);
|
|
3038
|
+
const exception = new NamespaceNotFoundException({
|
|
3039
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3040
|
+
...deserialized,
|
|
3041
|
+
});
|
|
3042
|
+
return __decorateServiceException(exception, body);
|
|
3043
|
+
};
|
|
2975
3044
|
const deserializeAws_json1_1NoUpdateAvailableExceptionResponse = async (parsedOutput, context) => {
|
|
2976
3045
|
const body = parsedOutput.body;
|
|
2977
3046
|
const deserialized = deserializeAws_json1_1NoUpdateAvailableException(body, context);
|
|
@@ -3182,6 +3251,11 @@ const serializeAws_json1_1ClusterFieldList = (input, context) => {
|
|
|
3182
3251
|
return entry;
|
|
3183
3252
|
});
|
|
3184
3253
|
};
|
|
3254
|
+
const serializeAws_json1_1ClusterServiceConnectDefaultsRequest = (input, context) => {
|
|
3255
|
+
return {
|
|
3256
|
+
...(input.namespace != null && { namespace: input.namespace }),
|
|
3257
|
+
};
|
|
3258
|
+
};
|
|
3185
3259
|
const serializeAws_json1_1ClusterSetting = (input, context) => {
|
|
3186
3260
|
return {
|
|
3187
3261
|
...(input.name != null && { name: input.name }),
|
|
@@ -3362,6 +3436,9 @@ const serializeAws_json1_1CreateClusterRequest = (input, context) => {
|
|
|
3362
3436
|
...(input.defaultCapacityProviderStrategy != null && {
|
|
3363
3437
|
defaultCapacityProviderStrategy: serializeAws_json1_1CapacityProviderStrategy(input.defaultCapacityProviderStrategy, context),
|
|
3364
3438
|
}),
|
|
3439
|
+
...(input.serviceConnectDefaults != null && {
|
|
3440
|
+
serviceConnectDefaults: serializeAws_json1_1ClusterServiceConnectDefaultsRequest(input.serviceConnectDefaults, context),
|
|
3441
|
+
}),
|
|
3365
3442
|
...(input.settings != null && { settings: serializeAws_json1_1ClusterSettings(input.settings, context) }),
|
|
3366
3443
|
...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
3367
3444
|
};
|
|
@@ -3402,6 +3479,9 @@ const serializeAws_json1_1CreateServiceRequest = (input, context) => {
|
|
|
3402
3479
|
...(input.propagateTags != null && { propagateTags: input.propagateTags }),
|
|
3403
3480
|
...(input.role != null && { role: input.role }),
|
|
3404
3481
|
...(input.schedulingStrategy != null && { schedulingStrategy: input.schedulingStrategy }),
|
|
3482
|
+
...(input.serviceConnectConfiguration != null && {
|
|
3483
|
+
serviceConnectConfiguration: serializeAws_json1_1ServiceConnectConfiguration(input.serviceConnectConfiguration, context),
|
|
3484
|
+
}),
|
|
3405
3485
|
...(input.serviceName != null && { serviceName: input.serviceName }),
|
|
3406
3486
|
...(input.serviceRegistries != null && {
|
|
3407
3487
|
serviceRegistries: serializeAws_json1_1ServiceRegistries(input.serviceRegistries, context),
|
|
@@ -3826,6 +3906,13 @@ const serializeAws_json1_1ListContainerInstancesRequest = (input, context) => {
|
|
|
3826
3906
|
...(input.status != null && { status: input.status }),
|
|
3827
3907
|
};
|
|
3828
3908
|
};
|
|
3909
|
+
const serializeAws_json1_1ListServicesByNamespaceRequest = (input, context) => {
|
|
3910
|
+
return {
|
|
3911
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
3912
|
+
...(input.namespace != null && { namespace: input.namespace }),
|
|
3913
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
3914
|
+
};
|
|
3915
|
+
};
|
|
3829
3916
|
const serializeAws_json1_1ListServicesRequest = (input, context) => {
|
|
3830
3917
|
return {
|
|
3831
3918
|
...(input.cluster != null && { cluster: input.cluster }),
|
|
@@ -4002,8 +4089,10 @@ const serializeAws_json1_1PlatformDevices = (input, context) => {
|
|
|
4002
4089
|
};
|
|
4003
4090
|
const serializeAws_json1_1PortMapping = (input, context) => {
|
|
4004
4091
|
return {
|
|
4092
|
+
...(input.appProtocol != null && { appProtocol: input.appProtocol }),
|
|
4005
4093
|
...(input.containerPort != null && { containerPort: input.containerPort }),
|
|
4006
4094
|
...(input.hostPort != null && { hostPort: input.hostPort }),
|
|
4095
|
+
...(input.name != null && { name: input.name }),
|
|
4007
4096
|
...(input.protocol != null && { protocol: input.protocol }),
|
|
4008
4097
|
};
|
|
4009
4098
|
};
|
|
@@ -4205,6 +4294,46 @@ const serializeAws_json1_1SecretList = (input, context) => {
|
|
|
4205
4294
|
return serializeAws_json1_1Secret(entry, context);
|
|
4206
4295
|
});
|
|
4207
4296
|
};
|
|
4297
|
+
const serializeAws_json1_1ServiceConnectClientAlias = (input, context) => {
|
|
4298
|
+
return {
|
|
4299
|
+
...(input.dnsName != null && { dnsName: input.dnsName }),
|
|
4300
|
+
...(input.port != null && { port: input.port }),
|
|
4301
|
+
};
|
|
4302
|
+
};
|
|
4303
|
+
const serializeAws_json1_1ServiceConnectClientAliasList = (input, context) => {
|
|
4304
|
+
return input
|
|
4305
|
+
.filter((e) => e != null)
|
|
4306
|
+
.map((entry) => {
|
|
4307
|
+
return serializeAws_json1_1ServiceConnectClientAlias(entry, context);
|
|
4308
|
+
});
|
|
4309
|
+
};
|
|
4310
|
+
const serializeAws_json1_1ServiceConnectConfiguration = (input, context) => {
|
|
4311
|
+
return {
|
|
4312
|
+
...(input.enabled != null && { enabled: input.enabled }),
|
|
4313
|
+
...(input.logConfiguration != null && {
|
|
4314
|
+
logConfiguration: serializeAws_json1_1LogConfiguration(input.logConfiguration, context),
|
|
4315
|
+
}),
|
|
4316
|
+
...(input.namespace != null && { namespace: input.namespace }),
|
|
4317
|
+
...(input.services != null && { services: serializeAws_json1_1ServiceConnectServiceList(input.services, context) }),
|
|
4318
|
+
};
|
|
4319
|
+
};
|
|
4320
|
+
const serializeAws_json1_1ServiceConnectService = (input, context) => {
|
|
4321
|
+
return {
|
|
4322
|
+
...(input.clientAliases != null && {
|
|
4323
|
+
clientAliases: serializeAws_json1_1ServiceConnectClientAliasList(input.clientAliases, context),
|
|
4324
|
+
}),
|
|
4325
|
+
...(input.discoveryName != null && { discoveryName: input.discoveryName }),
|
|
4326
|
+
...(input.ingressPortOverride != null && { ingressPortOverride: input.ingressPortOverride }),
|
|
4327
|
+
...(input.portName != null && { portName: input.portName }),
|
|
4328
|
+
};
|
|
4329
|
+
};
|
|
4330
|
+
const serializeAws_json1_1ServiceConnectServiceList = (input, context) => {
|
|
4331
|
+
return input
|
|
4332
|
+
.filter((e) => e != null)
|
|
4333
|
+
.map((entry) => {
|
|
4334
|
+
return serializeAws_json1_1ServiceConnectService(entry, context);
|
|
4335
|
+
});
|
|
4336
|
+
};
|
|
4208
4337
|
const serializeAws_json1_1ServiceFieldList = (input, context) => {
|
|
4209
4338
|
return input
|
|
4210
4339
|
.filter((e) => e != null)
|
|
@@ -4452,6 +4581,9 @@ const serializeAws_json1_1UpdateClusterRequest = (input, context) => {
|
|
|
4452
4581
|
...(input.configuration != null && {
|
|
4453
4582
|
configuration: serializeAws_json1_1ClusterConfiguration(input.configuration, context),
|
|
4454
4583
|
}),
|
|
4584
|
+
...(input.serviceConnectDefaults != null && {
|
|
4585
|
+
serviceConnectDefaults: serializeAws_json1_1ClusterServiceConnectDefaultsRequest(input.serviceConnectDefaults, context),
|
|
4586
|
+
}),
|
|
4455
4587
|
...(input.settings != null && { settings: serializeAws_json1_1ClusterSettings(input.settings, context) }),
|
|
4456
4588
|
};
|
|
4457
4589
|
};
|
|
@@ -4514,6 +4646,9 @@ const serializeAws_json1_1UpdateServiceRequest = (input, context) => {
|
|
|
4514
4646
|
...(input.platformVersion != null && { platformVersion: input.platformVersion }),
|
|
4515
4647
|
...(input.propagateTags != null && { propagateTags: input.propagateTags }),
|
|
4516
4648
|
...(input.service != null && { service: input.service }),
|
|
4649
|
+
...(input.serviceConnectConfiguration != null && {
|
|
4650
|
+
serviceConnectConfiguration: serializeAws_json1_1ServiceConnectConfiguration(input.serviceConnectConfiguration, context),
|
|
4651
|
+
}),
|
|
4517
4652
|
...(input.serviceRegistries != null && {
|
|
4518
4653
|
serviceRegistries: serializeAws_json1_1ServiceRegistries(input.serviceRegistries, context),
|
|
4519
4654
|
}),
|
|
@@ -4722,6 +4857,9 @@ const deserializeAws_json1_1Cluster = (output, context) => {
|
|
|
4722
4857
|
pendingTasksCount: __expectInt32(output.pendingTasksCount),
|
|
4723
4858
|
registeredContainerInstancesCount: __expectInt32(output.registeredContainerInstancesCount),
|
|
4724
4859
|
runningTasksCount: __expectInt32(output.runningTasksCount),
|
|
4860
|
+
serviceConnectDefaults: output.serviceConnectDefaults != null
|
|
4861
|
+
? deserializeAws_json1_1ClusterServiceConnectDefaults(output.serviceConnectDefaults, context)
|
|
4862
|
+
: undefined,
|
|
4725
4863
|
settings: output.settings != null ? deserializeAws_json1_1ClusterSettings(output.settings, context) : undefined,
|
|
4726
4864
|
statistics: output.statistics != null ? deserializeAws_json1_1Statistics(output.statistics, context) : undefined,
|
|
4727
4865
|
status: __expectString(output.status),
|
|
@@ -4766,6 +4904,11 @@ const deserializeAws_json1_1Clusters = (output, context) => {
|
|
|
4766
4904
|
});
|
|
4767
4905
|
return retVal;
|
|
4768
4906
|
};
|
|
4907
|
+
const deserializeAws_json1_1ClusterServiceConnectDefaults = (output, context) => {
|
|
4908
|
+
return {
|
|
4909
|
+
namespace: __expectString(output.namespace),
|
|
4910
|
+
};
|
|
4911
|
+
};
|
|
4769
4912
|
const deserializeAws_json1_1ClusterSetting = (output, context) => {
|
|
4770
4913
|
return {
|
|
4771
4914
|
name: __expectString(output.name),
|
|
@@ -5062,6 +5205,12 @@ const deserializeAws_json1_1Deployment = (output, context) => {
|
|
|
5062
5205
|
rolloutState: __expectString(output.rolloutState),
|
|
5063
5206
|
rolloutStateReason: __expectString(output.rolloutStateReason),
|
|
5064
5207
|
runningCount: __expectInt32(output.runningCount),
|
|
5208
|
+
serviceConnectConfiguration: output.serviceConnectConfiguration != null
|
|
5209
|
+
? deserializeAws_json1_1ServiceConnectConfiguration(output.serviceConnectConfiguration, context)
|
|
5210
|
+
: undefined,
|
|
5211
|
+
serviceConnectResources: output.serviceConnectResources != null
|
|
5212
|
+
? deserializeAws_json1_1ServiceConnectServiceResourceList(output.serviceConnectResources, context)
|
|
5213
|
+
: undefined,
|
|
5065
5214
|
status: __expectString(output.status),
|
|
5066
5215
|
taskDefinition: __expectString(output.taskDefinition),
|
|
5067
5216
|
updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
|
|
@@ -5191,6 +5340,7 @@ const deserializeAws_json1_1DevicesList = (output, context) => {
|
|
|
5191
5340
|
const deserializeAws_json1_1DiscoverPollEndpointResponse = (output, context) => {
|
|
5192
5341
|
return {
|
|
5193
5342
|
endpoint: __expectString(output.endpoint),
|
|
5343
|
+
serviceConnectEndpoint: __expectString(output.serviceConnectEndpoint),
|
|
5194
5344
|
telemetryEndpoint: __expectString(output.telemetryEndpoint),
|
|
5195
5345
|
};
|
|
5196
5346
|
};
|
|
@@ -5504,6 +5654,12 @@ const deserializeAws_json1_1ListContainerInstancesResponse = (output, context) =
|
|
|
5504
5654
|
nextToken: __expectString(output.nextToken),
|
|
5505
5655
|
};
|
|
5506
5656
|
};
|
|
5657
|
+
const deserializeAws_json1_1ListServicesByNamespaceResponse = (output, context) => {
|
|
5658
|
+
return {
|
|
5659
|
+
nextToken: __expectString(output.nextToken),
|
|
5660
|
+
serviceArns: output.serviceArns != null ? deserializeAws_json1_1StringList(output.serviceArns, context) : undefined,
|
|
5661
|
+
};
|
|
5662
|
+
};
|
|
5507
5663
|
const deserializeAws_json1_1ListServicesResponse = (output, context) => {
|
|
5508
5664
|
return {
|
|
5509
5665
|
nextToken: __expectString(output.nextToken),
|
|
@@ -5623,6 +5779,11 @@ const deserializeAws_json1_1MountPointList = (output, context) => {
|
|
|
5623
5779
|
});
|
|
5624
5780
|
return retVal;
|
|
5625
5781
|
};
|
|
5782
|
+
const deserializeAws_json1_1NamespaceNotFoundException = (output, context) => {
|
|
5783
|
+
return {
|
|
5784
|
+
message: __expectString(output.message),
|
|
5785
|
+
};
|
|
5786
|
+
};
|
|
5626
5787
|
const deserializeAws_json1_1NetworkBinding = (output, context) => {
|
|
5627
5788
|
return {
|
|
5628
5789
|
bindIP: __expectString(output.bindIP),
|
|
@@ -5718,8 +5879,10 @@ const deserializeAws_json1_1PlatformUnknownException = (output, context) => {
|
|
|
5718
5879
|
};
|
|
5719
5880
|
const deserializeAws_json1_1PortMapping = (output, context) => {
|
|
5720
5881
|
return {
|
|
5882
|
+
appProtocol: __expectString(output.appProtocol),
|
|
5721
5883
|
containerPort: __expectInt32(output.containerPort),
|
|
5722
5884
|
hostPort: __expectInt32(output.hostPort),
|
|
5885
|
+
name: __expectString(output.name),
|
|
5723
5886
|
protocol: __expectString(output.protocol),
|
|
5724
5887
|
};
|
|
5725
5888
|
};
|
|
@@ -5960,6 +6123,71 @@ const deserializeAws_json1_1Service = (output, context) => {
|
|
|
5960
6123
|
taskSets: output.taskSets != null ? deserializeAws_json1_1TaskSets(output.taskSets, context) : undefined,
|
|
5961
6124
|
};
|
|
5962
6125
|
};
|
|
6126
|
+
const deserializeAws_json1_1ServiceConnectClientAlias = (output, context) => {
|
|
6127
|
+
return {
|
|
6128
|
+
dnsName: __expectString(output.dnsName),
|
|
6129
|
+
port: __expectInt32(output.port),
|
|
6130
|
+
};
|
|
6131
|
+
};
|
|
6132
|
+
const deserializeAws_json1_1ServiceConnectClientAliasList = (output, context) => {
|
|
6133
|
+
const retVal = (output || [])
|
|
6134
|
+
.filter((e) => e != null)
|
|
6135
|
+
.map((entry) => {
|
|
6136
|
+
if (entry === null) {
|
|
6137
|
+
return null;
|
|
6138
|
+
}
|
|
6139
|
+
return deserializeAws_json1_1ServiceConnectClientAlias(entry, context);
|
|
6140
|
+
});
|
|
6141
|
+
return retVal;
|
|
6142
|
+
};
|
|
6143
|
+
const deserializeAws_json1_1ServiceConnectConfiguration = (output, context) => {
|
|
6144
|
+
return {
|
|
6145
|
+
enabled: __expectBoolean(output.enabled),
|
|
6146
|
+
logConfiguration: output.logConfiguration != null
|
|
6147
|
+
? deserializeAws_json1_1LogConfiguration(output.logConfiguration, context)
|
|
6148
|
+
: undefined,
|
|
6149
|
+
namespace: __expectString(output.namespace),
|
|
6150
|
+
services: output.services != null ? deserializeAws_json1_1ServiceConnectServiceList(output.services, context) : undefined,
|
|
6151
|
+
};
|
|
6152
|
+
};
|
|
6153
|
+
const deserializeAws_json1_1ServiceConnectService = (output, context) => {
|
|
6154
|
+
return {
|
|
6155
|
+
clientAliases: output.clientAliases != null
|
|
6156
|
+
? deserializeAws_json1_1ServiceConnectClientAliasList(output.clientAliases, context)
|
|
6157
|
+
: undefined,
|
|
6158
|
+
discoveryName: __expectString(output.discoveryName),
|
|
6159
|
+
ingressPortOverride: __expectInt32(output.ingressPortOverride),
|
|
6160
|
+
portName: __expectString(output.portName),
|
|
6161
|
+
};
|
|
6162
|
+
};
|
|
6163
|
+
const deserializeAws_json1_1ServiceConnectServiceList = (output, context) => {
|
|
6164
|
+
const retVal = (output || [])
|
|
6165
|
+
.filter((e) => e != null)
|
|
6166
|
+
.map((entry) => {
|
|
6167
|
+
if (entry === null) {
|
|
6168
|
+
return null;
|
|
6169
|
+
}
|
|
6170
|
+
return deserializeAws_json1_1ServiceConnectService(entry, context);
|
|
6171
|
+
});
|
|
6172
|
+
return retVal;
|
|
6173
|
+
};
|
|
6174
|
+
const deserializeAws_json1_1ServiceConnectServiceResource = (output, context) => {
|
|
6175
|
+
return {
|
|
6176
|
+
discoveryArn: __expectString(output.discoveryArn),
|
|
6177
|
+
discoveryName: __expectString(output.discoveryName),
|
|
6178
|
+
};
|
|
6179
|
+
};
|
|
6180
|
+
const deserializeAws_json1_1ServiceConnectServiceResourceList = (output, context) => {
|
|
6181
|
+
const retVal = (output || [])
|
|
6182
|
+
.filter((e) => e != null)
|
|
6183
|
+
.map((entry) => {
|
|
6184
|
+
if (entry === null) {
|
|
6185
|
+
return null;
|
|
6186
|
+
}
|
|
6187
|
+
return deserializeAws_json1_1ServiceConnectServiceResource(entry, context);
|
|
6188
|
+
});
|
|
6189
|
+
return retVal;
|
|
6190
|
+
};
|
|
5963
6191
|
const deserializeAws_json1_1ServiceEvent = (output, context) => {
|
|
5964
6192
|
return {
|
|
5965
6193
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
package/dist-types/ECS.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ import { ListAccountSettingsCommandInput, ListAccountSettingsCommandOutput } fro
|
|
|
25
25
|
import { ListAttributesCommandInput, ListAttributesCommandOutput } from "./commands/ListAttributesCommand";
|
|
26
26
|
import { ListClustersCommandInput, ListClustersCommandOutput } from "./commands/ListClustersCommand";
|
|
27
27
|
import { ListContainerInstancesCommandInput, ListContainerInstancesCommandOutput } from "./commands/ListContainerInstancesCommand";
|
|
28
|
+
import { ListServicesByNamespaceCommandInput, ListServicesByNamespaceCommandOutput } from "./commands/ListServicesByNamespaceCommand";
|
|
28
29
|
import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
|
|
29
30
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
30
31
|
import { ListTaskDefinitionFamiliesCommandInput, ListTaskDefinitionFamiliesCommandOutput } from "./commands/ListTaskDefinitionFamiliesCommand";
|
|
@@ -177,9 +178,8 @@ export declare class ECS extends ECSClient {
|
|
|
177
178
|
* <p>When creating a service that uses the <code>EXTERNAL</code> deployment controller, you
|
|
178
179
|
* can specify only parameters that aren't controlled at the task set level. The only
|
|
179
180
|
* required parameter is the service name. You control your services using the <a>CreateTaskSet</a> operation. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html">Amazon ECS deployment types</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
180
|
-
* <p>When the service scheduler launches new tasks, it determines task placement. For
|
|
181
|
-
*
|
|
182
|
-
* task placement</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
181
|
+
* <p>When the service scheduler launches new tasks, it determines task placement. For information
|
|
182
|
+
* about task placement and task placement strategies, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement.html">Amazon ECS task placement</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
183
183
|
*/
|
|
184
184
|
createService(args: CreateServiceCommandInput, options?: __HttpHandlerOptions): Promise<CreateServiceCommandOutput>;
|
|
185
185
|
createService(args: CreateServiceCommandInput, cb: (err: any, data?: CreateServiceCommandOutput) => void): void;
|
|
@@ -375,7 +375,7 @@ export declare class ECS extends ECSClient {
|
|
|
375
375
|
/**
|
|
376
376
|
* <p>Runs a command remotely on a container within a task.</p>
|
|
377
377
|
* <p>If you use a condition key in your IAM policy to refine the conditions for the policy
|
|
378
|
-
* statement, for example limit the actions to a specific cluster, you
|
|
378
|
+
* statement, for example limit the actions to a specific cluster, you receive an
|
|
379
379
|
* <code>AccessDeniedException</code> when there is a mismatch between the condition
|
|
380
380
|
* key value and the corresponding parameter value.</p>
|
|
381
381
|
*/
|
|
@@ -428,6 +428,16 @@ export declare class ECS extends ECSClient {
|
|
|
428
428
|
listServices(args: ListServicesCommandInput, options?: __HttpHandlerOptions): Promise<ListServicesCommandOutput>;
|
|
429
429
|
listServices(args: ListServicesCommandInput, cb: (err: any, data?: ListServicesCommandOutput) => void): void;
|
|
430
430
|
listServices(args: ListServicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListServicesCommandOutput) => void): void;
|
|
431
|
+
/**
|
|
432
|
+
* <p>This operation lists all of the services that are associated with a Cloud Map namespace. This list
|
|
433
|
+
* might include services in different clusters. In contrast, <code>ListServices</code> can
|
|
434
|
+
* only list services in one cluster at a time. If you need to filter the list of
|
|
435
|
+
* services in a single cluster by various parameters, use <code>ListServices</code>.
|
|
436
|
+
* For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html">Service Connect</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
437
|
+
*/
|
|
438
|
+
listServicesByNamespace(args: ListServicesByNamespaceCommandInput, options?: __HttpHandlerOptions): Promise<ListServicesByNamespaceCommandOutput>;
|
|
439
|
+
listServicesByNamespace(args: ListServicesByNamespaceCommandInput, cb: (err: any, data?: ListServicesByNamespaceCommandOutput) => void): void;
|
|
440
|
+
listServicesByNamespace(args: ListServicesByNamespaceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListServicesByNamespaceCommandOutput) => void): void;
|
|
431
441
|
/**
|
|
432
442
|
* <p>List the tags for an Amazon ECS resource.</p>
|
|
433
443
|
*/
|
|
@@ -698,6 +708,11 @@ export declare class ECS extends ECSClient {
|
|
|
698
708
|
* Amazon ECS container agent</a> in the
|
|
699
709
|
* <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
700
710
|
* </note>
|
|
711
|
+
* <note>
|
|
712
|
+
* <p>Agent updates with the <code>UpdateContainerAgent</code> API operation do not
|
|
713
|
+
* apply to Windows container instances. We recommend that you launch new container
|
|
714
|
+
* instances to update the agent version in your Windows clusters.</p>
|
|
715
|
+
* </note>
|
|
701
716
|
* <p>The <code>UpdateContainerAgent</code> API requires an Amazon ECS-optimized AMI or Amazon
|
|
702
717
|
* Linux AMI with the <code>ecs-init</code> service installed and running. For help
|
|
703
718
|
* updating the Amazon ECS container agent on other operating systems, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html#manually_update_agent">Manually updating the Amazon ECS container agent</a> in the
|
|
@@ -915,17 +930,18 @@ export declare class ECS extends ECSClient {
|
|
|
915
930
|
* <code>protectionEnabled</code> set to <code>true</code>. You can keep extending the
|
|
916
931
|
* protection expiration period of a task by invoking this operation repeatedly.</p>
|
|
917
932
|
* <p>To learn more about Amazon ECS task protection, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-scale-in-protection.html">Task scale-in
|
|
918
|
-
* protection</a> in the <i>
|
|
933
|
+
* protection</a> in the <i>
|
|
934
|
+
* <i>Amazon Elastic Container Service Developer Guide</i>
|
|
935
|
+
* </i>.</p>
|
|
919
936
|
* <note>
|
|
920
937
|
* <p>This operation is only supported for tasks belonging to an Amazon ECS service. Invoking
|
|
921
938
|
* this operation for a standalone task will result in an <code>TASK_NOT_VALID</code>
|
|
922
|
-
* failure. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/api_failures_messages.html
|
|
923
|
-
*
|
|
939
|
+
* failure. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/api_failures_messages.html">API failure
|
|
940
|
+
* reasons</a>.</p>
|
|
924
941
|
* </note>
|
|
925
942
|
* <important>
|
|
926
943
|
* <p>If you prefer to set task protection from within the container, we recommend using
|
|
927
|
-
* the <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/
|
|
928
|
-
* agent endpoint</a>.</p>
|
|
944
|
+
* the <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-scale-in-protection-endpoint.html">Task scale-in protection endpoint</a>.</p>
|
|
929
945
|
* </important>
|
|
930
946
|
*/
|
|
931
947
|
updateTaskProtection(args: UpdateTaskProtectionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTaskProtectionCommandOutput>;
|
|
@@ -33,6 +33,7 @@ import { ListAccountSettingsCommandInput, ListAccountSettingsCommandOutput } fro
|
|
|
33
33
|
import { ListAttributesCommandInput, ListAttributesCommandOutput } from "./commands/ListAttributesCommand";
|
|
34
34
|
import { ListClustersCommandInput, ListClustersCommandOutput } from "./commands/ListClustersCommand";
|
|
35
35
|
import { ListContainerInstancesCommandInput, ListContainerInstancesCommandOutput } from "./commands/ListContainerInstancesCommand";
|
|
36
|
+
import { ListServicesByNamespaceCommandInput, ListServicesByNamespaceCommandOutput } from "./commands/ListServicesByNamespaceCommand";
|
|
36
37
|
import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
|
|
37
38
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
38
39
|
import { ListTaskDefinitionFamiliesCommandInput, ListTaskDefinitionFamiliesCommandOutput } from "./commands/ListTaskDefinitionFamiliesCommand";
|
|
@@ -62,8 +63,8 @@ import { UpdateServicePrimaryTaskSetCommandInput, UpdateServicePrimaryTaskSetCom
|
|
|
62
63
|
import { UpdateTaskProtectionCommandInput, UpdateTaskProtectionCommandOutput } from "./commands/UpdateTaskProtectionCommand";
|
|
63
64
|
import { UpdateTaskSetCommandInput, UpdateTaskSetCommandOutput } from "./commands/UpdateTaskSetCommand";
|
|
64
65
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
65
|
-
export declare type ServiceInputTypes = CreateCapacityProviderCommandInput | CreateClusterCommandInput | CreateServiceCommandInput | CreateTaskSetCommandInput | DeleteAccountSettingCommandInput | DeleteAttributesCommandInput | DeleteCapacityProviderCommandInput | DeleteClusterCommandInput | DeleteServiceCommandInput | DeleteTaskSetCommandInput | DeregisterContainerInstanceCommandInput | DeregisterTaskDefinitionCommandInput | DescribeCapacityProvidersCommandInput | DescribeClustersCommandInput | DescribeContainerInstancesCommandInput | DescribeServicesCommandInput | DescribeTaskDefinitionCommandInput | DescribeTaskSetsCommandInput | DescribeTasksCommandInput | DiscoverPollEndpointCommandInput | ExecuteCommandCommandInput | GetTaskProtectionCommandInput | ListAccountSettingsCommandInput | ListAttributesCommandInput | ListClustersCommandInput | ListContainerInstancesCommandInput | 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;
|
|
66
|
-
export declare type ServiceOutputTypes = CreateCapacityProviderCommandOutput | CreateClusterCommandOutput | CreateServiceCommandOutput | CreateTaskSetCommandOutput | DeleteAccountSettingCommandOutput | DeleteAttributesCommandOutput | DeleteCapacityProviderCommandOutput | DeleteClusterCommandOutput | DeleteServiceCommandOutput | DeleteTaskSetCommandOutput | DeregisterContainerInstanceCommandOutput | DeregisterTaskDefinitionCommandOutput | DescribeCapacityProvidersCommandOutput | DescribeClustersCommandOutput | DescribeContainerInstancesCommandOutput | DescribeServicesCommandOutput | DescribeTaskDefinitionCommandOutput | DescribeTaskSetsCommandOutput | DescribeTasksCommandOutput | DiscoverPollEndpointCommandOutput | ExecuteCommandCommandOutput | GetTaskProtectionCommandOutput | ListAccountSettingsCommandOutput | ListAttributesCommandOutput | ListClustersCommandOutput | ListContainerInstancesCommandOutput | 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;
|
|
66
|
+
export declare type ServiceInputTypes = CreateCapacityProviderCommandInput | CreateClusterCommandInput | CreateServiceCommandInput | CreateTaskSetCommandInput | DeleteAccountSettingCommandInput | DeleteAttributesCommandInput | DeleteCapacityProviderCommandInput | DeleteClusterCommandInput | DeleteServiceCommandInput | DeleteTaskSetCommandInput | DeregisterContainerInstanceCommandInput | DeregisterTaskDefinitionCommandInput | DescribeCapacityProvidersCommandInput | DescribeClustersCommandInput | DescribeContainerInstancesCommandInput | DescribeServicesCommandInput | DescribeTaskDefinitionCommandInput | DescribeTaskSetsCommandInput | DescribeTasksCommandInput | DiscoverPollEndpointCommandInput | ExecuteCommandCommandInput | GetTaskProtectionCommandInput | ListAccountSettingsCommandInput | ListAttributesCommandInput | ListClustersCommandInput | ListContainerInstancesCommandInput | 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;
|
|
67
|
+
export declare type ServiceOutputTypes = CreateCapacityProviderCommandOutput | CreateClusterCommandOutput | CreateServiceCommandOutput | CreateTaskSetCommandOutput | DeleteAccountSettingCommandOutput | DeleteAttributesCommandOutput | DeleteCapacityProviderCommandOutput | DeleteClusterCommandOutput | DeleteServiceCommandOutput | DeleteTaskSetCommandOutput | DeregisterContainerInstanceCommandOutput | DeregisterTaskDefinitionCommandOutput | DescribeCapacityProvidersCommandOutput | DescribeClustersCommandOutput | DescribeContainerInstancesCommandOutput | DescribeServicesCommandOutput | DescribeTaskDefinitionCommandOutput | DescribeTaskSetsCommandOutput | DescribeTasksCommandOutput | DiscoverPollEndpointCommandOutput | ExecuteCommandCommandOutput | GetTaskProtectionCommandOutput | ListAccountSettingsCommandOutput | ListAttributesCommandOutput | ListClustersCommandOutput | ListContainerInstancesCommandOutput | 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;
|
|
67
68
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
68
69
|
/**
|
|
69
70
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -85,9 +85,8 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met
|
|
|
85
85
|
* <p>When creating a service that uses the <code>EXTERNAL</code> deployment controller, you
|
|
86
86
|
* can specify only parameters that aren't controlled at the task set level. The only
|
|
87
87
|
* required parameter is the service name. You control your services using the <a>CreateTaskSet</a> operation. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html">Amazon ECS deployment types</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
88
|
-
* <p>When the service scheduler launches new tasks, it determines task placement. For
|
|
89
|
-
*
|
|
90
|
-
* task placement</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
88
|
+
* <p>When the service scheduler launches new tasks, it determines task placement. For information
|
|
89
|
+
* about task placement and task placement strategies, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement.html">Amazon ECS task placement</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
91
90
|
* @example
|
|
92
91
|
* Use a bare-bones client and the command you need to make an API call.
|
|
93
92
|
* ```javascript
|
|
@@ -10,7 +10,7 @@ export interface ExecuteCommandCommandOutput extends ExecuteCommandResponse, __M
|
|
|
10
10
|
/**
|
|
11
11
|
* <p>Runs a command remotely on a container within a task.</p>
|
|
12
12
|
* <p>If you use a condition key in your IAM policy to refine the conditions for the policy
|
|
13
|
-
* statement, for example limit the actions to a specific cluster, you
|
|
13
|
+
* statement, for example limit the actions to a specific cluster, you receive an
|
|
14
14
|
* <code>AccessDeniedException</code> when there is a mismatch between the condition
|
|
15
15
|
* key value and the corresponding parameter value.</p>
|
|
16
16
|
* @example
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECSClient";
|
|
5
|
+
import { ListServicesByNamespaceRequest, ListServicesByNamespaceResponse } from "../models/models_0";
|
|
6
|
+
export interface ListServicesByNamespaceCommandInput extends ListServicesByNamespaceRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface ListServicesByNamespaceCommandOutput extends ListServicesByNamespaceResponse, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>This operation lists all of the services that are associated with a Cloud Map namespace. This list
|
|
12
|
+
* might include services in different clusters. In contrast, <code>ListServices</code> can
|
|
13
|
+
* only list services in one cluster at a time. If you need to filter the list of
|
|
14
|
+
* services in a single cluster by various parameters, use <code>ListServices</code>.
|
|
15
|
+
* For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html">Service Connect</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
16
|
+
* @example
|
|
17
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
18
|
+
* ```javascript
|
|
19
|
+
* import { ECSClient, ListServicesByNamespaceCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
20
|
+
* // const { ECSClient, ListServicesByNamespaceCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
21
|
+
* const client = new ECSClient(config);
|
|
22
|
+
* const command = new ListServicesByNamespaceCommand(input);
|
|
23
|
+
* const response = await client.send(command);
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @see {@link ListServicesByNamespaceCommandInput} for command's `input` shape.
|
|
27
|
+
* @see {@link ListServicesByNamespaceCommandOutput} for command's `response` shape.
|
|
28
|
+
* @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
export declare class ListServicesByNamespaceCommand extends $Command<ListServicesByNamespaceCommandInput, ListServicesByNamespaceCommandOutput, ECSClientResolvedConfig> {
|
|
32
|
+
readonly input: ListServicesByNamespaceCommandInput;
|
|
33
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
34
|
+
constructor(input: ListServicesByNamespaceCommandInput);
|
|
35
|
+
/**
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListServicesByNamespaceCommandInput, ListServicesByNamespaceCommandOutput>;
|
|
39
|
+
private serialize;
|
|
40
|
+
private deserialize;
|
|
41
|
+
}
|
|
@@ -20,6 +20,11 @@ export interface UpdateContainerAgentCommandOutput extends UpdateContainerAgentR
|
|
|
20
20
|
* Amazon ECS container agent</a> in the
|
|
21
21
|
* <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
22
22
|
* </note>
|
|
23
|
+
* <note>
|
|
24
|
+
* <p>Agent updates with the <code>UpdateContainerAgent</code> API operation do not
|
|
25
|
+
* apply to Windows container instances. We recommend that you launch new container
|
|
26
|
+
* instances to update the agent version in your Windows clusters.</p>
|
|
27
|
+
* </note>
|
|
23
28
|
* <p>The <code>UpdateContainerAgent</code> API requires an Amazon ECS-optimized AMI or Amazon
|
|
24
29
|
* Linux AMI with the <code>ecs-init</code> service installed and running. For help
|
|
25
30
|
* updating the Amazon ECS container agent on other operating systems, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html#manually_update_agent">Manually updating the Amazon ECS container agent</a> in the
|