@aws-sdk/client-launch-wizard 3.443.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 (127) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +272 -0
  3. package/dist-cjs/LaunchWizard.js +27 -0
  4. package/dist-cjs/LaunchWizardClient.js +43 -0
  5. package/dist-cjs/commands/CreateDeploymentCommand.js +52 -0
  6. package/dist-cjs/commands/DeleteDeploymentCommand.js +51 -0
  7. package/dist-cjs/commands/GetDeploymentCommand.js +52 -0
  8. package/dist-cjs/commands/GetWorkloadCommand.js +51 -0
  9. package/dist-cjs/commands/ListDeploymentEventsCommand.js +51 -0
  10. package/dist-cjs/commands/ListDeploymentsCommand.js +51 -0
  11. package/dist-cjs/commands/ListWorkloadDeploymentPatternsCommand.js +51 -0
  12. package/dist-cjs/commands/ListWorkloadsCommand.js +51 -0
  13. package/dist-cjs/commands/index.js +11 -0
  14. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  15. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  16. package/dist-cjs/endpoint/ruleset.js +7 -0
  17. package/dist-cjs/extensionConfiguration.js +2 -0
  18. package/dist-cjs/index.js +12 -0
  19. package/dist-cjs/models/LaunchWizardServiceException.js +12 -0
  20. package/dist-cjs/models/index.js +4 -0
  21. package/dist-cjs/models/models_0.js +109 -0
  22. package/dist-cjs/pagination/Interfaces.js +2 -0
  23. package/dist-cjs/pagination/ListDeploymentEventsPaginator.js +29 -0
  24. package/dist-cjs/pagination/ListDeploymentsPaginator.js +29 -0
  25. package/dist-cjs/pagination/ListWorkloadDeploymentPatternsPaginator.js +29 -0
  26. package/dist-cjs/pagination/ListWorkloadsPaginator.js +29 -0
  27. package/dist-cjs/pagination/index.js +8 -0
  28. package/dist-cjs/protocols/Aws_restJson1.js +661 -0
  29. package/dist-cjs/runtimeConfig.browser.js +39 -0
  30. package/dist-cjs/runtimeConfig.js +50 -0
  31. package/dist-cjs/runtimeConfig.native.js +15 -0
  32. package/dist-cjs/runtimeConfig.shared.js +24 -0
  33. package/dist-cjs/runtimeExtensions.js +22 -0
  34. package/dist-es/LaunchWizard.js +23 -0
  35. package/dist-es/LaunchWizardClient.js +39 -0
  36. package/dist-es/commands/CreateDeploymentCommand.js +48 -0
  37. package/dist-es/commands/DeleteDeploymentCommand.js +47 -0
  38. package/dist-es/commands/GetDeploymentCommand.js +48 -0
  39. package/dist-es/commands/GetWorkloadCommand.js +47 -0
  40. package/dist-es/commands/ListDeploymentEventsCommand.js +47 -0
  41. package/dist-es/commands/ListDeploymentsCommand.js +47 -0
  42. package/dist-es/commands/ListWorkloadDeploymentPatternsCommand.js +47 -0
  43. package/dist-es/commands/ListWorkloadsCommand.js +47 -0
  44. package/dist-es/commands/index.js +8 -0
  45. package/dist-es/endpoint/EndpointParameters.js +8 -0
  46. package/dist-es/endpoint/endpointResolver.js +8 -0
  47. package/dist-es/endpoint/ruleset.js +4 -0
  48. package/dist-es/extensionConfiguration.js +1 -0
  49. package/dist-es/index.js +7 -0
  50. package/dist-es/models/LaunchWizardServiceException.js +8 -0
  51. package/dist-es/models/index.js +1 -0
  52. package/dist-es/models/models_0.js +99 -0
  53. package/dist-es/pagination/Interfaces.js +1 -0
  54. package/dist-es/pagination/ListDeploymentEventsPaginator.js +25 -0
  55. package/dist-es/pagination/ListDeploymentsPaginator.js +25 -0
  56. package/dist-es/pagination/ListWorkloadDeploymentPatternsPaginator.js +25 -0
  57. package/dist-es/pagination/ListWorkloadsPaginator.js +25 -0
  58. package/dist-es/pagination/index.js +5 -0
  59. package/dist-es/protocols/Aws_restJson1.js +642 -0
  60. package/dist-es/runtimeConfig.browser.js +34 -0
  61. package/dist-es/runtimeConfig.js +45 -0
  62. package/dist-es/runtimeConfig.native.js +11 -0
  63. package/dist-es/runtimeConfig.shared.js +20 -0
  64. package/dist-es/runtimeExtensions.js +18 -0
  65. package/dist-types/LaunchWizard.d.ts +69 -0
  66. package/dist-types/LaunchWizardClient.d.ts +180 -0
  67. package/dist-types/commands/CreateDeploymentCommand.d.ts +95 -0
  68. package/dist-types/commands/DeleteDeploymentCommand.d.ts +84 -0
  69. package/dist-types/commands/GetDeploymentCommand.d.ts +95 -0
  70. package/dist-types/commands/GetWorkloadCommand.d.ts +91 -0
  71. package/dist-types/commands/ListDeploymentEventsCommand.d.ts +94 -0
  72. package/dist-types/commands/ListDeploymentsCommand.d.ts +99 -0
  73. package/dist-types/commands/ListWorkloadDeploymentPatternsCommand.d.ts +96 -0
  74. package/dist-types/commands/ListWorkloadsCommand.d.ts +87 -0
  75. package/dist-types/commands/index.d.ts +8 -0
  76. package/dist-types/endpoint/EndpointParameters.d.ts +22 -0
  77. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  78. package/dist-types/endpoint/ruleset.d.ts +2 -0
  79. package/dist-types/extensionConfiguration.d.ts +8 -0
  80. package/dist-types/index.d.ts +16 -0
  81. package/dist-types/models/LaunchWizardServiceException.d.ts +13 -0
  82. package/dist-types/models/index.d.ts +1 -0
  83. package/dist-types/models/models_0.d.ts +652 -0
  84. package/dist-types/pagination/Interfaces.d.ts +8 -0
  85. package/dist-types/pagination/ListDeploymentEventsPaginator.d.ts +7 -0
  86. package/dist-types/pagination/ListDeploymentsPaginator.d.ts +7 -0
  87. package/dist-types/pagination/ListWorkloadDeploymentPatternsPaginator.d.ts +7 -0
  88. package/dist-types/pagination/ListWorkloadsPaginator.d.ts +7 -0
  89. package/dist-types/pagination/index.d.ts +5 -0
  90. package/dist-types/protocols/Aws_restJson1.d.ts +74 -0
  91. package/dist-types/runtimeConfig.browser.d.ts +46 -0
  92. package/dist-types/runtimeConfig.d.ts +46 -0
  93. package/dist-types/runtimeConfig.native.d.ts +45 -0
  94. package/dist-types/runtimeConfig.shared.d.ts +19 -0
  95. package/dist-types/runtimeExtensions.d.ts +17 -0
  96. package/dist-types/ts3.4/LaunchWizard.d.ts +143 -0
  97. package/dist-types/ts3.4/LaunchWizardClient.d.ts +167 -0
  98. package/dist-types/ts3.4/commands/CreateDeploymentCommand.d.ts +38 -0
  99. package/dist-types/ts3.4/commands/DeleteDeploymentCommand.d.ts +38 -0
  100. package/dist-types/ts3.4/commands/GetDeploymentCommand.d.ts +35 -0
  101. package/dist-types/ts3.4/commands/GetWorkloadCommand.d.ts +35 -0
  102. package/dist-types/ts3.4/commands/ListDeploymentEventsCommand.d.ts +42 -0
  103. package/dist-types/ts3.4/commands/ListDeploymentsCommand.d.ts +38 -0
  104. package/dist-types/ts3.4/commands/ListWorkloadDeploymentPatternsCommand.d.ts +42 -0
  105. package/dist-types/ts3.4/commands/ListWorkloadsCommand.d.ts +35 -0
  106. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  107. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
  108. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  109. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  110. package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
  111. package/dist-types/ts3.4/index.d.ts +8 -0
  112. package/dist-types/ts3.4/models/LaunchWizardServiceException.d.ts +8 -0
  113. package/dist-types/ts3.4/models/index.d.ts +1 -0
  114. package/dist-types/ts3.4/models/models_0.d.ts +201 -0
  115. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  116. package/dist-types/ts3.4/pagination/ListDeploymentEventsPaginator.d.ts +11 -0
  117. package/dist-types/ts3.4/pagination/ListDeploymentsPaginator.d.ts +11 -0
  118. package/dist-types/ts3.4/pagination/ListWorkloadDeploymentPatternsPaginator.d.ts +11 -0
  119. package/dist-types/ts3.4/pagination/ListWorkloadsPaginator.d.ts +11 -0
  120. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  121. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +101 -0
  122. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
  123. package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
  124. package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
  125. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
  126. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  127. package/package.json +102 -0
@@ -0,0 +1,45 @@
1
+ import packageInfo from "../package.json";
2
+ import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
3
+ import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
4
+ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
5
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
6
+ 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";
7
+ import { Hash } from "@smithy/hash-node";
8
+ import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
9
+ import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
10
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
11
+ import { calculateBodyLength } from "@smithy/util-body-length-node";
12
+ import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
13
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
14
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
15
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
16
+ import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
17
+ export const getRuntimeConfig = (config) => {
18
+ emitWarningIfUnsupportedVersion(process.version);
19
+ const defaultsMode = resolveDefaultsModeConfig(config);
20
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
21
+ const clientSharedValues = getSharedRuntimeConfig(config);
22
+ awsCheckVersion(process.version);
23
+ return {
24
+ ...clientSharedValues,
25
+ ...config,
26
+ runtime: "node",
27
+ defaultsMode,
28
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
29
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
30
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
31
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
32
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
33
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
34
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
35
+ retryMode: config?.retryMode ??
36
+ loadNodeConfig({
37
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
38
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
39
+ }),
40
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
41
+ streamCollector: config?.streamCollector ?? streamCollector,
42
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
43
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
44
+ };
45
+ };
@@ -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,20 @@
1
+ import { NoOpLogger } from "@smithy/smithy-client";
2
+ import { parseUrl } from "@smithy/url-parser";
3
+ import { fromBase64, toBase64 } from "@smithy/util-base64";
4
+ import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
5
+ import { defaultEndpointResolver } from "./endpoint/endpointResolver";
6
+ export const getRuntimeConfig = (config) => {
7
+ return {
8
+ apiVersion: "2018-05-10",
9
+ base64Decoder: config?.base64Decoder ?? fromBase64,
10
+ base64Encoder: config?.base64Encoder ?? toBase64,
11
+ disableHostPrefix: config?.disableHostPrefix ?? false,
12
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
13
+ extensions: config?.extensions ?? [],
14
+ logger: config?.logger ?? new NoOpLogger(),
15
+ serviceId: config?.serviceId ?? "Launch Wizard",
16
+ urlParser: config?.urlParser ?? parseUrl,
17
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
18
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
19
+ };
20
+ };
@@ -0,0 +1,18 @@
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
+ const asPartial = (t) => t;
5
+ export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
6
+ const extensionConfiguration = {
7
+ ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
8
+ ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
9
+ ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
10
+ };
11
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
12
+ return {
13
+ ...runtimeConfig,
14
+ ...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
15
+ ...resolveDefaultRuntimeConfig(extensionConfiguration),
16
+ ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
17
+ };
18
+ };
@@ -0,0 +1,69 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import { CreateDeploymentCommandInput, CreateDeploymentCommandOutput } from "./commands/CreateDeploymentCommand";
3
+ import { DeleteDeploymentCommandInput, DeleteDeploymentCommandOutput } from "./commands/DeleteDeploymentCommand";
4
+ import { GetDeploymentCommandInput, GetDeploymentCommandOutput } from "./commands/GetDeploymentCommand";
5
+ import { GetWorkloadCommandInput, GetWorkloadCommandOutput } from "./commands/GetWorkloadCommand";
6
+ import { ListDeploymentEventsCommandInput, ListDeploymentEventsCommandOutput } from "./commands/ListDeploymentEventsCommand";
7
+ import { ListDeploymentsCommandInput, ListDeploymentsCommandOutput } from "./commands/ListDeploymentsCommand";
8
+ import { ListWorkloadDeploymentPatternsCommandInput, ListWorkloadDeploymentPatternsCommandOutput } from "./commands/ListWorkloadDeploymentPatternsCommand";
9
+ import { ListWorkloadsCommandInput, ListWorkloadsCommandOutput } from "./commands/ListWorkloadsCommand";
10
+ import { LaunchWizardClient } from "./LaunchWizardClient";
11
+ export interface LaunchWizard {
12
+ /**
13
+ * @see {@link CreateDeploymentCommand}
14
+ */
15
+ createDeployment(args: CreateDeploymentCommandInput, options?: __HttpHandlerOptions): Promise<CreateDeploymentCommandOutput>;
16
+ createDeployment(args: CreateDeploymentCommandInput, cb: (err: any, data?: CreateDeploymentCommandOutput) => void): void;
17
+ createDeployment(args: CreateDeploymentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDeploymentCommandOutput) => void): void;
18
+ /**
19
+ * @see {@link DeleteDeploymentCommand}
20
+ */
21
+ deleteDeployment(args: DeleteDeploymentCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDeploymentCommandOutput>;
22
+ deleteDeployment(args: DeleteDeploymentCommandInput, cb: (err: any, data?: DeleteDeploymentCommandOutput) => void): void;
23
+ deleteDeployment(args: DeleteDeploymentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDeploymentCommandOutput) => void): void;
24
+ /**
25
+ * @see {@link GetDeploymentCommand}
26
+ */
27
+ getDeployment(args: GetDeploymentCommandInput, options?: __HttpHandlerOptions): Promise<GetDeploymentCommandOutput>;
28
+ getDeployment(args: GetDeploymentCommandInput, cb: (err: any, data?: GetDeploymentCommandOutput) => void): void;
29
+ getDeployment(args: GetDeploymentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDeploymentCommandOutput) => void): void;
30
+ /**
31
+ * @see {@link GetWorkloadCommand}
32
+ */
33
+ getWorkload(args: GetWorkloadCommandInput, options?: __HttpHandlerOptions): Promise<GetWorkloadCommandOutput>;
34
+ getWorkload(args: GetWorkloadCommandInput, cb: (err: any, data?: GetWorkloadCommandOutput) => void): void;
35
+ getWorkload(args: GetWorkloadCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetWorkloadCommandOutput) => void): void;
36
+ /**
37
+ * @see {@link ListDeploymentEventsCommand}
38
+ */
39
+ listDeploymentEvents(args: ListDeploymentEventsCommandInput, options?: __HttpHandlerOptions): Promise<ListDeploymentEventsCommandOutput>;
40
+ listDeploymentEvents(args: ListDeploymentEventsCommandInput, cb: (err: any, data?: ListDeploymentEventsCommandOutput) => void): void;
41
+ listDeploymentEvents(args: ListDeploymentEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDeploymentEventsCommandOutput) => void): void;
42
+ /**
43
+ * @see {@link ListDeploymentsCommand}
44
+ */
45
+ listDeployments(args: ListDeploymentsCommandInput, options?: __HttpHandlerOptions): Promise<ListDeploymentsCommandOutput>;
46
+ listDeployments(args: ListDeploymentsCommandInput, cb: (err: any, data?: ListDeploymentsCommandOutput) => void): void;
47
+ listDeployments(args: ListDeploymentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDeploymentsCommandOutput) => void): void;
48
+ /**
49
+ * @see {@link ListWorkloadDeploymentPatternsCommand}
50
+ */
51
+ listWorkloadDeploymentPatterns(args: ListWorkloadDeploymentPatternsCommandInput, options?: __HttpHandlerOptions): Promise<ListWorkloadDeploymentPatternsCommandOutput>;
52
+ listWorkloadDeploymentPatterns(args: ListWorkloadDeploymentPatternsCommandInput, cb: (err: any, data?: ListWorkloadDeploymentPatternsCommandOutput) => void): void;
53
+ listWorkloadDeploymentPatterns(args: ListWorkloadDeploymentPatternsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListWorkloadDeploymentPatternsCommandOutput) => void): void;
54
+ /**
55
+ * @see {@link ListWorkloadsCommand}
56
+ */
57
+ listWorkloads(args: ListWorkloadsCommandInput, options?: __HttpHandlerOptions): Promise<ListWorkloadsCommandOutput>;
58
+ listWorkloads(args: ListWorkloadsCommandInput, cb: (err: any, data?: ListWorkloadsCommandOutput) => void): void;
59
+ listWorkloads(args: ListWorkloadsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListWorkloadsCommandOutput) => void): void;
60
+ }
61
+ /**
62
+ * @public
63
+ * <p>Launch Wizard offers a guided way of sizing, configuring, and deploying Amazon Web Services resources for
64
+ * third party applications, such as Microsoft SQL Server Always On and HANA based SAP
65
+ * systems, without the need to manually identify and provision individual Amazon Web Services
66
+ * resources.</p>
67
+ */
68
+ export declare class LaunchWizard extends LaunchWizardClient implements LaunchWizard {
69
+ }
@@ -0,0 +1,180 @@
1
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
2
+ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
3
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
4
+ import { Credentials as __Credentials } from "@aws-sdk/types";
5
+ import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
6
+ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
7
+ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
8
+ import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
9
+ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
10
+ import { 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";
11
+ import { CreateDeploymentCommandInput, CreateDeploymentCommandOutput } from "./commands/CreateDeploymentCommand";
12
+ import { DeleteDeploymentCommandInput, DeleteDeploymentCommandOutput } from "./commands/DeleteDeploymentCommand";
13
+ import { GetDeploymentCommandInput, GetDeploymentCommandOutput } from "./commands/GetDeploymentCommand";
14
+ import { GetWorkloadCommandInput, GetWorkloadCommandOutput } from "./commands/GetWorkloadCommand";
15
+ import { ListDeploymentEventsCommandInput, ListDeploymentEventsCommandOutput } from "./commands/ListDeploymentEventsCommand";
16
+ import { ListDeploymentsCommandInput, ListDeploymentsCommandOutput } from "./commands/ListDeploymentsCommand";
17
+ import { ListWorkloadDeploymentPatternsCommandInput, ListWorkloadDeploymentPatternsCommandOutput } from "./commands/ListWorkloadDeploymentPatternsCommand";
18
+ import { ListWorkloadsCommandInput, ListWorkloadsCommandOutput } from "./commands/ListWorkloadsCommand";
19
+ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
20
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
21
+ export { __Client };
22
+ /**
23
+ * @public
24
+ */
25
+ export type ServiceInputTypes = CreateDeploymentCommandInput | DeleteDeploymentCommandInput | GetDeploymentCommandInput | GetWorkloadCommandInput | ListDeploymentEventsCommandInput | ListDeploymentsCommandInput | ListWorkloadDeploymentPatternsCommandInput | ListWorkloadsCommandInput;
26
+ /**
27
+ * @public
28
+ */
29
+ export type ServiceOutputTypes = CreateDeploymentCommandOutput | DeleteDeploymentCommandOutput | GetDeploymentCommandOutput | GetWorkloadCommandOutput | ListDeploymentEventsCommandOutput | ListDeploymentsCommandOutput | ListWorkloadDeploymentPatternsCommandOutput | ListWorkloadsCommandOutput;
30
+ /**
31
+ * @public
32
+ */
33
+ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
34
+ /**
35
+ * The HTTP handler to use. Fetch in browser and Https in Nodejs.
36
+ */
37
+ requestHandler?: __HttpHandler;
38
+ /**
39
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
40
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
41
+ * @internal
42
+ */
43
+ sha256?: __ChecksumConstructor | __HashConstructor;
44
+ /**
45
+ * The function that will be used to convert strings into HTTP endpoints.
46
+ * @internal
47
+ */
48
+ urlParser?: __UrlParser;
49
+ /**
50
+ * A function that can calculate the length of a request body.
51
+ * @internal
52
+ */
53
+ bodyLengthChecker?: __BodyLengthCalculator;
54
+ /**
55
+ * A function that converts a stream into an array of bytes.
56
+ * @internal
57
+ */
58
+ streamCollector?: __StreamCollector;
59
+ /**
60
+ * The function that will be used to convert a base64-encoded string to a byte array.
61
+ * @internal
62
+ */
63
+ base64Decoder?: __Decoder;
64
+ /**
65
+ * The function that will be used to convert binary data to a base64-encoded string.
66
+ * @internal
67
+ */
68
+ base64Encoder?: __Encoder;
69
+ /**
70
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
71
+ * @internal
72
+ */
73
+ utf8Decoder?: __Decoder;
74
+ /**
75
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
76
+ * @internal
77
+ */
78
+ utf8Encoder?: __Encoder;
79
+ /**
80
+ * The runtime environment.
81
+ * @internal
82
+ */
83
+ runtime?: string;
84
+ /**
85
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
86
+ * trait of an operation.
87
+ */
88
+ disableHostPrefix?: boolean;
89
+ /**
90
+ * Unique service identifier.
91
+ * @internal
92
+ */
93
+ serviceId?: string;
94
+ /**
95
+ * Enables IPv6/IPv4 dualstack endpoint.
96
+ */
97
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
98
+ /**
99
+ * Enables FIPS compatible endpoints.
100
+ */
101
+ useFipsEndpoint?: boolean | __Provider<boolean>;
102
+ /**
103
+ * The AWS region to which this client will send requests
104
+ */
105
+ region?: string | __Provider<string>;
106
+ /**
107
+ * Default credentials provider; Not available in browser runtime.
108
+ * @internal
109
+ */
110
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
111
+ /**
112
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
113
+ * @internal
114
+ */
115
+ defaultUserAgentProvider?: Provider<__UserAgent>;
116
+ /**
117
+ * Value for how many times a request will be made at most in case of retry.
118
+ */
119
+ maxAttempts?: number | __Provider<number>;
120
+ /**
121
+ * Specifies which retry algorithm to use.
122
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
123
+ *
124
+ */
125
+ retryMode?: string | __Provider<string>;
126
+ /**
127
+ * Optional logger for logging debug/info/warn/error.
128
+ */
129
+ logger?: __Logger;
130
+ /**
131
+ * Optional extensions
132
+ */
133
+ extensions?: RuntimeExtension[];
134
+ /**
135
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
136
+ */
137
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
138
+ }
139
+ /**
140
+ * @public
141
+ */
142
+ export type LaunchWizardClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
143
+ /**
144
+ * @public
145
+ *
146
+ * The configuration interface of LaunchWizardClient class constructor that set the region, credentials and other options.
147
+ */
148
+ export interface LaunchWizardClientConfig extends LaunchWizardClientConfigType {
149
+ }
150
+ /**
151
+ * @public
152
+ */
153
+ export type LaunchWizardClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
154
+ /**
155
+ * @public
156
+ *
157
+ * The resolved configuration interface of LaunchWizardClient class. This is resolved and normalized from the {@link LaunchWizardClientConfig | constructor configuration interface}.
158
+ */
159
+ export interface LaunchWizardClientResolvedConfig extends LaunchWizardClientResolvedConfigType {
160
+ }
161
+ /**
162
+ * @public
163
+ * <p>Launch Wizard offers a guided way of sizing, configuring, and deploying Amazon Web Services resources for
164
+ * third party applications, such as Microsoft SQL Server Always On and HANA based SAP
165
+ * systems, without the need to manually identify and provision individual Amazon Web Services
166
+ * resources.</p>
167
+ */
168
+ export declare class LaunchWizardClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, LaunchWizardClientResolvedConfig> {
169
+ /**
170
+ * The resolved configuration of LaunchWizardClient class. This is resolved and normalized from the {@link LaunchWizardClientConfig | constructor configuration interface}.
171
+ */
172
+ readonly config: LaunchWizardClientResolvedConfig;
173
+ constructor(...[configuration]: __CheckOptionalClientConfig<LaunchWizardClientConfig>);
174
+ /**
175
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
176
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
177
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
178
+ */
179
+ destroy(): void;
180
+ }
@@ -0,0 +1,95 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { LaunchWizardClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LaunchWizardClient";
5
+ import { CreateDeploymentInput, CreateDeploymentOutput } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateDeploymentCommand}.
14
+ */
15
+ export interface CreateDeploymentCommandInput extends CreateDeploymentInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateDeploymentCommand}.
21
+ */
22
+ export interface CreateDeploymentCommandOutput extends CreateDeploymentOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Creates a deployment for the given workload. Deployments created by this operation are
27
+ * not available in the Launch Wizard console to use the <code>Clone deployment</code> action
28
+ * on.</p>
29
+ * @example
30
+ * Use a bare-bones client and the command you need to make an API call.
31
+ * ```javascript
32
+ * import { LaunchWizardClient, CreateDeploymentCommand } from "@aws-sdk/client-launch-wizard"; // ES Modules import
33
+ * // const { LaunchWizardClient, CreateDeploymentCommand } = require("@aws-sdk/client-launch-wizard"); // CommonJS import
34
+ * const client = new LaunchWizardClient(config);
35
+ * const input = { // CreateDeploymentInput
36
+ * workloadName: "STRING_VALUE", // required
37
+ * deploymentPatternName: "STRING_VALUE", // required
38
+ * name: "STRING_VALUE", // required
39
+ * specifications: { // DeploymentSpecifications // required
40
+ * "<keys>": "STRING_VALUE",
41
+ * },
42
+ * dryRun: true || false,
43
+ * };
44
+ * const command = new CreateDeploymentCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // CreateDeploymentOutput
47
+ * // deploymentId: "STRING_VALUE",
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param CreateDeploymentCommandInput - {@link CreateDeploymentCommandInput}
53
+ * @returns {@link CreateDeploymentCommandOutput}
54
+ * @see {@link CreateDeploymentCommandInput} for command's `input` shape.
55
+ * @see {@link CreateDeploymentCommandOutput} for command's `response` shape.
56
+ * @see {@link LaunchWizardClientResolvedConfig | config} for LaunchWizardClient's `config` shape.
57
+ *
58
+ * @throws {@link InternalServerException} (server fault)
59
+ * <p>An internal error has occurred. Retry your request, but if the problem persists, contact
60
+ * us with details by posting a question on <a href="https://repost.aws/">re:Post</a>.</p>
61
+ *
62
+ * @throws {@link ResourceLimitException} (client fault)
63
+ * <p>You have exceeded an Launch Wizard resource limit. For example, you might have too many
64
+ * deployments in progress.</p>
65
+ *
66
+ * @throws {@link ResourceNotFoundException} (client fault)
67
+ * <p>The specified workload or deployment resource can't be found.</p>
68
+ *
69
+ * @throws {@link ValidationException} (client fault)
70
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
71
+ *
72
+ * @throws {@link LaunchWizardServiceException}
73
+ * <p>Base exception class for all service exceptions from LaunchWizard service.</p>
74
+ *
75
+ */
76
+ export declare class CreateDeploymentCommand extends $Command<CreateDeploymentCommandInput, CreateDeploymentCommandOutput, LaunchWizardClientResolvedConfig> {
77
+ readonly input: CreateDeploymentCommandInput;
78
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
79
+ /**
80
+ * @public
81
+ */
82
+ constructor(input: CreateDeploymentCommandInput);
83
+ /**
84
+ * @internal
85
+ */
86
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LaunchWizardClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateDeploymentCommandInput, CreateDeploymentCommandOutput>;
87
+ /**
88
+ * @internal
89
+ */
90
+ private serialize;
91
+ /**
92
+ * @internal
93
+ */
94
+ private deserialize;
95
+ }
@@ -0,0 +1,84 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { LaunchWizardClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LaunchWizardClient";
5
+ import { DeleteDeploymentInput, DeleteDeploymentOutput } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteDeploymentCommand}.
14
+ */
15
+ export interface DeleteDeploymentCommandInput extends DeleteDeploymentInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteDeploymentCommand}.
21
+ */
22
+ export interface DeleteDeploymentCommandOutput extends DeleteDeploymentOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Deletes a deployment.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { LaunchWizardClient, DeleteDeploymentCommand } from "@aws-sdk/client-launch-wizard"; // ES Modules import
31
+ * // const { LaunchWizardClient, DeleteDeploymentCommand } = require("@aws-sdk/client-launch-wizard"); // CommonJS import
32
+ * const client = new LaunchWizardClient(config);
33
+ * const input = { // DeleteDeploymentInput
34
+ * deploymentId: "STRING_VALUE", // required
35
+ * };
36
+ * const command = new DeleteDeploymentCommand(input);
37
+ * const response = await client.send(command);
38
+ * // { // DeleteDeploymentOutput
39
+ * // status: "COMPLETED" || "CREATING" || "DELETE_IN_PROGRESS" || "DELETE_INITIATING" || "DELETE_FAILED" || "DELETED" || "FAILED" || "IN_PROGRESS" || "VALIDATING",
40
+ * // statusReason: "STRING_VALUE",
41
+ * // };
42
+ *
43
+ * ```
44
+ *
45
+ * @param DeleteDeploymentCommandInput - {@link DeleteDeploymentCommandInput}
46
+ * @returns {@link DeleteDeploymentCommandOutput}
47
+ * @see {@link DeleteDeploymentCommandInput} for command's `input` shape.
48
+ * @see {@link DeleteDeploymentCommandOutput} for command's `response` shape.
49
+ * @see {@link LaunchWizardClientResolvedConfig | config} for LaunchWizardClient's `config` shape.
50
+ *
51
+ * @throws {@link InternalServerException} (server fault)
52
+ * <p>An internal error has occurred. Retry your request, but if the problem persists, contact
53
+ * us with details by posting a question on <a href="https://repost.aws/">re:Post</a>.</p>
54
+ *
55
+ * @throws {@link ResourceNotFoundException} (client fault)
56
+ * <p>The specified workload or deployment resource can't be found.</p>
57
+ *
58
+ * @throws {@link ValidationException} (client fault)
59
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
60
+ *
61
+ * @throws {@link LaunchWizardServiceException}
62
+ * <p>Base exception class for all service exceptions from LaunchWizard service.</p>
63
+ *
64
+ */
65
+ export declare class DeleteDeploymentCommand extends $Command<DeleteDeploymentCommandInput, DeleteDeploymentCommandOutput, LaunchWizardClientResolvedConfig> {
66
+ readonly input: DeleteDeploymentCommandInput;
67
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
68
+ /**
69
+ * @public
70
+ */
71
+ constructor(input: DeleteDeploymentCommandInput);
72
+ /**
73
+ * @internal
74
+ */
75
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LaunchWizardClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteDeploymentCommandInput, DeleteDeploymentCommandOutput>;
76
+ /**
77
+ * @internal
78
+ */
79
+ private serialize;
80
+ /**
81
+ * @internal
82
+ */
83
+ private deserialize;
84
+ }
@@ -0,0 +1,95 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { LaunchWizardClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LaunchWizardClient";
5
+ import { GetDeploymentInput, GetDeploymentOutput } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetDeploymentCommand}.
14
+ */
15
+ export interface GetDeploymentCommandInput extends GetDeploymentInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetDeploymentCommand}.
21
+ */
22
+ export interface GetDeploymentCommandOutput extends GetDeploymentOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Returns information about the deployment.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { LaunchWizardClient, GetDeploymentCommand } from "@aws-sdk/client-launch-wizard"; // ES Modules import
31
+ * // const { LaunchWizardClient, GetDeploymentCommand } = require("@aws-sdk/client-launch-wizard"); // CommonJS import
32
+ * const client = new LaunchWizardClient(config);
33
+ * const input = { // GetDeploymentInput
34
+ * deploymentId: "STRING_VALUE", // required
35
+ * };
36
+ * const command = new GetDeploymentCommand(input);
37
+ * const response = await client.send(command);
38
+ * // { // GetDeploymentOutput
39
+ * // deployment: { // DeploymentData
40
+ * // name: "STRING_VALUE",
41
+ * // id: "STRING_VALUE",
42
+ * // workloadName: "STRING_VALUE",
43
+ * // patternName: "STRING_VALUE",
44
+ * // status: "COMPLETED" || "CREATING" || "DELETE_IN_PROGRESS" || "DELETE_INITIATING" || "DELETE_FAILED" || "DELETED" || "FAILED" || "IN_PROGRESS" || "VALIDATING",
45
+ * // createdAt: new Date("TIMESTAMP"),
46
+ * // specifications: { // DeploymentSpecifications
47
+ * // "<keys>": "STRING_VALUE",
48
+ * // },
49
+ * // resourceGroup: "STRING_VALUE",
50
+ * // deletedAt: new Date("TIMESTAMP"),
51
+ * // },
52
+ * // };
53
+ *
54
+ * ```
55
+ *
56
+ * @param GetDeploymentCommandInput - {@link GetDeploymentCommandInput}
57
+ * @returns {@link GetDeploymentCommandOutput}
58
+ * @see {@link GetDeploymentCommandInput} for command's `input` shape.
59
+ * @see {@link GetDeploymentCommandOutput} for command's `response` shape.
60
+ * @see {@link LaunchWizardClientResolvedConfig | config} for LaunchWizardClient's `config` shape.
61
+ *
62
+ * @throws {@link InternalServerException} (server fault)
63
+ * <p>An internal error has occurred. Retry your request, but if the problem persists, contact
64
+ * us with details by posting a question on <a href="https://repost.aws/">re:Post</a>.</p>
65
+ *
66
+ * @throws {@link ResourceNotFoundException} (client fault)
67
+ * <p>The specified workload or deployment resource can't be found.</p>
68
+ *
69
+ * @throws {@link ValidationException} (client fault)
70
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
71
+ *
72
+ * @throws {@link LaunchWizardServiceException}
73
+ * <p>Base exception class for all service exceptions from LaunchWizard service.</p>
74
+ *
75
+ */
76
+ export declare class GetDeploymentCommand extends $Command<GetDeploymentCommandInput, GetDeploymentCommandOutput, LaunchWizardClientResolvedConfig> {
77
+ readonly input: GetDeploymentCommandInput;
78
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
79
+ /**
80
+ * @public
81
+ */
82
+ constructor(input: GetDeploymentCommandInput);
83
+ /**
84
+ * @internal
85
+ */
86
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LaunchWizardClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetDeploymentCommandInput, GetDeploymentCommandOutput>;
87
+ /**
88
+ * @internal
89
+ */
90
+ private serialize;
91
+ /**
92
+ * @internal
93
+ */
94
+ private deserialize;
95
+ }