@aws-sdk/client-servicediscovery 3.282.0 → 3.288.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/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +15 -15
- package/dist-cjs/pagination/GetInstancesHealthStatusPaginator.js +1 -8
- package/dist-cjs/pagination/ListInstancesPaginator.js +1 -8
- package/dist-cjs/pagination/ListNamespacesPaginator.js +1 -8
- package/dist-cjs/pagination/ListOperationsPaginator.js +1 -8
- package/dist-cjs/pagination/ListServicesPaginator.js +1 -8
- package/dist-cjs/protocols/Aws_json1_1.js +72 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +13 -13
- package/dist-es/pagination/GetInstancesHealthStatusPaginator.js +1 -8
- package/dist-es/pagination/ListInstancesPaginator.js +1 -8
- package/dist-es/pagination/ListNamespacesPaginator.js +1 -8
- package/dist-es/pagination/ListOperationsPaginator.js +1 -8
- package/dist-es/pagination/ListServicesPaginator.js +1 -8
- package/dist-es/protocols/Aws_json1_1.js +72 -0
- package/dist-types/ServiceDiscovery.d.ts +0 -1
- package/dist-types/commands/CreatePublicDnsNamespaceCommand.d.ts +0 -1
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +14 -22
- package/dist-types/pagination/Interfaces.d.ts +1 -2
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +8 -8
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +1 -2
- package/package.json +9 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a =
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://servicediscovery-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://servicediscovery-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://servicediscovery.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://servicediscovery.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteNamespaceRequestFilterSensitiveLog = exports.CreateServiceResponseFilterSensitiveLog = exports.ServiceFilterSensitiveLog = exports.CreateServiceRequestFilterSensitiveLog = exports.HealthCheckCustomConfigFilterSensitiveLog = exports.HealthCheckConfigFilterSensitiveLog = exports.DnsConfigFilterSensitiveLog = exports.DnsRecordFilterSensitiveLog = exports.CreatePublicDnsNamespaceResponseFilterSensitiveLog = exports.CreatePublicDnsNamespaceRequestFilterSensitiveLog = exports.PublicDnsNamespacePropertiesFilterSensitiveLog = exports.PublicDnsPropertiesMutableFilterSensitiveLog = exports.CreatePrivateDnsNamespaceResponseFilterSensitiveLog = exports.CreatePrivateDnsNamespaceRequestFilterSensitiveLog = exports.PrivateDnsNamespacePropertiesFilterSensitiveLog = exports.PrivateDnsPropertiesMutableFilterSensitiveLog = exports.SOAFilterSensitiveLog = exports.CreateHttpNamespaceResponseFilterSensitiveLog = exports.CreateHttpNamespaceRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.ResourceNotFoundException = exports.ServiceFilterName = exports.OperationFilterName = exports.NamespaceFilterName = exports.OperationNotFound = exports.OperationType = exports.OperationTargetType = exports.OperationStatus = exports.NamespaceType = exports.FilterCondition = exports.
|
|
3
|
+
exports.DeleteNamespaceRequestFilterSensitiveLog = exports.CreateServiceResponseFilterSensitiveLog = exports.ServiceFilterSensitiveLog = exports.CreateServiceRequestFilterSensitiveLog = exports.HealthCheckCustomConfigFilterSensitiveLog = exports.HealthCheckConfigFilterSensitiveLog = exports.DnsConfigFilterSensitiveLog = exports.DnsRecordFilterSensitiveLog = exports.CreatePublicDnsNamespaceResponseFilterSensitiveLog = exports.CreatePublicDnsNamespaceRequestFilterSensitiveLog = exports.PublicDnsNamespacePropertiesFilterSensitiveLog = exports.PublicDnsPropertiesMutableFilterSensitiveLog = exports.CreatePrivateDnsNamespaceResponseFilterSensitiveLog = exports.CreatePrivateDnsNamespaceRequestFilterSensitiveLog = exports.PrivateDnsNamespacePropertiesFilterSensitiveLog = exports.PrivateDnsPropertiesMutableFilterSensitiveLog = exports.SOAFilterSensitiveLog = exports.CreateHttpNamespaceResponseFilterSensitiveLog = exports.CreateHttpNamespaceRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.ResourceNotFoundException = exports.ServiceFilterName = exports.OperationFilterName = exports.NamespaceFilterName = exports.OperationNotFound = exports.OperationType = exports.OperationTargetType = exports.OperationStatus = exports.NamespaceType = exports.FilterCondition = exports.HealthStatus = exports.HealthStatusFilter = exports.InstanceNotFound = exports.ServiceNotFound = exports.ResourceInUse = exports.CustomHealthStatus = exports.CustomHealthNotFound = exports.ServiceAlreadyExists = exports.NamespaceNotFound = exports.ServiceType = exports.ServiceTypeOption = exports.HealthCheckType = exports.RoutingPolicy = exports.RecordType = exports.TooManyTagsException = exports.ResourceLimitExceeded = exports.RequestLimitExceeded = exports.NamespaceAlreadyExists = exports.InvalidInput = exports.DuplicateRequest = void 0;
|
|
4
4
|
exports.PublicDnsNamespaceChangeFilterSensitiveLog = exports.PublicDnsNamespacePropertiesChangeFilterSensitiveLog = exports.PublicDnsPropertiesMutableChangeFilterSensitiveLog = exports.PrivateDnsNamespaceChangeFilterSensitiveLog = exports.PrivateDnsNamespacePropertiesChangeFilterSensitiveLog = exports.PrivateDnsPropertiesMutableChangeFilterSensitiveLog = exports.SOAChangeFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListServicesResponseFilterSensitiveLog = exports.ServiceSummaryFilterSensitiveLog = exports.ListServicesRequestFilterSensitiveLog = exports.ServiceFilterFilterSensitiveLog = exports.ListOperationsResponseFilterSensitiveLog = exports.OperationSummaryFilterSensitiveLog = exports.ListOperationsRequestFilterSensitiveLog = exports.OperationFilterFilterSensitiveLog = exports.ListNamespacesResponseFilterSensitiveLog = exports.NamespaceSummaryFilterSensitiveLog = exports.ListNamespacesRequestFilterSensitiveLog = exports.NamespaceFilterFilterSensitiveLog = exports.ListInstancesResponseFilterSensitiveLog = exports.ListInstancesRequestFilterSensitiveLog = exports.InstanceSummaryFilterSensitiveLog = exports.HttpNamespaceChangeFilterSensitiveLog = exports.GetServiceResponseFilterSensitiveLog = exports.GetServiceRequestFilterSensitiveLog = exports.GetOperationResponseFilterSensitiveLog = exports.OperationFilterSensitiveLog = exports.GetOperationRequestFilterSensitiveLog = exports.GetNamespaceResponseFilterSensitiveLog = exports.NamespaceFilterSensitiveLog = exports.NamespacePropertiesFilterSensitiveLog = exports.HttpPropertiesFilterSensitiveLog = exports.GetNamespaceRequestFilterSensitiveLog = exports.GetInstancesHealthStatusResponseFilterSensitiveLog = exports.GetInstancesHealthStatusRequestFilterSensitiveLog = exports.GetInstanceResponseFilterSensitiveLog = exports.InstanceFilterSensitiveLog = exports.GetInstanceRequestFilterSensitiveLog = exports.DnsPropertiesFilterSensitiveLog = exports.DnsConfigChangeFilterSensitiveLog = exports.DiscoverInstancesResponseFilterSensitiveLog = exports.HttpInstanceSummaryFilterSensitiveLog = exports.DiscoverInstancesRequestFilterSensitiveLog = exports.DeregisterInstanceResponseFilterSensitiveLog = exports.DeregisterInstanceRequestFilterSensitiveLog = exports.DeleteServiceResponseFilterSensitiveLog = exports.DeleteServiceRequestFilterSensitiveLog = exports.DeleteNamespaceResponseFilterSensitiveLog = void 0;
|
|
5
5
|
exports.UpdateServiceResponseFilterSensitiveLog = exports.UpdateServiceRequestFilterSensitiveLog = exports.ServiceChangeFilterSensitiveLog = exports.UpdatePublicDnsNamespaceResponseFilterSensitiveLog = exports.UpdatePublicDnsNamespaceRequestFilterSensitiveLog = exports.UpdatePrivateDnsNamespaceResponseFilterSensitiveLog = exports.UpdatePrivateDnsNamespaceRequestFilterSensitiveLog = exports.UpdateInstanceCustomHealthStatusRequestFilterSensitiveLog = exports.UpdateHttpNamespaceResponseFilterSensitiveLog = exports.UpdateHttpNamespaceRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.RegisterInstanceResponseFilterSensitiveLog = exports.RegisterInstanceRequestFilterSensitiveLog = void 0;
|
|
6
6
|
const ServiceDiscoveryServiceException_1 = require("./ServiceDiscoveryServiceException");
|
|
@@ -49,6 +49,20 @@ class NamespaceAlreadyExists extends ServiceDiscoveryServiceException_1.ServiceD
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
exports.NamespaceAlreadyExists = NamespaceAlreadyExists;
|
|
52
|
+
class RequestLimitExceeded extends ServiceDiscoveryServiceException_1.ServiceDiscoveryServiceException {
|
|
53
|
+
constructor(opts) {
|
|
54
|
+
super({
|
|
55
|
+
name: "RequestLimitExceeded",
|
|
56
|
+
$fault: "client",
|
|
57
|
+
...opts,
|
|
58
|
+
});
|
|
59
|
+
this.name = "RequestLimitExceeded";
|
|
60
|
+
this.$fault = "client";
|
|
61
|
+
Object.setPrototypeOf(this, RequestLimitExceeded.prototype);
|
|
62
|
+
this.Message = opts.Message;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.RequestLimitExceeded = RequestLimitExceeded;
|
|
52
66
|
class ResourceLimitExceeded extends ServiceDiscoveryServiceException_1.ServiceDiscoveryServiceException {
|
|
53
67
|
constructor(opts) {
|
|
54
68
|
super({
|
|
@@ -210,20 +224,6 @@ var HealthStatus;
|
|
|
210
224
|
HealthStatus["UNHEALTHY"] = "UNHEALTHY";
|
|
211
225
|
HealthStatus["UNKNOWN"] = "UNKNOWN";
|
|
212
226
|
})(HealthStatus = exports.HealthStatus || (exports.HealthStatus = {}));
|
|
213
|
-
class RequestLimitExceeded extends ServiceDiscoveryServiceException_1.ServiceDiscoveryServiceException {
|
|
214
|
-
constructor(opts) {
|
|
215
|
-
super({
|
|
216
|
-
name: "RequestLimitExceeded",
|
|
217
|
-
$fault: "client",
|
|
218
|
-
...opts,
|
|
219
|
-
});
|
|
220
|
-
this.name = "RequestLimitExceeded";
|
|
221
|
-
this.$fault = "client";
|
|
222
|
-
Object.setPrototypeOf(this, RequestLimitExceeded.prototype);
|
|
223
|
-
this.Message = opts.Message;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
exports.RequestLimitExceeded = RequestLimitExceeded;
|
|
227
227
|
var FilterCondition;
|
|
228
228
|
(function (FilterCondition) {
|
|
229
229
|
FilterCondition["BEGINS_WITH"] = "BEGINS_WITH";
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetInstancesHealthStatus = void 0;
|
|
4
4
|
const GetInstancesHealthStatusCommand_1 = require("../commands/GetInstancesHealthStatusCommand");
|
|
5
|
-
const ServiceDiscovery_1 = require("../ServiceDiscovery");
|
|
6
5
|
const ServiceDiscoveryClient_1 = require("../ServiceDiscoveryClient");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new GetInstancesHealthStatusCommand_1.GetInstancesHealthStatusCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.getInstancesHealthStatus(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateGetInstancesHealthStatus(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateGetInstancesHealthStatus(config, input, ...additionalArg
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.NextToken = token;
|
|
19
15
|
input["MaxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof ServiceDiscoveryClient_1.ServiceDiscoveryClient) {
|
|
16
|
+
if (config.client instanceof ServiceDiscoveryClient_1.ServiceDiscoveryClient) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListInstances = void 0;
|
|
4
4
|
const ListInstancesCommand_1 = require("../commands/ListInstancesCommand");
|
|
5
|
-
const ServiceDiscovery_1 = require("../ServiceDiscovery");
|
|
6
5
|
const ServiceDiscoveryClient_1 = require("../ServiceDiscoveryClient");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListInstancesCommand_1.ListInstancesCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listInstances(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListInstances(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListInstances(config, input, ...additionalArguments) {
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.NextToken = token;
|
|
19
15
|
input["MaxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof ServiceDiscoveryClient_1.ServiceDiscoveryClient) {
|
|
16
|
+
if (config.client instanceof ServiceDiscoveryClient_1.ServiceDiscoveryClient) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListNamespaces = void 0;
|
|
4
4
|
const ListNamespacesCommand_1 = require("../commands/ListNamespacesCommand");
|
|
5
|
-
const ServiceDiscovery_1 = require("../ServiceDiscovery");
|
|
6
5
|
const ServiceDiscoveryClient_1 = require("../ServiceDiscoveryClient");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListNamespacesCommand_1.ListNamespacesCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listNamespaces(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListNamespaces(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListNamespaces(config, input, ...additionalArguments) {
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.NextToken = token;
|
|
19
15
|
input["MaxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof ServiceDiscoveryClient_1.ServiceDiscoveryClient) {
|
|
16
|
+
if (config.client instanceof ServiceDiscoveryClient_1.ServiceDiscoveryClient) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListOperations = void 0;
|
|
4
4
|
const ListOperationsCommand_1 = require("../commands/ListOperationsCommand");
|
|
5
|
-
const ServiceDiscovery_1 = require("../ServiceDiscovery");
|
|
6
5
|
const ServiceDiscoveryClient_1 = require("../ServiceDiscoveryClient");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListOperationsCommand_1.ListOperationsCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listOperations(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListOperations(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListOperations(config, input, ...additionalArguments) {
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.NextToken = token;
|
|
19
15
|
input["MaxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof ServiceDiscoveryClient_1.ServiceDiscoveryClient) {
|
|
16
|
+
if (config.client instanceof ServiceDiscoveryClient_1.ServiceDiscoveryClient) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListServices = void 0;
|
|
4
4
|
const ListServicesCommand_1 = require("../commands/ListServicesCommand");
|
|
5
|
-
const ServiceDiscovery_1 = require("../ServiceDiscovery");
|
|
6
5
|
const ServiceDiscoveryClient_1 = require("../ServiceDiscoveryClient");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListServicesCommand_1.ListServicesCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listServices(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListServices(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListServices(config, input, ...additionalArguments) {
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.NextToken = token;
|
|
19
15
|
input["MaxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof ServiceDiscoveryClient_1.ServiceDiscoveryClient) {
|
|
16
|
+
if (config.client instanceof ServiceDiscoveryClient_1.ServiceDiscoveryClient) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -304,6 +304,9 @@ const deserializeAws_json1_1CreateHttpNamespaceCommandError = async (output, con
|
|
|
304
304
|
case "NamespaceAlreadyExists":
|
|
305
305
|
case "com.amazonaws.servicediscovery#NamespaceAlreadyExists":
|
|
306
306
|
throw await deserializeAws_json1_1NamespaceAlreadyExistsResponse(parsedOutput, context);
|
|
307
|
+
case "RequestLimitExceeded":
|
|
308
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
309
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
307
310
|
case "ResourceLimitExceeded":
|
|
308
311
|
case "com.amazonaws.servicediscovery#ResourceLimitExceeded":
|
|
309
312
|
throw await deserializeAws_json1_1ResourceLimitExceededResponse(parsedOutput, context);
|
|
@@ -350,6 +353,9 @@ const deserializeAws_json1_1CreatePrivateDnsNamespaceCommandError = async (outpu
|
|
|
350
353
|
case "NamespaceAlreadyExists":
|
|
351
354
|
case "com.amazonaws.servicediscovery#NamespaceAlreadyExists":
|
|
352
355
|
throw await deserializeAws_json1_1NamespaceAlreadyExistsResponse(parsedOutput, context);
|
|
356
|
+
case "RequestLimitExceeded":
|
|
357
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
358
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
353
359
|
case "ResourceLimitExceeded":
|
|
354
360
|
case "com.amazonaws.servicediscovery#ResourceLimitExceeded":
|
|
355
361
|
throw await deserializeAws_json1_1ResourceLimitExceededResponse(parsedOutput, context);
|
|
@@ -396,6 +402,9 @@ const deserializeAws_json1_1CreatePublicDnsNamespaceCommandError = async (output
|
|
|
396
402
|
case "NamespaceAlreadyExists":
|
|
397
403
|
case "com.amazonaws.servicediscovery#NamespaceAlreadyExists":
|
|
398
404
|
throw await deserializeAws_json1_1NamespaceAlreadyExistsResponse(parsedOutput, context);
|
|
405
|
+
case "RequestLimitExceeded":
|
|
406
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
407
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
399
408
|
case "ResourceLimitExceeded":
|
|
400
409
|
case "com.amazonaws.servicediscovery#ResourceLimitExceeded":
|
|
401
410
|
throw await deserializeAws_json1_1ResourceLimitExceededResponse(parsedOutput, context);
|
|
@@ -439,6 +448,9 @@ const deserializeAws_json1_1CreateServiceCommandError = async (output, context)
|
|
|
439
448
|
case "NamespaceNotFound":
|
|
440
449
|
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
441
450
|
throw await deserializeAws_json1_1NamespaceNotFoundResponse(parsedOutput, context);
|
|
451
|
+
case "RequestLimitExceeded":
|
|
452
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
453
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
442
454
|
case "ResourceLimitExceeded":
|
|
443
455
|
case "com.amazonaws.servicediscovery#ResourceLimitExceeded":
|
|
444
456
|
throw await deserializeAws_json1_1ResourceLimitExceededResponse(parsedOutput, context);
|
|
@@ -488,6 +500,9 @@ const deserializeAws_json1_1DeleteNamespaceCommandError = async (output, context
|
|
|
488
500
|
case "NamespaceNotFound":
|
|
489
501
|
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
490
502
|
throw await deserializeAws_json1_1NamespaceNotFoundResponse(parsedOutput, context);
|
|
503
|
+
case "RequestLimitExceeded":
|
|
504
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
505
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
491
506
|
case "ResourceInUse":
|
|
492
507
|
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
493
508
|
throw await deserializeAws_json1_1ResourceInUseResponse(parsedOutput, context);
|
|
@@ -525,6 +540,9 @@ const deserializeAws_json1_1DeleteServiceCommandError = async (output, context)
|
|
|
525
540
|
case "InvalidInput":
|
|
526
541
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
527
542
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
543
|
+
case "RequestLimitExceeded":
|
|
544
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
545
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
528
546
|
case "ResourceInUse":
|
|
529
547
|
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
530
548
|
throw await deserializeAws_json1_1ResourceInUseResponse(parsedOutput, context);
|
|
@@ -571,6 +589,9 @@ const deserializeAws_json1_1DeregisterInstanceCommandError = async (output, cont
|
|
|
571
589
|
case "InvalidInput":
|
|
572
590
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
573
591
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
592
|
+
case "RequestLimitExceeded":
|
|
593
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
594
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
574
595
|
case "ResourceInUse":
|
|
575
596
|
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
576
597
|
throw await deserializeAws_json1_1ResourceInUseResponse(parsedOutput, context);
|
|
@@ -657,6 +678,9 @@ const deserializeAws_json1_1GetInstanceCommandError = async (output, context) =>
|
|
|
657
678
|
case "InvalidInput":
|
|
658
679
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
659
680
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
681
|
+
case "RequestLimitExceeded":
|
|
682
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
683
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
660
684
|
case "ServiceNotFound":
|
|
661
685
|
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
662
686
|
throw await deserializeAws_json1_1ServiceNotFoundResponse(parsedOutput, context);
|
|
@@ -697,6 +721,9 @@ const deserializeAws_json1_1GetInstancesHealthStatusCommandError = async (output
|
|
|
697
721
|
case "InvalidInput":
|
|
698
722
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
699
723
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
724
|
+
case "RequestLimitExceeded":
|
|
725
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
726
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
700
727
|
case "ServiceNotFound":
|
|
701
728
|
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
702
729
|
throw await deserializeAws_json1_1ServiceNotFoundResponse(parsedOutput, context);
|
|
@@ -774,6 +801,9 @@ const deserializeAws_json1_1GetOperationCommandError = async (output, context) =
|
|
|
774
801
|
case "OperationNotFound":
|
|
775
802
|
case "com.amazonaws.servicediscovery#OperationNotFound":
|
|
776
803
|
throw await deserializeAws_json1_1OperationNotFoundResponse(parsedOutput, context);
|
|
804
|
+
case "RequestLimitExceeded":
|
|
805
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
806
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
777
807
|
default:
|
|
778
808
|
const parsedBody = parsedOutput.body;
|
|
779
809
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -808,6 +838,9 @@ const deserializeAws_json1_1GetServiceCommandError = async (output, context) =>
|
|
|
808
838
|
case "InvalidInput":
|
|
809
839
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
810
840
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
841
|
+
case "RequestLimitExceeded":
|
|
842
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
843
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
811
844
|
case "ServiceNotFound":
|
|
812
845
|
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
813
846
|
throw await deserializeAws_json1_1ServiceNotFoundResponse(parsedOutput, context);
|
|
@@ -845,6 +878,9 @@ const deserializeAws_json1_1ListInstancesCommandError = async (output, context)
|
|
|
845
878
|
case "InvalidInput":
|
|
846
879
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
847
880
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
881
|
+
case "RequestLimitExceeded":
|
|
882
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
883
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
848
884
|
case "ServiceNotFound":
|
|
849
885
|
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
850
886
|
throw await deserializeAws_json1_1ServiceNotFoundResponse(parsedOutput, context);
|
|
@@ -882,6 +918,9 @@ const deserializeAws_json1_1ListNamespacesCommandError = async (output, context)
|
|
|
882
918
|
case "InvalidInput":
|
|
883
919
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
884
920
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
921
|
+
case "RequestLimitExceeded":
|
|
922
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
923
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
885
924
|
default:
|
|
886
925
|
const parsedBody = parsedOutput.body;
|
|
887
926
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -916,6 +955,9 @@ const deserializeAws_json1_1ListOperationsCommandError = async (output, context)
|
|
|
916
955
|
case "InvalidInput":
|
|
917
956
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
918
957
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
958
|
+
case "RequestLimitExceeded":
|
|
959
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
960
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
919
961
|
default:
|
|
920
962
|
const parsedBody = parsedOutput.body;
|
|
921
963
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -950,6 +992,9 @@ const deserializeAws_json1_1ListServicesCommandError = async (output, context) =
|
|
|
950
992
|
case "InvalidInput":
|
|
951
993
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
952
994
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
995
|
+
case "RequestLimitExceeded":
|
|
996
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
997
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
953
998
|
default:
|
|
954
999
|
const parsedBody = parsedOutput.body;
|
|
955
1000
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -984,6 +1029,9 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
984
1029
|
case "InvalidInput":
|
|
985
1030
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
986
1031
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
1032
|
+
case "RequestLimitExceeded":
|
|
1033
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
1034
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
987
1035
|
case "ResourceNotFoundException":
|
|
988
1036
|
case "com.amazonaws.servicediscovery#ResourceNotFoundException":
|
|
989
1037
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -1024,6 +1072,9 @@ const deserializeAws_json1_1RegisterInstanceCommandError = async (output, contex
|
|
|
1024
1072
|
case "InvalidInput":
|
|
1025
1073
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1026
1074
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
1075
|
+
case "RequestLimitExceeded":
|
|
1076
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
1077
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
1027
1078
|
case "ResourceInUse":
|
|
1028
1079
|
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
1029
1080
|
throw await deserializeAws_json1_1ResourceInUseResponse(parsedOutput, context);
|
|
@@ -1067,6 +1118,9 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1067
1118
|
case "InvalidInput":
|
|
1068
1119
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1069
1120
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
1121
|
+
case "RequestLimitExceeded":
|
|
1122
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
1123
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
1070
1124
|
case "ResourceNotFoundException":
|
|
1071
1125
|
case "com.amazonaws.servicediscovery#ResourceNotFoundException":
|
|
1072
1126
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -1107,6 +1161,9 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1107
1161
|
case "InvalidInput":
|
|
1108
1162
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1109
1163
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
1164
|
+
case "RequestLimitExceeded":
|
|
1165
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
1166
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
1110
1167
|
case "ResourceNotFoundException":
|
|
1111
1168
|
case "com.amazonaws.servicediscovery#ResourceNotFoundException":
|
|
1112
1169
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -1150,6 +1207,9 @@ const deserializeAws_json1_1UpdateHttpNamespaceCommandError = async (output, con
|
|
|
1150
1207
|
case "NamespaceNotFound":
|
|
1151
1208
|
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
1152
1209
|
throw await deserializeAws_json1_1NamespaceNotFoundResponse(parsedOutput, context);
|
|
1210
|
+
case "RequestLimitExceeded":
|
|
1211
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
1212
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
1153
1213
|
case "ResourceInUse":
|
|
1154
1214
|
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
1155
1215
|
throw await deserializeAws_json1_1ResourceInUseResponse(parsedOutput, context);
|
|
@@ -1190,6 +1250,9 @@ const deserializeAws_json1_1UpdateInstanceCustomHealthStatusCommandError = async
|
|
|
1190
1250
|
case "InvalidInput":
|
|
1191
1251
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1192
1252
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
1253
|
+
case "RequestLimitExceeded":
|
|
1254
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
1255
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
1193
1256
|
case "ServiceNotFound":
|
|
1194
1257
|
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
1195
1258
|
throw await deserializeAws_json1_1ServiceNotFoundResponse(parsedOutput, context);
|
|
@@ -1233,6 +1296,9 @@ const deserializeAws_json1_1UpdatePrivateDnsNamespaceCommandError = async (outpu
|
|
|
1233
1296
|
case "NamespaceNotFound":
|
|
1234
1297
|
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
1235
1298
|
throw await deserializeAws_json1_1NamespaceNotFoundResponse(parsedOutput, context);
|
|
1299
|
+
case "RequestLimitExceeded":
|
|
1300
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
1301
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
1236
1302
|
case "ResourceInUse":
|
|
1237
1303
|
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
1238
1304
|
throw await deserializeAws_json1_1ResourceInUseResponse(parsedOutput, context);
|
|
@@ -1276,6 +1342,9 @@ const deserializeAws_json1_1UpdatePublicDnsNamespaceCommandError = async (output
|
|
|
1276
1342
|
case "NamespaceNotFound":
|
|
1277
1343
|
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
1278
1344
|
throw await deserializeAws_json1_1NamespaceNotFoundResponse(parsedOutput, context);
|
|
1345
|
+
case "RequestLimitExceeded":
|
|
1346
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
1347
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
1279
1348
|
case "ResourceInUse":
|
|
1280
1349
|
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
1281
1350
|
throw await deserializeAws_json1_1ResourceInUseResponse(parsedOutput, context);
|
|
@@ -1316,6 +1385,9 @@ const deserializeAws_json1_1UpdateServiceCommandError = async (output, context)
|
|
|
1316
1385
|
case "InvalidInput":
|
|
1317
1386
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1318
1387
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
1388
|
+
case "RequestLimitExceeded":
|
|
1389
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
1390
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
1319
1391
|
case "ServiceNotFound":
|
|
1320
1392
|
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
1321
1393
|
throw await deserializeAws_json1_1ServiceNotFoundResponse(parsedOutput, context);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://servicediscovery-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://servicediscovery-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://servicediscovery.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://servicediscovery.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -41,6 +41,19 @@ export class NamespaceAlreadyExists extends __BaseException {
|
|
|
41
41
|
this.NamespaceId = opts.NamespaceId;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
+
export class RequestLimitExceeded extends __BaseException {
|
|
45
|
+
constructor(opts) {
|
|
46
|
+
super({
|
|
47
|
+
name: "RequestLimitExceeded",
|
|
48
|
+
$fault: "client",
|
|
49
|
+
...opts,
|
|
50
|
+
});
|
|
51
|
+
this.name = "RequestLimitExceeded";
|
|
52
|
+
this.$fault = "client";
|
|
53
|
+
Object.setPrototypeOf(this, RequestLimitExceeded.prototype);
|
|
54
|
+
this.Message = opts.Message;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
44
57
|
export class ResourceLimitExceeded extends __BaseException {
|
|
45
58
|
constructor(opts) {
|
|
46
59
|
super({
|
|
@@ -194,19 +207,6 @@ export var HealthStatus;
|
|
|
194
207
|
HealthStatus["UNHEALTHY"] = "UNHEALTHY";
|
|
195
208
|
HealthStatus["UNKNOWN"] = "UNKNOWN";
|
|
196
209
|
})(HealthStatus || (HealthStatus = {}));
|
|
197
|
-
export class RequestLimitExceeded extends __BaseException {
|
|
198
|
-
constructor(opts) {
|
|
199
|
-
super({
|
|
200
|
-
name: "RequestLimitExceeded",
|
|
201
|
-
$fault: "client",
|
|
202
|
-
...opts,
|
|
203
|
-
});
|
|
204
|
-
this.name = "RequestLimitExceeded";
|
|
205
|
-
this.$fault = "client";
|
|
206
|
-
Object.setPrototypeOf(this, RequestLimitExceeded.prototype);
|
|
207
|
-
this.Message = opts.Message;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
210
|
export var FilterCondition;
|
|
211
211
|
(function (FilterCondition) {
|
|
212
212
|
FilterCondition["BEGINS_WITH"] = "BEGINS_WITH";
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { GetInstancesHealthStatusCommand, } from "../commands/GetInstancesHealthStatusCommand";
|
|
2
|
-
import { ServiceDiscovery } from "../ServiceDiscovery";
|
|
3
2
|
import { ServiceDiscoveryClient } from "../ServiceDiscoveryClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new GetInstancesHealthStatusCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.getInstancesHealthStatus(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateGetInstancesHealthStatus(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateGetInstancesHealthStatus(config, input, ...additi
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ServiceDiscoveryClient) {
|
|
13
|
+
if (config.client instanceof ServiceDiscoveryClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListInstancesCommand, } from "../commands/ListInstancesCommand";
|
|
2
|
-
import { ServiceDiscovery } from "../ServiceDiscovery";
|
|
3
2
|
import { ServiceDiscoveryClient } from "../ServiceDiscoveryClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListInstancesCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listInstances(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListInstances(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListInstances(config, input, ...additionalArgumen
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ServiceDiscoveryClient) {
|
|
13
|
+
if (config.client instanceof ServiceDiscoveryClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListNamespacesCommand, } from "../commands/ListNamespacesCommand";
|
|
2
|
-
import { ServiceDiscovery } from "../ServiceDiscovery";
|
|
3
2
|
import { ServiceDiscoveryClient } from "../ServiceDiscoveryClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListNamespacesCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listNamespaces(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListNamespaces(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListNamespaces(config, input, ...additionalArgume
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ServiceDiscoveryClient) {
|
|
13
|
+
if (config.client instanceof ServiceDiscoveryClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListOperationsCommand, } from "../commands/ListOperationsCommand";
|
|
2
|
-
import { ServiceDiscovery } from "../ServiceDiscovery";
|
|
3
2
|
import { ServiceDiscoveryClient } from "../ServiceDiscoveryClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListOperationsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listOperations(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListOperations(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListOperations(config, input, ...additionalArgume
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ServiceDiscoveryClient) {
|
|
13
|
+
if (config.client instanceof ServiceDiscoveryClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListServicesCommand, } from "../commands/ListServicesCommand";
|
|
2
|
-
import { ServiceDiscovery } from "../ServiceDiscovery";
|
|
3
2
|
import { ServiceDiscoveryClient } from "../ServiceDiscoveryClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListServicesCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listServices(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListServices(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListServices(config, input, ...additionalArgument
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ServiceDiscoveryClient) {
|
|
13
|
+
if (config.client instanceof ServiceDiscoveryClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -273,6 +273,9 @@ const deserializeAws_json1_1CreateHttpNamespaceCommandError = async (output, con
|
|
|
273
273
|
case "NamespaceAlreadyExists":
|
|
274
274
|
case "com.amazonaws.servicediscovery#NamespaceAlreadyExists":
|
|
275
275
|
throw await deserializeAws_json1_1NamespaceAlreadyExistsResponse(parsedOutput, context);
|
|
276
|
+
case "RequestLimitExceeded":
|
|
277
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
278
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
276
279
|
case "ResourceLimitExceeded":
|
|
277
280
|
case "com.amazonaws.servicediscovery#ResourceLimitExceeded":
|
|
278
281
|
throw await deserializeAws_json1_1ResourceLimitExceededResponse(parsedOutput, context);
|
|
@@ -318,6 +321,9 @@ const deserializeAws_json1_1CreatePrivateDnsNamespaceCommandError = async (outpu
|
|
|
318
321
|
case "NamespaceAlreadyExists":
|
|
319
322
|
case "com.amazonaws.servicediscovery#NamespaceAlreadyExists":
|
|
320
323
|
throw await deserializeAws_json1_1NamespaceAlreadyExistsResponse(parsedOutput, context);
|
|
324
|
+
case "RequestLimitExceeded":
|
|
325
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
326
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
321
327
|
case "ResourceLimitExceeded":
|
|
322
328
|
case "com.amazonaws.servicediscovery#ResourceLimitExceeded":
|
|
323
329
|
throw await deserializeAws_json1_1ResourceLimitExceededResponse(parsedOutput, context);
|
|
@@ -363,6 +369,9 @@ const deserializeAws_json1_1CreatePublicDnsNamespaceCommandError = async (output
|
|
|
363
369
|
case "NamespaceAlreadyExists":
|
|
364
370
|
case "com.amazonaws.servicediscovery#NamespaceAlreadyExists":
|
|
365
371
|
throw await deserializeAws_json1_1NamespaceAlreadyExistsResponse(parsedOutput, context);
|
|
372
|
+
case "RequestLimitExceeded":
|
|
373
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
374
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
366
375
|
case "ResourceLimitExceeded":
|
|
367
376
|
case "com.amazonaws.servicediscovery#ResourceLimitExceeded":
|
|
368
377
|
throw await deserializeAws_json1_1ResourceLimitExceededResponse(parsedOutput, context);
|
|
@@ -405,6 +414,9 @@ const deserializeAws_json1_1CreateServiceCommandError = async (output, context)
|
|
|
405
414
|
case "NamespaceNotFound":
|
|
406
415
|
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
407
416
|
throw await deserializeAws_json1_1NamespaceNotFoundResponse(parsedOutput, context);
|
|
417
|
+
case "RequestLimitExceeded":
|
|
418
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
419
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
408
420
|
case "ResourceLimitExceeded":
|
|
409
421
|
case "com.amazonaws.servicediscovery#ResourceLimitExceeded":
|
|
410
422
|
throw await deserializeAws_json1_1ResourceLimitExceededResponse(parsedOutput, context);
|
|
@@ -453,6 +465,9 @@ const deserializeAws_json1_1DeleteNamespaceCommandError = async (output, context
|
|
|
453
465
|
case "NamespaceNotFound":
|
|
454
466
|
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
455
467
|
throw await deserializeAws_json1_1NamespaceNotFoundResponse(parsedOutput, context);
|
|
468
|
+
case "RequestLimitExceeded":
|
|
469
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
470
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
456
471
|
case "ResourceInUse":
|
|
457
472
|
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
458
473
|
throw await deserializeAws_json1_1ResourceInUseResponse(parsedOutput, context);
|
|
@@ -489,6 +504,9 @@ const deserializeAws_json1_1DeleteServiceCommandError = async (output, context)
|
|
|
489
504
|
case "InvalidInput":
|
|
490
505
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
491
506
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
507
|
+
case "RequestLimitExceeded":
|
|
508
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
509
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
492
510
|
case "ResourceInUse":
|
|
493
511
|
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
494
512
|
throw await deserializeAws_json1_1ResourceInUseResponse(parsedOutput, context);
|
|
@@ -534,6 +552,9 @@ const deserializeAws_json1_1DeregisterInstanceCommandError = async (output, cont
|
|
|
534
552
|
case "InvalidInput":
|
|
535
553
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
536
554
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
555
|
+
case "RequestLimitExceeded":
|
|
556
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
557
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
537
558
|
case "ResourceInUse":
|
|
538
559
|
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
539
560
|
throw await deserializeAws_json1_1ResourceInUseResponse(parsedOutput, context);
|
|
@@ -618,6 +639,9 @@ const deserializeAws_json1_1GetInstanceCommandError = async (output, context) =>
|
|
|
618
639
|
case "InvalidInput":
|
|
619
640
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
620
641
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
642
|
+
case "RequestLimitExceeded":
|
|
643
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
644
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
621
645
|
case "ServiceNotFound":
|
|
622
646
|
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
623
647
|
throw await deserializeAws_json1_1ServiceNotFoundResponse(parsedOutput, context);
|
|
@@ -657,6 +681,9 @@ const deserializeAws_json1_1GetInstancesHealthStatusCommandError = async (output
|
|
|
657
681
|
case "InvalidInput":
|
|
658
682
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
659
683
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
684
|
+
case "RequestLimitExceeded":
|
|
685
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
686
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
660
687
|
case "ServiceNotFound":
|
|
661
688
|
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
662
689
|
throw await deserializeAws_json1_1ServiceNotFoundResponse(parsedOutput, context);
|
|
@@ -732,6 +759,9 @@ const deserializeAws_json1_1GetOperationCommandError = async (output, context) =
|
|
|
732
759
|
case "OperationNotFound":
|
|
733
760
|
case "com.amazonaws.servicediscovery#OperationNotFound":
|
|
734
761
|
throw await deserializeAws_json1_1OperationNotFoundResponse(parsedOutput, context);
|
|
762
|
+
case "RequestLimitExceeded":
|
|
763
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
764
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
735
765
|
default:
|
|
736
766
|
const parsedBody = parsedOutput.body;
|
|
737
767
|
throwDefaultError({
|
|
@@ -765,6 +795,9 @@ const deserializeAws_json1_1GetServiceCommandError = async (output, context) =>
|
|
|
765
795
|
case "InvalidInput":
|
|
766
796
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
767
797
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
798
|
+
case "RequestLimitExceeded":
|
|
799
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
800
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
768
801
|
case "ServiceNotFound":
|
|
769
802
|
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
770
803
|
throw await deserializeAws_json1_1ServiceNotFoundResponse(parsedOutput, context);
|
|
@@ -801,6 +834,9 @@ const deserializeAws_json1_1ListInstancesCommandError = async (output, context)
|
|
|
801
834
|
case "InvalidInput":
|
|
802
835
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
803
836
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
837
|
+
case "RequestLimitExceeded":
|
|
838
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
839
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
804
840
|
case "ServiceNotFound":
|
|
805
841
|
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
806
842
|
throw await deserializeAws_json1_1ServiceNotFoundResponse(parsedOutput, context);
|
|
@@ -837,6 +873,9 @@ const deserializeAws_json1_1ListNamespacesCommandError = async (output, context)
|
|
|
837
873
|
case "InvalidInput":
|
|
838
874
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
839
875
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
876
|
+
case "RequestLimitExceeded":
|
|
877
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
878
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
840
879
|
default:
|
|
841
880
|
const parsedBody = parsedOutput.body;
|
|
842
881
|
throwDefaultError({
|
|
@@ -870,6 +909,9 @@ const deserializeAws_json1_1ListOperationsCommandError = async (output, context)
|
|
|
870
909
|
case "InvalidInput":
|
|
871
910
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
872
911
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
912
|
+
case "RequestLimitExceeded":
|
|
913
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
914
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
873
915
|
default:
|
|
874
916
|
const parsedBody = parsedOutput.body;
|
|
875
917
|
throwDefaultError({
|
|
@@ -903,6 +945,9 @@ const deserializeAws_json1_1ListServicesCommandError = async (output, context) =
|
|
|
903
945
|
case "InvalidInput":
|
|
904
946
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
905
947
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
948
|
+
case "RequestLimitExceeded":
|
|
949
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
950
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
906
951
|
default:
|
|
907
952
|
const parsedBody = parsedOutput.body;
|
|
908
953
|
throwDefaultError({
|
|
@@ -936,6 +981,9 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
936
981
|
case "InvalidInput":
|
|
937
982
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
938
983
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
984
|
+
case "RequestLimitExceeded":
|
|
985
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
986
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
939
987
|
case "ResourceNotFoundException":
|
|
940
988
|
case "com.amazonaws.servicediscovery#ResourceNotFoundException":
|
|
941
989
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -975,6 +1023,9 @@ const deserializeAws_json1_1RegisterInstanceCommandError = async (output, contex
|
|
|
975
1023
|
case "InvalidInput":
|
|
976
1024
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
977
1025
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
1026
|
+
case "RequestLimitExceeded":
|
|
1027
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
1028
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
978
1029
|
case "ResourceInUse":
|
|
979
1030
|
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
980
1031
|
throw await deserializeAws_json1_1ResourceInUseResponse(parsedOutput, context);
|
|
@@ -1017,6 +1068,9 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1017
1068
|
case "InvalidInput":
|
|
1018
1069
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1019
1070
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
1071
|
+
case "RequestLimitExceeded":
|
|
1072
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
1073
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
1020
1074
|
case "ResourceNotFoundException":
|
|
1021
1075
|
case "com.amazonaws.servicediscovery#ResourceNotFoundException":
|
|
1022
1076
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -1056,6 +1110,9 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1056
1110
|
case "InvalidInput":
|
|
1057
1111
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1058
1112
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
1113
|
+
case "RequestLimitExceeded":
|
|
1114
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
1115
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
1059
1116
|
case "ResourceNotFoundException":
|
|
1060
1117
|
case "com.amazonaws.servicediscovery#ResourceNotFoundException":
|
|
1061
1118
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -1098,6 +1155,9 @@ const deserializeAws_json1_1UpdateHttpNamespaceCommandError = async (output, con
|
|
|
1098
1155
|
case "NamespaceNotFound":
|
|
1099
1156
|
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
1100
1157
|
throw await deserializeAws_json1_1NamespaceNotFoundResponse(parsedOutput, context);
|
|
1158
|
+
case "RequestLimitExceeded":
|
|
1159
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
1160
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
1101
1161
|
case "ResourceInUse":
|
|
1102
1162
|
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
1103
1163
|
throw await deserializeAws_json1_1ResourceInUseResponse(parsedOutput, context);
|
|
@@ -1137,6 +1197,9 @@ const deserializeAws_json1_1UpdateInstanceCustomHealthStatusCommandError = async
|
|
|
1137
1197
|
case "InvalidInput":
|
|
1138
1198
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1139
1199
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
1200
|
+
case "RequestLimitExceeded":
|
|
1201
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
1202
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
1140
1203
|
case "ServiceNotFound":
|
|
1141
1204
|
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
1142
1205
|
throw await deserializeAws_json1_1ServiceNotFoundResponse(parsedOutput, context);
|
|
@@ -1179,6 +1242,9 @@ const deserializeAws_json1_1UpdatePrivateDnsNamespaceCommandError = async (outpu
|
|
|
1179
1242
|
case "NamespaceNotFound":
|
|
1180
1243
|
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
1181
1244
|
throw await deserializeAws_json1_1NamespaceNotFoundResponse(parsedOutput, context);
|
|
1245
|
+
case "RequestLimitExceeded":
|
|
1246
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
1247
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
1182
1248
|
case "ResourceInUse":
|
|
1183
1249
|
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
1184
1250
|
throw await deserializeAws_json1_1ResourceInUseResponse(parsedOutput, context);
|
|
@@ -1221,6 +1287,9 @@ const deserializeAws_json1_1UpdatePublicDnsNamespaceCommandError = async (output
|
|
|
1221
1287
|
case "NamespaceNotFound":
|
|
1222
1288
|
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
1223
1289
|
throw await deserializeAws_json1_1NamespaceNotFoundResponse(parsedOutput, context);
|
|
1290
|
+
case "RequestLimitExceeded":
|
|
1291
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
1292
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
1224
1293
|
case "ResourceInUse":
|
|
1225
1294
|
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
1226
1295
|
throw await deserializeAws_json1_1ResourceInUseResponse(parsedOutput, context);
|
|
@@ -1260,6 +1329,9 @@ const deserializeAws_json1_1UpdateServiceCommandError = async (output, context)
|
|
|
1260
1329
|
case "InvalidInput":
|
|
1261
1330
|
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
1262
1331
|
throw await deserializeAws_json1_1InvalidInputResponse(parsedOutput, context);
|
|
1332
|
+
case "RequestLimitExceeded":
|
|
1333
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
1334
|
+
throw await deserializeAws_json1_1RequestLimitExceededResponse(parsedOutput, context);
|
|
1263
1335
|
case "ServiceNotFound":
|
|
1264
1336
|
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
1265
1337
|
throw await deserializeAws_json1_1ServiceNotFoundResponse(parsedOutput, context);
|
|
@@ -67,7 +67,6 @@ export declare class ServiceDiscovery extends ServiceDiscoveryClient {
|
|
|
67
67
|
* with a public DNS namespace by using either a <code>DiscoverInstances</code> request or using
|
|
68
68
|
* DNS. For the current quota on the number of namespaces that you can create using the same Amazon Web Services account, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html">Cloud Map quotas</a> in the
|
|
69
69
|
* <i>Cloud Map Developer Guide</i>.</p>
|
|
70
|
-
*
|
|
71
70
|
* <important>
|
|
72
71
|
* <p>The <code>CreatePublicDnsNamespace</code> API operation is not supported in the Amazon Web Services GovCloud (US) Regions.</p>
|
|
73
72
|
* </important>
|
|
@@ -21,7 +21,6 @@ export interface CreatePublicDnsNamespaceCommandOutput extends CreatePublicDnsNa
|
|
|
21
21
|
* with a public DNS namespace by using either a <code>DiscoverInstances</code> request or using
|
|
22
22
|
* DNS. For the current quota on the number of namespaces that you can create using the same Amazon Web Services account, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html">Cloud Map quotas</a> in the
|
|
23
23
|
* <i>Cloud Map Developer Guide</i>.</p>
|
|
24
|
-
*
|
|
25
24
|
* <important>
|
|
26
25
|
* <p>The <code>CreatePublicDnsNamespace</code> API operation is not supported in the Amazon Web Services GovCloud (US) Regions.</p>
|
|
27
26
|
* </important>
|
|
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
|
|
|
12
12
|
defaultSigningName: string;
|
|
13
13
|
};
|
|
14
14
|
export interface EndpointParameters extends __EndpointParameters {
|
|
15
|
-
Region
|
|
15
|
+
Region?: string;
|
|
16
16
|
UseDualStack?: boolean;
|
|
17
17
|
UseFIPS?: boolean;
|
|
18
18
|
Endpoint?: string;
|
|
@@ -94,6 +94,20 @@ export declare class NamespaceAlreadyExists extends __BaseException {
|
|
|
94
94
|
*/
|
|
95
95
|
constructor(opts: __ExceptionOptionType<NamespaceAlreadyExists, __BaseException>);
|
|
96
96
|
}
|
|
97
|
+
/**
|
|
98
|
+
* <p>The operation can't be completed because you've reached the quota for the number of
|
|
99
|
+
* requests. For more information, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html">Cloud Map API request throttling quota</a> in the
|
|
100
|
+
* <i>Cloud Map Developer Guide</i>.</p>
|
|
101
|
+
*/
|
|
102
|
+
export declare class RequestLimitExceeded extends __BaseException {
|
|
103
|
+
readonly name: "RequestLimitExceeded";
|
|
104
|
+
readonly $fault: "client";
|
|
105
|
+
Message?: string;
|
|
106
|
+
/**
|
|
107
|
+
* @internal
|
|
108
|
+
*/
|
|
109
|
+
constructor(opts: __ExceptionOptionType<RequestLimitExceeded, __BaseException>);
|
|
110
|
+
}
|
|
97
111
|
/**
|
|
98
112
|
* <p>The resource can't be created because you've reached the quota on the number of
|
|
99
113
|
* resources.</p>
|
|
@@ -224,7 +238,6 @@ export interface PublicDnsNamespaceProperties {
|
|
|
224
238
|
export interface CreatePublicDnsNamespaceRequest {
|
|
225
239
|
/**
|
|
226
240
|
* <p>The name that you want to assign to this namespace.</p>
|
|
227
|
-
*
|
|
228
241
|
* <note>
|
|
229
242
|
* <p>Do not include sensitive information in the name. The name is publicly available using DNS queries.</p>
|
|
230
243
|
* </note>
|
|
@@ -698,11 +711,9 @@ export declare enum ServiceTypeOption {
|
|
|
698
711
|
export interface CreateServiceRequest {
|
|
699
712
|
/**
|
|
700
713
|
* <p>The name that you want to assign to the service.</p>
|
|
701
|
-
*
|
|
702
714
|
* <note>
|
|
703
715
|
* <p>Do not include sensitive information in the name if the namespace is discoverable by public DNS queries.</p>
|
|
704
716
|
* </note>
|
|
705
|
-
*
|
|
706
717
|
* <p>If you want Cloud Map to create an <code>SRV</code> record when you register an instance and you're using a
|
|
707
718
|
* system that requires a specific <code>SRV</code> format, such as <a href="http://www.haproxy.org/">HAProxy</a>, specify the following for <code>Name</code>:</p>
|
|
708
719
|
* <ul>
|
|
@@ -1118,20 +1129,6 @@ export interface DiscoverInstancesResponse {
|
|
|
1118
1129
|
*/
|
|
1119
1130
|
Instances?: HttpInstanceSummary[];
|
|
1120
1131
|
}
|
|
1121
|
-
/**
|
|
1122
|
-
* <p>The operation can't be completed because you've reached the quota for the number of
|
|
1123
|
-
* requests. For more information, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html">Cloud Map API request throttling quota</a> in the
|
|
1124
|
-
* <i>Cloud Map Developer Guide</i>.</p>
|
|
1125
|
-
*/
|
|
1126
|
-
export declare class RequestLimitExceeded extends __BaseException {
|
|
1127
|
-
readonly name: "RequestLimitExceeded";
|
|
1128
|
-
readonly $fault: "client";
|
|
1129
|
-
Message?: string;
|
|
1130
|
-
/**
|
|
1131
|
-
* @internal
|
|
1132
|
-
*/
|
|
1133
|
-
constructor(opts: __ExceptionOptionType<RequestLimitExceeded, __BaseException>);
|
|
1134
|
-
}
|
|
1135
1132
|
/**
|
|
1136
1133
|
* <p>A complex type that contains information about changes to the Route 53 DNS records that
|
|
1137
1134
|
* Cloud Map creates when you register an instance.</p>
|
|
@@ -1226,12 +1223,10 @@ export interface Instance {
|
|
|
1226
1223
|
* <p>For each attribute, the applicable value.</p>
|
|
1227
1224
|
* </li>
|
|
1228
1225
|
* </ul>
|
|
1229
|
-
*
|
|
1230
1226
|
* <note>
|
|
1231
1227
|
* <p>Do not include sensitive information in the attributes if the namespace is discoverable by public DNS
|
|
1232
1228
|
* queries.</p>
|
|
1233
1229
|
* </note>
|
|
1234
|
-
*
|
|
1235
1230
|
* <p>Supported attribute keys include the following:</p>
|
|
1236
1231
|
* <dl>
|
|
1237
1232
|
* <dt>AWS_ALIAS_DNS_NAME</dt>
|
|
@@ -2388,7 +2383,6 @@ export interface RegisterInstanceRequest {
|
|
|
2388
2383
|
* </note>
|
|
2389
2384
|
* </li>
|
|
2390
2385
|
* </ul>
|
|
2391
|
-
*
|
|
2392
2386
|
* <note>
|
|
2393
2387
|
* <p>Do not include sensitive information in <code>InstanceId</code> if the namespace is discoverable by public DNS
|
|
2394
2388
|
* queries and any <code>Type</code> member of <code>DnsRecord</code> for the service contains <code>SRV</code> because
|
|
@@ -2416,12 +2410,10 @@ export interface RegisterInstanceRequest {
|
|
|
2416
2410
|
* <p>For each attribute, the applicable value.</p>
|
|
2417
2411
|
* </li>
|
|
2418
2412
|
* </ul>
|
|
2419
|
-
*
|
|
2420
2413
|
* <note>
|
|
2421
2414
|
* <p>Do not include sensitive information in the attributes if the namespace is discoverable by public DNS
|
|
2422
2415
|
* queries.</p>
|
|
2423
2416
|
* </note>
|
|
2424
|
-
*
|
|
2425
2417
|
* <p>Supported attribute keys include the following:</p>
|
|
2426
2418
|
* <dl>
|
|
2427
2419
|
* <dt>AWS_ALIAS_DNS_NAME</dt>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
2
|
-
import { ServiceDiscovery } from "../ServiceDiscovery";
|
|
3
2
|
import { ServiceDiscoveryClient } from "../ServiceDiscoveryClient";
|
|
4
3
|
export interface ServiceDiscoveryPaginationConfiguration extends PaginationConfiguration {
|
|
5
|
-
client:
|
|
4
|
+
client: ServiceDiscoveryClient;
|
|
6
5
|
}
|
|
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
|
|
|
27
27
|
defaultSigningName: string;
|
|
28
28
|
};
|
|
29
29
|
export interface EndpointParameters extends __EndpointParameters {
|
|
30
|
-
Region
|
|
30
|
+
Region?: string;
|
|
31
31
|
UseDualStack?: boolean;
|
|
32
32
|
UseFIPS?: boolean;
|
|
33
33
|
Endpoint?: string;
|
|
@@ -36,6 +36,14 @@ export declare class NamespaceAlreadyExists extends __BaseException {
|
|
|
36
36
|
opts: __ExceptionOptionType<NamespaceAlreadyExists, __BaseException>
|
|
37
37
|
);
|
|
38
38
|
}
|
|
39
|
+
export declare class RequestLimitExceeded extends __BaseException {
|
|
40
|
+
readonly name: "RequestLimitExceeded";
|
|
41
|
+
readonly $fault: "client";
|
|
42
|
+
Message?: string;
|
|
43
|
+
constructor(
|
|
44
|
+
opts: __ExceptionOptionType<RequestLimitExceeded, __BaseException>
|
|
45
|
+
);
|
|
46
|
+
}
|
|
39
47
|
export declare class ResourceLimitExceeded extends __BaseException {
|
|
40
48
|
readonly name: "ResourceLimitExceeded";
|
|
41
49
|
readonly $fault: "client";
|
|
@@ -249,14 +257,6 @@ export interface HttpInstanceSummary {
|
|
|
249
257
|
export interface DiscoverInstancesResponse {
|
|
250
258
|
Instances?: HttpInstanceSummary[];
|
|
251
259
|
}
|
|
252
|
-
export declare class RequestLimitExceeded extends __BaseException {
|
|
253
|
-
readonly name: "RequestLimitExceeded";
|
|
254
|
-
readonly $fault: "client";
|
|
255
|
-
Message?: string;
|
|
256
|
-
constructor(
|
|
257
|
-
opts: __ExceptionOptionType<RequestLimitExceeded, __BaseException>
|
|
258
|
-
);
|
|
259
|
-
}
|
|
260
260
|
export interface DnsConfigChange {
|
|
261
261
|
DnsRecords: DnsRecord[] | undefined;
|
|
262
262
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
2
|
-
import { ServiceDiscovery } from "../ServiceDiscovery";
|
|
3
2
|
import { ServiceDiscoveryClient } from "../ServiceDiscoveryClient";
|
|
4
3
|
export interface ServiceDiscoveryPaginationConfiguration
|
|
5
4
|
extends PaginationConfiguration {
|
|
6
|
-
client:
|
|
5
|
+
client: ServiceDiscoveryClient;
|
|
7
6
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-servicediscovery",
|
|
3
3
|
"description": "AWS SDK for JavaScript Servicediscovery Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.288.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,23 +20,23 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.288.0",
|
|
24
|
+
"@aws-sdk/config-resolver": "3.287.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.288.0",
|
|
26
26
|
"@aws-sdk/fetch-http-handler": "3.282.0",
|
|
27
27
|
"@aws-sdk/hash-node": "3.272.0",
|
|
28
28
|
"@aws-sdk/invalid-dependency": "3.272.0",
|
|
29
29
|
"@aws-sdk/middleware-content-length": "3.282.0",
|
|
30
30
|
"@aws-sdk/middleware-endpoint": "3.282.0",
|
|
31
31
|
"@aws-sdk/middleware-host-header": "3.282.0",
|
|
32
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
+
"@aws-sdk/middleware-logger": "3.288.0",
|
|
33
33
|
"@aws-sdk/middleware-recursion-detection": "3.282.0",
|
|
34
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
+
"@aws-sdk/middleware-retry": "3.287.0",
|
|
35
35
|
"@aws-sdk/middleware-serde": "3.272.0",
|
|
36
36
|
"@aws-sdk/middleware-signing": "3.282.0",
|
|
37
37
|
"@aws-sdk/middleware-stack": "3.272.0",
|
|
38
38
|
"@aws-sdk/middleware-user-agent": "3.282.0",
|
|
39
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
+
"@aws-sdk/node-config-provider": "3.287.0",
|
|
40
40
|
"@aws-sdk/node-http-handler": "3.282.0",
|
|
41
41
|
"@aws-sdk/protocol-http": "3.282.0",
|
|
42
42
|
"@aws-sdk/smithy-client": "3.279.0",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
48
48
|
"@aws-sdk/util-defaults-mode-browser": "3.279.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.287.0",
|
|
50
50
|
"@aws-sdk/util-endpoints": "3.272.0",
|
|
51
51
|
"@aws-sdk/util-retry": "3.272.0",
|
|
52
52
|
"@aws-sdk/util-user-agent-browser": "3.282.0",
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.287.0",
|
|
54
54
|
"@aws-sdk/util-utf8": "3.254.0",
|
|
55
55
|
"tslib": "^2.3.1",
|
|
56
56
|
"uuid": "^8.3.2"
|