@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.
Files changed (171) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +366 -0
  3. package/dist-cjs/PCS.js +47 -0
  4. package/dist-cjs/PCSClient.js +50 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/CreateClusterCommand.js +28 -0
  8. package/dist-cjs/commands/CreateComputeNodeGroupCommand.js +28 -0
  9. package/dist-cjs/commands/CreateQueueCommand.js +28 -0
  10. package/dist-cjs/commands/DeleteClusterCommand.js +28 -0
  11. package/dist-cjs/commands/DeleteComputeNodeGroupCommand.js +28 -0
  12. package/dist-cjs/commands/DeleteQueueCommand.js +28 -0
  13. package/dist-cjs/commands/GetClusterCommand.js +28 -0
  14. package/dist-cjs/commands/GetComputeNodeGroupCommand.js +28 -0
  15. package/dist-cjs/commands/GetQueueCommand.js +28 -0
  16. package/dist-cjs/commands/ListClustersCommand.js +28 -0
  17. package/dist-cjs/commands/ListComputeNodeGroupsCommand.js +28 -0
  18. package/dist-cjs/commands/ListQueuesCommand.js +28 -0
  19. package/dist-cjs/commands/ListTagsForResourceCommand.js +28 -0
  20. package/dist-cjs/commands/RegisterComputeNodeGroupInstanceCommand.js +29 -0
  21. package/dist-cjs/commands/TagResourceCommand.js +28 -0
  22. package/dist-cjs/commands/UntagResourceCommand.js +28 -0
  23. package/dist-cjs/commands/UpdateComputeNodeGroupCommand.js +28 -0
  24. package/dist-cjs/commands/UpdateQueueCommand.js +28 -0
  25. package/dist-cjs/commands/index.js +21 -0
  26. package/dist-cjs/endpoint/EndpointParameters.js +18 -0
  27. package/dist-cjs/endpoint/endpointResolver.js +14 -0
  28. package/dist-cjs/endpoint/ruleset.js +7 -0
  29. package/dist-cjs/extensionConfiguration.js +2 -0
  30. package/dist-cjs/index.js +11 -0
  31. package/dist-cjs/models/PCSServiceException.js +12 -0
  32. package/dist-cjs/models/index.js +4 -0
  33. package/dist-cjs/models/models_0.js +169 -0
  34. package/dist-cjs/pagination/Interfaces.js +2 -0
  35. package/dist-cjs/pagination/ListClustersPaginator.js +7 -0
  36. package/dist-cjs/pagination/ListComputeNodeGroupsPaginator.js +7 -0
  37. package/dist-cjs/pagination/ListQueuesPaginator.js +7 -0
  38. package/dist-cjs/pagination/index.js +7 -0
  39. package/dist-cjs/protocols/Aws_json1_0.js +757 -0
  40. package/dist-cjs/runtimeConfig.browser.js +39 -0
  41. package/dist-cjs/runtimeConfig.js +49 -0
  42. package/dist-cjs/runtimeConfig.native.js +15 -0
  43. package/dist-cjs/runtimeConfig.shared.js +34 -0
  44. package/dist-cjs/runtimeExtensions.js +25 -0
  45. package/dist-es/PCS.js +43 -0
  46. package/dist-es/PCSClient.js +46 -0
  47. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  48. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  49. package/dist-es/commands/CreateClusterCommand.js +24 -0
  50. package/dist-es/commands/CreateComputeNodeGroupCommand.js +24 -0
  51. package/dist-es/commands/CreateQueueCommand.js +24 -0
  52. package/dist-es/commands/DeleteClusterCommand.js +24 -0
  53. package/dist-es/commands/DeleteComputeNodeGroupCommand.js +24 -0
  54. package/dist-es/commands/DeleteQueueCommand.js +24 -0
  55. package/dist-es/commands/GetClusterCommand.js +24 -0
  56. package/dist-es/commands/GetComputeNodeGroupCommand.js +24 -0
  57. package/dist-es/commands/GetQueueCommand.js +24 -0
  58. package/dist-es/commands/ListClustersCommand.js +24 -0
  59. package/dist-es/commands/ListComputeNodeGroupsCommand.js +24 -0
  60. package/dist-es/commands/ListQueuesCommand.js +24 -0
  61. package/dist-es/commands/ListTagsForResourceCommand.js +24 -0
  62. package/dist-es/commands/RegisterComputeNodeGroupInstanceCommand.js +25 -0
  63. package/dist-es/commands/TagResourceCommand.js +24 -0
  64. package/dist-es/commands/UntagResourceCommand.js +24 -0
  65. package/dist-es/commands/UpdateComputeNodeGroupCommand.js +24 -0
  66. package/dist-es/commands/UpdateQueueCommand.js +24 -0
  67. package/dist-es/commands/index.js +18 -0
  68. package/dist-es/endpoint/EndpointParameters.js +14 -0
  69. package/dist-es/endpoint/endpointResolver.js +10 -0
  70. package/dist-es/endpoint/ruleset.js +4 -0
  71. package/dist-es/extensionConfiguration.js +1 -0
  72. package/dist-es/index.js +6 -0
  73. package/dist-es/models/PCSServiceException.js +8 -0
  74. package/dist-es/models/index.js +1 -0
  75. package/dist-es/models/models_0.js +158 -0
  76. package/dist-es/pagination/Interfaces.js +1 -0
  77. package/dist-es/pagination/ListClustersPaginator.js +4 -0
  78. package/dist-es/pagination/ListComputeNodeGroupsPaginator.js +4 -0
  79. package/dist-es/pagination/ListQueuesPaginator.js +4 -0
  80. package/dist-es/pagination/index.js +4 -0
  81. package/dist-es/protocols/Aws_json1_0.js +718 -0
  82. package/dist-es/runtimeConfig.browser.js +34 -0
  83. package/dist-es/runtimeConfig.js +44 -0
  84. package/dist-es/runtimeConfig.native.js +11 -0
  85. package/dist-es/runtimeConfig.shared.js +30 -0
  86. package/dist-es/runtimeExtensions.js +21 -0
  87. package/dist-types/PCS.d.ts +154 -0
  88. package/dist-types/PCSClient.d.ts +204 -0
  89. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  90. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  91. package/dist-types/commands/CreateClusterCommand.d.ts +237 -0
  92. package/dist-types/commands/CreateComputeNodeGroupCommand.d.ts +247 -0
  93. package/dist-types/commands/CreateQueueCommand.d.ts +190 -0
  94. package/dist-types/commands/DeleteClusterCommand.d.ts +137 -0
  95. package/dist-types/commands/DeleteComputeNodeGroupCommand.d.ts +138 -0
  96. package/dist-types/commands/DeleteQueueCommand.d.ts +139 -0
  97. package/dist-types/commands/GetClusterCommand.d.ts +186 -0
  98. package/dist-types/commands/GetComputeNodeGroupCommand.d.ts +184 -0
  99. package/dist-types/commands/GetQueueCommand.d.ts +158 -0
  100. package/dist-types/commands/ListClustersCommand.d.ts +148 -0
  101. package/dist-types/commands/ListComputeNodeGroupsCommand.d.ts +150 -0
  102. package/dist-types/commands/ListQueuesCommand.d.ts +150 -0
  103. package/dist-types/commands/ListTagsForResourceCommand.d.ts +69 -0
  104. package/dist-types/commands/RegisterComputeNodeGroupInstanceCommand.d.ts +97 -0
  105. package/dist-types/commands/TagResourceCommand.d.ts +71 -0
  106. package/dist-types/commands/UntagResourceCommand.d.ts +69 -0
  107. package/dist-types/commands/UpdateComputeNodeGroupCommand.d.ts +233 -0
  108. package/dist-types/commands/UpdateQueueCommand.d.ts +187 -0
  109. package/dist-types/commands/index.d.ts +18 -0
  110. package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
  111. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  112. package/dist-types/endpoint/ruleset.d.ts +2 -0
  113. package/dist-types/extensionConfiguration.d.ts +9 -0
  114. package/dist-types/index.d.ts +31 -0
  115. package/dist-types/models/PCSServiceException.d.ts +14 -0
  116. package/dist-types/models/index.d.ts +1 -0
  117. package/dist-types/models/models_0.d.ts +1871 -0
  118. package/dist-types/pagination/Interfaces.d.ts +8 -0
  119. package/dist-types/pagination/ListClustersPaginator.d.ts +7 -0
  120. package/dist-types/pagination/ListComputeNodeGroupsPaginator.d.ts +7 -0
  121. package/dist-types/pagination/ListQueuesPaginator.d.ts +7 -0
  122. package/dist-types/pagination/index.d.ts +4 -0
  123. package/dist-types/protocols/Aws_json1_0.d.ts +164 -0
  124. package/dist-types/runtimeConfig.browser.d.ts +45 -0
  125. package/dist-types/runtimeConfig.d.ts +45 -0
  126. package/dist-types/runtimeConfig.native.d.ts +44 -0
  127. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  128. package/dist-types/runtimeExtensions.d.ts +17 -0
  129. package/dist-types/ts3.4/PCS.d.ts +312 -0
  130. package/dist-types/ts3.4/PCSClient.d.ts +223 -0
  131. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  132. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
  133. package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +39 -0
  134. package/dist-types/ts3.4/commands/CreateComputeNodeGroupCommand.d.ts +40 -0
  135. package/dist-types/ts3.4/commands/CreateQueueCommand.d.ts +36 -0
  136. package/dist-types/ts3.4/commands/DeleteClusterCommand.d.ts +39 -0
  137. package/dist-types/ts3.4/commands/DeleteComputeNodeGroupCommand.d.ts +40 -0
  138. package/dist-types/ts3.4/commands/DeleteQueueCommand.d.ts +36 -0
  139. package/dist-types/ts3.4/commands/GetClusterCommand.d.ts +36 -0
  140. package/dist-types/ts3.4/commands/GetComputeNodeGroupCommand.d.ts +40 -0
  141. package/dist-types/ts3.4/commands/GetQueueCommand.d.ts +36 -0
  142. package/dist-types/ts3.4/commands/ListClustersCommand.d.ts +36 -0
  143. package/dist-types/ts3.4/commands/ListComputeNodeGroupsCommand.d.ts +40 -0
  144. package/dist-types/ts3.4/commands/ListQueuesCommand.d.ts +36 -0
  145. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +40 -0
  146. package/dist-types/ts3.4/commands/RegisterComputeNodeGroupInstanceCommand.d.ts +40 -0
  147. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
  148. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +34 -0
  149. package/dist-types/ts3.4/commands/UpdateComputeNodeGroupCommand.d.ts +40 -0
  150. package/dist-types/ts3.4/commands/UpdateQueueCommand.d.ts +36 -0
  151. package/dist-types/ts3.4/commands/index.d.ts +18 -0
  152. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  153. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  154. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  155. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  156. package/dist-types/ts3.4/index.d.ts +9 -0
  157. package/dist-types/ts3.4/models/PCSServiceException.d.ts +9 -0
  158. package/dist-types/ts3.4/models/index.d.ts +1 -0
  159. package/dist-types/ts3.4/models/models_0.d.ts +431 -0
  160. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  161. package/dist-types/ts3.4/pagination/ListClustersPaginator.d.ts +11 -0
  162. package/dist-types/ts3.4/pagination/ListComputeNodeGroupsPaginator.d.ts +11 -0
  163. package/dist-types/ts3.4/pagination/ListQueuesPaginator.d.ts +11 -0
  164. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  165. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +221 -0
  166. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +85 -0
  167. package/dist-types/ts3.4/runtimeConfig.d.ts +89 -0
  168. package/dist-types/ts3.4/runtimeConfig.native.d.ts +79 -0
  169. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
  170. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  171. package/package.json +103 -0
@@ -0,0 +1,51 @@
1
+ import {
2
+ Endpoint,
3
+ EndpointParameters as __EndpointParameters,
4
+ EndpointV2,
5
+ Provider,
6
+ } from "@smithy/types";
7
+ export interface ClientInputEndpointParameters {
8
+ region?: string | Provider<string>;
9
+ useDualstackEndpoint?: boolean | Provider<boolean>;
10
+ useFipsEndpoint?: boolean | Provider<boolean>;
11
+ endpoint?:
12
+ | string
13
+ | Provider<string>
14
+ | Endpoint
15
+ | Provider<Endpoint>
16
+ | EndpointV2
17
+ | Provider<EndpointV2>;
18
+ }
19
+ export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
20
+ defaultSigningName: string;
21
+ };
22
+ export declare const resolveClientEndpointParameters: <T>(
23
+ options: T & ClientInputEndpointParameters
24
+ ) => T &
25
+ ClientInputEndpointParameters & {
26
+ defaultSigningName: string;
27
+ };
28
+ export declare const commonParams: {
29
+ readonly UseFIPS: {
30
+ readonly type: "builtInParams";
31
+ readonly name: "useFipsEndpoint";
32
+ };
33
+ readonly Endpoint: {
34
+ readonly type: "builtInParams";
35
+ readonly name: "endpoint";
36
+ };
37
+ readonly Region: {
38
+ readonly type: "builtInParams";
39
+ readonly name: "region";
40
+ };
41
+ readonly UseDualStack: {
42
+ readonly type: "builtInParams";
43
+ readonly name: "useDualstackEndpoint";
44
+ };
45
+ };
46
+ export interface EndpointParameters extends __EndpointParameters {
47
+ Region?: string;
48
+ UseDualStack?: boolean;
49
+ UseFIPS?: boolean;
50
+ Endpoint?: string;
51
+ }
@@ -0,0 +1,8 @@
1
+ import { EndpointV2, Logger } from "@smithy/types";
2
+ import { EndpointParameters } from "./EndpointParameters";
3
+ export declare const defaultEndpointResolver: (
4
+ endpointParams: EndpointParameters,
5
+ context?: {
6
+ logger?: Logger;
7
+ }
8
+ ) => EndpointV2;
@@ -0,0 +1,2 @@
1
+ import { RuleSetObject } from "@smithy/types";
2
+ export declare const ruleSet: RuleSetObject;
@@ -0,0 +1,9 @@
1
+ import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
+ import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
+ import { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
5
+ export interface PCSExtensionConfiguration
6
+ extends HttpHandlerExtensionConfiguration,
7
+ DefaultExtensionConfiguration,
8
+ AwsRegionExtensionConfiguration,
9
+ HttpAuthExtensionConfiguration {}
@@ -0,0 +1,9 @@
1
+ export * from "./PCSClient";
2
+ export * from "./PCS";
3
+ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
+ export { RuntimeExtension } from "./runtimeExtensions";
5
+ export { PCSExtensionConfiguration } from "./extensionConfiguration";
6
+ export * from "./commands";
7
+ export * from "./pagination";
8
+ export * from "./models";
9
+ export { PCSServiceException } from "./models/PCSServiceException";
@@ -0,0 +1,9 @@
1
+ import {
2
+ ServiceException as __ServiceException,
3
+ ServiceExceptionOptions as __ServiceExceptionOptions,
4
+ } from "@smithy/smithy-client";
5
+ export { __ServiceExceptionOptions };
6
+ export { __ServiceException };
7
+ export declare class PCSServiceException extends __ServiceException {
8
+ constructor(options: __ServiceExceptionOptions);
9
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";
@@ -0,0 +1,431 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { PCSServiceException as __BaseException } from "./PCSServiceException";
3
+ export declare class AccessDeniedException extends __BaseException {
4
+ readonly name: "AccessDeniedException";
5
+ readonly $fault: "client";
6
+ constructor(
7
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
8
+ );
9
+ }
10
+ export declare class ConflictException extends __BaseException {
11
+ readonly name: "ConflictException";
12
+ readonly $fault: "client";
13
+ resourceId: string | undefined;
14
+ resourceType: string | undefined;
15
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
16
+ }
17
+ export interface CustomLaunchTemplate {
18
+ id: string | undefined;
19
+ version: string | undefined;
20
+ }
21
+ export interface InstanceConfig {
22
+ instanceType?: string;
23
+ }
24
+ export declare const PurchaseOption: {
25
+ readonly ONDEMAND: "ONDEMAND";
26
+ readonly SPOT: "SPOT";
27
+ };
28
+ export type PurchaseOption =
29
+ (typeof PurchaseOption)[keyof typeof PurchaseOption];
30
+ export interface ScalingConfigurationRequest {
31
+ minInstanceCount: number | undefined;
32
+ maxInstanceCount: number | undefined;
33
+ }
34
+ export interface SlurmCustomSetting {
35
+ parameterName: string | undefined;
36
+ parameterValue: string | undefined;
37
+ }
38
+ export interface ComputeNodeGroupSlurmConfigurationRequest {
39
+ slurmCustomSettings?: SlurmCustomSetting[];
40
+ }
41
+ export declare const SpotAllocationStrategy: {
42
+ readonly CAPACITY_OPTIMIZED: "capacity-optimized";
43
+ readonly LOWEST_PRICE: "lowest-price";
44
+ readonly PRICE_CAPACITY_OPTIMIZED: "price-capacity-optimized";
45
+ };
46
+ export type SpotAllocationStrategy =
47
+ (typeof SpotAllocationStrategy)[keyof typeof SpotAllocationStrategy];
48
+ export interface SpotOptions {
49
+ allocationStrategy?: SpotAllocationStrategy;
50
+ }
51
+ export interface CreateComputeNodeGroupRequest {
52
+ clusterIdentifier: string | undefined;
53
+ computeNodeGroupName: string | undefined;
54
+ amiId?: string;
55
+ subnetIds: string[] | undefined;
56
+ purchaseOption?: PurchaseOption;
57
+ customLaunchTemplate: CustomLaunchTemplate | undefined;
58
+ iamInstanceProfileArn: string | undefined;
59
+ scalingConfiguration: ScalingConfigurationRequest | undefined;
60
+ instanceConfigs: InstanceConfig[] | undefined;
61
+ spotOptions?: SpotOptions;
62
+ slurmConfiguration?: ComputeNodeGroupSlurmConfigurationRequest;
63
+ clientToken?: string;
64
+ tags?: Record<string, string>;
65
+ }
66
+ export interface ErrorInfo {
67
+ code?: string;
68
+ message?: string;
69
+ }
70
+ export interface ScalingConfiguration {
71
+ minInstanceCount: number | undefined;
72
+ maxInstanceCount: number | undefined;
73
+ }
74
+ export interface ComputeNodeGroupSlurmConfiguration {
75
+ slurmCustomSettings?: SlurmCustomSetting[];
76
+ }
77
+ export declare const ComputeNodeGroupStatus: {
78
+ readonly ACTIVE: "ACTIVE";
79
+ readonly CREATE_FAILED: "CREATE_FAILED";
80
+ readonly CREATING: "CREATING";
81
+ readonly DELETED: "DELETED";
82
+ readonly DELETE_FAILED: "DELETE_FAILED";
83
+ readonly DELETING: "DELETING";
84
+ readonly UPDATE_FAILED: "UPDATE_FAILED";
85
+ readonly UPDATING: "UPDATING";
86
+ };
87
+ export type ComputeNodeGroupStatus =
88
+ (typeof ComputeNodeGroupStatus)[keyof typeof ComputeNodeGroupStatus];
89
+ export interface ComputeNodeGroup {
90
+ name: string | undefined;
91
+ id: string | undefined;
92
+ arn: string | undefined;
93
+ clusterId: string | undefined;
94
+ createdAt: Date | undefined;
95
+ modifiedAt: Date | undefined;
96
+ status: ComputeNodeGroupStatus | undefined;
97
+ amiId?: string;
98
+ subnetIds: string[] | undefined;
99
+ purchaseOption?: PurchaseOption;
100
+ customLaunchTemplate: CustomLaunchTemplate | undefined;
101
+ iamInstanceProfileArn: string | undefined;
102
+ scalingConfiguration: ScalingConfiguration | undefined;
103
+ instanceConfigs: InstanceConfig[] | undefined;
104
+ spotOptions?: SpotOptions;
105
+ slurmConfiguration?: ComputeNodeGroupSlurmConfiguration;
106
+ errorInfo?: ErrorInfo[];
107
+ }
108
+ export interface CreateComputeNodeGroupResponse {
109
+ computeNodeGroup?: ComputeNodeGroup;
110
+ }
111
+ export declare class InternalServerException extends __BaseException {
112
+ readonly name: "InternalServerException";
113
+ readonly $fault: "server";
114
+ $retryable: {};
115
+ constructor(
116
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
117
+ );
118
+ }
119
+ export declare class ResourceNotFoundException extends __BaseException {
120
+ readonly name: "ResourceNotFoundException";
121
+ readonly $fault: "client";
122
+ resourceId: string | undefined;
123
+ resourceType: string | undefined;
124
+ constructor(
125
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
126
+ );
127
+ }
128
+ export declare class ServiceQuotaExceededException extends __BaseException {
129
+ readonly name: "ServiceQuotaExceededException";
130
+ readonly $fault: "client";
131
+ serviceCode: string | undefined;
132
+ resourceId?: string;
133
+ resourceType?: string;
134
+ quotaCode?: string;
135
+ constructor(
136
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
137
+ );
138
+ }
139
+ export declare class ThrottlingException extends __BaseException {
140
+ readonly name: "ThrottlingException";
141
+ readonly $fault: "client";
142
+ $retryable: {};
143
+ retryAfterSeconds?: number;
144
+ constructor(
145
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
146
+ );
147
+ }
148
+ export interface ValidationExceptionField {
149
+ name: string | undefined;
150
+ message: string | undefined;
151
+ }
152
+ export declare const ValidationExceptionReason: {
153
+ readonly CANNOT_PARSE: "cannotParse";
154
+ readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
155
+ readonly OTHER: "other";
156
+ readonly UNKNOWN_OPERATION: "unknownOperation";
157
+ };
158
+ export type ValidationExceptionReason =
159
+ (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
160
+ export declare class ValidationException extends __BaseException {
161
+ readonly name: "ValidationException";
162
+ readonly $fault: "client";
163
+ reason: ValidationExceptionReason | undefined;
164
+ fieldList?: ValidationExceptionField[];
165
+ constructor(
166
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
167
+ );
168
+ }
169
+ export interface DeleteComputeNodeGroupRequest {
170
+ clusterIdentifier: string | undefined;
171
+ computeNodeGroupIdentifier: string | undefined;
172
+ clientToken?: string;
173
+ }
174
+ export interface DeleteComputeNodeGroupResponse {}
175
+ export interface GetComputeNodeGroupRequest {
176
+ clusterIdentifier: string | undefined;
177
+ computeNodeGroupIdentifier: string | undefined;
178
+ }
179
+ export interface GetComputeNodeGroupResponse {
180
+ computeNodeGroup?: ComputeNodeGroup;
181
+ }
182
+ export interface ListComputeNodeGroupsRequest {
183
+ clusterIdentifier: string | undefined;
184
+ nextToken?: string;
185
+ maxResults?: number;
186
+ }
187
+ export interface ComputeNodeGroupSummary {
188
+ name: string | undefined;
189
+ id: string | undefined;
190
+ arn: string | undefined;
191
+ clusterId: string | undefined;
192
+ createdAt: Date | undefined;
193
+ modifiedAt: Date | undefined;
194
+ status: ComputeNodeGroupStatus | undefined;
195
+ }
196
+ export interface ListComputeNodeGroupsResponse {
197
+ computeNodeGroups: ComputeNodeGroupSummary[] | undefined;
198
+ nextToken?: string;
199
+ }
200
+ export interface UpdateComputeNodeGroupSlurmConfigurationRequest {
201
+ slurmCustomSettings?: SlurmCustomSetting[];
202
+ }
203
+ export interface UpdateComputeNodeGroupRequest {
204
+ clusterIdentifier: string | undefined;
205
+ computeNodeGroupIdentifier: string | undefined;
206
+ amiId?: string;
207
+ subnetIds?: string[];
208
+ customLaunchTemplate?: CustomLaunchTemplate;
209
+ purchaseOption?: PurchaseOption;
210
+ spotOptions?: SpotOptions;
211
+ scalingConfiguration?: ScalingConfigurationRequest;
212
+ iamInstanceProfileArn?: string;
213
+ slurmConfiguration?: UpdateComputeNodeGroupSlurmConfigurationRequest;
214
+ clientToken?: string;
215
+ }
216
+ export interface UpdateComputeNodeGroupResponse {
217
+ computeNodeGroup?: ComputeNodeGroup;
218
+ }
219
+ export interface NetworkingRequest {
220
+ subnetIds?: string[];
221
+ securityGroupIds?: string[];
222
+ }
223
+ export declare const SchedulerType: {
224
+ readonly SLURM: "SLURM";
225
+ };
226
+ export type SchedulerType = (typeof SchedulerType)[keyof typeof SchedulerType];
227
+ export interface SchedulerRequest {
228
+ type: SchedulerType | undefined;
229
+ version: string | undefined;
230
+ }
231
+ export declare const Size: {
232
+ readonly LARGE: "LARGE";
233
+ readonly MEDIUM: "MEDIUM";
234
+ readonly SMALL: "SMALL";
235
+ };
236
+ export type Size = (typeof Size)[keyof typeof Size];
237
+ export interface ClusterSlurmConfigurationRequest {
238
+ scaleDownIdleTimeInSeconds?: number;
239
+ slurmCustomSettings?: SlurmCustomSetting[];
240
+ }
241
+ export interface CreateClusterRequest {
242
+ clusterName: string | undefined;
243
+ scheduler: SchedulerRequest | undefined;
244
+ size: Size | undefined;
245
+ networking: NetworkingRequest | undefined;
246
+ slurmConfiguration?: ClusterSlurmConfigurationRequest;
247
+ clientToken?: string;
248
+ tags?: Record<string, string>;
249
+ }
250
+ export declare const EndpointType: {
251
+ readonly SLURMCTLD: "SLURMCTLD";
252
+ readonly SLURMDBD: "SLURMDBD";
253
+ };
254
+ export type EndpointType = (typeof EndpointType)[keyof typeof EndpointType];
255
+ export interface Endpoint {
256
+ type: EndpointType | undefined;
257
+ privateIpAddress: string | undefined;
258
+ publicIpAddress?: string;
259
+ port: string | undefined;
260
+ }
261
+ export interface Networking {
262
+ subnetIds?: string[];
263
+ securityGroupIds?: string[];
264
+ }
265
+ export interface Scheduler {
266
+ type: SchedulerType | undefined;
267
+ version: string | undefined;
268
+ }
269
+ export interface SlurmAuthKey {
270
+ secretArn: string | undefined;
271
+ secretVersion: string | undefined;
272
+ }
273
+ export interface ClusterSlurmConfiguration {
274
+ scaleDownIdleTimeInSeconds?: number;
275
+ slurmCustomSettings?: SlurmCustomSetting[];
276
+ authKey?: SlurmAuthKey;
277
+ }
278
+ export declare const ClusterStatus: {
279
+ readonly ACTIVE: "ACTIVE";
280
+ readonly CREATE_FAILED: "CREATE_FAILED";
281
+ readonly CREATING: "CREATING";
282
+ readonly DELETE_FAILED: "DELETE_FAILED";
283
+ readonly DELETING: "DELETING";
284
+ readonly UPDATE_FAILED: "UPDATE_FAILED";
285
+ readonly UPDATING: "UPDATING";
286
+ };
287
+ export type ClusterStatus = (typeof ClusterStatus)[keyof typeof ClusterStatus];
288
+ export interface Cluster {
289
+ name: string | undefined;
290
+ id: string | undefined;
291
+ arn: string | undefined;
292
+ status: ClusterStatus | undefined;
293
+ createdAt: Date | undefined;
294
+ modifiedAt: Date | undefined;
295
+ scheduler: Scheduler | undefined;
296
+ size: Size | undefined;
297
+ slurmConfiguration?: ClusterSlurmConfiguration;
298
+ networking: Networking | undefined;
299
+ endpoints?: Endpoint[];
300
+ errorInfo?: ErrorInfo[];
301
+ }
302
+ export interface CreateClusterResponse {
303
+ cluster?: Cluster;
304
+ }
305
+ export interface DeleteClusterRequest {
306
+ clusterIdentifier: string | undefined;
307
+ clientToken?: string;
308
+ }
309
+ export interface DeleteClusterResponse {}
310
+ export interface GetClusterRequest {
311
+ clusterIdentifier: string | undefined;
312
+ }
313
+ export interface GetClusterResponse {
314
+ cluster?: Cluster;
315
+ }
316
+ export interface ListClustersRequest {
317
+ nextToken?: string;
318
+ maxResults?: number;
319
+ }
320
+ export interface ClusterSummary {
321
+ name: string | undefined;
322
+ id: string | undefined;
323
+ arn: string | undefined;
324
+ createdAt: Date | undefined;
325
+ modifiedAt: Date | undefined;
326
+ status: ClusterStatus | undefined;
327
+ }
328
+ export interface ListClustersResponse {
329
+ clusters: ClusterSummary[] | undefined;
330
+ nextToken?: string;
331
+ }
332
+ export interface ComputeNodeGroupConfiguration {
333
+ computeNodeGroupId?: string;
334
+ }
335
+ export interface CreateQueueRequest {
336
+ clusterIdentifier: string | undefined;
337
+ queueName: string | undefined;
338
+ computeNodeGroupConfigurations?: ComputeNodeGroupConfiguration[];
339
+ clientToken?: string;
340
+ tags?: Record<string, string>;
341
+ }
342
+ export declare const QueueStatus: {
343
+ readonly ACTIVE: "ACTIVE";
344
+ readonly CREATE_FAILED: "CREATE_FAILED";
345
+ readonly CREATING: "CREATING";
346
+ readonly DELETE_FAILED: "DELETE_FAILED";
347
+ readonly DELETING: "DELETING";
348
+ readonly UPDATE_FAILED: "UPDATE_FAILED";
349
+ readonly UPDATING: "UPDATING";
350
+ };
351
+ export type QueueStatus = (typeof QueueStatus)[keyof typeof QueueStatus];
352
+ export interface Queue {
353
+ name: string | undefined;
354
+ id: string | undefined;
355
+ arn: string | undefined;
356
+ clusterId: string | undefined;
357
+ createdAt: Date | undefined;
358
+ modifiedAt: Date | undefined;
359
+ status: QueueStatus | undefined;
360
+ computeNodeGroupConfigurations: ComputeNodeGroupConfiguration[] | undefined;
361
+ errorInfo?: ErrorInfo[];
362
+ }
363
+ export interface CreateQueueResponse {
364
+ queue?: Queue;
365
+ }
366
+ export interface DeleteQueueRequest {
367
+ clusterIdentifier: string | undefined;
368
+ queueIdentifier: string | undefined;
369
+ clientToken?: string;
370
+ }
371
+ export interface DeleteQueueResponse {}
372
+ export interface GetQueueRequest {
373
+ clusterIdentifier: string | undefined;
374
+ queueIdentifier: string | undefined;
375
+ }
376
+ export interface GetQueueResponse {
377
+ queue?: Queue;
378
+ }
379
+ export interface ListQueuesRequest {
380
+ clusterIdentifier: string | undefined;
381
+ nextToken?: string;
382
+ maxResults?: number;
383
+ }
384
+ export interface QueueSummary {
385
+ name: string | undefined;
386
+ id: string | undefined;
387
+ arn: string | undefined;
388
+ clusterId: string | undefined;
389
+ createdAt: Date | undefined;
390
+ modifiedAt: Date | undefined;
391
+ status: QueueStatus | undefined;
392
+ }
393
+ export interface ListQueuesResponse {
394
+ queues: QueueSummary[] | undefined;
395
+ nextToken?: string;
396
+ }
397
+ export interface UpdateQueueRequest {
398
+ clusterIdentifier: string | undefined;
399
+ queueIdentifier: string | undefined;
400
+ computeNodeGroupConfigurations?: ComputeNodeGroupConfiguration[];
401
+ clientToken?: string;
402
+ }
403
+ export interface UpdateQueueResponse {
404
+ queue?: Queue;
405
+ }
406
+ export interface RegisterComputeNodeGroupInstanceRequest {
407
+ clusterIdentifier: string | undefined;
408
+ bootstrapId: string | undefined;
409
+ }
410
+ export interface RegisterComputeNodeGroupInstanceResponse {
411
+ nodeID: string | undefined;
412
+ sharedSecret: string | undefined;
413
+ endpoints: Endpoint[] | undefined;
414
+ }
415
+ export interface ListTagsForResourceRequest {
416
+ resourceArn: string | undefined;
417
+ }
418
+ export interface ListTagsForResourceResponse {
419
+ tags?: Record<string, string>;
420
+ }
421
+ export interface TagResourceRequest {
422
+ resourceArn: string | undefined;
423
+ tags: Record<string, string> | undefined;
424
+ }
425
+ export interface UntagResourceRequest {
426
+ resourceArn: string | undefined;
427
+ tagKeys: string[] | undefined;
428
+ }
429
+ export declare const RegisterComputeNodeGroupInstanceResponseFilterSensitiveLog: (
430
+ obj: RegisterComputeNodeGroupInstanceResponse
431
+ ) => any;
@@ -0,0 +1,5 @@
1
+ import { PaginationConfiguration } from "@smithy/types";
2
+ import { PCSClient } from "../PCSClient";
3
+ export interface PCSPaginationConfiguration extends PaginationConfiguration {
4
+ client: PCSClient;
5
+ }
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListClustersCommandInput,
4
+ ListClustersCommandOutput,
5
+ } from "../commands/ListClustersCommand";
6
+ import { PCSPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListClusters: (
8
+ config: PCSPaginationConfiguration,
9
+ input: ListClustersCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListClustersCommandOutput>;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListComputeNodeGroupsCommandInput,
4
+ ListComputeNodeGroupsCommandOutput,
5
+ } from "../commands/ListComputeNodeGroupsCommand";
6
+ import { PCSPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListComputeNodeGroups: (
8
+ config: PCSPaginationConfiguration,
9
+ input: ListComputeNodeGroupsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListComputeNodeGroupsCommandOutput>;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListQueuesCommandInput,
4
+ ListQueuesCommandOutput,
5
+ } from "../commands/ListQueuesCommand";
6
+ import { PCSPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListQueues: (
8
+ config: PCSPaginationConfiguration,
9
+ input: ListQueuesCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListQueuesCommandOutput>;
@@ -0,0 +1,4 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListClustersPaginator";
3
+ export * from "./ListComputeNodeGroupsPaginator";
4
+ export * from "./ListQueuesPaginator";