@aws-sdk/client-pcs 3.641.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/LICENSE +201 -0
- package/README.md +366 -0
- package/dist-cjs/PCS.js +47 -0
- package/dist-cjs/PCSClient.js +50 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/CreateClusterCommand.js +28 -0
- package/dist-cjs/commands/CreateComputeNodeGroupCommand.js +28 -0
- package/dist-cjs/commands/CreateQueueCommand.js +28 -0
- package/dist-cjs/commands/DeleteClusterCommand.js +28 -0
- package/dist-cjs/commands/DeleteComputeNodeGroupCommand.js +28 -0
- package/dist-cjs/commands/DeleteQueueCommand.js +28 -0
- package/dist-cjs/commands/GetClusterCommand.js +28 -0
- package/dist-cjs/commands/GetComputeNodeGroupCommand.js +28 -0
- package/dist-cjs/commands/GetQueueCommand.js +28 -0
- package/dist-cjs/commands/ListClustersCommand.js +28 -0
- package/dist-cjs/commands/ListComputeNodeGroupsCommand.js +28 -0
- package/dist-cjs/commands/ListQueuesCommand.js +28 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +28 -0
- package/dist-cjs/commands/RegisterComputeNodeGroupInstanceCommand.js +29 -0
- package/dist-cjs/commands/TagResourceCommand.js +28 -0
- package/dist-cjs/commands/UntagResourceCommand.js +28 -0
- package/dist-cjs/commands/UpdateComputeNodeGroupCommand.js +28 -0
- package/dist-cjs/commands/UpdateQueueCommand.js +28 -0
- package/dist-cjs/commands/index.js +21 -0
- package/dist-cjs/endpoint/EndpointParameters.js +18 -0
- package/dist-cjs/endpoint/endpointResolver.js +14 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/PCSServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +169 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListClustersPaginator.js +7 -0
- package/dist-cjs/pagination/ListComputeNodeGroupsPaginator.js +7 -0
- package/dist-cjs/pagination/ListQueuesPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_json1_0.js +757 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +49 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +25 -0
- package/dist-es/PCS.js +43 -0
- package/dist-es/PCSClient.js +46 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/CreateClusterCommand.js +24 -0
- package/dist-es/commands/CreateComputeNodeGroupCommand.js +24 -0
- package/dist-es/commands/CreateQueueCommand.js +24 -0
- package/dist-es/commands/DeleteClusterCommand.js +24 -0
- package/dist-es/commands/DeleteComputeNodeGroupCommand.js +24 -0
- package/dist-es/commands/DeleteQueueCommand.js +24 -0
- package/dist-es/commands/GetClusterCommand.js +24 -0
- package/dist-es/commands/GetComputeNodeGroupCommand.js +24 -0
- package/dist-es/commands/GetQueueCommand.js +24 -0
- package/dist-es/commands/ListClustersCommand.js +24 -0
- package/dist-es/commands/ListComputeNodeGroupsCommand.js +24 -0
- package/dist-es/commands/ListQueuesCommand.js +24 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +24 -0
- package/dist-es/commands/RegisterComputeNodeGroupInstanceCommand.js +25 -0
- package/dist-es/commands/TagResourceCommand.js +24 -0
- package/dist-es/commands/UntagResourceCommand.js +24 -0
- package/dist-es/commands/UpdateComputeNodeGroupCommand.js +24 -0
- package/dist-es/commands/UpdateQueueCommand.js +24 -0
- package/dist-es/commands/index.js +18 -0
- package/dist-es/endpoint/EndpointParameters.js +14 -0
- package/dist-es/endpoint/endpointResolver.js +10 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/PCSServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +158 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListClustersPaginator.js +4 -0
- package/dist-es/pagination/ListComputeNodeGroupsPaginator.js +4 -0
- package/dist-es/pagination/ListQueuesPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_json1_0.js +718 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +44 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +21 -0
- package/dist-types/PCS.d.ts +154 -0
- package/dist-types/PCSClient.d.ts +204 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/commands/CreateClusterCommand.d.ts +237 -0
- package/dist-types/commands/CreateComputeNodeGroupCommand.d.ts +247 -0
- package/dist-types/commands/CreateQueueCommand.d.ts +190 -0
- package/dist-types/commands/DeleteClusterCommand.d.ts +137 -0
- package/dist-types/commands/DeleteComputeNodeGroupCommand.d.ts +138 -0
- package/dist-types/commands/DeleteQueueCommand.d.ts +139 -0
- package/dist-types/commands/GetClusterCommand.d.ts +186 -0
- package/dist-types/commands/GetComputeNodeGroupCommand.d.ts +184 -0
- package/dist-types/commands/GetQueueCommand.d.ts +158 -0
- package/dist-types/commands/ListClustersCommand.d.ts +148 -0
- package/dist-types/commands/ListComputeNodeGroupsCommand.d.ts +150 -0
- package/dist-types/commands/ListQueuesCommand.d.ts +150 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +69 -0
- package/dist-types/commands/RegisterComputeNodeGroupInstanceCommand.d.ts +97 -0
- package/dist-types/commands/TagResourceCommand.d.ts +71 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +69 -0
- package/dist-types/commands/UpdateComputeNodeGroupCommand.d.ts +233 -0
- package/dist-types/commands/UpdateQueueCommand.d.ts +187 -0
- package/dist-types/commands/index.d.ts +18 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +31 -0
- package/dist-types/models/PCSServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1871 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListClustersPaginator.d.ts +7 -0
- package/dist-types/pagination/ListComputeNodeGroupsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListQueuesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +164 -0
- package/dist-types/runtimeConfig.browser.d.ts +45 -0
- package/dist-types/runtimeConfig.d.ts +45 -0
- package/dist-types/runtimeConfig.native.d.ts +44 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/PCS.d.ts +312 -0
- package/dist-types/ts3.4/PCSClient.d.ts +223 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateComputeNodeGroupCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/CreateQueueCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/DeleteClusterCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteComputeNodeGroupCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/DeleteQueueCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/GetClusterCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/GetComputeNodeGroupCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/GetQueueCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListClustersCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListComputeNodeGroupsCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/ListQueuesCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/RegisterComputeNodeGroupInstanceCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UpdateComputeNodeGroupCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/UpdateQueueCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/index.d.ts +18 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +9 -0
- package/dist-types/ts3.4/models/PCSServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +431 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListClustersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListComputeNodeGroupsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListQueuesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +221 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +85 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +89 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +79 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/package.json +103 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.commonParams = exports.resolveClientEndpointParameters = void 0;
|
|
4
|
+
const resolveClientEndpointParameters = (options) => {
|
|
5
|
+
return {
|
|
6
|
+
...options,
|
|
7
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
8
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
9
|
+
defaultSigningName: "pcs",
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
|
13
|
+
exports.commonParams = {
|
|
14
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
15
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
16
|
+
Region: { type: "builtInParams", name: "region" },
|
|
17
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultEndpointResolver = void 0;
|
|
4
|
+
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
|
+
const util_endpoints_2 = require("@smithy/util-endpoints");
|
|
6
|
+
const ruleset_1 = require("./ruleset");
|
|
7
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
8
|
+
return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
9
|
+
endpointParams: endpointParams,
|
|
10
|
+
logger: context.logger,
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
14
|
+
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ruleSet = void 0;
|
|
4
|
+
const s = "required", t = "fn", u = "argv", v = "ref";
|
|
5
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ rules: [{ endpoint: { url: "https://pcs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ rules: [{ endpoint: { url: "https://pcs-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ rules: [{ endpoint: { url: "https://pcs.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { rules: [{ endpoint: { url: "https://pcs.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
|
|
7
|
+
exports.ruleSet = _data;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PCSServiceException = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./PCSClient"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./PCS"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./pagination"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
10
|
+
var PCSServiceException_1 = require("./models/PCSServiceException");
|
|
11
|
+
Object.defineProperty(exports, "PCSServiceException", { enumerable: true, get: function () { return PCSServiceException_1.PCSServiceException; } });
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PCSServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class PCSServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, PCSServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.PCSServiceException = PCSServiceException;
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RegisterComputeNodeGroupInstanceResponseFilterSensitiveLog = exports.QueueStatus = exports.ClusterStatus = exports.EndpointType = exports.Size = exports.SchedulerType = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ComputeNodeGroupStatus = exports.SpotAllocationStrategy = exports.PurchaseOption = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
const PCSServiceException_1 = require("./PCSServiceException");
|
|
6
|
+
class AccessDeniedException extends PCSServiceException_1.PCSServiceException {
|
|
7
|
+
constructor(opts) {
|
|
8
|
+
super({
|
|
9
|
+
name: "AccessDeniedException",
|
|
10
|
+
$fault: "client",
|
|
11
|
+
...opts,
|
|
12
|
+
});
|
|
13
|
+
this.name = "AccessDeniedException";
|
|
14
|
+
this.$fault = "client";
|
|
15
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
19
|
+
class ConflictException extends PCSServiceException_1.PCSServiceException {
|
|
20
|
+
constructor(opts) {
|
|
21
|
+
super({
|
|
22
|
+
name: "ConflictException",
|
|
23
|
+
$fault: "client",
|
|
24
|
+
...opts,
|
|
25
|
+
});
|
|
26
|
+
this.name = "ConflictException";
|
|
27
|
+
this.$fault = "client";
|
|
28
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
29
|
+
this.resourceId = opts.resourceId;
|
|
30
|
+
this.resourceType = opts.resourceType;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.ConflictException = ConflictException;
|
|
34
|
+
exports.PurchaseOption = {
|
|
35
|
+
ONDEMAND: "ONDEMAND",
|
|
36
|
+
SPOT: "SPOT",
|
|
37
|
+
};
|
|
38
|
+
exports.SpotAllocationStrategy = {
|
|
39
|
+
CAPACITY_OPTIMIZED: "capacity-optimized",
|
|
40
|
+
LOWEST_PRICE: "lowest-price",
|
|
41
|
+
PRICE_CAPACITY_OPTIMIZED: "price-capacity-optimized",
|
|
42
|
+
};
|
|
43
|
+
exports.ComputeNodeGroupStatus = {
|
|
44
|
+
ACTIVE: "ACTIVE",
|
|
45
|
+
CREATE_FAILED: "CREATE_FAILED",
|
|
46
|
+
CREATING: "CREATING",
|
|
47
|
+
DELETED: "DELETED",
|
|
48
|
+
DELETE_FAILED: "DELETE_FAILED",
|
|
49
|
+
DELETING: "DELETING",
|
|
50
|
+
UPDATE_FAILED: "UPDATE_FAILED",
|
|
51
|
+
UPDATING: "UPDATING",
|
|
52
|
+
};
|
|
53
|
+
class InternalServerException extends PCSServiceException_1.PCSServiceException {
|
|
54
|
+
constructor(opts) {
|
|
55
|
+
super({
|
|
56
|
+
name: "InternalServerException",
|
|
57
|
+
$fault: "server",
|
|
58
|
+
...opts,
|
|
59
|
+
});
|
|
60
|
+
this.name = "InternalServerException";
|
|
61
|
+
this.$fault = "server";
|
|
62
|
+
this.$retryable = {};
|
|
63
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.InternalServerException = InternalServerException;
|
|
67
|
+
class ResourceNotFoundException extends PCSServiceException_1.PCSServiceException {
|
|
68
|
+
constructor(opts) {
|
|
69
|
+
super({
|
|
70
|
+
name: "ResourceNotFoundException",
|
|
71
|
+
$fault: "client",
|
|
72
|
+
...opts,
|
|
73
|
+
});
|
|
74
|
+
this.name = "ResourceNotFoundException";
|
|
75
|
+
this.$fault = "client";
|
|
76
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
77
|
+
this.resourceId = opts.resourceId;
|
|
78
|
+
this.resourceType = opts.resourceType;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
82
|
+
class ServiceQuotaExceededException extends PCSServiceException_1.PCSServiceException {
|
|
83
|
+
constructor(opts) {
|
|
84
|
+
super({
|
|
85
|
+
name: "ServiceQuotaExceededException",
|
|
86
|
+
$fault: "client",
|
|
87
|
+
...opts,
|
|
88
|
+
});
|
|
89
|
+
this.name = "ServiceQuotaExceededException";
|
|
90
|
+
this.$fault = "client";
|
|
91
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
92
|
+
this.serviceCode = opts.serviceCode;
|
|
93
|
+
this.resourceId = opts.resourceId;
|
|
94
|
+
this.resourceType = opts.resourceType;
|
|
95
|
+
this.quotaCode = opts.quotaCode;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
99
|
+
class ThrottlingException extends PCSServiceException_1.PCSServiceException {
|
|
100
|
+
constructor(opts) {
|
|
101
|
+
super({
|
|
102
|
+
name: "ThrottlingException",
|
|
103
|
+
$fault: "client",
|
|
104
|
+
...opts,
|
|
105
|
+
});
|
|
106
|
+
this.name = "ThrottlingException";
|
|
107
|
+
this.$fault = "client";
|
|
108
|
+
this.$retryable = {};
|
|
109
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
110
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
exports.ThrottlingException = ThrottlingException;
|
|
114
|
+
exports.ValidationExceptionReason = {
|
|
115
|
+
CANNOT_PARSE: "cannotParse",
|
|
116
|
+
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
117
|
+
OTHER: "other",
|
|
118
|
+
UNKNOWN_OPERATION: "unknownOperation",
|
|
119
|
+
};
|
|
120
|
+
class ValidationException extends PCSServiceException_1.PCSServiceException {
|
|
121
|
+
constructor(opts) {
|
|
122
|
+
super({
|
|
123
|
+
name: "ValidationException",
|
|
124
|
+
$fault: "client",
|
|
125
|
+
...opts,
|
|
126
|
+
});
|
|
127
|
+
this.name = "ValidationException";
|
|
128
|
+
this.$fault = "client";
|
|
129
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
130
|
+
this.reason = opts.reason;
|
|
131
|
+
this.fieldList = opts.fieldList;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
exports.ValidationException = ValidationException;
|
|
135
|
+
exports.SchedulerType = {
|
|
136
|
+
SLURM: "SLURM",
|
|
137
|
+
};
|
|
138
|
+
exports.Size = {
|
|
139
|
+
LARGE: "LARGE",
|
|
140
|
+
MEDIUM: "MEDIUM",
|
|
141
|
+
SMALL: "SMALL",
|
|
142
|
+
};
|
|
143
|
+
exports.EndpointType = {
|
|
144
|
+
SLURMCTLD: "SLURMCTLD",
|
|
145
|
+
SLURMDBD: "SLURMDBD",
|
|
146
|
+
};
|
|
147
|
+
exports.ClusterStatus = {
|
|
148
|
+
ACTIVE: "ACTIVE",
|
|
149
|
+
CREATE_FAILED: "CREATE_FAILED",
|
|
150
|
+
CREATING: "CREATING",
|
|
151
|
+
DELETE_FAILED: "DELETE_FAILED",
|
|
152
|
+
DELETING: "DELETING",
|
|
153
|
+
UPDATE_FAILED: "UPDATE_FAILED",
|
|
154
|
+
UPDATING: "UPDATING",
|
|
155
|
+
};
|
|
156
|
+
exports.QueueStatus = {
|
|
157
|
+
ACTIVE: "ACTIVE",
|
|
158
|
+
CREATE_FAILED: "CREATE_FAILED",
|
|
159
|
+
CREATING: "CREATING",
|
|
160
|
+
DELETE_FAILED: "DELETE_FAILED",
|
|
161
|
+
DELETING: "DELETING",
|
|
162
|
+
UPDATE_FAILED: "UPDATE_FAILED",
|
|
163
|
+
UPDATING: "UPDATING",
|
|
164
|
+
};
|
|
165
|
+
const RegisterComputeNodeGroupInstanceResponseFilterSensitiveLog = (obj) => ({
|
|
166
|
+
...obj,
|
|
167
|
+
...(obj.sharedSecret && { sharedSecret: smithy_client_1.SENSITIVE_STRING }),
|
|
168
|
+
});
|
|
169
|
+
exports.RegisterComputeNodeGroupInstanceResponseFilterSensitiveLog = RegisterComputeNodeGroupInstanceResponseFilterSensitiveLog;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListClusters = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
|
+
const ListClustersCommand_1 = require("../commands/ListClustersCommand");
|
|
6
|
+
const PCSClient_1 = require("../PCSClient");
|
|
7
|
+
exports.paginateListClusters = (0, core_1.createPaginator)(PCSClient_1.PCSClient, ListClustersCommand_1.ListClustersCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListComputeNodeGroups = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
|
+
const ListComputeNodeGroupsCommand_1 = require("../commands/ListComputeNodeGroupsCommand");
|
|
6
|
+
const PCSClient_1 = require("../PCSClient");
|
|
7
|
+
exports.paginateListComputeNodeGroups = (0, core_1.createPaginator)(PCSClient_1.PCSClient, ListComputeNodeGroupsCommand_1.ListComputeNodeGroupsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListQueues = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
|
+
const ListQueuesCommand_1 = require("../commands/ListQueuesCommand");
|
|
6
|
+
const PCSClient_1 = require("../PCSClient");
|
|
7
|
+
exports.paginateListQueues = (0, core_1.createPaginator)(PCSClient_1.PCSClient, ListQueuesCommand_1.ListQueuesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./ListClustersPaginator"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ListComputeNodeGroupsPaginator"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./ListQueuesPaginator"), exports);
|