@aws-sdk/client-pcs 3.641.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +366 -0
- package/dist-cjs/PCS.js +47 -0
- package/dist-cjs/PCSClient.js +50 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/CreateClusterCommand.js +28 -0
- package/dist-cjs/commands/CreateComputeNodeGroupCommand.js +28 -0
- package/dist-cjs/commands/CreateQueueCommand.js +28 -0
- package/dist-cjs/commands/DeleteClusterCommand.js +28 -0
- package/dist-cjs/commands/DeleteComputeNodeGroupCommand.js +28 -0
- package/dist-cjs/commands/DeleteQueueCommand.js +28 -0
- package/dist-cjs/commands/GetClusterCommand.js +28 -0
- package/dist-cjs/commands/GetComputeNodeGroupCommand.js +28 -0
- package/dist-cjs/commands/GetQueueCommand.js +28 -0
- package/dist-cjs/commands/ListClustersCommand.js +28 -0
- package/dist-cjs/commands/ListComputeNodeGroupsCommand.js +28 -0
- package/dist-cjs/commands/ListQueuesCommand.js +28 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +28 -0
- package/dist-cjs/commands/RegisterComputeNodeGroupInstanceCommand.js +29 -0
- package/dist-cjs/commands/TagResourceCommand.js +28 -0
- package/dist-cjs/commands/UntagResourceCommand.js +28 -0
- package/dist-cjs/commands/UpdateComputeNodeGroupCommand.js +28 -0
- package/dist-cjs/commands/UpdateQueueCommand.js +28 -0
- package/dist-cjs/commands/index.js +21 -0
- package/dist-cjs/endpoint/EndpointParameters.js +18 -0
- package/dist-cjs/endpoint/endpointResolver.js +14 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/PCSServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +169 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListClustersPaginator.js +7 -0
- package/dist-cjs/pagination/ListComputeNodeGroupsPaginator.js +7 -0
- package/dist-cjs/pagination/ListQueuesPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_json1_0.js +757 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +49 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +25 -0
- package/dist-es/PCS.js +43 -0
- package/dist-es/PCSClient.js +46 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/CreateClusterCommand.js +24 -0
- package/dist-es/commands/CreateComputeNodeGroupCommand.js +24 -0
- package/dist-es/commands/CreateQueueCommand.js +24 -0
- package/dist-es/commands/DeleteClusterCommand.js +24 -0
- package/dist-es/commands/DeleteComputeNodeGroupCommand.js +24 -0
- package/dist-es/commands/DeleteQueueCommand.js +24 -0
- package/dist-es/commands/GetClusterCommand.js +24 -0
- package/dist-es/commands/GetComputeNodeGroupCommand.js +24 -0
- package/dist-es/commands/GetQueueCommand.js +24 -0
- package/dist-es/commands/ListClustersCommand.js +24 -0
- package/dist-es/commands/ListComputeNodeGroupsCommand.js +24 -0
- package/dist-es/commands/ListQueuesCommand.js +24 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +24 -0
- package/dist-es/commands/RegisterComputeNodeGroupInstanceCommand.js +25 -0
- package/dist-es/commands/TagResourceCommand.js +24 -0
- package/dist-es/commands/UntagResourceCommand.js +24 -0
- package/dist-es/commands/UpdateComputeNodeGroupCommand.js +24 -0
- package/dist-es/commands/UpdateQueueCommand.js +24 -0
- package/dist-es/commands/index.js +18 -0
- package/dist-es/endpoint/EndpointParameters.js +14 -0
- package/dist-es/endpoint/endpointResolver.js +10 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/PCSServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +158 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListClustersPaginator.js +4 -0
- package/dist-es/pagination/ListComputeNodeGroupsPaginator.js +4 -0
- package/dist-es/pagination/ListQueuesPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_json1_0.js +718 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +44 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +21 -0
- package/dist-types/PCS.d.ts +154 -0
- package/dist-types/PCSClient.d.ts +204 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/commands/CreateClusterCommand.d.ts +237 -0
- package/dist-types/commands/CreateComputeNodeGroupCommand.d.ts +247 -0
- package/dist-types/commands/CreateQueueCommand.d.ts +190 -0
- package/dist-types/commands/DeleteClusterCommand.d.ts +137 -0
- package/dist-types/commands/DeleteComputeNodeGroupCommand.d.ts +138 -0
- package/dist-types/commands/DeleteQueueCommand.d.ts +139 -0
- package/dist-types/commands/GetClusterCommand.d.ts +186 -0
- package/dist-types/commands/GetComputeNodeGroupCommand.d.ts +184 -0
- package/dist-types/commands/GetQueueCommand.d.ts +158 -0
- package/dist-types/commands/ListClustersCommand.d.ts +148 -0
- package/dist-types/commands/ListComputeNodeGroupsCommand.d.ts +150 -0
- package/dist-types/commands/ListQueuesCommand.d.ts +150 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +69 -0
- package/dist-types/commands/RegisterComputeNodeGroupInstanceCommand.d.ts +97 -0
- package/dist-types/commands/TagResourceCommand.d.ts +71 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +69 -0
- package/dist-types/commands/UpdateComputeNodeGroupCommand.d.ts +233 -0
- package/dist-types/commands/UpdateQueueCommand.d.ts +187 -0
- package/dist-types/commands/index.d.ts +18 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +31 -0
- package/dist-types/models/PCSServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1871 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListClustersPaginator.d.ts +7 -0
- package/dist-types/pagination/ListComputeNodeGroupsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListQueuesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +164 -0
- package/dist-types/runtimeConfig.browser.d.ts +45 -0
- package/dist-types/runtimeConfig.d.ts +45 -0
- package/dist-types/runtimeConfig.native.d.ts +44 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/PCS.d.ts +312 -0
- package/dist-types/ts3.4/PCSClient.d.ts +223 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateComputeNodeGroupCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/CreateQueueCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/DeleteClusterCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteComputeNodeGroupCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/DeleteQueueCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/GetClusterCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/GetComputeNodeGroupCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/GetQueueCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListClustersCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListComputeNodeGroupsCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/ListQueuesCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/RegisterComputeNodeGroupInstanceCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UpdateComputeNodeGroupCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/UpdateQueueCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/index.d.ts +18 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +9 -0
- package/dist-types/ts3.4/models/PCSServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +431 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListClustersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListComputeNodeGroupsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListQueuesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +221 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +85 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +89 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +79 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/package.json +103 -0
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { CreateClusterRequest, CreateClusterResponse } 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 CreateClusterCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateClusterCommandInput extends CreateClusterRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateClusterCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateClusterCommandOutput extends CreateClusterResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateClusterCommand_base: {
|
|
25
|
+
new (input: CreateClusterCommandInput): import("@smithy/smithy-client").CommandImpl<CreateClusterCommandInput, CreateClusterCommandOutput, PCSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateClusterCommandInput): import("@smithy/smithy-client").CommandImpl<CreateClusterCommandInput, CreateClusterCommandOutput, PCSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates a cluster in your account. Amazon Web Services PCS creates the cluster controller in a
|
|
31
|
+
* service-owned account. The cluster controller communicates with the cluster resources in
|
|
32
|
+
* your account. The subnets and security groups for the cluster must already exist before you
|
|
33
|
+
* use this API action.</p>
|
|
34
|
+
* <note>
|
|
35
|
+
* <p>It takes time for Amazon Web Services PCS to create the cluster. The cluster is in
|
|
36
|
+
* a <code>Creating</code> state until it is ready to use. There can only be 1
|
|
37
|
+
* cluster in a <code>Creating</code> state per Amazon Web Services Region per Amazon Web Services account.
|
|
38
|
+
* <code>CreateCluster</code>
|
|
39
|
+
* fails with a <code>ServiceQuotaExceededException</code> if there is already
|
|
40
|
+
* a cluster in a <code>Creating</code> state.</p>
|
|
41
|
+
* </note>
|
|
42
|
+
* @example
|
|
43
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
44
|
+
* ```javascript
|
|
45
|
+
* import { PCSClient, CreateClusterCommand } from "@aws-sdk/client-pcs"; // ES Modules import
|
|
46
|
+
* // const { PCSClient, CreateClusterCommand } = require("@aws-sdk/client-pcs"); // CommonJS import
|
|
47
|
+
* const client = new PCSClient(config);
|
|
48
|
+
* const input = { // CreateClusterRequest
|
|
49
|
+
* clusterName: "STRING_VALUE", // required
|
|
50
|
+
* scheduler: { // SchedulerRequest
|
|
51
|
+
* type: "SLURM", // required
|
|
52
|
+
* version: "STRING_VALUE", // required
|
|
53
|
+
* },
|
|
54
|
+
* size: "SMALL" || "MEDIUM" || "LARGE", // required
|
|
55
|
+
* networking: { // NetworkingRequest
|
|
56
|
+
* subnetIds: [ // SubnetIdList
|
|
57
|
+
* "STRING_VALUE",
|
|
58
|
+
* ],
|
|
59
|
+
* securityGroupIds: [ // SecurityGroupIdList
|
|
60
|
+
* "STRING_VALUE",
|
|
61
|
+
* ],
|
|
62
|
+
* },
|
|
63
|
+
* slurmConfiguration: { // ClusterSlurmConfigurationRequest
|
|
64
|
+
* scaleDownIdleTimeInSeconds: Number("int"),
|
|
65
|
+
* slurmCustomSettings: [ // SlurmCustomSettings
|
|
66
|
+
* { // SlurmCustomSetting
|
|
67
|
+
* parameterName: "STRING_VALUE", // required
|
|
68
|
+
* parameterValue: "STRING_VALUE", // required
|
|
69
|
+
* },
|
|
70
|
+
* ],
|
|
71
|
+
* },
|
|
72
|
+
* clientToken: "STRING_VALUE",
|
|
73
|
+
* tags: { // RequestTagMap
|
|
74
|
+
* "<keys>": "STRING_VALUE",
|
|
75
|
+
* },
|
|
76
|
+
* };
|
|
77
|
+
* const command = new CreateClusterCommand(input);
|
|
78
|
+
* const response = await client.send(command);
|
|
79
|
+
* // { // CreateClusterResponse
|
|
80
|
+
* // cluster: { // Cluster
|
|
81
|
+
* // name: "STRING_VALUE", // required
|
|
82
|
+
* // id: "STRING_VALUE", // required
|
|
83
|
+
* // arn: "STRING_VALUE", // required
|
|
84
|
+
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED", // required
|
|
85
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
86
|
+
* // modifiedAt: new Date("TIMESTAMP"), // required
|
|
87
|
+
* // scheduler: { // Scheduler
|
|
88
|
+
* // type: "SLURM", // required
|
|
89
|
+
* // version: "STRING_VALUE", // required
|
|
90
|
+
* // },
|
|
91
|
+
* // size: "SMALL" || "MEDIUM" || "LARGE", // required
|
|
92
|
+
* // slurmConfiguration: { // ClusterSlurmConfiguration
|
|
93
|
+
* // scaleDownIdleTimeInSeconds: Number("int"),
|
|
94
|
+
* // slurmCustomSettings: [ // SlurmCustomSettings
|
|
95
|
+
* // { // SlurmCustomSetting
|
|
96
|
+
* // parameterName: "STRING_VALUE", // required
|
|
97
|
+
* // parameterValue: "STRING_VALUE", // required
|
|
98
|
+
* // },
|
|
99
|
+
* // ],
|
|
100
|
+
* // authKey: { // SlurmAuthKey
|
|
101
|
+
* // secretArn: "STRING_VALUE", // required
|
|
102
|
+
* // secretVersion: "STRING_VALUE", // required
|
|
103
|
+
* // },
|
|
104
|
+
* // },
|
|
105
|
+
* // networking: { // Networking
|
|
106
|
+
* // subnetIds: [ // SubnetIdList
|
|
107
|
+
* // "STRING_VALUE",
|
|
108
|
+
* // ],
|
|
109
|
+
* // securityGroupIds: [ // SecurityGroupIdList
|
|
110
|
+
* // "STRING_VALUE",
|
|
111
|
+
* // ],
|
|
112
|
+
* // },
|
|
113
|
+
* // endpoints: [ // Endpoints
|
|
114
|
+
* // { // Endpoint
|
|
115
|
+
* // type: "SLURMCTLD" || "SLURMDBD", // required
|
|
116
|
+
* // privateIpAddress: "STRING_VALUE", // required
|
|
117
|
+
* // publicIpAddress: "STRING_VALUE",
|
|
118
|
+
* // port: "STRING_VALUE", // required
|
|
119
|
+
* // },
|
|
120
|
+
* // ],
|
|
121
|
+
* // errorInfo: [ // ErrorInfoList
|
|
122
|
+
* // { // ErrorInfo
|
|
123
|
+
* // code: "STRING_VALUE",
|
|
124
|
+
* // message: "STRING_VALUE",
|
|
125
|
+
* // },
|
|
126
|
+
* // ],
|
|
127
|
+
* // },
|
|
128
|
+
* // };
|
|
129
|
+
*
|
|
130
|
+
* ```
|
|
131
|
+
*
|
|
132
|
+
* @param CreateClusterCommandInput - {@link CreateClusterCommandInput}
|
|
133
|
+
* @returns {@link CreateClusterCommandOutput}
|
|
134
|
+
* @see {@link CreateClusterCommandInput} for command's `input` shape.
|
|
135
|
+
* @see {@link CreateClusterCommandOutput} for command's `response` shape.
|
|
136
|
+
* @see {@link PCSClientResolvedConfig | config} for PCSClient's `config` shape.
|
|
137
|
+
*
|
|
138
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
139
|
+
* <p>You don't have permission to perform the action.</p>
|
|
140
|
+
* <p>
|
|
141
|
+
* <u>Examples</u>
|
|
142
|
+
* </p>
|
|
143
|
+
* <ul>
|
|
144
|
+
* <li>
|
|
145
|
+
* <p>The launch template instance profile doesn't pass <code>iam:PassRole</code>
|
|
146
|
+
* verification.</p>
|
|
147
|
+
* </li>
|
|
148
|
+
* <li>
|
|
149
|
+
* <p>There is a mismatch between the account ID and cluster ID.</p>
|
|
150
|
+
* </li>
|
|
151
|
+
* <li>
|
|
152
|
+
* <p>The cluster ID doesn't exist.</p>
|
|
153
|
+
* </li>
|
|
154
|
+
* <li>
|
|
155
|
+
* <p>The EC2 instance isn't present.</p>
|
|
156
|
+
* </li>
|
|
157
|
+
* </ul>
|
|
158
|
+
*
|
|
159
|
+
* @throws {@link ConflictException} (client fault)
|
|
160
|
+
* <p>Your request has conflicting operations. This can occur if you're trying to perform more
|
|
161
|
+
* than 1 operation on the same resource at the same time.</p>
|
|
162
|
+
* <p>
|
|
163
|
+
* <u>Examples</u>
|
|
164
|
+
* </p>
|
|
165
|
+
* <ul>
|
|
166
|
+
* <li>
|
|
167
|
+
* <p>A cluster with the same name already exists.</p>
|
|
168
|
+
* </li>
|
|
169
|
+
* <li>
|
|
170
|
+
* <p>A cluster isn't in <code>ACTIVE</code> status.</p>
|
|
171
|
+
* </li>
|
|
172
|
+
* <li>
|
|
173
|
+
* <p>A cluster to delete is in an unstable state. For example, because it still has
|
|
174
|
+
* <code>ACTIVE</code> node groups or queues.</p>
|
|
175
|
+
* </li>
|
|
176
|
+
* <li>
|
|
177
|
+
* <p>A queue already exists in a cluster.</p>
|
|
178
|
+
* </li>
|
|
179
|
+
* </ul>
|
|
180
|
+
*
|
|
181
|
+
* @throws {@link InternalServerException} (server fault)
|
|
182
|
+
* <p>Amazon Web Services PCS can't process your request right now. Try again later.</p>
|
|
183
|
+
*
|
|
184
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
185
|
+
* <p>You exceeded your service quota. Service quotas, also referred to as limits, are the
|
|
186
|
+
* maximum number of service resources or operations for your Amazon Web Services account. To learn how to
|
|
187
|
+
* increase your service quota, see <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html">Requesting a quota
|
|
188
|
+
* increase</a> in the <i>Service Quotas User Guide</i>
|
|
189
|
+
* </p>
|
|
190
|
+
* <p>
|
|
191
|
+
* <u>Examples</u>
|
|
192
|
+
* </p>
|
|
193
|
+
* <ul>
|
|
194
|
+
* <li>
|
|
195
|
+
* <p>The max number of clusters or queues has been reached for the account.</p>
|
|
196
|
+
* </li>
|
|
197
|
+
* <li>
|
|
198
|
+
* <p>The max number of compute node groups has been reached for the associated
|
|
199
|
+
* cluster.</p>
|
|
200
|
+
* </li>
|
|
201
|
+
* <li>
|
|
202
|
+
* <p>The total of <code>maxInstances</code> across all compute node groups has been
|
|
203
|
+
* reached for associated cluster.</p>
|
|
204
|
+
* </li>
|
|
205
|
+
* </ul>
|
|
206
|
+
*
|
|
207
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
208
|
+
* <p>Your request exceeded a request rate quota. Check the resource's request rate quota and try again.</p>
|
|
209
|
+
*
|
|
210
|
+
* @throws {@link ValidationException} (client fault)
|
|
211
|
+
* <p>The request isn't valid.</p>
|
|
212
|
+
* <p>
|
|
213
|
+
* <u>Examples</u>
|
|
214
|
+
* </p>
|
|
215
|
+
* <ul>
|
|
216
|
+
* <li>
|
|
217
|
+
* <p>Your request contains malformed JSON or unsupported characters.</p>
|
|
218
|
+
* </li>
|
|
219
|
+
* <li>
|
|
220
|
+
* <p>The scheduler version isn't supported.</p>
|
|
221
|
+
* </li>
|
|
222
|
+
* <li>
|
|
223
|
+
* <p>There are networking related errors, such as network validation failure.</p>
|
|
224
|
+
* </li>
|
|
225
|
+
* <li>
|
|
226
|
+
* <p>AMI type is <code>CUSTOM</code> and the launch template doesn't define the AMI ID,
|
|
227
|
+
* or the AMI type is AL2 and the launch template defines the AMI.</p>
|
|
228
|
+
* </li>
|
|
229
|
+
* </ul>
|
|
230
|
+
*
|
|
231
|
+
* @throws {@link PCSServiceException}
|
|
232
|
+
* <p>Base exception class for all service exceptions from PCS service.</p>
|
|
233
|
+
*
|
|
234
|
+
* @public
|
|
235
|
+
*/
|
|
236
|
+
export declare class CreateClusterCommand extends CreateClusterCommand_base {
|
|
237
|
+
}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { CreateComputeNodeGroupRequest, CreateComputeNodeGroupResponse } 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 CreateComputeNodeGroupCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateComputeNodeGroupCommandInput extends CreateComputeNodeGroupRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateComputeNodeGroupCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateComputeNodeGroupCommandOutput extends CreateComputeNodeGroupResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateComputeNodeGroupCommand_base: {
|
|
25
|
+
new (input: CreateComputeNodeGroupCommandInput): import("@smithy/smithy-client").CommandImpl<CreateComputeNodeGroupCommandInput, CreateComputeNodeGroupCommandOutput, PCSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateComputeNodeGroupCommandInput): import("@smithy/smithy-client").CommandImpl<CreateComputeNodeGroupCommandInput, CreateComputeNodeGroupCommandOutput, PCSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates a managed set of compute nodes. You associate a compute node group with a
|
|
31
|
+
* cluster through 1 or more Amazon Web Services PCS queues or as part of the login fleet. A compute node
|
|
32
|
+
* group includes the definition of the compute properties and lifecycle management.
|
|
33
|
+
* Amazon Web Services PCS uses the information you provide to this API action to launch compute nodes in
|
|
34
|
+
* your account. You can only specify subnets in the same Amazon VPC as your cluster. You receive
|
|
35
|
+
* billing charges for the compute nodes that Amazon Web Services PCS launches in your account. You must
|
|
36
|
+
* already have a launch template before you call this API. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html">Launch an
|
|
37
|
+
* instance from a launch template</a> in the <i>Amazon Elastic Compute Cloud User Guide for Linux
|
|
38
|
+
* Instances</i>.</p>
|
|
39
|
+
* @example
|
|
40
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
41
|
+
* ```javascript
|
|
42
|
+
* import { PCSClient, CreateComputeNodeGroupCommand } from "@aws-sdk/client-pcs"; // ES Modules import
|
|
43
|
+
* // const { PCSClient, CreateComputeNodeGroupCommand } = require("@aws-sdk/client-pcs"); // CommonJS import
|
|
44
|
+
* const client = new PCSClient(config);
|
|
45
|
+
* const input = { // CreateComputeNodeGroupRequest
|
|
46
|
+
* clusterIdentifier: "STRING_VALUE", // required
|
|
47
|
+
* computeNodeGroupName: "STRING_VALUE", // required
|
|
48
|
+
* amiId: "STRING_VALUE",
|
|
49
|
+
* subnetIds: [ // StringList // required
|
|
50
|
+
* "STRING_VALUE",
|
|
51
|
+
* ],
|
|
52
|
+
* purchaseOption: "ONDEMAND" || "SPOT",
|
|
53
|
+
* customLaunchTemplate: { // CustomLaunchTemplate
|
|
54
|
+
* id: "STRING_VALUE", // required
|
|
55
|
+
* version: "STRING_VALUE", // required
|
|
56
|
+
* },
|
|
57
|
+
* iamInstanceProfileArn: "STRING_VALUE", // required
|
|
58
|
+
* scalingConfiguration: { // ScalingConfigurationRequest
|
|
59
|
+
* minInstanceCount: Number("int"), // required
|
|
60
|
+
* maxInstanceCount: Number("int"), // required
|
|
61
|
+
* },
|
|
62
|
+
* instanceConfigs: [ // InstanceList // required
|
|
63
|
+
* { // InstanceConfig
|
|
64
|
+
* instanceType: "STRING_VALUE",
|
|
65
|
+
* },
|
|
66
|
+
* ],
|
|
67
|
+
* spotOptions: { // SpotOptions
|
|
68
|
+
* allocationStrategy: "lowest-price" || "capacity-optimized" || "price-capacity-optimized",
|
|
69
|
+
* },
|
|
70
|
+
* slurmConfiguration: { // ComputeNodeGroupSlurmConfigurationRequest
|
|
71
|
+
* slurmCustomSettings: [ // SlurmCustomSettings
|
|
72
|
+
* { // SlurmCustomSetting
|
|
73
|
+
* parameterName: "STRING_VALUE", // required
|
|
74
|
+
* parameterValue: "STRING_VALUE", // required
|
|
75
|
+
* },
|
|
76
|
+
* ],
|
|
77
|
+
* },
|
|
78
|
+
* clientToken: "STRING_VALUE",
|
|
79
|
+
* tags: { // RequestTagMap
|
|
80
|
+
* "<keys>": "STRING_VALUE",
|
|
81
|
+
* },
|
|
82
|
+
* };
|
|
83
|
+
* const command = new CreateComputeNodeGroupCommand(input);
|
|
84
|
+
* const response = await client.send(command);
|
|
85
|
+
* // { // CreateComputeNodeGroupResponse
|
|
86
|
+
* // computeNodeGroup: { // ComputeNodeGroup
|
|
87
|
+
* // name: "STRING_VALUE", // required
|
|
88
|
+
* // id: "STRING_VALUE", // required
|
|
89
|
+
* // arn: "STRING_VALUE", // required
|
|
90
|
+
* // clusterId: "STRING_VALUE", // required
|
|
91
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
92
|
+
* // modifiedAt: new Date("TIMESTAMP"), // required
|
|
93
|
+
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED" || "DELETED", // required
|
|
94
|
+
* // amiId: "STRING_VALUE",
|
|
95
|
+
* // subnetIds: [ // SubnetIdList // required
|
|
96
|
+
* // "STRING_VALUE",
|
|
97
|
+
* // ],
|
|
98
|
+
* // purchaseOption: "ONDEMAND" || "SPOT",
|
|
99
|
+
* // customLaunchTemplate: { // CustomLaunchTemplate
|
|
100
|
+
* // id: "STRING_VALUE", // required
|
|
101
|
+
* // version: "STRING_VALUE", // required
|
|
102
|
+
* // },
|
|
103
|
+
* // iamInstanceProfileArn: "STRING_VALUE", // required
|
|
104
|
+
* // scalingConfiguration: { // ScalingConfiguration
|
|
105
|
+
* // minInstanceCount: Number("int"), // required
|
|
106
|
+
* // maxInstanceCount: Number("int"), // required
|
|
107
|
+
* // },
|
|
108
|
+
* // instanceConfigs: [ // InstanceList // required
|
|
109
|
+
* // { // InstanceConfig
|
|
110
|
+
* // instanceType: "STRING_VALUE",
|
|
111
|
+
* // },
|
|
112
|
+
* // ],
|
|
113
|
+
* // spotOptions: { // SpotOptions
|
|
114
|
+
* // allocationStrategy: "lowest-price" || "capacity-optimized" || "price-capacity-optimized",
|
|
115
|
+
* // },
|
|
116
|
+
* // slurmConfiguration: { // ComputeNodeGroupSlurmConfiguration
|
|
117
|
+
* // slurmCustomSettings: [ // SlurmCustomSettings
|
|
118
|
+
* // { // SlurmCustomSetting
|
|
119
|
+
* // parameterName: "STRING_VALUE", // required
|
|
120
|
+
* // parameterValue: "STRING_VALUE", // required
|
|
121
|
+
* // },
|
|
122
|
+
* // ],
|
|
123
|
+
* // },
|
|
124
|
+
* // errorInfo: [ // ErrorInfoList
|
|
125
|
+
* // { // ErrorInfo
|
|
126
|
+
* // code: "STRING_VALUE",
|
|
127
|
+
* // message: "STRING_VALUE",
|
|
128
|
+
* // },
|
|
129
|
+
* // ],
|
|
130
|
+
* // },
|
|
131
|
+
* // };
|
|
132
|
+
*
|
|
133
|
+
* ```
|
|
134
|
+
*
|
|
135
|
+
* @param CreateComputeNodeGroupCommandInput - {@link CreateComputeNodeGroupCommandInput}
|
|
136
|
+
* @returns {@link CreateComputeNodeGroupCommandOutput}
|
|
137
|
+
* @see {@link CreateComputeNodeGroupCommandInput} for command's `input` shape.
|
|
138
|
+
* @see {@link CreateComputeNodeGroupCommandOutput} for command's `response` shape.
|
|
139
|
+
* @see {@link PCSClientResolvedConfig | config} for PCSClient's `config` shape.
|
|
140
|
+
*
|
|
141
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
142
|
+
* <p>You don't have permission to perform the action.</p>
|
|
143
|
+
* <p>
|
|
144
|
+
* <u>Examples</u>
|
|
145
|
+
* </p>
|
|
146
|
+
* <ul>
|
|
147
|
+
* <li>
|
|
148
|
+
* <p>The launch template instance profile doesn't pass <code>iam:PassRole</code>
|
|
149
|
+
* verification.</p>
|
|
150
|
+
* </li>
|
|
151
|
+
* <li>
|
|
152
|
+
* <p>There is a mismatch between the account ID and cluster ID.</p>
|
|
153
|
+
* </li>
|
|
154
|
+
* <li>
|
|
155
|
+
* <p>The cluster ID doesn't exist.</p>
|
|
156
|
+
* </li>
|
|
157
|
+
* <li>
|
|
158
|
+
* <p>The EC2 instance isn't present.</p>
|
|
159
|
+
* </li>
|
|
160
|
+
* </ul>
|
|
161
|
+
*
|
|
162
|
+
* @throws {@link ConflictException} (client fault)
|
|
163
|
+
* <p>Your request has conflicting operations. This can occur if you're trying to perform more
|
|
164
|
+
* than 1 operation on the same resource at the same time.</p>
|
|
165
|
+
* <p>
|
|
166
|
+
* <u>Examples</u>
|
|
167
|
+
* </p>
|
|
168
|
+
* <ul>
|
|
169
|
+
* <li>
|
|
170
|
+
* <p>A cluster with the same name already exists.</p>
|
|
171
|
+
* </li>
|
|
172
|
+
* <li>
|
|
173
|
+
* <p>A cluster isn't in <code>ACTIVE</code> status.</p>
|
|
174
|
+
* </li>
|
|
175
|
+
* <li>
|
|
176
|
+
* <p>A cluster to delete is in an unstable state. For example, because it still has
|
|
177
|
+
* <code>ACTIVE</code> node groups or queues.</p>
|
|
178
|
+
* </li>
|
|
179
|
+
* <li>
|
|
180
|
+
* <p>A queue already exists in a cluster.</p>
|
|
181
|
+
* </li>
|
|
182
|
+
* </ul>
|
|
183
|
+
*
|
|
184
|
+
* @throws {@link InternalServerException} (server fault)
|
|
185
|
+
* <p>Amazon Web Services PCS can't process your request right now. Try again later.</p>
|
|
186
|
+
*
|
|
187
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
188
|
+
* <p>The requested resource can't be found. The cluster, node group, or queue you're
|
|
189
|
+
* attempting to get, update, list, or delete doesn't exist.</p>
|
|
190
|
+
* <p>
|
|
191
|
+
* <u>Examples</u>
|
|
192
|
+
* </p>
|
|
193
|
+
*
|
|
194
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
195
|
+
* <p>You exceeded your service quota. Service quotas, also referred to as limits, are the
|
|
196
|
+
* maximum number of service resources or operations for your Amazon Web Services account. To learn how to
|
|
197
|
+
* increase your service quota, see <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html">Requesting a quota
|
|
198
|
+
* increase</a> in the <i>Service Quotas User Guide</i>
|
|
199
|
+
* </p>
|
|
200
|
+
* <p>
|
|
201
|
+
* <u>Examples</u>
|
|
202
|
+
* </p>
|
|
203
|
+
* <ul>
|
|
204
|
+
* <li>
|
|
205
|
+
* <p>The max number of clusters or queues has been reached for the account.</p>
|
|
206
|
+
* </li>
|
|
207
|
+
* <li>
|
|
208
|
+
* <p>The max number of compute node groups has been reached for the associated
|
|
209
|
+
* cluster.</p>
|
|
210
|
+
* </li>
|
|
211
|
+
* <li>
|
|
212
|
+
* <p>The total of <code>maxInstances</code> across all compute node groups has been
|
|
213
|
+
* reached for associated cluster.</p>
|
|
214
|
+
* </li>
|
|
215
|
+
* </ul>
|
|
216
|
+
*
|
|
217
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
218
|
+
* <p>Your request exceeded a request rate quota. Check the resource's request rate quota and try again.</p>
|
|
219
|
+
*
|
|
220
|
+
* @throws {@link ValidationException} (client fault)
|
|
221
|
+
* <p>The request isn't valid.</p>
|
|
222
|
+
* <p>
|
|
223
|
+
* <u>Examples</u>
|
|
224
|
+
* </p>
|
|
225
|
+
* <ul>
|
|
226
|
+
* <li>
|
|
227
|
+
* <p>Your request contains malformed JSON or unsupported characters.</p>
|
|
228
|
+
* </li>
|
|
229
|
+
* <li>
|
|
230
|
+
* <p>The scheduler version isn't supported.</p>
|
|
231
|
+
* </li>
|
|
232
|
+
* <li>
|
|
233
|
+
* <p>There are networking related errors, such as network validation failure.</p>
|
|
234
|
+
* </li>
|
|
235
|
+
* <li>
|
|
236
|
+
* <p>AMI type is <code>CUSTOM</code> and the launch template doesn't define the AMI ID,
|
|
237
|
+
* or the AMI type is AL2 and the launch template defines the AMI.</p>
|
|
238
|
+
* </li>
|
|
239
|
+
* </ul>
|
|
240
|
+
*
|
|
241
|
+
* @throws {@link PCSServiceException}
|
|
242
|
+
* <p>Base exception class for all service exceptions from PCS service.</p>
|
|
243
|
+
*
|
|
244
|
+
* @public
|
|
245
|
+
*/
|
|
246
|
+
export declare class CreateComputeNodeGroupCommand extends CreateComputeNodeGroupCommand_base {
|
|
247
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { CreateQueueRequest, CreateQueueResponse } 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 CreateQueueCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateQueueCommandInput extends CreateQueueRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateQueueCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateQueueCommandOutput extends CreateQueueResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateQueueCommand_base: {
|
|
25
|
+
new (input: CreateQueueCommandInput): import("@smithy/smithy-client").CommandImpl<CreateQueueCommandInput, CreateQueueCommandOutput, PCSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateQueueCommandInput): import("@smithy/smithy-client").CommandImpl<CreateQueueCommandInput, CreateQueueCommandOutput, PCSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates a job queue. You must associate 1 or more compute node groups with the queue.
|
|
31
|
+
* You can associate 1 compute node group with multiple queues.</p>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { PCSClient, CreateQueueCommand } from "@aws-sdk/client-pcs"; // ES Modules import
|
|
36
|
+
* // const { PCSClient, CreateQueueCommand } = require("@aws-sdk/client-pcs"); // CommonJS import
|
|
37
|
+
* const client = new PCSClient(config);
|
|
38
|
+
* const input = { // CreateQueueRequest
|
|
39
|
+
* clusterIdentifier: "STRING_VALUE", // required
|
|
40
|
+
* queueName: "STRING_VALUE", // required
|
|
41
|
+
* computeNodeGroupConfigurations: [ // ComputeNodeGroupConfigurationList
|
|
42
|
+
* { // ComputeNodeGroupConfiguration
|
|
43
|
+
* computeNodeGroupId: "STRING_VALUE",
|
|
44
|
+
* },
|
|
45
|
+
* ],
|
|
46
|
+
* clientToken: "STRING_VALUE",
|
|
47
|
+
* tags: { // RequestTagMap
|
|
48
|
+
* "<keys>": "STRING_VALUE",
|
|
49
|
+
* },
|
|
50
|
+
* };
|
|
51
|
+
* const command = new CreateQueueCommand(input);
|
|
52
|
+
* const response = await client.send(command);
|
|
53
|
+
* // { // CreateQueueResponse
|
|
54
|
+
* // queue: { // Queue
|
|
55
|
+
* // name: "STRING_VALUE", // required
|
|
56
|
+
* // id: "STRING_VALUE", // required
|
|
57
|
+
* // arn: "STRING_VALUE", // required
|
|
58
|
+
* // clusterId: "STRING_VALUE", // required
|
|
59
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
60
|
+
* // modifiedAt: new Date("TIMESTAMP"), // required
|
|
61
|
+
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED", // required
|
|
62
|
+
* // computeNodeGroupConfigurations: [ // ComputeNodeGroupConfigurationList // required
|
|
63
|
+
* // { // ComputeNodeGroupConfiguration
|
|
64
|
+
* // computeNodeGroupId: "STRING_VALUE",
|
|
65
|
+
* // },
|
|
66
|
+
* // ],
|
|
67
|
+
* // errorInfo: [ // ErrorInfoList
|
|
68
|
+
* // { // ErrorInfo
|
|
69
|
+
* // code: "STRING_VALUE",
|
|
70
|
+
* // message: "STRING_VALUE",
|
|
71
|
+
* // },
|
|
72
|
+
* // ],
|
|
73
|
+
* // },
|
|
74
|
+
* // };
|
|
75
|
+
*
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
78
|
+
* @param CreateQueueCommandInput - {@link CreateQueueCommandInput}
|
|
79
|
+
* @returns {@link CreateQueueCommandOutput}
|
|
80
|
+
* @see {@link CreateQueueCommandInput} for command's `input` shape.
|
|
81
|
+
* @see {@link CreateQueueCommandOutput} for command's `response` shape.
|
|
82
|
+
* @see {@link PCSClientResolvedConfig | config} for PCSClient's `config` shape.
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
85
|
+
* <p>You don't have permission to perform the action.</p>
|
|
86
|
+
* <p>
|
|
87
|
+
* <u>Examples</u>
|
|
88
|
+
* </p>
|
|
89
|
+
* <ul>
|
|
90
|
+
* <li>
|
|
91
|
+
* <p>The launch template instance profile doesn't pass <code>iam:PassRole</code>
|
|
92
|
+
* verification.</p>
|
|
93
|
+
* </li>
|
|
94
|
+
* <li>
|
|
95
|
+
* <p>There is a mismatch between the account ID and cluster ID.</p>
|
|
96
|
+
* </li>
|
|
97
|
+
* <li>
|
|
98
|
+
* <p>The cluster ID doesn't exist.</p>
|
|
99
|
+
* </li>
|
|
100
|
+
* <li>
|
|
101
|
+
* <p>The EC2 instance isn't present.</p>
|
|
102
|
+
* </li>
|
|
103
|
+
* </ul>
|
|
104
|
+
*
|
|
105
|
+
* @throws {@link ConflictException} (client fault)
|
|
106
|
+
* <p>Your request has conflicting operations. This can occur if you're trying to perform more
|
|
107
|
+
* than 1 operation on the same resource at the same time.</p>
|
|
108
|
+
* <p>
|
|
109
|
+
* <u>Examples</u>
|
|
110
|
+
* </p>
|
|
111
|
+
* <ul>
|
|
112
|
+
* <li>
|
|
113
|
+
* <p>A cluster with the same name already exists.</p>
|
|
114
|
+
* </li>
|
|
115
|
+
* <li>
|
|
116
|
+
* <p>A cluster isn't in <code>ACTIVE</code> status.</p>
|
|
117
|
+
* </li>
|
|
118
|
+
* <li>
|
|
119
|
+
* <p>A cluster to delete is in an unstable state. For example, because it still has
|
|
120
|
+
* <code>ACTIVE</code> node groups or queues.</p>
|
|
121
|
+
* </li>
|
|
122
|
+
* <li>
|
|
123
|
+
* <p>A queue already exists in a cluster.</p>
|
|
124
|
+
* </li>
|
|
125
|
+
* </ul>
|
|
126
|
+
*
|
|
127
|
+
* @throws {@link InternalServerException} (server fault)
|
|
128
|
+
* <p>Amazon Web Services PCS can't process your request right now. Try again later.</p>
|
|
129
|
+
*
|
|
130
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
131
|
+
* <p>The requested resource can't be found. The cluster, node group, or queue you're
|
|
132
|
+
* attempting to get, update, list, or delete doesn't exist.</p>
|
|
133
|
+
* <p>
|
|
134
|
+
* <u>Examples</u>
|
|
135
|
+
* </p>
|
|
136
|
+
*
|
|
137
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
138
|
+
* <p>You exceeded your service quota. Service quotas, also referred to as limits, are the
|
|
139
|
+
* maximum number of service resources or operations for your Amazon Web Services account. To learn how to
|
|
140
|
+
* increase your service quota, see <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html">Requesting a quota
|
|
141
|
+
* increase</a> in the <i>Service Quotas User Guide</i>
|
|
142
|
+
* </p>
|
|
143
|
+
* <p>
|
|
144
|
+
* <u>Examples</u>
|
|
145
|
+
* </p>
|
|
146
|
+
* <ul>
|
|
147
|
+
* <li>
|
|
148
|
+
* <p>The max number of clusters or queues has been reached for the account.</p>
|
|
149
|
+
* </li>
|
|
150
|
+
* <li>
|
|
151
|
+
* <p>The max number of compute node groups has been reached for the associated
|
|
152
|
+
* cluster.</p>
|
|
153
|
+
* </li>
|
|
154
|
+
* <li>
|
|
155
|
+
* <p>The total of <code>maxInstances</code> across all compute node groups has been
|
|
156
|
+
* reached for associated cluster.</p>
|
|
157
|
+
* </li>
|
|
158
|
+
* </ul>
|
|
159
|
+
*
|
|
160
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
161
|
+
* <p>Your request exceeded a request rate quota. Check the resource's request rate quota and try again.</p>
|
|
162
|
+
*
|
|
163
|
+
* @throws {@link ValidationException} (client fault)
|
|
164
|
+
* <p>The request isn't valid.</p>
|
|
165
|
+
* <p>
|
|
166
|
+
* <u>Examples</u>
|
|
167
|
+
* </p>
|
|
168
|
+
* <ul>
|
|
169
|
+
* <li>
|
|
170
|
+
* <p>Your request contains malformed JSON or unsupported characters.</p>
|
|
171
|
+
* </li>
|
|
172
|
+
* <li>
|
|
173
|
+
* <p>The scheduler version isn't supported.</p>
|
|
174
|
+
* </li>
|
|
175
|
+
* <li>
|
|
176
|
+
* <p>There are networking related errors, such as network validation failure.</p>
|
|
177
|
+
* </li>
|
|
178
|
+
* <li>
|
|
179
|
+
* <p>AMI type is <code>CUSTOM</code> and the launch template doesn't define the AMI ID,
|
|
180
|
+
* or the AMI type is AL2 and the launch template defines the AMI.</p>
|
|
181
|
+
* </li>
|
|
182
|
+
* </ul>
|
|
183
|
+
*
|
|
184
|
+
* @throws {@link PCSServiceException}
|
|
185
|
+
* <p>Base exception class for all service exceptions from PCS service.</p>
|
|
186
|
+
*
|
|
187
|
+
* @public
|
|
188
|
+
*/
|
|
189
|
+
export declare class CreateQueueCommand extends CreateQueueCommand_base {
|
|
190
|
+
}
|