@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.
- package/LICENSE +201 -0
- package/README.md +397 -2
- package/dist-cjs/index.js +1980 -0
- package/dist-es/BackupExternal.js +81 -0
- package/dist-es/BackupExternalClient.js +47 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/AssociateDiskCommand.js +4 -0
- package/dist-es/commands/CreateApplianceCommand.js +4 -0
- package/dist-es/commands/CreateResourceProviderCommand.js +4 -0
- package/dist-es/commands/DeleteApplianceCommand.js +4 -0
- package/dist-es/commands/DeleteNodeCommand.js +4 -0
- package/dist-es/commands/DeleteResourceProviderCommand.js +4 -0
- package/dist-es/commands/DeleteResourceTargetCommand.js +4 -0
- package/dist-es/commands/GetActivationCredentialsCommand.js +4 -0
- package/dist-es/commands/GetAgentDownloadCommand.js +4 -0
- package/dist-es/commands/GetAgentUpgradeSettingsCommand.js +4 -0
- package/dist-es/commands/GetApplianceCommand.js +4 -0
- package/dist-es/commands/GetApplianceSizingRecommendationCommand.js +4 -0
- package/dist-es/commands/GetNodeCommand.js +4 -0
- package/dist-es/commands/GetResourceProviderCommand.js +4 -0
- package/dist-es/commands/GetResourceTargetCommand.js +4 -0
- package/dist-es/commands/ListAppliancesCommand.js +4 -0
- package/dist-es/commands/ListDisksCommand.js +4 -0
- package/dist-es/commands/ListNodesCommand.js +4 -0
- package/dist-es/commands/ListResourceProvidersCommand.js +4 -0
- package/dist-es/commands/ListResourceTargetsCommand.js +4 -0
- package/dist-es/commands/ListTagsCommand.js +4 -0
- package/dist-es/commands/PutAgentUpgradeSettingsCommand.js +4 -0
- package/dist-es/commands/StartResourceProviderAgentUpgradeCommand.js +4 -0
- package/dist-es/commands/StartResourceProviderMigrationCommand.js +4 -0
- package/dist-es/commands/StartResourceProviderSyncCommand.js +4 -0
- package/dist-es/commands/TagResourceCommand.js +4 -0
- package/dist-es/commands/UntagResourceCommand.js +4 -0
- package/dist-es/commands/UpdateApplianceCommand.js +4 -0
- package/dist-es/commands/UpdateResourceProviderCommand.js +4 -0
- package/dist-es/commands/UpdateResourceTargetCommand.js +4 -0
- package/dist-es/commands/VerifyNodesCommand.js +4 -0
- package/dist-es/commands/index.js +31 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/bdd.js +31 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +10 -0
- package/dist-es/models/BackupExternalServiceException.js +9 -0
- package/dist-es/models/enums.js +145 -0
- package/dist-es/models/errors.js +116 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAppliancesPaginator.js +4 -0
- package/dist-es/pagination/ListDisksPaginator.js +4 -0
- package/dist-es/pagination/ListNodesPaginator.js +4 -0
- package/dist-es/pagination/ListResourceProvidersPaginator.js +4 -0
- package/dist-es/pagination/ListResourceTargetsPaginator.js +4 -0
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/runtimeConfig.browser.js +29 -0
- package/dist-es/runtimeConfig.js +44 -0
- package/dist-es/runtimeConfig.native.js +9 -0
- package/dist-es/runtimeConfig.shared.js +40 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +1083 -0
- package/dist-types/BackupExternal.d.ts +271 -0
- package/dist-types/BackupExternalClient.d.ts +218 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/AssociateDiskCommand.d.ts +90 -0
- package/dist-types/commands/CreateApplianceCommand.d.ts +118 -0
- package/dist-types/commands/CreateResourceProviderCommand.d.ts +176 -0
- package/dist-types/commands/DeleteApplianceCommand.d.ts +91 -0
- package/dist-types/commands/DeleteNodeCommand.d.ts +92 -0
- package/dist-types/commands/DeleteResourceProviderCommand.d.ts +87 -0
- package/dist-types/commands/DeleteResourceTargetCommand.d.ts +87 -0
- package/dist-types/commands/GetActivationCredentialsCommand.d.ts +92 -0
- package/dist-types/commands/GetAgentDownloadCommand.d.ts +93 -0
- package/dist-types/commands/GetAgentUpgradeSettingsCommand.d.ts +91 -0
- package/dist-types/commands/GetApplianceCommand.d.ts +123 -0
- package/dist-types/commands/GetApplianceSizingRecommendationCommand.d.ts +170 -0
- package/dist-types/commands/GetNodeCommand.d.ts +106 -0
- package/dist-types/commands/GetResourceProviderCommand.d.ts +205 -0
- package/dist-types/commands/GetResourceTargetCommand.d.ts +172 -0
- package/dist-types/commands/ListAppliancesCommand.d.ts +108 -0
- package/dist-types/commands/ListDisksCommand.d.ts +103 -0
- package/dist-types/commands/ListNodesCommand.d.ts +110 -0
- package/dist-types/commands/ListResourceProvidersCommand.d.ts +113 -0
- package/dist-types/commands/ListResourceTargetsCommand.d.ts +109 -0
- package/dist-types/commands/ListTagsCommand.d.ts +91 -0
- package/dist-types/commands/PutAgentUpgradeSettingsCommand.d.ts +100 -0
- package/dist-types/commands/StartResourceProviderAgentUpgradeCommand.d.ts +90 -0
- package/dist-types/commands/StartResourceProviderMigrationCommand.d.ts +91 -0
- package/dist-types/commands/StartResourceProviderSyncCommand.d.ts +90 -0
- package/dist-types/commands/TagResourceCommand.d.ts +93 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +90 -0
- package/dist-types/commands/UpdateApplianceCommand.d.ts +107 -0
- package/dist-types/commands/UpdateResourceProviderCommand.d.ts +165 -0
- package/dist-types/commands/UpdateResourceTargetCommand.d.ts +126 -0
- package/dist-types/commands/VerifyNodesCommand.d.ts +98 -0
- package/dist-types/commands/index.d.ts +31 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +18 -0
- package/dist-types/models/BackupExternalServiceException.d.ts +15 -0
- package/dist-types/models/enums.d.ts +354 -0
- package/dist-types/models/errors.d.ts +121 -0
- package/dist-types/models/models_0.d.ts +3023 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListAppliancesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListDisksPaginator.d.ts +7 -0
- package/dist-types/pagination/ListNodesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListResourceProvidersPaginator.d.ts +7 -0
- package/dist-types/pagination/ListResourceTargetsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/runtimeConfig.browser.d.ts +57 -0
- package/dist-types/runtimeConfig.d.ts +58 -0
- package/dist-types/runtimeConfig.native.d.ts +56 -0
- package/dist-types/runtimeConfig.shared.d.ts +28 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +157 -0
- package/dist-types/ts3.4/BackupExternal.d.ts +551 -0
- package/dist-types/ts3.4/BackupExternalClient.d.ts +266 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
- package/dist-types/ts3.4/commands/AssociateDiskCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateApplianceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateResourceProviderCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteApplianceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteNodeCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteResourceProviderCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteResourceTargetCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetActivationCredentialsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetAgentDownloadCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetAgentUpgradeSettingsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetApplianceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetApplianceSizingRecommendationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetNodeCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetResourceProviderCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetResourceTargetCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListAppliancesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListDisksCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListNodesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListResourceProvidersCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListResourceTargetsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/PutAgentUpgradeSettingsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/StartResourceProviderAgentUpgradeCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartResourceProviderMigrationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartResourceProviderSyncCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateApplianceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateResourceProviderCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateResourceTargetCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/VerifyNodesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +31 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
- package/dist-types/ts3.4/index.d.ts +13 -0
- package/dist-types/ts3.4/models/BackupExternalServiceException.d.ts +10 -0
- package/dist-types/ts3.4/models/enums.d.ts +183 -0
- package/dist-types/ts3.4/models/errors.d.ts +59 -0
- package/dist-types/ts3.4/models/models_0.d.ts +991 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListAppliancesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDisksPaginator.d.ts +8 -0
- package/dist-types/ts3.4/pagination/ListNodesPaginator.d.ts +8 -0
- package/dist-types/ts3.4/pagination/ListResourceProvidersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListResourceTargetsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +157 -0
- 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 { 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 { 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,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 {};
|
package/dist-es/index.js
ADDED
|
@@ -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
|
+
}
|