@aws-sdk/client-backup-external 0.0.0-stage → 3.1181.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 (181) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +397 -2
  3. package/dist-cjs/index.js +1980 -0
  4. package/dist-es/BackupExternal.js +81 -0
  5. package/dist-es/BackupExternalClient.js +47 -0
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  8. package/dist-es/commandBuilder.js +6 -0
  9. package/dist-es/commands/AssociateDiskCommand.js +4 -0
  10. package/dist-es/commands/CreateApplianceCommand.js +4 -0
  11. package/dist-es/commands/CreateResourceProviderCommand.js +4 -0
  12. package/dist-es/commands/DeleteApplianceCommand.js +4 -0
  13. package/dist-es/commands/DeleteNodeCommand.js +4 -0
  14. package/dist-es/commands/DeleteResourceProviderCommand.js +4 -0
  15. package/dist-es/commands/DeleteResourceTargetCommand.js +4 -0
  16. package/dist-es/commands/GetActivationCredentialsCommand.js +4 -0
  17. package/dist-es/commands/GetAgentDownloadCommand.js +4 -0
  18. package/dist-es/commands/GetAgentUpgradeSettingsCommand.js +4 -0
  19. package/dist-es/commands/GetApplianceCommand.js +4 -0
  20. package/dist-es/commands/GetApplianceSizingRecommendationCommand.js +4 -0
  21. package/dist-es/commands/GetNodeCommand.js +4 -0
  22. package/dist-es/commands/GetResourceProviderCommand.js +4 -0
  23. package/dist-es/commands/GetResourceTargetCommand.js +4 -0
  24. package/dist-es/commands/ListAppliancesCommand.js +4 -0
  25. package/dist-es/commands/ListDisksCommand.js +4 -0
  26. package/dist-es/commands/ListNodesCommand.js +4 -0
  27. package/dist-es/commands/ListResourceProvidersCommand.js +4 -0
  28. package/dist-es/commands/ListResourceTargetsCommand.js +4 -0
  29. package/dist-es/commands/ListTagsCommand.js +4 -0
  30. package/dist-es/commands/PutAgentUpgradeSettingsCommand.js +4 -0
  31. package/dist-es/commands/StartResourceProviderAgentUpgradeCommand.js +4 -0
  32. package/dist-es/commands/StartResourceProviderMigrationCommand.js +4 -0
  33. package/dist-es/commands/StartResourceProviderSyncCommand.js +4 -0
  34. package/dist-es/commands/TagResourceCommand.js +4 -0
  35. package/dist-es/commands/UntagResourceCommand.js +4 -0
  36. package/dist-es/commands/UpdateApplianceCommand.js +4 -0
  37. package/dist-es/commands/UpdateResourceProviderCommand.js +4 -0
  38. package/dist-es/commands/UpdateResourceTargetCommand.js +4 -0
  39. package/dist-es/commands/VerifyNodesCommand.js +4 -0
  40. package/dist-es/commands/index.js +31 -0
  41. package/dist-es/endpoint/EndpointParameters.js +11 -0
  42. package/dist-es/endpoint/bdd.js +31 -0
  43. package/dist-es/endpoint/endpointResolver.js +14 -0
  44. package/dist-es/extensionConfiguration.js +1 -0
  45. package/dist-es/index.js +10 -0
  46. package/dist-es/models/BackupExternalServiceException.js +9 -0
  47. package/dist-es/models/enums.js +145 -0
  48. package/dist-es/models/errors.js +116 -0
  49. package/dist-es/models/models_0.js +1 -0
  50. package/dist-es/pagination/Interfaces.js +1 -0
  51. package/dist-es/pagination/ListAppliancesPaginator.js +4 -0
  52. package/dist-es/pagination/ListDisksPaginator.js +4 -0
  53. package/dist-es/pagination/ListNodesPaginator.js +4 -0
  54. package/dist-es/pagination/ListResourceProvidersPaginator.js +4 -0
  55. package/dist-es/pagination/ListResourceTargetsPaginator.js +4 -0
  56. package/dist-es/pagination/index.js +6 -0
  57. package/dist-es/runtimeConfig.browser.js +29 -0
  58. package/dist-es/runtimeConfig.js +44 -0
  59. package/dist-es/runtimeConfig.native.js +9 -0
  60. package/dist-es/runtimeConfig.shared.js +40 -0
  61. package/dist-es/runtimeExtensions.js +9 -0
  62. package/dist-es/schemas/schemas_0.js +1083 -0
  63. package/dist-types/BackupExternal.d.ts +271 -0
  64. package/dist-types/BackupExternalClient.d.ts +218 -0
  65. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  66. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  67. package/dist-types/commandBuilder.d.ts +18 -0
  68. package/dist-types/commands/AssociateDiskCommand.d.ts +90 -0
  69. package/dist-types/commands/CreateApplianceCommand.d.ts +118 -0
  70. package/dist-types/commands/CreateResourceProviderCommand.d.ts +176 -0
  71. package/dist-types/commands/DeleteApplianceCommand.d.ts +91 -0
  72. package/dist-types/commands/DeleteNodeCommand.d.ts +92 -0
  73. package/dist-types/commands/DeleteResourceProviderCommand.d.ts +87 -0
  74. package/dist-types/commands/DeleteResourceTargetCommand.d.ts +87 -0
  75. package/dist-types/commands/GetActivationCredentialsCommand.d.ts +92 -0
  76. package/dist-types/commands/GetAgentDownloadCommand.d.ts +93 -0
  77. package/dist-types/commands/GetAgentUpgradeSettingsCommand.d.ts +91 -0
  78. package/dist-types/commands/GetApplianceCommand.d.ts +123 -0
  79. package/dist-types/commands/GetApplianceSizingRecommendationCommand.d.ts +170 -0
  80. package/dist-types/commands/GetNodeCommand.d.ts +106 -0
  81. package/dist-types/commands/GetResourceProviderCommand.d.ts +205 -0
  82. package/dist-types/commands/GetResourceTargetCommand.d.ts +172 -0
  83. package/dist-types/commands/ListAppliancesCommand.d.ts +108 -0
  84. package/dist-types/commands/ListDisksCommand.d.ts +103 -0
  85. package/dist-types/commands/ListNodesCommand.d.ts +110 -0
  86. package/dist-types/commands/ListResourceProvidersCommand.d.ts +113 -0
  87. package/dist-types/commands/ListResourceTargetsCommand.d.ts +109 -0
  88. package/dist-types/commands/ListTagsCommand.d.ts +91 -0
  89. package/dist-types/commands/PutAgentUpgradeSettingsCommand.d.ts +100 -0
  90. package/dist-types/commands/StartResourceProviderAgentUpgradeCommand.d.ts +90 -0
  91. package/dist-types/commands/StartResourceProviderMigrationCommand.d.ts +91 -0
  92. package/dist-types/commands/StartResourceProviderSyncCommand.d.ts +90 -0
  93. package/dist-types/commands/TagResourceCommand.d.ts +93 -0
  94. package/dist-types/commands/UntagResourceCommand.d.ts +90 -0
  95. package/dist-types/commands/UpdateApplianceCommand.d.ts +107 -0
  96. package/dist-types/commands/UpdateResourceProviderCommand.d.ts +165 -0
  97. package/dist-types/commands/UpdateResourceTargetCommand.d.ts +126 -0
  98. package/dist-types/commands/VerifyNodesCommand.d.ts +98 -0
  99. package/dist-types/commands/index.d.ts +31 -0
  100. package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
  101. package/dist-types/endpoint/bdd.d.ts +2 -0
  102. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  103. package/dist-types/extensionConfiguration.d.ts +9 -0
  104. package/dist-types/index.d.ts +18 -0
  105. package/dist-types/models/BackupExternalServiceException.d.ts +15 -0
  106. package/dist-types/models/enums.d.ts +354 -0
  107. package/dist-types/models/errors.d.ts +121 -0
  108. package/dist-types/models/models_0.d.ts +3023 -0
  109. package/dist-types/pagination/Interfaces.d.ts +8 -0
  110. package/dist-types/pagination/ListAppliancesPaginator.d.ts +7 -0
  111. package/dist-types/pagination/ListDisksPaginator.d.ts +7 -0
  112. package/dist-types/pagination/ListNodesPaginator.d.ts +7 -0
  113. package/dist-types/pagination/ListResourceProvidersPaginator.d.ts +7 -0
  114. package/dist-types/pagination/ListResourceTargetsPaginator.d.ts +7 -0
  115. package/dist-types/pagination/index.d.ts +6 -0
  116. package/dist-types/runtimeConfig.browser.d.ts +57 -0
  117. package/dist-types/runtimeConfig.d.ts +58 -0
  118. package/dist-types/runtimeConfig.native.d.ts +56 -0
  119. package/dist-types/runtimeConfig.shared.d.ts +28 -0
  120. package/dist-types/runtimeExtensions.d.ts +17 -0
  121. package/dist-types/schemas/schemas_0.d.ts +157 -0
  122. package/dist-types/ts3.4/BackupExternal.d.ts +551 -0
  123. package/dist-types/ts3.4/BackupExternalClient.d.ts +266 -0
  124. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
  125. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
  126. package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
  127. package/dist-types/ts3.4/commands/AssociateDiskCommand.d.ts +38 -0
  128. package/dist-types/ts3.4/commands/CreateApplianceCommand.d.ts +38 -0
  129. package/dist-types/ts3.4/commands/CreateResourceProviderCommand.d.ts +39 -0
  130. package/dist-types/ts3.4/commands/DeleteApplianceCommand.d.ts +38 -0
  131. package/dist-types/ts3.4/commands/DeleteNodeCommand.d.ts +38 -0
  132. package/dist-types/ts3.4/commands/DeleteResourceProviderCommand.d.ts +39 -0
  133. package/dist-types/ts3.4/commands/DeleteResourceTargetCommand.d.ts +39 -0
  134. package/dist-types/ts3.4/commands/GetActivationCredentialsCommand.d.ts +39 -0
  135. package/dist-types/ts3.4/commands/GetAgentDownloadCommand.d.ts +38 -0
  136. package/dist-types/ts3.4/commands/GetAgentUpgradeSettingsCommand.d.ts +39 -0
  137. package/dist-types/ts3.4/commands/GetApplianceCommand.d.ts +38 -0
  138. package/dist-types/ts3.4/commands/GetApplianceSizingRecommendationCommand.d.ts +42 -0
  139. package/dist-types/ts3.4/commands/GetNodeCommand.d.ts +38 -0
  140. package/dist-types/ts3.4/commands/GetResourceProviderCommand.d.ts +39 -0
  141. package/dist-types/ts3.4/commands/GetResourceTargetCommand.d.ts +38 -0
  142. package/dist-types/ts3.4/commands/ListAppliancesCommand.d.ts +38 -0
  143. package/dist-types/ts3.4/commands/ListDisksCommand.d.ts +38 -0
  144. package/dist-types/ts3.4/commands/ListNodesCommand.d.ts +38 -0
  145. package/dist-types/ts3.4/commands/ListResourceProvidersCommand.d.ts +39 -0
  146. package/dist-types/ts3.4/commands/ListResourceTargetsCommand.d.ts +39 -0
  147. package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +38 -0
  148. package/dist-types/ts3.4/commands/PutAgentUpgradeSettingsCommand.d.ts +39 -0
  149. package/dist-types/ts3.4/commands/StartResourceProviderAgentUpgradeCommand.d.ts +42 -0
  150. package/dist-types/ts3.4/commands/StartResourceProviderMigrationCommand.d.ts +42 -0
  151. package/dist-types/ts3.4/commands/StartResourceProviderSyncCommand.d.ts +42 -0
  152. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
  153. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  154. package/dist-types/ts3.4/commands/UpdateApplianceCommand.d.ts +38 -0
  155. package/dist-types/ts3.4/commands/UpdateResourceProviderCommand.d.ts +39 -0
  156. package/dist-types/ts3.4/commands/UpdateResourceTargetCommand.d.ts +39 -0
  157. package/dist-types/ts3.4/commands/VerifyNodesCommand.d.ts +38 -0
  158. package/dist-types/ts3.4/commands/index.d.ts +31 -0
  159. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  160. package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  161. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  162. package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
  163. package/dist-types/ts3.4/index.d.ts +13 -0
  164. package/dist-types/ts3.4/models/BackupExternalServiceException.d.ts +10 -0
  165. package/dist-types/ts3.4/models/enums.d.ts +183 -0
  166. package/dist-types/ts3.4/models/errors.d.ts +59 -0
  167. package/dist-types/ts3.4/models/models_0.d.ts +991 -0
  168. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  169. package/dist-types/ts3.4/pagination/ListAppliancesPaginator.d.ts +11 -0
  170. package/dist-types/ts3.4/pagination/ListDisksPaginator.d.ts +8 -0
  171. package/dist-types/ts3.4/pagination/ListNodesPaginator.d.ts +8 -0
  172. package/dist-types/ts3.4/pagination/ListResourceProvidersPaginator.d.ts +11 -0
  173. package/dist-types/ts3.4/pagination/ListResourceTargetsPaginator.d.ts +11 -0
  174. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  175. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
  176. package/dist-types/ts3.4/runtimeConfig.d.ts +96 -0
  177. package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
  178. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
  179. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  180. package/dist-types/ts3.4/schemas/schemas_0.d.ts +157 -0
  181. package/package.json +67 -4
@@ -0,0 +1,81 @@
1
+ import { createAggregatedClient } from "@smithy/core/client";
2
+ import { BackupExternalClient } from "./BackupExternalClient";
3
+ import { AssociateDiskCommand, } from "./commands/AssociateDiskCommand";
4
+ import { CreateApplianceCommand, } from "./commands/CreateApplianceCommand";
5
+ import { CreateResourceProviderCommand, } from "./commands/CreateResourceProviderCommand";
6
+ import { DeleteApplianceCommand, } from "./commands/DeleteApplianceCommand";
7
+ import { DeleteNodeCommand, } from "./commands/DeleteNodeCommand";
8
+ import { DeleteResourceProviderCommand, } from "./commands/DeleteResourceProviderCommand";
9
+ import { DeleteResourceTargetCommand, } from "./commands/DeleteResourceTargetCommand";
10
+ import { GetActivationCredentialsCommand, } from "./commands/GetActivationCredentialsCommand";
11
+ import { GetAgentDownloadCommand, } from "./commands/GetAgentDownloadCommand";
12
+ import { GetAgentUpgradeSettingsCommand, } from "./commands/GetAgentUpgradeSettingsCommand";
13
+ import { GetApplianceCommand, } from "./commands/GetApplianceCommand";
14
+ import { GetApplianceSizingRecommendationCommand, } from "./commands/GetApplianceSizingRecommendationCommand";
15
+ import { GetNodeCommand } from "./commands/GetNodeCommand";
16
+ import { GetResourceProviderCommand, } from "./commands/GetResourceProviderCommand";
17
+ import { GetResourceTargetCommand, } from "./commands/GetResourceTargetCommand";
18
+ import { ListAppliancesCommand, } from "./commands/ListAppliancesCommand";
19
+ import { ListDisksCommand } from "./commands/ListDisksCommand";
20
+ import { ListNodesCommand } from "./commands/ListNodesCommand";
21
+ import { ListResourceProvidersCommand, } from "./commands/ListResourceProvidersCommand";
22
+ import { ListResourceTargetsCommand, } from "./commands/ListResourceTargetsCommand";
23
+ import { ListTagsCommand } from "./commands/ListTagsCommand";
24
+ import { PutAgentUpgradeSettingsCommand, } from "./commands/PutAgentUpgradeSettingsCommand";
25
+ import { StartResourceProviderAgentUpgradeCommand, } from "./commands/StartResourceProviderAgentUpgradeCommand";
26
+ import { StartResourceProviderMigrationCommand, } from "./commands/StartResourceProviderMigrationCommand";
27
+ import { StartResourceProviderSyncCommand, } from "./commands/StartResourceProviderSyncCommand";
28
+ import { TagResourceCommand, } from "./commands/TagResourceCommand";
29
+ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
30
+ import { UpdateApplianceCommand, } from "./commands/UpdateApplianceCommand";
31
+ import { UpdateResourceProviderCommand, } from "./commands/UpdateResourceProviderCommand";
32
+ import { UpdateResourceTargetCommand, } from "./commands/UpdateResourceTargetCommand";
33
+ import { VerifyNodesCommand, } from "./commands/VerifyNodesCommand";
34
+ import { paginateListAppliances } from "./pagination/ListAppliancesPaginator";
35
+ import { paginateListDisks } from "./pagination/ListDisksPaginator";
36
+ import { paginateListNodes } from "./pagination/ListNodesPaginator";
37
+ import { paginateListResourceProviders } from "./pagination/ListResourceProvidersPaginator";
38
+ import { paginateListResourceTargets } from "./pagination/ListResourceTargetsPaginator";
39
+ const commands = {
40
+ AssociateDiskCommand,
41
+ CreateApplianceCommand,
42
+ CreateResourceProviderCommand,
43
+ DeleteApplianceCommand,
44
+ DeleteNodeCommand,
45
+ DeleteResourceProviderCommand,
46
+ DeleteResourceTargetCommand,
47
+ GetActivationCredentialsCommand,
48
+ GetAgentDownloadCommand,
49
+ GetAgentUpgradeSettingsCommand,
50
+ GetApplianceCommand,
51
+ GetApplianceSizingRecommendationCommand,
52
+ GetNodeCommand,
53
+ GetResourceProviderCommand,
54
+ GetResourceTargetCommand,
55
+ ListAppliancesCommand,
56
+ ListDisksCommand,
57
+ ListNodesCommand,
58
+ ListResourceProvidersCommand,
59
+ ListResourceTargetsCommand,
60
+ ListTagsCommand,
61
+ PutAgentUpgradeSettingsCommand,
62
+ StartResourceProviderAgentUpgradeCommand,
63
+ StartResourceProviderMigrationCommand,
64
+ StartResourceProviderSyncCommand,
65
+ TagResourceCommand,
66
+ UntagResourceCommand,
67
+ UpdateApplianceCommand,
68
+ UpdateResourceProviderCommand,
69
+ UpdateResourceTargetCommand,
70
+ VerifyNodesCommand,
71
+ };
72
+ const paginators = {
73
+ paginateListAppliances,
74
+ paginateListDisks,
75
+ paginateListNodes,
76
+ paginateListResourceProviders,
77
+ paginateListResourceTargets,
78
+ };
79
+ export class BackupExternal extends BackupExternalClient {
80
+ }
81
+ createAggregatedClient(commands, BackupExternal, { paginators });
@@ -0,0 +1,47 @@
1
+ import { getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getUserAgentPlugin, resolveHostHeaderConfig, resolveUserAgentConfig, } from "@aws-sdk/core/client";
2
+ import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
3
+ import { Client as __Client, } from "@smithy/core/client";
4
+ import { resolveRegionConfig } from "@smithy/core/config";
5
+ import { resolveEndpointConfig } from "@smithy/core/endpoints";
6
+ import { getContentLengthPlugin } from "@smithy/core/protocols";
7
+ import { getRetryPlugin, resolveRetryConfig, } from "@smithy/core/retry";
8
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
9
+ import { defaultBackupExternalHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
10
+ import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
11
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
+ import { resolveRuntimeExtensions } from "./runtimeExtensions";
13
+ export { __Client };
14
+ export class BackupExternalClient extends __Client {
15
+ config;
16
+ constructor(...[configuration]) {
17
+ const _config_0 = __getRuntimeConfig(configuration || {});
18
+ super(_config_0);
19
+ this.initConfig = _config_0;
20
+ const _config_1 = resolveClientEndpointParameters(_config_0);
21
+ const _config_2 = resolveUserAgentConfig(_config_1);
22
+ const _config_3 = resolveRetryConfig(_config_2);
23
+ const _config_4 = resolveRegionConfig(_config_3);
24
+ const _config_5 = resolveHostHeaderConfig(_config_4);
25
+ const _config_6 = resolveEndpointConfig(_config_5);
26
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
27
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
28
+ this.config = _config_8;
29
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
30
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
31
+ this.middlewareStack.use(getRetryPlugin(this.config));
32
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
33
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
34
+ this.middlewareStack.use(getLoggerPlugin(this.config));
35
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
36
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
37
+ httpAuthSchemeParametersProvider: defaultBackupExternalHttpAuthSchemeParametersProvider,
38
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
39
+ "aws.auth#sigv4": config.credentials,
40
+ }),
41
+ }));
42
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
43
+ }
44
+ destroy() {
45
+ super.destroy();
46
+ }
47
+ }
@@ -0,0 +1,38 @@
1
+ export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
2
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
3
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
4
+ let _credentials = runtimeConfig.credentials;
5
+ return {
6
+ setHttpAuthScheme(httpAuthScheme) {
7
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
8
+ if (index === -1) {
9
+ _httpAuthSchemes.push(httpAuthScheme);
10
+ }
11
+ else {
12
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
13
+ }
14
+ },
15
+ httpAuthSchemes() {
16
+ return _httpAuthSchemes;
17
+ },
18
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
19
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
20
+ },
21
+ httpAuthSchemeProvider() {
22
+ return _httpAuthSchemeProvider;
23
+ },
24
+ setCredentials(credentials) {
25
+ _credentials = credentials;
26
+ },
27
+ credentials() {
28
+ return _credentials;
29
+ },
30
+ };
31
+ };
32
+ export const resolveHttpAuthRuntimeConfig = (config) => {
33
+ return {
34
+ httpAuthSchemes: config.httpAuthSchemes(),
35
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
36
+ credentials: config.credentials(),
37
+ };
38
+ };
@@ -0,0 +1,40 @@
1
+ import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core/httpAuthSchemes";
2
+ import { getSmithyContext, normalizeProvider } from "@smithy/core/client";
3
+ export const defaultBackupExternalHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
+ return {
5
+ operation: getSmithyContext(context).operation,
6
+ region: await normalizeProvider(config.region)() || (() => {
7
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
+ })(),
9
+ };
10
+ };
11
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
12
+ return {
13
+ schemeId: "aws.auth#sigv4",
14
+ signingProperties: {
15
+ name: "backup-external",
16
+ region: authParameters.region,
17
+ },
18
+ propertiesExtractor: (config, context) => ({
19
+ signingProperties: {
20
+ config,
21
+ context,
22
+ },
23
+ }),
24
+ };
25
+ }
26
+ export const defaultBackupExternalHttpAuthSchemeProvider = (authParameters) => {
27
+ const options = [];
28
+ switch (authParameters.operation) {
29
+ default: {
30
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
31
+ }
32
+ }
33
+ return options;
34
+ };
35
+ export const resolveHttpAuthSchemeConfig = (config) => {
36
+ const config_0 = resolveAwsSdkSigV4Config(config);
37
+ return Object.assign(config_0, {
38
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
39
+ });
40
+ };
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "BackupExternal", "BackupExternalClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { AssociateDisk$ } from "../schemas/schemas_0";
3
+ export class AssociateDiskCommand extends command(_ep0, _mw0, "AssociateDisk", AssociateDisk$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { CreateAppliance$ } from "../schemas/schemas_0";
3
+ export class CreateApplianceCommand extends command(_ep0, _mw0, "CreateAppliance", CreateAppliance$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { CreateResourceProvider$ } from "../schemas/schemas_0";
3
+ export class CreateResourceProviderCommand extends command(_ep0, _mw0, "CreateResourceProvider", CreateResourceProvider$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { DeleteAppliance$ } from "../schemas/schemas_0";
3
+ export class DeleteApplianceCommand extends command(_ep0, _mw0, "DeleteAppliance", DeleteAppliance$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { DeleteNode$ } from "../schemas/schemas_0";
3
+ export class DeleteNodeCommand extends command(_ep0, _mw0, "DeleteNode", DeleteNode$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { DeleteResourceProvider$ } from "../schemas/schemas_0";
3
+ export class DeleteResourceProviderCommand extends command(_ep0, _mw0, "DeleteResourceProvider", DeleteResourceProvider$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { DeleteResourceTarget$ } from "../schemas/schemas_0";
3
+ export class DeleteResourceTargetCommand extends command(_ep0, _mw0, "DeleteResourceTarget", DeleteResourceTarget$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetActivationCredentials$ } from "../schemas/schemas_0";
3
+ export class GetActivationCredentialsCommand extends command(_ep0, _mw0, "GetActivationCredentials", GetActivationCredentials$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetAgentDownload$ } from "../schemas/schemas_0";
3
+ export class GetAgentDownloadCommand extends command(_ep0, _mw0, "GetAgentDownload", GetAgentDownload$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetAgentUpgradeSettings$ } from "../schemas/schemas_0";
3
+ export class GetAgentUpgradeSettingsCommand extends command(_ep0, _mw0, "GetAgentUpgradeSettings", GetAgentUpgradeSettings$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetAppliance$ } from "../schemas/schemas_0";
3
+ export class GetApplianceCommand extends command(_ep0, _mw0, "GetAppliance", GetAppliance$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetApplianceSizingRecommendation$ } from "../schemas/schemas_0";
3
+ export class GetApplianceSizingRecommendationCommand extends command(_ep0, _mw0, "GetApplianceSizingRecommendation", GetApplianceSizingRecommendation$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetNode$ } from "../schemas/schemas_0";
3
+ export class GetNodeCommand extends command(_ep0, _mw0, "GetNode", GetNode$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetResourceProvider$ } from "../schemas/schemas_0";
3
+ export class GetResourceProviderCommand extends command(_ep0, _mw0, "GetResourceProvider", GetResourceProvider$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetResourceTarget$ } from "../schemas/schemas_0";
3
+ export class GetResourceTargetCommand extends command(_ep0, _mw0, "GetResourceTarget", GetResourceTarget$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListAppliances$ } from "../schemas/schemas_0";
3
+ export class ListAppliancesCommand extends command(_ep0, _mw0, "ListAppliances", ListAppliances$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListDisks$ } from "../schemas/schemas_0";
3
+ export class ListDisksCommand extends command(_ep0, _mw0, "ListDisks", ListDisks$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListNodes$ } from "../schemas/schemas_0";
3
+ export class ListNodesCommand extends command(_ep0, _mw0, "ListNodes", ListNodes$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListResourceProviders$ } from "../schemas/schemas_0";
3
+ export class ListResourceProvidersCommand extends command(_ep0, _mw0, "ListResourceProviders", ListResourceProviders$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListResourceTargets$ } from "../schemas/schemas_0";
3
+ export class ListResourceTargetsCommand extends command(_ep0, _mw0, "ListResourceTargets", ListResourceTargets$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListTags$ } from "../schemas/schemas_0";
3
+ export class ListTagsCommand extends command(_ep0, _mw0, "ListTags", ListTags$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { PutAgentUpgradeSettings$ } from "../schemas/schemas_0";
3
+ export class PutAgentUpgradeSettingsCommand extends command(_ep0, _mw0, "PutAgentUpgradeSettings", PutAgentUpgradeSettings$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { StartResourceProviderAgentUpgrade$ } from "../schemas/schemas_0";
3
+ export class StartResourceProviderAgentUpgradeCommand extends command(_ep0, _mw0, "StartResourceProviderAgentUpgrade", StartResourceProviderAgentUpgrade$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { StartResourceProviderMigration$ } from "../schemas/schemas_0";
3
+ export class StartResourceProviderMigrationCommand extends command(_ep0, _mw0, "StartResourceProviderMigration", StartResourceProviderMigration$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { StartResourceProviderSync$ } from "../schemas/schemas_0";
3
+ export class StartResourceProviderSyncCommand extends command(_ep0, _mw0, "StartResourceProviderSync", StartResourceProviderSync$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { TagResource$ } from "../schemas/schemas_0";
3
+ export class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { UntagResource$ } from "../schemas/schemas_0";
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { UpdateAppliance$ } from "../schemas/schemas_0";
3
+ export class UpdateApplianceCommand extends command(_ep0, _mw0, "UpdateAppliance", UpdateAppliance$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { UpdateResourceProvider$ } from "../schemas/schemas_0";
3
+ export class UpdateResourceProviderCommand extends command(_ep0, _mw0, "UpdateResourceProvider", UpdateResourceProvider$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { UpdateResourceTarget$ } from "../schemas/schemas_0";
3
+ export class UpdateResourceTargetCommand extends command(_ep0, _mw0, "UpdateResourceTarget", UpdateResourceTarget$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { VerifyNodes$ } from "../schemas/schemas_0";
3
+ export class VerifyNodesCommand extends command(_ep0, _mw0, "VerifyNodes", VerifyNodes$) {
4
+ }
@@ -0,0 +1,31 @@
1
+ export * from "./AssociateDiskCommand";
2
+ export * from "./CreateApplianceCommand";
3
+ export * from "./CreateResourceProviderCommand";
4
+ export * from "./DeleteApplianceCommand";
5
+ export * from "./DeleteNodeCommand";
6
+ export * from "./DeleteResourceProviderCommand";
7
+ export * from "./DeleteResourceTargetCommand";
8
+ export * from "./GetActivationCredentialsCommand";
9
+ export * from "./GetAgentDownloadCommand";
10
+ export * from "./GetAgentUpgradeSettingsCommand";
11
+ export * from "./GetApplianceCommand";
12
+ export * from "./GetApplianceSizingRecommendationCommand";
13
+ export * from "./GetNodeCommand";
14
+ export * from "./GetResourceProviderCommand";
15
+ export * from "./GetResourceTargetCommand";
16
+ export * from "./ListAppliancesCommand";
17
+ export * from "./ListDisksCommand";
18
+ export * from "./ListNodesCommand";
19
+ export * from "./ListResourceProvidersCommand";
20
+ export * from "./ListResourceTargetsCommand";
21
+ export * from "./ListTagsCommand";
22
+ export * from "./PutAgentUpgradeSettingsCommand";
23
+ export * from "./StartResourceProviderAgentUpgradeCommand";
24
+ export * from "./StartResourceProviderMigrationCommand";
25
+ export * from "./StartResourceProviderSyncCommand";
26
+ export * from "./TagResourceCommand";
27
+ export * from "./UntagResourceCommand";
28
+ export * from "./UpdateApplianceCommand";
29
+ export * from "./UpdateResourceProviderCommand";
30
+ export * from "./UpdateResourceTargetCommand";
31
+ export * from "./VerifyNodesCommand";
@@ -0,0 +1,11 @@
1
+ export const resolveClientEndpointParameters = (options) => {
2
+ return Object.assign(options, {
3
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
4
+ defaultSigningName: "backup-external",
5
+ });
6
+ };
7
+ export const commonParams = {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ };
@@ -0,0 +1,31 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
+ const a = "isSet", b = "PartitionResult", c = { "ref": "Endpoint" }, d = [{ "ref": "Region" }];
3
+ const _data = {
4
+ conditions: [
5
+ [a, [c]],
6
+ [a, d],
7
+ ["aws.partition", d, b],
8
+ ["booleanEquals", [{ ref: "UseFIPS" }, true]],
9
+ ["stringEquals", [{ fn: "getAttr", argv: [{ ref: b }, "name"] }, "aws"]]
10
+ ],
11
+ results: [
12
+ [-1],
13
+ [-1, "Invalid Configuration: FIPS and custom endpoint are not supported"],
14
+ [c, {}],
15
+ ["https://backup-external.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],
16
+ ["https://backup-external-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],
17
+ [-1, "Invalid Configuration: Missing Region"]
18
+ ]
19
+ };
20
+ const root = 2;
21
+ const r = 100_000_000;
22
+ const nodes = new Int32Array([
23
+ -1, 1, -1,
24
+ 0, 7, 3,
25
+ 1, 4, r + 5,
26
+ 2, 5, r + 5,
27
+ 3, 6, r + 3,
28
+ 4, r + 3, r + 4,
29
+ 3, r + 1, r + 2,
30
+ ]);
31
+ export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -0,0 +1,14 @@
1
+ import { awsEndpointFunctions } from "@aws-sdk/core/client";
2
+ import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/core/endpoints";
3
+ import { bdd } from "./bdd";
4
+ const cache = new EndpointCache({
5
+ size: 50,
6
+ params: ["Endpoint", "Region", "UseFIPS"],
7
+ });
8
+ export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
10
+ endpointParams: endpointParams,
11
+ logger: context.logger,
12
+ }));
13
+ };
14
+ customEndpointFunctions.aws = awsEndpointFunctions;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ export * from "./BackupExternalClient";
2
+ export * from "./BackupExternal";
3
+ export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
5
+ export * from "./pagination";
6
+ export * from "./schemas/schemas_0";
7
+ export * from "./models/enums";
8
+ export * from "./models/errors";
9
+ export * from "./models/models_0";
10
+ export { BackupExternalServiceException } from "./models/BackupExternalServiceException";
@@ -0,0 +1,9 @@
1
+ import { ServiceException as __ServiceException, } from "@smithy/core/client";
2
+ export { __ServiceException };
3
+ export class BackupExternalServiceException extends __ServiceException {
4
+ static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.backupexternal#BackupExternalServiceException";
5
+ constructor(options) {
6
+ super(options);
7
+ Object.setPrototypeOf(this, BackupExternalServiceException.prototype);
8
+ }
9
+ }