@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,233 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { UpdateComputeNodeGroupRequest, UpdateComputeNodeGroupResponse } from "../models/models_0";
4
+ import { PCSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PCSClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateComputeNodeGroupCommand}.
14
+ */
15
+ export interface UpdateComputeNodeGroupCommandInput extends UpdateComputeNodeGroupRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateComputeNodeGroupCommand}.
21
+ */
22
+ export interface UpdateComputeNodeGroupCommandOutput extends UpdateComputeNodeGroupResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateComputeNodeGroupCommand_base: {
25
+ new (input: UpdateComputeNodeGroupCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateComputeNodeGroupCommandInput, UpdateComputeNodeGroupCommandOutput, PCSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: UpdateComputeNodeGroupCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateComputeNodeGroupCommandInput, UpdateComputeNodeGroupCommandOutput, PCSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates a compute node group. You can update many of the fields related to your compute
31
+ * node group including the configurations for networking, compute nodes, and settings
32
+ * specific to your scheduler (such as Slurm).</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { PCSClient, UpdateComputeNodeGroupCommand } from "@aws-sdk/client-pcs"; // ES Modules import
37
+ * // const { PCSClient, UpdateComputeNodeGroupCommand } = require("@aws-sdk/client-pcs"); // CommonJS import
38
+ * const client = new PCSClient(config);
39
+ * const input = { // UpdateComputeNodeGroupRequest
40
+ * clusterIdentifier: "STRING_VALUE", // required
41
+ * computeNodeGroupIdentifier: "STRING_VALUE", // required
42
+ * amiId: "STRING_VALUE",
43
+ * subnetIds: [ // StringList
44
+ * "STRING_VALUE",
45
+ * ],
46
+ * customLaunchTemplate: { // CustomLaunchTemplate
47
+ * id: "STRING_VALUE", // required
48
+ * version: "STRING_VALUE", // required
49
+ * },
50
+ * purchaseOption: "ONDEMAND" || "SPOT",
51
+ * spotOptions: { // SpotOptions
52
+ * allocationStrategy: "lowest-price" || "capacity-optimized" || "price-capacity-optimized",
53
+ * },
54
+ * scalingConfiguration: { // ScalingConfigurationRequest
55
+ * minInstanceCount: Number("int"), // required
56
+ * maxInstanceCount: Number("int"), // required
57
+ * },
58
+ * iamInstanceProfileArn: "STRING_VALUE",
59
+ * slurmConfiguration: { // UpdateComputeNodeGroupSlurmConfigurationRequest
60
+ * slurmCustomSettings: [ // SlurmCustomSettings
61
+ * { // SlurmCustomSetting
62
+ * parameterName: "STRING_VALUE", // required
63
+ * parameterValue: "STRING_VALUE", // required
64
+ * },
65
+ * ],
66
+ * },
67
+ * clientToken: "STRING_VALUE",
68
+ * };
69
+ * const command = new UpdateComputeNodeGroupCommand(input);
70
+ * const response = await client.send(command);
71
+ * // { // UpdateComputeNodeGroupResponse
72
+ * // computeNodeGroup: { // ComputeNodeGroup
73
+ * // name: "STRING_VALUE", // required
74
+ * // id: "STRING_VALUE", // required
75
+ * // arn: "STRING_VALUE", // required
76
+ * // clusterId: "STRING_VALUE", // required
77
+ * // createdAt: new Date("TIMESTAMP"), // required
78
+ * // modifiedAt: new Date("TIMESTAMP"), // required
79
+ * // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED" || "DELETED", // required
80
+ * // amiId: "STRING_VALUE",
81
+ * // subnetIds: [ // SubnetIdList // required
82
+ * // "STRING_VALUE",
83
+ * // ],
84
+ * // purchaseOption: "ONDEMAND" || "SPOT",
85
+ * // customLaunchTemplate: { // CustomLaunchTemplate
86
+ * // id: "STRING_VALUE", // required
87
+ * // version: "STRING_VALUE", // required
88
+ * // },
89
+ * // iamInstanceProfileArn: "STRING_VALUE", // required
90
+ * // scalingConfiguration: { // ScalingConfiguration
91
+ * // minInstanceCount: Number("int"), // required
92
+ * // maxInstanceCount: Number("int"), // required
93
+ * // },
94
+ * // instanceConfigs: [ // InstanceList // required
95
+ * // { // InstanceConfig
96
+ * // instanceType: "STRING_VALUE",
97
+ * // },
98
+ * // ],
99
+ * // spotOptions: { // SpotOptions
100
+ * // allocationStrategy: "lowest-price" || "capacity-optimized" || "price-capacity-optimized",
101
+ * // },
102
+ * // slurmConfiguration: { // ComputeNodeGroupSlurmConfiguration
103
+ * // slurmCustomSettings: [ // SlurmCustomSettings
104
+ * // { // SlurmCustomSetting
105
+ * // parameterName: "STRING_VALUE", // required
106
+ * // parameterValue: "STRING_VALUE", // required
107
+ * // },
108
+ * // ],
109
+ * // },
110
+ * // errorInfo: [ // ErrorInfoList
111
+ * // { // ErrorInfo
112
+ * // code: "STRING_VALUE",
113
+ * // message: "STRING_VALUE",
114
+ * // },
115
+ * // ],
116
+ * // },
117
+ * // };
118
+ *
119
+ * ```
120
+ *
121
+ * @param UpdateComputeNodeGroupCommandInput - {@link UpdateComputeNodeGroupCommandInput}
122
+ * @returns {@link UpdateComputeNodeGroupCommandOutput}
123
+ * @see {@link UpdateComputeNodeGroupCommandInput} for command's `input` shape.
124
+ * @see {@link UpdateComputeNodeGroupCommandOutput} for command's `response` shape.
125
+ * @see {@link PCSClientResolvedConfig | config} for PCSClient's `config` shape.
126
+ *
127
+ * @throws {@link AccessDeniedException} (client fault)
128
+ * <p>You don't have permission to perform the action.</p>
129
+ * <p>
130
+ * <u>Examples</u>
131
+ * </p>
132
+ * <ul>
133
+ * <li>
134
+ * <p>The launch template instance profile doesn't pass <code>iam:PassRole</code>
135
+ * verification.</p>
136
+ * </li>
137
+ * <li>
138
+ * <p>There is a mismatch between the account ID and cluster ID.</p>
139
+ * </li>
140
+ * <li>
141
+ * <p>The cluster ID doesn't exist.</p>
142
+ * </li>
143
+ * <li>
144
+ * <p>The EC2 instance isn't present.</p>
145
+ * </li>
146
+ * </ul>
147
+ *
148
+ * @throws {@link ConflictException} (client fault)
149
+ * <p>Your request has conflicting operations. This can occur if you're trying to perform more
150
+ * than 1 operation on the same resource at the same time.</p>
151
+ * <p>
152
+ * <u>Examples</u>
153
+ * </p>
154
+ * <ul>
155
+ * <li>
156
+ * <p>A cluster with the same name already exists.</p>
157
+ * </li>
158
+ * <li>
159
+ * <p>A cluster isn't in <code>ACTIVE</code> status.</p>
160
+ * </li>
161
+ * <li>
162
+ * <p>A cluster to delete is in an unstable state. For example, because it still has
163
+ * <code>ACTIVE</code> node groups or queues.</p>
164
+ * </li>
165
+ * <li>
166
+ * <p>A queue already exists in a cluster.</p>
167
+ * </li>
168
+ * </ul>
169
+ *
170
+ * @throws {@link InternalServerException} (server fault)
171
+ * <p>Amazon Web Services PCS can't process your request right now. Try again later.</p>
172
+ *
173
+ * @throws {@link ResourceNotFoundException} (client fault)
174
+ * <p>The requested resource can't be found. The cluster, node group, or queue you're
175
+ * attempting to get, update, list, or delete doesn't exist.</p>
176
+ * <p>
177
+ * <u>Examples</u>
178
+ * </p>
179
+ *
180
+ * @throws {@link ServiceQuotaExceededException} (client fault)
181
+ * <p>You exceeded your service quota. Service quotas, also referred to as limits, are the
182
+ * maximum number of service resources or operations for your Amazon Web Services account. To learn how to
183
+ * increase your service quota, see <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html">Requesting a quota
184
+ * increase</a> in the <i>Service Quotas User Guide</i>
185
+ * </p>
186
+ * <p>
187
+ * <u>Examples</u>
188
+ * </p>
189
+ * <ul>
190
+ * <li>
191
+ * <p>The max number of clusters or queues has been reached for the account.</p>
192
+ * </li>
193
+ * <li>
194
+ * <p>The max number of compute node groups has been reached for the associated
195
+ * cluster.</p>
196
+ * </li>
197
+ * <li>
198
+ * <p>The total of <code>maxInstances</code> across all compute node groups has been
199
+ * reached for associated cluster.</p>
200
+ * </li>
201
+ * </ul>
202
+ *
203
+ * @throws {@link ThrottlingException} (client fault)
204
+ * <p>Your request exceeded a request rate quota. Check the resource's request rate quota and try again.</p>
205
+ *
206
+ * @throws {@link ValidationException} (client fault)
207
+ * <p>The request isn't valid.</p>
208
+ * <p>
209
+ * <u>Examples</u>
210
+ * </p>
211
+ * <ul>
212
+ * <li>
213
+ * <p>Your request contains malformed JSON or unsupported characters.</p>
214
+ * </li>
215
+ * <li>
216
+ * <p>The scheduler version isn't supported.</p>
217
+ * </li>
218
+ * <li>
219
+ * <p>There are networking related errors, such as network validation failure.</p>
220
+ * </li>
221
+ * <li>
222
+ * <p>AMI type is <code>CUSTOM</code> and the launch template doesn't define the AMI ID,
223
+ * or the AMI type is AL2 and the launch template defines the AMI.</p>
224
+ * </li>
225
+ * </ul>
226
+ *
227
+ * @throws {@link PCSServiceException}
228
+ * <p>Base exception class for all service exceptions from PCS service.</p>
229
+ *
230
+ * @public
231
+ */
232
+ export declare class UpdateComputeNodeGroupCommand extends UpdateComputeNodeGroupCommand_base {
233
+ }
@@ -0,0 +1,187 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { UpdateQueueRequest, UpdateQueueResponse } from "../models/models_0";
4
+ import { PCSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PCSClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateQueueCommand}.
14
+ */
15
+ export interface UpdateQueueCommandInput extends UpdateQueueRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateQueueCommand}.
21
+ */
22
+ export interface UpdateQueueCommandOutput extends UpdateQueueResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateQueueCommand_base: {
25
+ new (input: UpdateQueueCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateQueueCommandInput, UpdateQueueCommandOutput, PCSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: UpdateQueueCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateQueueCommandInput, UpdateQueueCommandOutput, PCSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates the compute node group configuration of a queue. Use this API to change the
31
+ * compute node groups that the queue can send jobs to.</p>
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { PCSClient, UpdateQueueCommand } from "@aws-sdk/client-pcs"; // ES Modules import
36
+ * // const { PCSClient, UpdateQueueCommand } = require("@aws-sdk/client-pcs"); // CommonJS import
37
+ * const client = new PCSClient(config);
38
+ * const input = { // UpdateQueueRequest
39
+ * clusterIdentifier: "STRING_VALUE", // required
40
+ * queueIdentifier: "STRING_VALUE", // required
41
+ * computeNodeGroupConfigurations: [ // ComputeNodeGroupConfigurationList
42
+ * { // ComputeNodeGroupConfiguration
43
+ * computeNodeGroupId: "STRING_VALUE",
44
+ * },
45
+ * ],
46
+ * clientToken: "STRING_VALUE",
47
+ * };
48
+ * const command = new UpdateQueueCommand(input);
49
+ * const response = await client.send(command);
50
+ * // { // UpdateQueueResponse
51
+ * // queue: { // Queue
52
+ * // name: "STRING_VALUE", // required
53
+ * // id: "STRING_VALUE", // required
54
+ * // arn: "STRING_VALUE", // required
55
+ * // clusterId: "STRING_VALUE", // required
56
+ * // createdAt: new Date("TIMESTAMP"), // required
57
+ * // modifiedAt: new Date("TIMESTAMP"), // required
58
+ * // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED", // required
59
+ * // computeNodeGroupConfigurations: [ // ComputeNodeGroupConfigurationList // required
60
+ * // { // ComputeNodeGroupConfiguration
61
+ * // computeNodeGroupId: "STRING_VALUE",
62
+ * // },
63
+ * // ],
64
+ * // errorInfo: [ // ErrorInfoList
65
+ * // { // ErrorInfo
66
+ * // code: "STRING_VALUE",
67
+ * // message: "STRING_VALUE",
68
+ * // },
69
+ * // ],
70
+ * // },
71
+ * // };
72
+ *
73
+ * ```
74
+ *
75
+ * @param UpdateQueueCommandInput - {@link UpdateQueueCommandInput}
76
+ * @returns {@link UpdateQueueCommandOutput}
77
+ * @see {@link UpdateQueueCommandInput} for command's `input` shape.
78
+ * @see {@link UpdateQueueCommandOutput} for command's `response` shape.
79
+ * @see {@link PCSClientResolvedConfig | config} for PCSClient's `config` shape.
80
+ *
81
+ * @throws {@link AccessDeniedException} (client fault)
82
+ * <p>You don't have permission to perform the action.</p>
83
+ * <p>
84
+ * <u>Examples</u>
85
+ * </p>
86
+ * <ul>
87
+ * <li>
88
+ * <p>The launch template instance profile doesn't pass <code>iam:PassRole</code>
89
+ * verification.</p>
90
+ * </li>
91
+ * <li>
92
+ * <p>There is a mismatch between the account ID and cluster ID.</p>
93
+ * </li>
94
+ * <li>
95
+ * <p>The cluster ID doesn't exist.</p>
96
+ * </li>
97
+ * <li>
98
+ * <p>The EC2 instance isn't present.</p>
99
+ * </li>
100
+ * </ul>
101
+ *
102
+ * @throws {@link ConflictException} (client fault)
103
+ * <p>Your request has conflicting operations. This can occur if you're trying to perform more
104
+ * than 1 operation on the same resource at the same time.</p>
105
+ * <p>
106
+ * <u>Examples</u>
107
+ * </p>
108
+ * <ul>
109
+ * <li>
110
+ * <p>A cluster with the same name already exists.</p>
111
+ * </li>
112
+ * <li>
113
+ * <p>A cluster isn't in <code>ACTIVE</code> status.</p>
114
+ * </li>
115
+ * <li>
116
+ * <p>A cluster to delete is in an unstable state. For example, because it still has
117
+ * <code>ACTIVE</code> node groups or queues.</p>
118
+ * </li>
119
+ * <li>
120
+ * <p>A queue already exists in a cluster.</p>
121
+ * </li>
122
+ * </ul>
123
+ *
124
+ * @throws {@link InternalServerException} (server fault)
125
+ * <p>Amazon Web Services PCS can't process your request right now. Try again later.</p>
126
+ *
127
+ * @throws {@link ResourceNotFoundException} (client fault)
128
+ * <p>The requested resource can't be found. The cluster, node group, or queue you're
129
+ * attempting to get, update, list, or delete doesn't exist.</p>
130
+ * <p>
131
+ * <u>Examples</u>
132
+ * </p>
133
+ *
134
+ * @throws {@link ServiceQuotaExceededException} (client fault)
135
+ * <p>You exceeded your service quota. Service quotas, also referred to as limits, are the
136
+ * maximum number of service resources or operations for your Amazon Web Services account. To learn how to
137
+ * increase your service quota, see <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html">Requesting a quota
138
+ * increase</a> in the <i>Service Quotas User Guide</i>
139
+ * </p>
140
+ * <p>
141
+ * <u>Examples</u>
142
+ * </p>
143
+ * <ul>
144
+ * <li>
145
+ * <p>The max number of clusters or queues has been reached for the account.</p>
146
+ * </li>
147
+ * <li>
148
+ * <p>The max number of compute node groups has been reached for the associated
149
+ * cluster.</p>
150
+ * </li>
151
+ * <li>
152
+ * <p>The total of <code>maxInstances</code> across all compute node groups has been
153
+ * reached for associated cluster.</p>
154
+ * </li>
155
+ * </ul>
156
+ *
157
+ * @throws {@link ThrottlingException} (client fault)
158
+ * <p>Your request exceeded a request rate quota. Check the resource's request rate quota and try again.</p>
159
+ *
160
+ * @throws {@link ValidationException} (client fault)
161
+ * <p>The request isn't valid.</p>
162
+ * <p>
163
+ * <u>Examples</u>
164
+ * </p>
165
+ * <ul>
166
+ * <li>
167
+ * <p>Your request contains malformed JSON or unsupported characters.</p>
168
+ * </li>
169
+ * <li>
170
+ * <p>The scheduler version isn't supported.</p>
171
+ * </li>
172
+ * <li>
173
+ * <p>There are networking related errors, such as network validation failure.</p>
174
+ * </li>
175
+ * <li>
176
+ * <p>AMI type is <code>CUSTOM</code> and the launch template doesn't define the AMI ID,
177
+ * or the AMI type is AL2 and the launch template defines the AMI.</p>
178
+ * </li>
179
+ * </ul>
180
+ *
181
+ * @throws {@link PCSServiceException}
182
+ * <p>Base exception class for all service exceptions from PCS service.</p>
183
+ *
184
+ * @public
185
+ */
186
+ export declare class UpdateQueueCommand extends UpdateQueueCommand_base {
187
+ }
@@ -0,0 +1,18 @@
1
+ export * from "./CreateClusterCommand";
2
+ export * from "./CreateComputeNodeGroupCommand";
3
+ export * from "./CreateQueueCommand";
4
+ export * from "./DeleteClusterCommand";
5
+ export * from "./DeleteComputeNodeGroupCommand";
6
+ export * from "./DeleteQueueCommand";
7
+ export * from "./GetClusterCommand";
8
+ export * from "./GetComputeNodeGroupCommand";
9
+ export * from "./GetQueueCommand";
10
+ export * from "./ListClustersCommand";
11
+ export * from "./ListComputeNodeGroupsCommand";
12
+ export * from "./ListQueuesCommand";
13
+ export * from "./ListTagsForResourceCommand";
14
+ export * from "./RegisterComputeNodeGroupInstanceCommand";
15
+ export * from "./TagResourceCommand";
16
+ export * from "./UntagResourceCommand";
17
+ export * from "./UpdateComputeNodeGroupCommand";
18
+ export * from "./UpdateQueueCommand";
@@ -0,0 +1,40 @@
1
+ import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface ClientInputEndpointParameters {
6
+ region?: string | Provider<string>;
7
+ useDualstackEndpoint?: boolean | Provider<boolean>;
8
+ useFipsEndpoint?: boolean | Provider<boolean>;
9
+ endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
10
+ }
11
+ export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
12
+ defaultSigningName: string;
13
+ };
14
+ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
15
+ defaultSigningName: string;
16
+ };
17
+ export declare const commonParams: {
18
+ readonly UseFIPS: {
19
+ readonly type: "builtInParams";
20
+ readonly name: "useFipsEndpoint";
21
+ };
22
+ readonly Endpoint: {
23
+ readonly type: "builtInParams";
24
+ readonly name: "endpoint";
25
+ };
26
+ readonly Region: {
27
+ readonly type: "builtInParams";
28
+ readonly name: "region";
29
+ };
30
+ readonly UseDualStack: {
31
+ readonly type: "builtInParams";
32
+ readonly name: "useDualstackEndpoint";
33
+ };
34
+ };
35
+ export interface EndpointParameters extends __EndpointParameters {
36
+ Region?: string;
37
+ UseDualStack?: boolean;
38
+ UseFIPS?: boolean;
39
+ Endpoint?: string;
40
+ }
@@ -0,0 +1,5 @@
1
+ import { EndpointV2, Logger } from "@smithy/types";
2
+ import { EndpointParameters } from "./EndpointParameters";
3
+ export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
4
+ logger?: Logger;
5
+ }) => 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
+ /**
6
+ * @internal
7
+ */
8
+ export interface PCSExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
9
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * <p>Amazon Web Services Parallel Computing Service (Amazon Web Services PCS) is a managed service that makes it easier for
3
+ * you to run and scale your high performance computing (HPC) workloads,
4
+ * and build scientific and engineering models on Amazon Web Services using Slurm.
5
+ * For more information, see
6
+ * the <a href="https://docs.aws.amazon.com/pcs/latest/userguide">Amazon Web Services Parallel Computing Service
7
+ * User Guide</a>.</p>
8
+ * <p>This reference describes the actions and data types of the service management API. You can use the
9
+ * Amazon Web Services SDKs to call the API actions in software, or use the Command Line Interface (CLI) to call the API
10
+ * actions manually. These API actions manage the service through an Amazon Web Services account.</p>
11
+ * <p>The API actions operate on Amazon Web Services PCS resources. A <i>resource</i> is
12
+ * an entity in Amazon Web Services that you can work with. Amazon Web Services services create resources when you use
13
+ * the features of the service. Examples of Amazon Web Services PCS resources include clusters, compute
14
+ * node groups, and queues. For more information about resources in Amazon Web Services, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/getting-started-terms-and-concepts.html#term-resource">Resource</a> in the <i>Resource Explorer User Guide</i>. </p>
15
+ * <p>An Amazon Web Services PCS <i>compute node</i> is an Amazon EC2 instance. You don't launch
16
+ * compute nodes directly. Amazon Web Services PCS uses configuration information that you provide to launch
17
+ * compute nodes in your Amazon Web Services account. You receive billing charges for your running compute nodes.
18
+ * Amazon Web Services PCS automatically terminates your compute nodes when you delete the Amazon Web Services PCS resources
19
+ * related to those compute nodes.</p>
20
+ *
21
+ * @packageDocumentation
22
+ */
23
+ export * from "./PCSClient";
24
+ export * from "./PCS";
25
+ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
26
+ export type { RuntimeExtension } from "./runtimeExtensions";
27
+ export type { PCSExtensionConfiguration } from "./extensionConfiguration";
28
+ export * from "./commands";
29
+ export * from "./pagination";
30
+ export * from "./models";
31
+ export { PCSServiceException } from "./models/PCSServiceException";
@@ -0,0 +1,14 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
2
+ export type { __ServiceExceptionOptions };
3
+ export { __ServiceException };
4
+ /**
5
+ * @public
6
+ *
7
+ * Base exception class for all service exceptions from PCS service.
8
+ */
9
+ export declare class PCSServiceException extends __ServiceException {
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(options: __ServiceExceptionOptions);
14
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";