@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,34 @@
1
+ import packageInfo from "../package.json";
2
+ import { Sha256 } from "@aws-crypto/sha256-browser";
3
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
6
+ import { invalidProvider } from "@smithy/invalid-dependency";
7
+ import { calculateBodyLength } from "@smithy/util-body-length-browser";
8
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
9
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
10
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
11
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
12
+ export const getRuntimeConfig = (config) => {
13
+ const defaultsMode = resolveDefaultsModeConfig(config);
14
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
15
+ const clientSharedValues = getSharedRuntimeConfig(config);
16
+ return {
17
+ ...clientSharedValues,
18
+ ...config,
19
+ runtime: "browser",
20
+ defaultsMode,
21
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
22
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
23
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
24
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
25
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
26
+ region: config?.region ?? invalidProvider("Region is missing"),
27
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
28
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
29
+ sha256: config?.sha256 ?? Sha256,
30
+ streamCollector: config?.streamCollector ?? streamCollector,
31
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
32
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
33
+ };
34
+ };
@@ -0,0 +1,44 @@
1
+ import packageInfo from "../package.json";
2
+ import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
3
+ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
4
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
5
+ import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
6
+ import { Hash } from "@smithy/hash-node";
7
+ import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
8
+ import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
+ import { calculateBodyLength } from "@smithy/util-body-length-node";
11
+ import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
12
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
15
+ import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
16
+ export const getRuntimeConfig = (config) => {
17
+ emitWarningIfUnsupportedVersion(process.version);
18
+ const defaultsMode = resolveDefaultsModeConfig(config);
19
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
20
+ const clientSharedValues = getSharedRuntimeConfig(config);
21
+ awsCheckVersion(process.version);
22
+ return {
23
+ ...clientSharedValues,
24
+ ...config,
25
+ runtime: "node",
26
+ defaultsMode,
27
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
28
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
29
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
30
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
31
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
32
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
33
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
34
+ retryMode: config?.retryMode ??
35
+ loadNodeConfig({
36
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
37
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
38
+ }),
39
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
40
+ streamCollector: config?.streamCollector ?? streamCollector,
41
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
42
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
43
+ };
44
+ };
@@ -0,0 +1,11 @@
1
+ import { Sha256 } from "@aws-crypto/sha256-js";
2
+ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
+ export const getRuntimeConfig = (config) => {
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
5
+ return {
6
+ ...browserDefaults,
7
+ ...config,
8
+ runtime: "react-native",
9
+ sha256: config?.sha256 ?? Sha256,
10
+ };
11
+ };
@@ -0,0 +1,30 @@
1
+ import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { NoOpLogger } from "@smithy/smithy-client";
3
+ import { parseUrl } from "@smithy/url-parser";
4
+ import { fromBase64, toBase64 } from "@smithy/util-base64";
5
+ import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
6
+ import { defaultPCSHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
7
+ import { defaultEndpointResolver } from "./endpoint/endpointResolver";
8
+ export const getRuntimeConfig = (config) => {
9
+ return {
10
+ apiVersion: "2023-02-10",
11
+ base64Decoder: config?.base64Decoder ?? fromBase64,
12
+ base64Encoder: config?.base64Encoder ?? toBase64,
13
+ disableHostPrefix: config?.disableHostPrefix ?? false,
14
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
15
+ extensions: config?.extensions ?? [],
16
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultPCSHttpAuthSchemeProvider,
17
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
18
+ {
19
+ schemeId: "aws.auth#sigv4",
20
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
21
+ signer: new AwsSdkSigV4Signer(),
22
+ },
23
+ ],
24
+ logger: config?.logger ?? new NoOpLogger(),
25
+ serviceId: config?.serviceId ?? "PCS",
26
+ urlParser: config?.urlParser ?? parseUrl,
27
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
28
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
29
+ };
30
+ };
@@ -0,0 +1,21 @@
1
+ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
2
+ import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
3
+ import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
4
+ import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
5
+ const asPartial = (t) => t;
6
+ export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
7
+ const extensionConfiguration = {
8
+ ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
9
+ ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
10
+ ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
11
+ ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
12
+ };
13
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
14
+ return {
15
+ ...runtimeConfig,
16
+ ...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
17
+ ...resolveDefaultRuntimeConfig(extensionConfiguration),
18
+ ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
19
+ ...resolveHttpAuthRuntimeConfig(extensionConfiguration),
20
+ };
21
+ };
@@ -0,0 +1,154 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import { CreateClusterCommandInput, CreateClusterCommandOutput } from "./commands/CreateClusterCommand";
3
+ import { CreateComputeNodeGroupCommandInput, CreateComputeNodeGroupCommandOutput } from "./commands/CreateComputeNodeGroupCommand";
4
+ import { CreateQueueCommandInput, CreateQueueCommandOutput } from "./commands/CreateQueueCommand";
5
+ import { DeleteClusterCommandInput, DeleteClusterCommandOutput } from "./commands/DeleteClusterCommand";
6
+ import { DeleteComputeNodeGroupCommandInput, DeleteComputeNodeGroupCommandOutput } from "./commands/DeleteComputeNodeGroupCommand";
7
+ import { DeleteQueueCommandInput, DeleteQueueCommandOutput } from "./commands/DeleteQueueCommand";
8
+ import { GetClusterCommandInput, GetClusterCommandOutput } from "./commands/GetClusterCommand";
9
+ import { GetComputeNodeGroupCommandInput, GetComputeNodeGroupCommandOutput } from "./commands/GetComputeNodeGroupCommand";
10
+ import { GetQueueCommandInput, GetQueueCommandOutput } from "./commands/GetQueueCommand";
11
+ import { ListClustersCommandInput, ListClustersCommandOutput } from "./commands/ListClustersCommand";
12
+ import { ListComputeNodeGroupsCommandInput, ListComputeNodeGroupsCommandOutput } from "./commands/ListComputeNodeGroupsCommand";
13
+ import { ListQueuesCommandInput, ListQueuesCommandOutput } from "./commands/ListQueuesCommand";
14
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
15
+ import { RegisterComputeNodeGroupInstanceCommandInput, RegisterComputeNodeGroupInstanceCommandOutput } from "./commands/RegisterComputeNodeGroupInstanceCommand";
16
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
17
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
18
+ import { UpdateComputeNodeGroupCommandInput, UpdateComputeNodeGroupCommandOutput } from "./commands/UpdateComputeNodeGroupCommand";
19
+ import { UpdateQueueCommandInput, UpdateQueueCommandOutput } from "./commands/UpdateQueueCommand";
20
+ import { PCSClient } from "./PCSClient";
21
+ export interface PCS {
22
+ /**
23
+ * @see {@link CreateClusterCommand}
24
+ */
25
+ createCluster(args: CreateClusterCommandInput, options?: __HttpHandlerOptions): Promise<CreateClusterCommandOutput>;
26
+ createCluster(args: CreateClusterCommandInput, cb: (err: any, data?: CreateClusterCommandOutput) => void): void;
27
+ createCluster(args: CreateClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateClusterCommandOutput) => void): void;
28
+ /**
29
+ * @see {@link CreateComputeNodeGroupCommand}
30
+ */
31
+ createComputeNodeGroup(args: CreateComputeNodeGroupCommandInput, options?: __HttpHandlerOptions): Promise<CreateComputeNodeGroupCommandOutput>;
32
+ createComputeNodeGroup(args: CreateComputeNodeGroupCommandInput, cb: (err: any, data?: CreateComputeNodeGroupCommandOutput) => void): void;
33
+ createComputeNodeGroup(args: CreateComputeNodeGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateComputeNodeGroupCommandOutput) => void): void;
34
+ /**
35
+ * @see {@link CreateQueueCommand}
36
+ */
37
+ createQueue(args: CreateQueueCommandInput, options?: __HttpHandlerOptions): Promise<CreateQueueCommandOutput>;
38
+ createQueue(args: CreateQueueCommandInput, cb: (err: any, data?: CreateQueueCommandOutput) => void): void;
39
+ createQueue(args: CreateQueueCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateQueueCommandOutput) => void): void;
40
+ /**
41
+ * @see {@link DeleteClusterCommand}
42
+ */
43
+ deleteCluster(args: DeleteClusterCommandInput, options?: __HttpHandlerOptions): Promise<DeleteClusterCommandOutput>;
44
+ deleteCluster(args: DeleteClusterCommandInput, cb: (err: any, data?: DeleteClusterCommandOutput) => void): void;
45
+ deleteCluster(args: DeleteClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteClusterCommandOutput) => void): void;
46
+ /**
47
+ * @see {@link DeleteComputeNodeGroupCommand}
48
+ */
49
+ deleteComputeNodeGroup(args: DeleteComputeNodeGroupCommandInput, options?: __HttpHandlerOptions): Promise<DeleteComputeNodeGroupCommandOutput>;
50
+ deleteComputeNodeGroup(args: DeleteComputeNodeGroupCommandInput, cb: (err: any, data?: DeleteComputeNodeGroupCommandOutput) => void): void;
51
+ deleteComputeNodeGroup(args: DeleteComputeNodeGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteComputeNodeGroupCommandOutput) => void): void;
52
+ /**
53
+ * @see {@link DeleteQueueCommand}
54
+ */
55
+ deleteQueue(args: DeleteQueueCommandInput, options?: __HttpHandlerOptions): Promise<DeleteQueueCommandOutput>;
56
+ deleteQueue(args: DeleteQueueCommandInput, cb: (err: any, data?: DeleteQueueCommandOutput) => void): void;
57
+ deleteQueue(args: DeleteQueueCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteQueueCommandOutput) => void): void;
58
+ /**
59
+ * @see {@link GetClusterCommand}
60
+ */
61
+ getCluster(args: GetClusterCommandInput, options?: __HttpHandlerOptions): Promise<GetClusterCommandOutput>;
62
+ getCluster(args: GetClusterCommandInput, cb: (err: any, data?: GetClusterCommandOutput) => void): void;
63
+ getCluster(args: GetClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetClusterCommandOutput) => void): void;
64
+ /**
65
+ * @see {@link GetComputeNodeGroupCommand}
66
+ */
67
+ getComputeNodeGroup(args: GetComputeNodeGroupCommandInput, options?: __HttpHandlerOptions): Promise<GetComputeNodeGroupCommandOutput>;
68
+ getComputeNodeGroup(args: GetComputeNodeGroupCommandInput, cb: (err: any, data?: GetComputeNodeGroupCommandOutput) => void): void;
69
+ getComputeNodeGroup(args: GetComputeNodeGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetComputeNodeGroupCommandOutput) => void): void;
70
+ /**
71
+ * @see {@link GetQueueCommand}
72
+ */
73
+ getQueue(args: GetQueueCommandInput, options?: __HttpHandlerOptions): Promise<GetQueueCommandOutput>;
74
+ getQueue(args: GetQueueCommandInput, cb: (err: any, data?: GetQueueCommandOutput) => void): void;
75
+ getQueue(args: GetQueueCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetQueueCommandOutput) => void): void;
76
+ /**
77
+ * @see {@link ListClustersCommand}
78
+ */
79
+ listClusters(): Promise<ListClustersCommandOutput>;
80
+ listClusters(args: ListClustersCommandInput, options?: __HttpHandlerOptions): Promise<ListClustersCommandOutput>;
81
+ listClusters(args: ListClustersCommandInput, cb: (err: any, data?: ListClustersCommandOutput) => void): void;
82
+ listClusters(args: ListClustersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListClustersCommandOutput) => void): void;
83
+ /**
84
+ * @see {@link ListComputeNodeGroupsCommand}
85
+ */
86
+ listComputeNodeGroups(args: ListComputeNodeGroupsCommandInput, options?: __HttpHandlerOptions): Promise<ListComputeNodeGroupsCommandOutput>;
87
+ listComputeNodeGroups(args: ListComputeNodeGroupsCommandInput, cb: (err: any, data?: ListComputeNodeGroupsCommandOutput) => void): void;
88
+ listComputeNodeGroups(args: ListComputeNodeGroupsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListComputeNodeGroupsCommandOutput) => void): void;
89
+ /**
90
+ * @see {@link ListQueuesCommand}
91
+ */
92
+ listQueues(args: ListQueuesCommandInput, options?: __HttpHandlerOptions): Promise<ListQueuesCommandOutput>;
93
+ listQueues(args: ListQueuesCommandInput, cb: (err: any, data?: ListQueuesCommandOutput) => void): void;
94
+ listQueues(args: ListQueuesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListQueuesCommandOutput) => void): void;
95
+ /**
96
+ * @see {@link ListTagsForResourceCommand}
97
+ */
98
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
99
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
100
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
101
+ /**
102
+ * @see {@link RegisterComputeNodeGroupInstanceCommand}
103
+ */
104
+ registerComputeNodeGroupInstance(args: RegisterComputeNodeGroupInstanceCommandInput, options?: __HttpHandlerOptions): Promise<RegisterComputeNodeGroupInstanceCommandOutput>;
105
+ registerComputeNodeGroupInstance(args: RegisterComputeNodeGroupInstanceCommandInput, cb: (err: any, data?: RegisterComputeNodeGroupInstanceCommandOutput) => void): void;
106
+ registerComputeNodeGroupInstance(args: RegisterComputeNodeGroupInstanceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterComputeNodeGroupInstanceCommandOutput) => void): void;
107
+ /**
108
+ * @see {@link TagResourceCommand}
109
+ */
110
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
111
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
112
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
113
+ /**
114
+ * @see {@link UntagResourceCommand}
115
+ */
116
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
117
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
118
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
119
+ /**
120
+ * @see {@link UpdateComputeNodeGroupCommand}
121
+ */
122
+ updateComputeNodeGroup(args: UpdateComputeNodeGroupCommandInput, options?: __HttpHandlerOptions): Promise<UpdateComputeNodeGroupCommandOutput>;
123
+ updateComputeNodeGroup(args: UpdateComputeNodeGroupCommandInput, cb: (err: any, data?: UpdateComputeNodeGroupCommandOutput) => void): void;
124
+ updateComputeNodeGroup(args: UpdateComputeNodeGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateComputeNodeGroupCommandOutput) => void): void;
125
+ /**
126
+ * @see {@link UpdateQueueCommand}
127
+ */
128
+ updateQueue(args: UpdateQueueCommandInput, options?: __HttpHandlerOptions): Promise<UpdateQueueCommandOutput>;
129
+ updateQueue(args: UpdateQueueCommandInput, cb: (err: any, data?: UpdateQueueCommandOutput) => void): void;
130
+ updateQueue(args: UpdateQueueCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateQueueCommandOutput) => void): void;
131
+ }
132
+ /**
133
+ * <p>Amazon Web Services Parallel Computing Service (Amazon Web Services PCS) is a managed service that makes it easier for
134
+ * you to run and scale your high performance computing (HPC) workloads,
135
+ * and build scientific and engineering models on Amazon Web Services using Slurm.
136
+ * For more information, see
137
+ * the <a href="https://docs.aws.amazon.com/pcs/latest/userguide">Amazon Web Services Parallel Computing Service
138
+ * User Guide</a>.</p>
139
+ * <p>This reference describes the actions and data types of the service management API. You can use the
140
+ * Amazon Web Services SDKs to call the API actions in software, or use the Command Line Interface (CLI) to call the API
141
+ * actions manually. These API actions manage the service through an Amazon Web Services account.</p>
142
+ * <p>The API actions operate on Amazon Web Services PCS resources. A <i>resource</i> is
143
+ * an entity in Amazon Web Services that you can work with. Amazon Web Services services create resources when you use
144
+ * the features of the service. Examples of Amazon Web Services PCS resources include clusters, compute
145
+ * 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>
146
+ * <p>An Amazon Web Services PCS <i>compute node</i> is an Amazon EC2 instance. You don't launch
147
+ * compute nodes directly. Amazon Web Services PCS uses configuration information that you provide to launch
148
+ * compute nodes in your Amazon Web Services account. You receive billing charges for your running compute nodes.
149
+ * Amazon Web Services PCS automatically terminates your compute nodes when you delete the Amazon Web Services PCS resources
150
+ * related to those compute nodes.</p>
151
+ * @public
152
+ */
153
+ export declare class PCS extends PCSClient implements PCS {
154
+ }
@@ -0,0 +1,204 @@
1
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
2
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
3
+ import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
4
+ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
5
+ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
6
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
+ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
+ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
+ import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
+ import { CreateClusterCommandInput, CreateClusterCommandOutput } from "./commands/CreateClusterCommand";
11
+ import { CreateComputeNodeGroupCommandInput, CreateComputeNodeGroupCommandOutput } from "./commands/CreateComputeNodeGroupCommand";
12
+ import { CreateQueueCommandInput, CreateQueueCommandOutput } from "./commands/CreateQueueCommand";
13
+ import { DeleteClusterCommandInput, DeleteClusterCommandOutput } from "./commands/DeleteClusterCommand";
14
+ import { DeleteComputeNodeGroupCommandInput, DeleteComputeNodeGroupCommandOutput } from "./commands/DeleteComputeNodeGroupCommand";
15
+ import { DeleteQueueCommandInput, DeleteQueueCommandOutput } from "./commands/DeleteQueueCommand";
16
+ import { GetClusterCommandInput, GetClusterCommandOutput } from "./commands/GetClusterCommand";
17
+ import { GetComputeNodeGroupCommandInput, GetComputeNodeGroupCommandOutput } from "./commands/GetComputeNodeGroupCommand";
18
+ import { GetQueueCommandInput, GetQueueCommandOutput } from "./commands/GetQueueCommand";
19
+ import { ListClustersCommandInput, ListClustersCommandOutput } from "./commands/ListClustersCommand";
20
+ import { ListComputeNodeGroupsCommandInput, ListComputeNodeGroupsCommandOutput } from "./commands/ListComputeNodeGroupsCommand";
21
+ import { ListQueuesCommandInput, ListQueuesCommandOutput } from "./commands/ListQueuesCommand";
22
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
23
+ import { RegisterComputeNodeGroupInstanceCommandInput, RegisterComputeNodeGroupInstanceCommandOutput } from "./commands/RegisterComputeNodeGroupInstanceCommand";
24
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
25
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
26
+ import { UpdateComputeNodeGroupCommandInput, UpdateComputeNodeGroupCommandOutput } from "./commands/UpdateComputeNodeGroupCommand";
27
+ import { UpdateQueueCommandInput, UpdateQueueCommandOutput } from "./commands/UpdateQueueCommand";
28
+ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
29
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
30
+ export { __Client };
31
+ /**
32
+ * @public
33
+ */
34
+ export type ServiceInputTypes = CreateClusterCommandInput | CreateComputeNodeGroupCommandInput | CreateQueueCommandInput | DeleteClusterCommandInput | DeleteComputeNodeGroupCommandInput | DeleteQueueCommandInput | GetClusterCommandInput | GetComputeNodeGroupCommandInput | GetQueueCommandInput | ListClustersCommandInput | ListComputeNodeGroupsCommandInput | ListQueuesCommandInput | ListTagsForResourceCommandInput | RegisterComputeNodeGroupInstanceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateComputeNodeGroupCommandInput | UpdateQueueCommandInput;
35
+ /**
36
+ * @public
37
+ */
38
+ export type ServiceOutputTypes = CreateClusterCommandOutput | CreateComputeNodeGroupCommandOutput | CreateQueueCommandOutput | DeleteClusterCommandOutput | DeleteComputeNodeGroupCommandOutput | DeleteQueueCommandOutput | GetClusterCommandOutput | GetComputeNodeGroupCommandOutput | GetQueueCommandOutput | ListClustersCommandOutput | ListComputeNodeGroupsCommandOutput | ListQueuesCommandOutput | ListTagsForResourceCommandOutput | RegisterComputeNodeGroupInstanceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateComputeNodeGroupCommandOutput | UpdateQueueCommandOutput;
39
+ /**
40
+ * @public
41
+ */
42
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
43
+ /**
44
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
45
+ */
46
+ requestHandler?: __HttpHandlerUserInput;
47
+ /**
48
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
49
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
50
+ * @internal
51
+ */
52
+ sha256?: __ChecksumConstructor | __HashConstructor;
53
+ /**
54
+ * The function that will be used to convert strings into HTTP endpoints.
55
+ * @internal
56
+ */
57
+ urlParser?: __UrlParser;
58
+ /**
59
+ * A function that can calculate the length of a request body.
60
+ * @internal
61
+ */
62
+ bodyLengthChecker?: __BodyLengthCalculator;
63
+ /**
64
+ * A function that converts a stream into an array of bytes.
65
+ * @internal
66
+ */
67
+ streamCollector?: __StreamCollector;
68
+ /**
69
+ * The function that will be used to convert a base64-encoded string to a byte array.
70
+ * @internal
71
+ */
72
+ base64Decoder?: __Decoder;
73
+ /**
74
+ * The function that will be used to convert binary data to a base64-encoded string.
75
+ * @internal
76
+ */
77
+ base64Encoder?: __Encoder;
78
+ /**
79
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
80
+ * @internal
81
+ */
82
+ utf8Decoder?: __Decoder;
83
+ /**
84
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
85
+ * @internal
86
+ */
87
+ utf8Encoder?: __Encoder;
88
+ /**
89
+ * The runtime environment.
90
+ * @internal
91
+ */
92
+ runtime?: string;
93
+ /**
94
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
95
+ * trait of an operation.
96
+ */
97
+ disableHostPrefix?: boolean;
98
+ /**
99
+ * Unique service identifier.
100
+ * @internal
101
+ */
102
+ serviceId?: string;
103
+ /**
104
+ * Enables IPv6/IPv4 dualstack endpoint.
105
+ */
106
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
107
+ /**
108
+ * Enables FIPS compatible endpoints.
109
+ */
110
+ useFipsEndpoint?: boolean | __Provider<boolean>;
111
+ /**
112
+ * The AWS region to which this client will send requests
113
+ */
114
+ region?: string | __Provider<string>;
115
+ /**
116
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
117
+ * @internal
118
+ */
119
+ defaultUserAgentProvider?: Provider<__UserAgent>;
120
+ /**
121
+ * Default credentials provider; Not available in browser runtime.
122
+ * @deprecated
123
+ * @internal
124
+ */
125
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
126
+ /**
127
+ * Value for how many times a request will be made at most in case of retry.
128
+ */
129
+ maxAttempts?: number | __Provider<number>;
130
+ /**
131
+ * Specifies which retry algorithm to use.
132
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
133
+ *
134
+ */
135
+ retryMode?: string | __Provider<string>;
136
+ /**
137
+ * Optional logger for logging debug/info/warn/error.
138
+ */
139
+ logger?: __Logger;
140
+ /**
141
+ * Optional extensions
142
+ */
143
+ extensions?: RuntimeExtension[];
144
+ /**
145
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
146
+ */
147
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
148
+ }
149
+ /**
150
+ * @public
151
+ */
152
+ export type PCSClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
153
+ /**
154
+ * @public
155
+ *
156
+ * The configuration interface of PCSClient class constructor that set the region, credentials and other options.
157
+ */
158
+ export interface PCSClientConfig extends PCSClientConfigType {
159
+ }
160
+ /**
161
+ * @public
162
+ */
163
+ export type PCSClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
164
+ /**
165
+ * @public
166
+ *
167
+ * The resolved configuration interface of PCSClient class. This is resolved and normalized from the {@link PCSClientConfig | constructor configuration interface}.
168
+ */
169
+ export interface PCSClientResolvedConfig extends PCSClientResolvedConfigType {
170
+ }
171
+ /**
172
+ * <p>Amazon Web Services Parallel Computing Service (Amazon Web Services PCS) is a managed service that makes it easier for
173
+ * you to run and scale your high performance computing (HPC) workloads,
174
+ * and build scientific and engineering models on Amazon Web Services using Slurm.
175
+ * For more information, see
176
+ * the <a href="https://docs.aws.amazon.com/pcs/latest/userguide">Amazon Web Services Parallel Computing Service
177
+ * User Guide</a>.</p>
178
+ * <p>This reference describes the actions and data types of the service management API. You can use the
179
+ * Amazon Web Services SDKs to call the API actions in software, or use the Command Line Interface (CLI) to call the API
180
+ * actions manually. These API actions manage the service through an Amazon Web Services account.</p>
181
+ * <p>The API actions operate on Amazon Web Services PCS resources. A <i>resource</i> is
182
+ * an entity in Amazon Web Services that you can work with. Amazon Web Services services create resources when you use
183
+ * the features of the service. Examples of Amazon Web Services PCS resources include clusters, compute
184
+ * 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>
185
+ * <p>An Amazon Web Services PCS <i>compute node</i> is an Amazon EC2 instance. You don't launch
186
+ * compute nodes directly. Amazon Web Services PCS uses configuration information that you provide to launch
187
+ * compute nodes in your Amazon Web Services account. You receive billing charges for your running compute nodes.
188
+ * Amazon Web Services PCS automatically terminates your compute nodes when you delete the Amazon Web Services PCS resources
189
+ * related to those compute nodes.</p>
190
+ * @public
191
+ */
192
+ export declare class PCSClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, PCSClientResolvedConfig> {
193
+ /**
194
+ * The resolved configuration of PCSClient class. This is resolved and normalized from the {@link PCSClientConfig | constructor configuration interface}.
195
+ */
196
+ readonly config: PCSClientResolvedConfig;
197
+ constructor(...[configuration]: __CheckOptionalClientConfig<PCSClientConfig>);
198
+ /**
199
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
200
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
201
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
202
+ */
203
+ destroy(): void;
204
+ }
@@ -0,0 +1,29 @@
1
+ import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
2
+ import { PCSHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface HttpAuthExtensionConfiguration {
7
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
8
+ httpAuthSchemes(): HttpAuthScheme[];
9
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: PCSHttpAuthSchemeProvider): void;
10
+ httpAuthSchemeProvider(): PCSHttpAuthSchemeProvider;
11
+ setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
12
+ credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export type HttpAuthRuntimeConfig = Partial<{
18
+ httpAuthSchemes: HttpAuthScheme[];
19
+ httpAuthSchemeProvider: PCSHttpAuthSchemeProvider;
20
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
21
+ }>;
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
26
+ /**
27
+ * @internal
28
+ */
29
+ export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
@@ -0,0 +1,61 @@
1
+ import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
2
+ import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
3
+ import { PCSClientResolvedConfig } from "../PCSClient";
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface PCSHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
8
+ region?: string;
9
+ }
10
+ /**
11
+ * @internal
12
+ */
13
+ export interface PCSHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<PCSClientResolvedConfig, HandlerExecutionContext, PCSHttpAuthSchemeParameters, object> {
14
+ }
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const defaultPCSHttpAuthSchemeParametersProvider: (config: PCSClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<PCSHttpAuthSchemeParameters>;
19
+ /**
20
+ * @internal
21
+ */
22
+ export interface PCSHttpAuthSchemeProvider extends HttpAuthSchemeProvider<PCSHttpAuthSchemeParameters> {
23
+ }
24
+ /**
25
+ * @internal
26
+ */
27
+ export declare const defaultPCSHttpAuthSchemeProvider: PCSHttpAuthSchemeProvider;
28
+ /**
29
+ * @internal
30
+ */
31
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
32
+ /**
33
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
34
+ * @internal
35
+ */
36
+ httpAuthSchemes?: HttpAuthScheme[];
37
+ /**
38
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
39
+ * @internal
40
+ */
41
+ httpAuthSchemeProvider?: PCSHttpAuthSchemeProvider;
42
+ }
43
+ /**
44
+ * @internal
45
+ */
46
+ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
47
+ /**
48
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
49
+ * @internal
50
+ */
51
+ readonly httpAuthSchemes: HttpAuthScheme[];
52
+ /**
53
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
54
+ * @internal
55
+ */
56
+ readonly httpAuthSchemeProvider: PCSHttpAuthSchemeProvider;
57
+ }
58
+ /**
59
+ * @internal
60
+ */
61
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;