@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,137 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DeleteClusterRequest, DeleteClusterResponse } 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 DeleteClusterCommand}.
14
+ */
15
+ export interface DeleteClusterCommandInput extends DeleteClusterRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteClusterCommand}.
21
+ */
22
+ export interface DeleteClusterCommandOutput extends DeleteClusterResponse, __MetadataBearer {
23
+ }
24
+ declare const DeleteClusterCommand_base: {
25
+ new (input: DeleteClusterCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteClusterCommandInput, DeleteClusterCommandOutput, PCSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DeleteClusterCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteClusterCommandInput, DeleteClusterCommandOutput, PCSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes a cluster and all its linked resources. You must delete all queues and compute
31
+ * node groups associated with the cluster before you can delete the cluster.</p>
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { PCSClient, DeleteClusterCommand } from "@aws-sdk/client-pcs"; // ES Modules import
36
+ * // const { PCSClient, DeleteClusterCommand } = require("@aws-sdk/client-pcs"); // CommonJS import
37
+ * const client = new PCSClient(config);
38
+ * const input = { // DeleteClusterRequest
39
+ * clusterIdentifier: "STRING_VALUE", // required
40
+ * clientToken: "STRING_VALUE",
41
+ * };
42
+ * const command = new DeleteClusterCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param DeleteClusterCommandInput - {@link DeleteClusterCommandInput}
49
+ * @returns {@link DeleteClusterCommandOutput}
50
+ * @see {@link DeleteClusterCommandInput} for command's `input` shape.
51
+ * @see {@link DeleteClusterCommandOutput} for command's `response` shape.
52
+ * @see {@link PCSClientResolvedConfig | config} for PCSClient's `config` shape.
53
+ *
54
+ * @throws {@link AccessDeniedException} (client fault)
55
+ * <p>You don't have permission to perform the action.</p>
56
+ * <p>
57
+ * <u>Examples</u>
58
+ * </p>
59
+ * <ul>
60
+ * <li>
61
+ * <p>The launch template instance profile doesn't pass <code>iam:PassRole</code>
62
+ * verification.</p>
63
+ * </li>
64
+ * <li>
65
+ * <p>There is a mismatch between the account ID and cluster ID.</p>
66
+ * </li>
67
+ * <li>
68
+ * <p>The cluster ID doesn't exist.</p>
69
+ * </li>
70
+ * <li>
71
+ * <p>The EC2 instance isn't present.</p>
72
+ * </li>
73
+ * </ul>
74
+ *
75
+ * @throws {@link ConflictException} (client fault)
76
+ * <p>Your request has conflicting operations. This can occur if you're trying to perform more
77
+ * than 1 operation on the same resource at the same time.</p>
78
+ * <p>
79
+ * <u>Examples</u>
80
+ * </p>
81
+ * <ul>
82
+ * <li>
83
+ * <p>A cluster with the same name already exists.</p>
84
+ * </li>
85
+ * <li>
86
+ * <p>A cluster isn't in <code>ACTIVE</code> status.</p>
87
+ * </li>
88
+ * <li>
89
+ * <p>A cluster to delete is in an unstable state. For example, because it still has
90
+ * <code>ACTIVE</code> node groups or queues.</p>
91
+ * </li>
92
+ * <li>
93
+ * <p>A queue already exists in a cluster.</p>
94
+ * </li>
95
+ * </ul>
96
+ *
97
+ * @throws {@link InternalServerException} (server fault)
98
+ * <p>Amazon Web Services PCS can't process your request right now. Try again later.</p>
99
+ *
100
+ * @throws {@link ResourceNotFoundException} (client fault)
101
+ * <p>The requested resource can't be found. The cluster, node group, or queue you're
102
+ * attempting to get, update, list, or delete doesn't exist.</p>
103
+ * <p>
104
+ * <u>Examples</u>
105
+ * </p>
106
+ *
107
+ * @throws {@link ThrottlingException} (client fault)
108
+ * <p>Your request exceeded a request rate quota. Check the resource's request rate quota and try again.</p>
109
+ *
110
+ * @throws {@link ValidationException} (client fault)
111
+ * <p>The request isn't valid.</p>
112
+ * <p>
113
+ * <u>Examples</u>
114
+ * </p>
115
+ * <ul>
116
+ * <li>
117
+ * <p>Your request contains malformed JSON or unsupported characters.</p>
118
+ * </li>
119
+ * <li>
120
+ * <p>The scheduler version isn't supported.</p>
121
+ * </li>
122
+ * <li>
123
+ * <p>There are networking related errors, such as network validation failure.</p>
124
+ * </li>
125
+ * <li>
126
+ * <p>AMI type is <code>CUSTOM</code> and the launch template doesn't define the AMI ID,
127
+ * or the AMI type is AL2 and the launch template defines the AMI.</p>
128
+ * </li>
129
+ * </ul>
130
+ *
131
+ * @throws {@link PCSServiceException}
132
+ * <p>Base exception class for all service exceptions from PCS service.</p>
133
+ *
134
+ * @public
135
+ */
136
+ export declare class DeleteClusterCommand extends DeleteClusterCommand_base {
137
+ }
@@ -0,0 +1,138 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DeleteComputeNodeGroupRequest, DeleteComputeNodeGroupResponse } 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 DeleteComputeNodeGroupCommand}.
14
+ */
15
+ export interface DeleteComputeNodeGroupCommandInput extends DeleteComputeNodeGroupRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteComputeNodeGroupCommand}.
21
+ */
22
+ export interface DeleteComputeNodeGroupCommandOutput extends DeleteComputeNodeGroupResponse, __MetadataBearer {
23
+ }
24
+ declare const DeleteComputeNodeGroupCommand_base: {
25
+ new (input: DeleteComputeNodeGroupCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteComputeNodeGroupCommandInput, DeleteComputeNodeGroupCommandOutput, PCSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DeleteComputeNodeGroupCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteComputeNodeGroupCommandInput, DeleteComputeNodeGroupCommandOutput, PCSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes a compute node group. You must delete all queues associated with the compute
31
+ * node group first.</p>
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { PCSClient, DeleteComputeNodeGroupCommand } from "@aws-sdk/client-pcs"; // ES Modules import
36
+ * // const { PCSClient, DeleteComputeNodeGroupCommand } = require("@aws-sdk/client-pcs"); // CommonJS import
37
+ * const client = new PCSClient(config);
38
+ * const input = { // DeleteComputeNodeGroupRequest
39
+ * clusterIdentifier: "STRING_VALUE", // required
40
+ * computeNodeGroupIdentifier: "STRING_VALUE", // required
41
+ * clientToken: "STRING_VALUE",
42
+ * };
43
+ * const command = new DeleteComputeNodeGroupCommand(input);
44
+ * const response = await client.send(command);
45
+ * // {};
46
+ *
47
+ * ```
48
+ *
49
+ * @param DeleteComputeNodeGroupCommandInput - {@link DeleteComputeNodeGroupCommandInput}
50
+ * @returns {@link DeleteComputeNodeGroupCommandOutput}
51
+ * @see {@link DeleteComputeNodeGroupCommandInput} for command's `input` shape.
52
+ * @see {@link DeleteComputeNodeGroupCommandOutput} for command's `response` shape.
53
+ * @see {@link PCSClientResolvedConfig | config} for PCSClient's `config` shape.
54
+ *
55
+ * @throws {@link AccessDeniedException} (client fault)
56
+ * <p>You don't have permission to perform the action.</p>
57
+ * <p>
58
+ * <u>Examples</u>
59
+ * </p>
60
+ * <ul>
61
+ * <li>
62
+ * <p>The launch template instance profile doesn't pass <code>iam:PassRole</code>
63
+ * verification.</p>
64
+ * </li>
65
+ * <li>
66
+ * <p>There is a mismatch between the account ID and cluster ID.</p>
67
+ * </li>
68
+ * <li>
69
+ * <p>The cluster ID doesn't exist.</p>
70
+ * </li>
71
+ * <li>
72
+ * <p>The EC2 instance isn't present.</p>
73
+ * </li>
74
+ * </ul>
75
+ *
76
+ * @throws {@link ConflictException} (client fault)
77
+ * <p>Your request has conflicting operations. This can occur if you're trying to perform more
78
+ * than 1 operation on the same resource at the same time.</p>
79
+ * <p>
80
+ * <u>Examples</u>
81
+ * </p>
82
+ * <ul>
83
+ * <li>
84
+ * <p>A cluster with the same name already exists.</p>
85
+ * </li>
86
+ * <li>
87
+ * <p>A cluster isn't in <code>ACTIVE</code> status.</p>
88
+ * </li>
89
+ * <li>
90
+ * <p>A cluster to delete is in an unstable state. For example, because it still has
91
+ * <code>ACTIVE</code> node groups or queues.</p>
92
+ * </li>
93
+ * <li>
94
+ * <p>A queue already exists in a cluster.</p>
95
+ * </li>
96
+ * </ul>
97
+ *
98
+ * @throws {@link InternalServerException} (server fault)
99
+ * <p>Amazon Web Services PCS can't process your request right now. Try again later.</p>
100
+ *
101
+ * @throws {@link ResourceNotFoundException} (client fault)
102
+ * <p>The requested resource can't be found. The cluster, node group, or queue you're
103
+ * attempting to get, update, list, or delete doesn't exist.</p>
104
+ * <p>
105
+ * <u>Examples</u>
106
+ * </p>
107
+ *
108
+ * @throws {@link ThrottlingException} (client fault)
109
+ * <p>Your request exceeded a request rate quota. Check the resource's request rate quota and try again.</p>
110
+ *
111
+ * @throws {@link ValidationException} (client fault)
112
+ * <p>The request isn't valid.</p>
113
+ * <p>
114
+ * <u>Examples</u>
115
+ * </p>
116
+ * <ul>
117
+ * <li>
118
+ * <p>Your request contains malformed JSON or unsupported characters.</p>
119
+ * </li>
120
+ * <li>
121
+ * <p>The scheduler version isn't supported.</p>
122
+ * </li>
123
+ * <li>
124
+ * <p>There are networking related errors, such as network validation failure.</p>
125
+ * </li>
126
+ * <li>
127
+ * <p>AMI type is <code>CUSTOM</code> and the launch template doesn't define the AMI ID,
128
+ * or the AMI type is AL2 and the launch template defines the AMI.</p>
129
+ * </li>
130
+ * </ul>
131
+ *
132
+ * @throws {@link PCSServiceException}
133
+ * <p>Base exception class for all service exceptions from PCS service.</p>
134
+ *
135
+ * @public
136
+ */
137
+ export declare class DeleteComputeNodeGroupCommand extends DeleteComputeNodeGroupCommand_base {
138
+ }
@@ -0,0 +1,139 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DeleteQueueRequest, DeleteQueueResponse } 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 DeleteQueueCommand}.
14
+ */
15
+ export interface DeleteQueueCommandInput extends DeleteQueueRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteQueueCommand}.
21
+ */
22
+ export interface DeleteQueueCommandOutput extends DeleteQueueResponse, __MetadataBearer {
23
+ }
24
+ declare const DeleteQueueCommand_base: {
25
+ new (input: DeleteQueueCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteQueueCommandInput, DeleteQueueCommandOutput, PCSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DeleteQueueCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteQueueCommandInput, DeleteQueueCommandOutput, PCSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes a job queue. If the compute node group associated with this queue isn't
31
+ * associated with any other queues, Amazon Web Services PCS terminates all the compute nodes for this
32
+ * queue.</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { PCSClient, DeleteQueueCommand } from "@aws-sdk/client-pcs"; // ES Modules import
37
+ * // const { PCSClient, DeleteQueueCommand } = require("@aws-sdk/client-pcs"); // CommonJS import
38
+ * const client = new PCSClient(config);
39
+ * const input = { // DeleteQueueRequest
40
+ * clusterIdentifier: "STRING_VALUE", // required
41
+ * queueIdentifier: "STRING_VALUE", // required
42
+ * clientToken: "STRING_VALUE",
43
+ * };
44
+ * const command = new DeleteQueueCommand(input);
45
+ * const response = await client.send(command);
46
+ * // {};
47
+ *
48
+ * ```
49
+ *
50
+ * @param DeleteQueueCommandInput - {@link DeleteQueueCommandInput}
51
+ * @returns {@link DeleteQueueCommandOutput}
52
+ * @see {@link DeleteQueueCommandInput} for command's `input` shape.
53
+ * @see {@link DeleteQueueCommandOutput} for command's `response` shape.
54
+ * @see {@link PCSClientResolvedConfig | config} for PCSClient's `config` shape.
55
+ *
56
+ * @throws {@link AccessDeniedException} (client fault)
57
+ * <p>You don't have permission to perform the action.</p>
58
+ * <p>
59
+ * <u>Examples</u>
60
+ * </p>
61
+ * <ul>
62
+ * <li>
63
+ * <p>The launch template instance profile doesn't pass <code>iam:PassRole</code>
64
+ * verification.</p>
65
+ * </li>
66
+ * <li>
67
+ * <p>There is a mismatch between the account ID and cluster ID.</p>
68
+ * </li>
69
+ * <li>
70
+ * <p>The cluster ID doesn't exist.</p>
71
+ * </li>
72
+ * <li>
73
+ * <p>The EC2 instance isn't present.</p>
74
+ * </li>
75
+ * </ul>
76
+ *
77
+ * @throws {@link ConflictException} (client fault)
78
+ * <p>Your request has conflicting operations. This can occur if you're trying to perform more
79
+ * than 1 operation on the same resource at the same time.</p>
80
+ * <p>
81
+ * <u>Examples</u>
82
+ * </p>
83
+ * <ul>
84
+ * <li>
85
+ * <p>A cluster with the same name already exists.</p>
86
+ * </li>
87
+ * <li>
88
+ * <p>A cluster isn't in <code>ACTIVE</code> status.</p>
89
+ * </li>
90
+ * <li>
91
+ * <p>A cluster to delete is in an unstable state. For example, because it still has
92
+ * <code>ACTIVE</code> node groups or queues.</p>
93
+ * </li>
94
+ * <li>
95
+ * <p>A queue already exists in a cluster.</p>
96
+ * </li>
97
+ * </ul>
98
+ *
99
+ * @throws {@link InternalServerException} (server fault)
100
+ * <p>Amazon Web Services PCS can't process your request right now. Try again later.</p>
101
+ *
102
+ * @throws {@link ResourceNotFoundException} (client fault)
103
+ * <p>The requested resource can't be found. The cluster, node group, or queue you're
104
+ * attempting to get, update, list, or delete doesn't exist.</p>
105
+ * <p>
106
+ * <u>Examples</u>
107
+ * </p>
108
+ *
109
+ * @throws {@link ThrottlingException} (client fault)
110
+ * <p>Your request exceeded a request rate quota. Check the resource's request rate quota and try again.</p>
111
+ *
112
+ * @throws {@link ValidationException} (client fault)
113
+ * <p>The request isn't valid.</p>
114
+ * <p>
115
+ * <u>Examples</u>
116
+ * </p>
117
+ * <ul>
118
+ * <li>
119
+ * <p>Your request contains malformed JSON or unsupported characters.</p>
120
+ * </li>
121
+ * <li>
122
+ * <p>The scheduler version isn't supported.</p>
123
+ * </li>
124
+ * <li>
125
+ * <p>There are networking related errors, such as network validation failure.</p>
126
+ * </li>
127
+ * <li>
128
+ * <p>AMI type is <code>CUSTOM</code> and the launch template doesn't define the AMI ID,
129
+ * or the AMI type is AL2 and the launch template defines the AMI.</p>
130
+ * </li>
131
+ * </ul>
132
+ *
133
+ * @throws {@link PCSServiceException}
134
+ * <p>Base exception class for all service exceptions from PCS service.</p>
135
+ *
136
+ * @public
137
+ */
138
+ export declare class DeleteQueueCommand extends DeleteQueueCommand_base {
139
+ }
@@ -0,0 +1,186 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { GetClusterRequest, GetClusterResponse } 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 GetClusterCommand}.
14
+ */
15
+ export interface GetClusterCommandInput extends GetClusterRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetClusterCommand}.
21
+ */
22
+ export interface GetClusterCommandOutput extends GetClusterResponse, __MetadataBearer {
23
+ }
24
+ declare const GetClusterCommand_base: {
25
+ new (input: GetClusterCommandInput): import("@smithy/smithy-client").CommandImpl<GetClusterCommandInput, GetClusterCommandOutput, PCSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetClusterCommandInput): import("@smithy/smithy-client").CommandImpl<GetClusterCommandInput, GetClusterCommandOutput, PCSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns detailed information about a running cluster in your account. This API action
31
+ * provides networking information, endpoint information for communication with the scheduler,
32
+ * and provisioning status.</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { PCSClient, GetClusterCommand } from "@aws-sdk/client-pcs"; // ES Modules import
37
+ * // const { PCSClient, GetClusterCommand } = require("@aws-sdk/client-pcs"); // CommonJS import
38
+ * const client = new PCSClient(config);
39
+ * const input = { // GetClusterRequest
40
+ * clusterIdentifier: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new GetClusterCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // GetClusterResponse
45
+ * // cluster: { // Cluster
46
+ * // name: "STRING_VALUE", // required
47
+ * // id: "STRING_VALUE", // required
48
+ * // arn: "STRING_VALUE", // required
49
+ * // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED", // required
50
+ * // createdAt: new Date("TIMESTAMP"), // required
51
+ * // modifiedAt: new Date("TIMESTAMP"), // required
52
+ * // scheduler: { // Scheduler
53
+ * // type: "SLURM", // required
54
+ * // version: "STRING_VALUE", // required
55
+ * // },
56
+ * // size: "SMALL" || "MEDIUM" || "LARGE", // required
57
+ * // slurmConfiguration: { // ClusterSlurmConfiguration
58
+ * // scaleDownIdleTimeInSeconds: Number("int"),
59
+ * // slurmCustomSettings: [ // SlurmCustomSettings
60
+ * // { // SlurmCustomSetting
61
+ * // parameterName: "STRING_VALUE", // required
62
+ * // parameterValue: "STRING_VALUE", // required
63
+ * // },
64
+ * // ],
65
+ * // authKey: { // SlurmAuthKey
66
+ * // secretArn: "STRING_VALUE", // required
67
+ * // secretVersion: "STRING_VALUE", // required
68
+ * // },
69
+ * // },
70
+ * // networking: { // Networking
71
+ * // subnetIds: [ // SubnetIdList
72
+ * // "STRING_VALUE",
73
+ * // ],
74
+ * // securityGroupIds: [ // SecurityGroupIdList
75
+ * // "STRING_VALUE",
76
+ * // ],
77
+ * // },
78
+ * // endpoints: [ // Endpoints
79
+ * // { // Endpoint
80
+ * // type: "SLURMCTLD" || "SLURMDBD", // required
81
+ * // privateIpAddress: "STRING_VALUE", // required
82
+ * // publicIpAddress: "STRING_VALUE",
83
+ * // port: "STRING_VALUE", // required
84
+ * // },
85
+ * // ],
86
+ * // errorInfo: [ // ErrorInfoList
87
+ * // { // ErrorInfo
88
+ * // code: "STRING_VALUE",
89
+ * // message: "STRING_VALUE",
90
+ * // },
91
+ * // ],
92
+ * // },
93
+ * // };
94
+ *
95
+ * ```
96
+ *
97
+ * @param GetClusterCommandInput - {@link GetClusterCommandInput}
98
+ * @returns {@link GetClusterCommandOutput}
99
+ * @see {@link GetClusterCommandInput} for command's `input` shape.
100
+ * @see {@link GetClusterCommandOutput} for command's `response` shape.
101
+ * @see {@link PCSClientResolvedConfig | config} for PCSClient's `config` shape.
102
+ *
103
+ * @throws {@link AccessDeniedException} (client fault)
104
+ * <p>You don't have permission to perform the action.</p>
105
+ * <p>
106
+ * <u>Examples</u>
107
+ * </p>
108
+ * <ul>
109
+ * <li>
110
+ * <p>The launch template instance profile doesn't pass <code>iam:PassRole</code>
111
+ * verification.</p>
112
+ * </li>
113
+ * <li>
114
+ * <p>There is a mismatch between the account ID and cluster ID.</p>
115
+ * </li>
116
+ * <li>
117
+ * <p>The cluster ID doesn't exist.</p>
118
+ * </li>
119
+ * <li>
120
+ * <p>The EC2 instance isn't present.</p>
121
+ * </li>
122
+ * </ul>
123
+ *
124
+ * @throws {@link ConflictException} (client fault)
125
+ * <p>Your request has conflicting operations. This can occur if you're trying to perform more
126
+ * than 1 operation on the same resource at the same time.</p>
127
+ * <p>
128
+ * <u>Examples</u>
129
+ * </p>
130
+ * <ul>
131
+ * <li>
132
+ * <p>A cluster with the same name already exists.</p>
133
+ * </li>
134
+ * <li>
135
+ * <p>A cluster isn't in <code>ACTIVE</code> status.</p>
136
+ * </li>
137
+ * <li>
138
+ * <p>A cluster to delete is in an unstable state. For example, because it still has
139
+ * <code>ACTIVE</code> node groups or queues.</p>
140
+ * </li>
141
+ * <li>
142
+ * <p>A queue already exists in a cluster.</p>
143
+ * </li>
144
+ * </ul>
145
+ *
146
+ * @throws {@link InternalServerException} (server fault)
147
+ * <p>Amazon Web Services PCS can't process your request right now. Try again later.</p>
148
+ *
149
+ * @throws {@link ResourceNotFoundException} (client fault)
150
+ * <p>The requested resource can't be found. The cluster, node group, or queue you're
151
+ * attempting to get, update, list, or delete doesn't exist.</p>
152
+ * <p>
153
+ * <u>Examples</u>
154
+ * </p>
155
+ *
156
+ * @throws {@link ThrottlingException} (client fault)
157
+ * <p>Your request exceeded a request rate quota. Check the resource's request rate quota and try again.</p>
158
+ *
159
+ * @throws {@link ValidationException} (client fault)
160
+ * <p>The request isn't valid.</p>
161
+ * <p>
162
+ * <u>Examples</u>
163
+ * </p>
164
+ * <ul>
165
+ * <li>
166
+ * <p>Your request contains malformed JSON or unsupported characters.</p>
167
+ * </li>
168
+ * <li>
169
+ * <p>The scheduler version isn't supported.</p>
170
+ * </li>
171
+ * <li>
172
+ * <p>There are networking related errors, such as network validation failure.</p>
173
+ * </li>
174
+ * <li>
175
+ * <p>AMI type is <code>CUSTOM</code> and the launch template doesn't define the AMI ID,
176
+ * or the AMI type is AL2 and the launch template defines the AMI.</p>
177
+ * </li>
178
+ * </ul>
179
+ *
180
+ * @throws {@link PCSServiceException}
181
+ * <p>Base exception class for all service exceptions from PCS service.</p>
182
+ *
183
+ * @public
184
+ */
185
+ export declare class GetClusterCommand extends GetClusterCommand_base {
186
+ }