@aws-sdk/client-resiliencehubv2 3.1056.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 +538 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
- package/dist-cjs/endpoint/bdd.js +49 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/index.js +1357 -0
- package/dist-cjs/models/Resiliencehubv2ServiceException.js +12 -0
- package/dist-cjs/models/errors.js +105 -0
- package/dist-cjs/runtimeConfig.browser.js +36 -0
- package/dist-cjs/runtimeConfig.js +49 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +42 -0
- package/dist-cjs/schemas/schemas_0.js +1785 -0
- package/dist-es/Resiliencehubv2.js +151 -0
- package/dist-es/Resiliencehubv2Client.js +47 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commands/CreateAssertionCommand.js +16 -0
- package/dist-es/commands/CreateInputSourceCommand.js +16 -0
- package/dist-es/commands/CreatePolicyCommand.js +16 -0
- package/dist-es/commands/CreateReportCommand.js +16 -0
- package/dist-es/commands/CreateServiceCommand.js +16 -0
- package/dist-es/commands/CreateServiceFunctionCommand.js +16 -0
- package/dist-es/commands/CreateServiceFunctionResourcesCommand.js +16 -0
- package/dist-es/commands/CreateSystemCommand.js +16 -0
- package/dist-es/commands/CreateUserJourneyCommand.js +16 -0
- package/dist-es/commands/DeleteAssertionCommand.js +16 -0
- package/dist-es/commands/DeleteInputSourceCommand.js +16 -0
- package/dist-es/commands/DeletePolicyCommand.js +16 -0
- package/dist-es/commands/DeleteServiceCommand.js +16 -0
- package/dist-es/commands/DeleteServiceFunctionCommand.js +16 -0
- package/dist-es/commands/DeleteServiceFunctionResourcesCommand.js +16 -0
- package/dist-es/commands/DeleteSystemCommand.js +16 -0
- package/dist-es/commands/DeleteUserJourneyCommand.js +16 -0
- package/dist-es/commands/GetFailureModeFindingCommand.js +16 -0
- package/dist-es/commands/GetPolicyCommand.js +16 -0
- package/dist-es/commands/GetServiceCommand.js +16 -0
- package/dist-es/commands/GetSystemCommand.js +16 -0
- package/dist-es/commands/GetUserJourneyCommand.js +16 -0
- package/dist-es/commands/ImportAppCommand.js +16 -0
- package/dist-es/commands/ImportPolicyCommand.js +16 -0
- package/dist-es/commands/ListAssertionsCommand.js +16 -0
- package/dist-es/commands/ListDependenciesCommand.js +16 -0
- package/dist-es/commands/ListFailureModeAssessmentsCommand.js +16 -0
- package/dist-es/commands/ListFailureModeFindingsCommand.js +16 -0
- package/dist-es/commands/ListInputSourcesCommand.js +16 -0
- package/dist-es/commands/ListPoliciesCommand.js +16 -0
- package/dist-es/commands/ListReportsCommand.js +16 -0
- package/dist-es/commands/ListResourcesCommand.js +16 -0
- package/dist-es/commands/ListServiceEventsCommand.js +16 -0
- package/dist-es/commands/ListServiceFunctionsCommand.js +16 -0
- package/dist-es/commands/ListServiceTopologyEdgesCommand.js +16 -0
- package/dist-es/commands/ListServicesCommand.js +16 -0
- package/dist-es/commands/ListSystemEventsCommand.js +16 -0
- package/dist-es/commands/ListSystemsCommand.js +16 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +16 -0
- package/dist-es/commands/ListUserJourneysCommand.js +16 -0
- package/dist-es/commands/StartFailureModeAssessmentCommand.js +16 -0
- package/dist-es/commands/TagResourceCommand.js +16 -0
- package/dist-es/commands/UntagResourceCommand.js +16 -0
- package/dist-es/commands/UpdateAssertionCommand.js +16 -0
- package/dist-es/commands/UpdateDependencyCommand.js +16 -0
- package/dist-es/commands/UpdateFailureModeFindingCommand.js +16 -0
- package/dist-es/commands/UpdatePolicyCommand.js +16 -0
- package/dist-es/commands/UpdateServiceCommand.js +16 -0
- package/dist-es/commands/UpdateServiceFunctionCommand.js +16 -0
- package/dist-es/commands/UpdateSystemCommand.js +16 -0
- package/dist-es/commands/UpdateUserJourneyCommand.js +16 -0
- package/dist-es/commands/index.js +51 -0
- package/dist-es/endpoint/EndpointParameters.js +13 -0
- package/dist-es/endpoint/bdd.js +46 -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/Resiliencehubv2ServiceException.js +8 -0
- package/dist-es/models/enums.js +182 -0
- package/dist-es/models/errors.js +95 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAssertionsPaginator.js +4 -0
- package/dist-es/pagination/ListDependenciesPaginator.js +4 -0
- package/dist-es/pagination/ListFailureModeAssessmentsPaginator.js +4 -0
- package/dist-es/pagination/ListFailureModeFindingsPaginator.js +4 -0
- package/dist-es/pagination/ListInputSourcesPaginator.js +4 -0
- package/dist-es/pagination/ListPoliciesPaginator.js +4 -0
- package/dist-es/pagination/ListReportsPaginator.js +4 -0
- package/dist-es/pagination/ListResourcesPaginator.js +4 -0
- package/dist-es/pagination/ListServiceEventsPaginator.js +4 -0
- package/dist-es/pagination/ListServiceFunctionsPaginator.js +4 -0
- package/dist-es/pagination/ListServiceTopologyEdgesPaginator.js +4 -0
- package/dist-es/pagination/ListServicesPaginator.js +4 -0
- package/dist-es/pagination/ListSystemEventsPaginator.js +4 -0
- package/dist-es/pagination/ListSystemsPaginator.js +4 -0
- package/dist-es/pagination/ListUserJourneysPaginator.js +4 -0
- package/dist-es/pagination/index.js +16 -0
- package/dist-es/runtimeConfig.browser.js +31 -0
- package/dist-es/runtimeConfig.js +44 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +38 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +1777 -0
- package/dist-es/waiters/index.js +4 -0
- package/dist-es/waiters/waitForFailureModeAssessmentSuccess.js +64 -0
- package/dist-es/waiters/waitForReportSucceeded.js +64 -0
- package/dist-es/waiters/waitForServiceAssessmentCompleted.js +40 -0
- package/dist-es/waiters/waitForServiceResourceDiscoveryCompleted.js +49 -0
- package/dist-types/Resiliencehubv2.d.ts +502 -0
- package/dist-types/Resiliencehubv2Client.d.ts +237 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/CreateAssertionCommand.d.ts +103 -0
- package/dist-types/commands/CreateInputSourceCommand.d.ts +115 -0
- package/dist-types/commands/CreatePolicyCommand.d.ts +143 -0
- package/dist-types/commands/CreateReportCommand.d.ts +111 -0
- package/dist-types/commands/CreateServiceCommand.d.ts +243 -0
- package/dist-types/commands/CreateServiceFunctionCommand.d.ts +108 -0
- package/dist-types/commands/CreateServiceFunctionResourcesCommand.d.ts +99 -0
- package/dist-types/commands/CreateSystemCommand.d.ts +115 -0
- package/dist-types/commands/CreateUserJourneyCommand.d.ts +105 -0
- package/dist-types/commands/DeleteAssertionCommand.d.ts +89 -0
- package/dist-types/commands/DeleteInputSourceCommand.d.ts +90 -0
- package/dist-types/commands/DeletePolicyCommand.d.ts +91 -0
- package/dist-types/commands/DeleteServiceCommand.d.ts +91 -0
- package/dist-types/commands/DeleteServiceFunctionCommand.d.ts +92 -0
- package/dist-types/commands/DeleteServiceFunctionResourcesCommand.d.ts +99 -0
- package/dist-types/commands/DeleteSystemCommand.d.ts +91 -0
- package/dist-types/commands/DeleteUserJourneyCommand.d.ts +92 -0
- package/dist-types/commands/GetFailureModeFindingCommand.d.ts +124 -0
- package/dist-types/commands/GetPolicyCommand.d.ts +115 -0
- package/dist-types/commands/GetServiceCommand.d.ts +198 -0
- package/dist-types/commands/GetSystemCommand.d.ts +102 -0
- package/dist-types/commands/GetUserJourneyCommand.d.ts +96 -0
- package/dist-types/commands/ImportAppCommand.d.ts +217 -0
- package/dist-types/commands/ImportPolicyCommand.d.ts +128 -0
- package/dist-types/commands/ListAssertionsCommand.d.ts +101 -0
- package/dist-types/commands/ListDependenciesCommand.d.ts +120 -0
- package/dist-types/commands/ListFailureModeAssessmentsCommand.d.ts +113 -0
- package/dist-types/commands/ListFailureModeFindingsCommand.d.ts +106 -0
- package/dist-types/commands/ListInputSourcesCommand.d.ts +115 -0
- package/dist-types/commands/ListPoliciesCommand.d.ts +111 -0
- package/dist-types/commands/ListReportsCommand.d.ts +112 -0
- package/dist-types/commands/ListResourcesCommand.d.ts +108 -0
- package/dist-types/commands/ListServiceEventsCommand.d.ts +201 -0
- package/dist-types/commands/ListServiceFunctionsCommand.d.ts +103 -0
- package/dist-types/commands/ListServiceTopologyEdgesCommand.d.ts +99 -0
- package/dist-types/commands/ListServicesCommand.d.ts +128 -0
- package/dist-types/commands/ListSystemEventsCommand.d.ts +181 -0
- package/dist-types/commands/ListSystemsCommand.d.ts +100 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +93 -0
- package/dist-types/commands/ListUserJourneysCommand.d.ts +98 -0
- package/dist-types/commands/StartFailureModeAssessmentCommand.d.ts +98 -0
- package/dist-types/commands/TagResourceCommand.d.ts +92 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +92 -0
- package/dist-types/commands/UpdateAssertionCommand.d.ts +100 -0
- package/dist-types/commands/UpdateDependencyCommand.d.ts +100 -0
- package/dist-types/commands/UpdateFailureModeFindingCommand.d.ts +129 -0
- package/dist-types/commands/UpdatePolicyCommand.d.ts +135 -0
- package/dist-types/commands/UpdateServiceCommand.d.ts +238 -0
- package/dist-types/commands/UpdateServiceFunctionCommand.d.ts +105 -0
- package/dist-types/commands/UpdateSystemCommand.d.ts +107 -0
- package/dist-types/commands/UpdateUserJourneyCommand.d.ts +102 -0
- package/dist-types/commands/index.d.ts +51 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +50 -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/Resiliencehubv2ServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +422 -0
- package/dist-types/models/errors.d.ts +113 -0
- package/dist-types/models/models_0.d.ts +4947 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListAssertionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListDependenciesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListFailureModeAssessmentsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListFailureModeFindingsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListInputSourcesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPoliciesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListReportsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListResourcesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListServiceEventsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListServiceFunctionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListServiceTopologyEdgesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListServicesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSystemEventsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSystemsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListUserJourneysPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +16 -0
- package/dist-types/runtimeConfig.browser.d.ts +55 -0
- package/dist-types/runtimeConfig.d.ts +55 -0
- package/dist-types/runtimeConfig.native.d.ts +54 -0
- package/dist-types/runtimeConfig.shared.d.ts +27 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +259 -0
- package/dist-types/ts3.4/Resiliencehubv2.d.ts +1026 -0
- package/dist-types/ts3.4/Resiliencehubv2Client.d.ts +417 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateAssertionCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/CreateInputSourceCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/CreatePolicyCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/CreateReportCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/CreateServiceCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/CreateServiceFunctionCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/CreateServiceFunctionResourcesCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/CreateSystemCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/CreateUserJourneyCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/DeleteAssertionCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/DeleteInputSourceCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/DeletePolicyCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/DeleteServiceCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/DeleteServiceFunctionCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/DeleteServiceFunctionResourcesCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/DeleteSystemCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/DeleteUserJourneyCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/GetFailureModeFindingCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/GetServiceCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/GetSystemCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/GetUserJourneyCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/ImportAppCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/ImportPolicyCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/ListAssertionsCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/ListDependenciesCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/ListFailureModeAssessmentsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/ListFailureModeFindingsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/ListInputSourcesCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/ListPoliciesCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/ListReportsCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/ListResourcesCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/ListServiceEventsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/ListServiceFunctionsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/ListServiceTopologyEdgesCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/ListServicesCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/ListSystemEventsCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/ListSystemsCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/ListUserJourneysCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/StartFailureModeAssessmentCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/UpdateAssertionCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/UpdateDependencyCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/UpdateFailureModeFindingCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/UpdatePolicyCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/UpdateServiceCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/UpdateServiceFunctionCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/UpdateSystemCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/UpdateUserJourneyCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/index.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -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 +9 -0
- package/dist-types/ts3.4/index.d.ts +13 -0
- package/dist-types/ts3.4/models/Resiliencehubv2ServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +237 -0
- package/dist-types/ts3.4/models/errors.d.ts +56 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1761 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAssertionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDependenciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListFailureModeAssessmentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListFailureModeFindingsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListInputSourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListReportsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListResourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListServiceEventsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListServiceFunctionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListServiceTopologyEdgesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListServicesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSystemEventsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSystemsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListUserJourneysPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +16 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +102 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +106 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +32 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +259 -0
- package/dist-types/ts3.4/waiters/index.d.ts +4 -0
- package/dist-types/ts3.4/waiters/waitForFailureModeAssessmentSuccess.d.ts +19 -0
- package/dist-types/ts3.4/waiters/waitForReportSucceeded.d.ts +17 -0
- package/dist-types/ts3.4/waiters/waitForServiceAssessmentCompleted.d.ts +17 -0
- package/dist-types/ts3.4/waiters/waitForServiceResourceDiscoveryCompleted.d.ts +17 -0
- package/dist-types/waiters/index.d.ts +4 -0
- package/dist-types/waiters/waitForFailureModeAssessmentSuccess.d.ts +15 -0
- package/dist-types/waiters/waitForReportSucceeded.d.ts +15 -0
- package/dist-types/waiters/waitForServiceAssessmentCompleted.d.ts +15 -0
- package/dist-types/waiters/waitForServiceResourceDiscoveryCompleted.d.ts +15 -0
- package/package.json +71 -0
|
@@ -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", "UseDualStack", "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 "./Resiliencehubv2Client";
|
|
2
|
+
export * from "./Resiliencehubv2";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./schemas/schemas_0";
|
|
5
|
+
export * from "./pagination";
|
|
6
|
+
export * from "./waiters";
|
|
7
|
+
export * from "./models/enums";
|
|
8
|
+
export * from "./models/errors";
|
|
9
|
+
export * from "./models/models_0";
|
|
10
|
+
export { Resiliencehubv2ServiceException } from "./models/Resiliencehubv2ServiceException";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/core/client";
|
|
2
|
+
export { __ServiceException };
|
|
3
|
+
export class Resiliencehubv2ServiceException extends __ServiceException {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
super(options);
|
|
6
|
+
Object.setPrototypeOf(this, Resiliencehubv2ServiceException.prototype);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
export const AchievabilityStatus = {
|
|
2
|
+
ACHIEVABLE: "ACHIEVABLE",
|
|
3
|
+
NOT_ACHIEVABLE: "NOT_ACHIEVABLE",
|
|
4
|
+
};
|
|
5
|
+
export const ActorType = {
|
|
6
|
+
SYSTEM: "SYSTEM",
|
|
7
|
+
USER: "USER",
|
|
8
|
+
};
|
|
9
|
+
export const AssertionSource = {
|
|
10
|
+
AI_GENERATED: "AI_GENERATED",
|
|
11
|
+
USER: "USER",
|
|
12
|
+
};
|
|
13
|
+
export const CostCurrency = {
|
|
14
|
+
USD: "USD",
|
|
15
|
+
};
|
|
16
|
+
export const AssessmentErrorCode = {
|
|
17
|
+
AGENT_ERROR: "AGENT_ERROR",
|
|
18
|
+
CMK_ACCESS_DENIED: "CMK_ACCESS_DENIED",
|
|
19
|
+
DESIGN_FILE_ACCESS_DENIED: "DESIGN_FILE_ACCESS_DENIED",
|
|
20
|
+
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
21
|
+
INVALID_PERMISSIONS: "INVALID_PERMISSIONS",
|
|
22
|
+
};
|
|
23
|
+
export const AssessmentStatus = {
|
|
24
|
+
FAILED: "FAILED",
|
|
25
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
26
|
+
NOT_STARTED: "NOT_STARTED",
|
|
27
|
+
PENDING: "PENDING",
|
|
28
|
+
SUCCESS: "SUCCESS",
|
|
29
|
+
};
|
|
30
|
+
export const AssessmentStep = {
|
|
31
|
+
RESILIENCE_ASSESSMENT: "RESILIENCE_ASSESSMENT",
|
|
32
|
+
SERVICE_FUNCTION_GENERATION: "SERVICE_FUNCTION_GENERATION",
|
|
33
|
+
TOPOLOGY_ENHANCEMENT: "TOPOLOGY_ENHANCEMENT",
|
|
34
|
+
};
|
|
35
|
+
export const ValidationExceptionReason = {
|
|
36
|
+
DUPLICATE_VALUE: "DUPLICATE_VALUE",
|
|
37
|
+
INVALID_FIELD_VALUE: "INVALID_FIELD_VALUE",
|
|
38
|
+
MISSING_REQUIRED_FIELD: "MISSING_REQUIRED_FIELD",
|
|
39
|
+
OTHER: "OTHER",
|
|
40
|
+
};
|
|
41
|
+
export const MultiAzDisasterRecoveryApproach = {
|
|
42
|
+
ACTIVE_ACTIVE: "ACTIVE_ACTIVE",
|
|
43
|
+
BACKUP_AND_RESTORE: "BACKUP_AND_RESTORE",
|
|
44
|
+
HOT_STANDBY: "HOT_STANDBY",
|
|
45
|
+
PILOT_LIGHT: "PILOT_LIGHT",
|
|
46
|
+
WARM_STANDBY: "WARM_STANDBY",
|
|
47
|
+
};
|
|
48
|
+
export const MultiRegionDisasterRecoveryApproach = {
|
|
49
|
+
ACTIVE_ACTIVE: "ACTIVE_ACTIVE",
|
|
50
|
+
BACKUP_AND_RESTORE: "BACKUP_AND_RESTORE",
|
|
51
|
+
HOT_STANDBY: "HOT_STANDBY",
|
|
52
|
+
PILOT_LIGHT: "PILOT_LIGHT",
|
|
53
|
+
WARM_STANDBY: "WARM_STANDBY",
|
|
54
|
+
};
|
|
55
|
+
export const ReportType = {
|
|
56
|
+
FAILURE_MODE: "FAILURE_MODE",
|
|
57
|
+
};
|
|
58
|
+
export const ReportGenerationErrorCode = {
|
|
59
|
+
CONFIGURATION_ERROR: "CONFIGURATION_ERROR",
|
|
60
|
+
INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS",
|
|
61
|
+
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
62
|
+
};
|
|
63
|
+
export const ReportGenerationStatus = {
|
|
64
|
+
FAILED: "FAILED",
|
|
65
|
+
PENDING: "PENDING",
|
|
66
|
+
SUCCEEDED: "SUCCEEDED",
|
|
67
|
+
};
|
|
68
|
+
export const DependencyDiscoveryInput = {
|
|
69
|
+
DISABLED: "DISABLED",
|
|
70
|
+
ENABLED: "ENABLED",
|
|
71
|
+
};
|
|
72
|
+
export const DependencyDiscoveryStatus = {
|
|
73
|
+
DISABLED: "DISABLED",
|
|
74
|
+
ENABLED: "ENABLED",
|
|
75
|
+
INITIALIZING: "INITIALIZING",
|
|
76
|
+
};
|
|
77
|
+
export const PolicyValueSource = {
|
|
78
|
+
CROSS_ACCOUNT: "CROSS_ACCOUNT",
|
|
79
|
+
SELF: "SELF",
|
|
80
|
+
};
|
|
81
|
+
export const ResourceDiscoveryErrorCode = {
|
|
82
|
+
ACCESS_DENIED: "ACCESS_DENIED",
|
|
83
|
+
CLUSTER_NOT_FOUND: "CLUSTER_NOT_FOUND",
|
|
84
|
+
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
85
|
+
INVALID_PERMISSIONS: "INVALID_PERMISSIONS",
|
|
86
|
+
STACK_NOT_FOUND: "STACK_NOT_FOUND",
|
|
87
|
+
STATE_FILE_NOT_FOUND: "STATE_FILE_NOT_FOUND",
|
|
88
|
+
UNSUPPORTED_CLUSTER: "UNSUPPORTED_CLUSTER",
|
|
89
|
+
};
|
|
90
|
+
export const ResourceDiscoveryRunStatus = {
|
|
91
|
+
COMPLETED_WITH_FAILURES: "COMPLETED_WITH_FAILURES",
|
|
92
|
+
FAILED: "FAILED",
|
|
93
|
+
NOT_STARTED: "NOT_STARTED",
|
|
94
|
+
RUNNING: "RUNNING",
|
|
95
|
+
SUCCEEDED: "SUCCEEDED",
|
|
96
|
+
};
|
|
97
|
+
export const ServiceFunctionCriticality = {
|
|
98
|
+
PRIMARY: "PRIMARY",
|
|
99
|
+
SUPPLEMENTAL: "SUPPLEMENTAL",
|
|
100
|
+
};
|
|
101
|
+
export const ServiceFunctionSource = {
|
|
102
|
+
AI_GENERATED: "AI_GENERATED",
|
|
103
|
+
USER: "USER",
|
|
104
|
+
};
|
|
105
|
+
export const DependencyCriticality = {
|
|
106
|
+
HARD: "HARD",
|
|
107
|
+
SOFT: "SOFT",
|
|
108
|
+
UNKNOWN: "UNKNOWN",
|
|
109
|
+
};
|
|
110
|
+
export const QueryGranularity = {
|
|
111
|
+
DAILY: "DAILY",
|
|
112
|
+
HOURLY: "HOURLY",
|
|
113
|
+
};
|
|
114
|
+
export const TopologyType = {
|
|
115
|
+
CONTAINMENT: "CONTAINMENT",
|
|
116
|
+
DATA_FLOW: "DATA_FLOW",
|
|
117
|
+
OBSERVABILITY: "OBSERVABILITY",
|
|
118
|
+
PERMISSIONS: "PERMISSIONS",
|
|
119
|
+
};
|
|
120
|
+
export const FailureCategory = {
|
|
121
|
+
EXCESSIVE_LATENCY: "EXCESSIVE_LATENCY",
|
|
122
|
+
EXCESSIVE_LOAD: "EXCESSIVE_LOAD",
|
|
123
|
+
MISCONFIGURATION_AND_BUGS: "MISCONFIGURATION_AND_BUGS",
|
|
124
|
+
SHARED_FATE: "SHARED_FATE",
|
|
125
|
+
SINGLE_POINT_OF_FAILURE: "SINGLE_POINT_OF_FAILURE",
|
|
126
|
+
};
|
|
127
|
+
export const PolicyComponent = {
|
|
128
|
+
AVAILABILITY_SLO: "AVAILABILITY_SLO",
|
|
129
|
+
DATA_RECOVERY: "DATA_RECOVERY",
|
|
130
|
+
MULTI_AZ_DISASTER_RECOVERY: "MULTI_AZ_DISASTER_RECOVERY",
|
|
131
|
+
MULTI_REGION_DISASTER_RECOVERY: "MULTI_REGION_DISASTER_RECOVERY",
|
|
132
|
+
};
|
|
133
|
+
export const FindingSeverity = {
|
|
134
|
+
HIGH: "HIGH",
|
|
135
|
+
LOW: "LOW",
|
|
136
|
+
MEDIUM: "MEDIUM",
|
|
137
|
+
};
|
|
138
|
+
export const FindingStatus = {
|
|
139
|
+
IRRELEVANT: "IRRELEVANT",
|
|
140
|
+
OPEN: "OPEN",
|
|
141
|
+
RESOLVED: "RESOLVED",
|
|
142
|
+
};
|
|
143
|
+
export const InputSourceType = {
|
|
144
|
+
CFN_STACK: "CFN_STACK",
|
|
145
|
+
DESIGN_FILE: "DESIGN_FILE",
|
|
146
|
+
EKS: "EKS",
|
|
147
|
+
MONITORING: "MONITORING",
|
|
148
|
+
TAGS: "TAGS",
|
|
149
|
+
TERRAFORM: "TERRAFORM",
|
|
150
|
+
};
|
|
151
|
+
export const ServiceEventType = {
|
|
152
|
+
ASSERTION_CREATED: "ASSERTION_CREATED",
|
|
153
|
+
ASSERTION_DELETED: "ASSERTION_DELETED",
|
|
154
|
+
ASSERTION_UPDATED: "ASSERTION_UPDATED",
|
|
155
|
+
SERVICE_ACHIEVABILITY_UPDATED: "SERVICE_ACHIEVABILITY_UPDATED",
|
|
156
|
+
SERVICE_CREATED: "SERVICE_CREATED",
|
|
157
|
+
SERVICE_DELETED: "SERVICE_DELETED",
|
|
158
|
+
SERVICE_FUNCTION_CREATED: "SERVICE_FUNCTION_CREATED",
|
|
159
|
+
SERVICE_FUNCTION_DELETED: "SERVICE_FUNCTION_DELETED",
|
|
160
|
+
SERVICE_FUNCTION_RESOURCES_ADDED: "SERVICE_FUNCTION_RESOURCES_ADDED",
|
|
161
|
+
SERVICE_FUNCTION_RESOURCES_REMOVED: "SERVICE_FUNCTION_RESOURCES_REMOVED",
|
|
162
|
+
SERVICE_FUNCTION_UPDATED: "SERVICE_FUNCTION_UPDATED",
|
|
163
|
+
SERVICE_INPUT_SOURCES_UPDATED: "SERVICE_INPUT_SOURCES_UPDATED",
|
|
164
|
+
SERVICE_POLICY_ASSOCIATED: "SERVICE_POLICY_ASSOCIATED",
|
|
165
|
+
SERVICE_POLICY_DISASSOCIATED: "SERVICE_POLICY_DISASSOCIATED",
|
|
166
|
+
SERVICE_RESOURCES_ASSOCIATED: "SERVICE_RESOURCES_ASSOCIATED",
|
|
167
|
+
SERVICE_RESOURCES_DISASSOCIATED: "SERVICE_RESOURCES_DISASSOCIATED",
|
|
168
|
+
SERVICE_SYSTEM_ASSOCIATED: "SERVICE_SYSTEM_ASSOCIATED",
|
|
169
|
+
SERVICE_SYSTEM_DISASSOCIATED: "SERVICE_SYSTEM_DISASSOCIATED",
|
|
170
|
+
SERVICE_WORKFLOW_UPDATED: "SERVICE_WORKFLOW_UPDATED",
|
|
171
|
+
};
|
|
172
|
+
export const SystemEventType = {
|
|
173
|
+
SYSTEM_CREATED: "SYSTEM_CREATED",
|
|
174
|
+
SYSTEM_DELETED: "SYSTEM_DELETED",
|
|
175
|
+
SYSTEM_POLICY_ASSOCIATED: "SYSTEM_POLICY_ASSOCIATED",
|
|
176
|
+
SYSTEM_POLICY_DISASSOCIATED: "SYSTEM_POLICY_DISASSOCIATED",
|
|
177
|
+
SYSTEM_SERVICE_ASSOCIATED: "SYSTEM_SERVICE_ASSOCIATED",
|
|
178
|
+
SYSTEM_SERVICE_DISASSOCIATED: "SYSTEM_SERVICE_DISASSOCIATED",
|
|
179
|
+
SYSTEM_USER_JOURNEY_CREATED: "SYSTEM_USER_JOURNEY_CREATED",
|
|
180
|
+
SYSTEM_USER_JOURNEY_DELETED: "SYSTEM_USER_JOURNEY_DELETED",
|
|
181
|
+
SYSTEM_USER_JOURNEY_UPDATED: "SYSTEM_USER_JOURNEY_UPDATED",
|
|
182
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Resiliencehubv2ServiceException as __BaseException } from "./Resiliencehubv2ServiceException";
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
name = "AccessDeniedException";
|
|
4
|
+
$fault = "client";
|
|
5
|
+
constructor(opts) {
|
|
6
|
+
super({
|
|
7
|
+
name: "AccessDeniedException",
|
|
8
|
+
$fault: "client",
|
|
9
|
+
...opts,
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export class ConflictException extends __BaseException {
|
|
15
|
+
name = "ConflictException";
|
|
16
|
+
$fault = "client";
|
|
17
|
+
constructor(opts) {
|
|
18
|
+
super({
|
|
19
|
+
name: "ConflictException",
|
|
20
|
+
$fault: "client",
|
|
21
|
+
...opts,
|
|
22
|
+
});
|
|
23
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export class InternalServerException extends __BaseException {
|
|
27
|
+
name = "InternalServerException";
|
|
28
|
+
$fault = "server";
|
|
29
|
+
constructor(opts) {
|
|
30
|
+
super({
|
|
31
|
+
name: "InternalServerException",
|
|
32
|
+
$fault: "server",
|
|
33
|
+
...opts,
|
|
34
|
+
});
|
|
35
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
39
|
+
name = "ResourceNotFoundException";
|
|
40
|
+
$fault = "client";
|
|
41
|
+
resourceId;
|
|
42
|
+
resourceType;
|
|
43
|
+
constructor(opts) {
|
|
44
|
+
super({
|
|
45
|
+
name: "ResourceNotFoundException",
|
|
46
|
+
$fault: "client",
|
|
47
|
+
...opts,
|
|
48
|
+
});
|
|
49
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
50
|
+
this.resourceId = opts.resourceId;
|
|
51
|
+
this.resourceType = opts.resourceType;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
55
|
+
name = "ServiceQuotaExceededException";
|
|
56
|
+
$fault = "client";
|
|
57
|
+
constructor(opts) {
|
|
58
|
+
super({
|
|
59
|
+
name: "ServiceQuotaExceededException",
|
|
60
|
+
$fault: "client",
|
|
61
|
+
...opts,
|
|
62
|
+
});
|
|
63
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
export class ValidationException extends __BaseException {
|
|
67
|
+
name = "ValidationException";
|
|
68
|
+
$fault = "client";
|
|
69
|
+
reason;
|
|
70
|
+
fieldList;
|
|
71
|
+
constructor(opts) {
|
|
72
|
+
super({
|
|
73
|
+
name: "ValidationException",
|
|
74
|
+
$fault: "client",
|
|
75
|
+
...opts,
|
|
76
|
+
});
|
|
77
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
78
|
+
this.reason = opts.reason;
|
|
79
|
+
this.fieldList = opts.fieldList;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
export class ThrottlingException extends __BaseException {
|
|
83
|
+
name = "ThrottlingException";
|
|
84
|
+
$fault = "client";
|
|
85
|
+
retryAfterSeconds;
|
|
86
|
+
constructor(opts) {
|
|
87
|
+
super({
|
|
88
|
+
name: "ThrottlingException",
|
|
89
|
+
$fault: "client",
|
|
90
|
+
...opts,
|
|
91
|
+
});
|
|
92
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
93
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListAssertionsCommand, } from "../commands/ListAssertionsCommand";
|
|
3
|
+
import { Resiliencehubv2Client } from "../Resiliencehubv2Client";
|
|
4
|
+
export const paginateListAssertions = createPaginator(Resiliencehubv2Client, ListAssertionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListDependenciesCommand, } from "../commands/ListDependenciesCommand";
|
|
3
|
+
import { Resiliencehubv2Client } from "../Resiliencehubv2Client";
|
|
4
|
+
export const paginateListDependencies = createPaginator(Resiliencehubv2Client, ListDependenciesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListFailureModeAssessmentsCommand, } from "../commands/ListFailureModeAssessmentsCommand";
|
|
3
|
+
import { Resiliencehubv2Client } from "../Resiliencehubv2Client";
|
|
4
|
+
export const paginateListFailureModeAssessments = createPaginator(Resiliencehubv2Client, ListFailureModeAssessmentsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListFailureModeFindingsCommand, } from "../commands/ListFailureModeFindingsCommand";
|
|
3
|
+
import { Resiliencehubv2Client } from "../Resiliencehubv2Client";
|
|
4
|
+
export const paginateListFailureModeFindings = createPaginator(Resiliencehubv2Client, ListFailureModeFindingsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListInputSourcesCommand, } from "../commands/ListInputSourcesCommand";
|
|
3
|
+
import { Resiliencehubv2Client } from "../Resiliencehubv2Client";
|
|
4
|
+
export const paginateListInputSources = createPaginator(Resiliencehubv2Client, ListInputSourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListPoliciesCommand, } from "../commands/ListPoliciesCommand";
|
|
3
|
+
import { Resiliencehubv2Client } from "../Resiliencehubv2Client";
|
|
4
|
+
export const paginateListPolicies = createPaginator(Resiliencehubv2Client, ListPoliciesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListReportsCommand } from "../commands/ListReportsCommand";
|
|
3
|
+
import { Resiliencehubv2Client } from "../Resiliencehubv2Client";
|
|
4
|
+
export const paginateListReports = createPaginator(Resiliencehubv2Client, ListReportsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListResourcesCommand, } from "../commands/ListResourcesCommand";
|
|
3
|
+
import { Resiliencehubv2Client } from "../Resiliencehubv2Client";
|
|
4
|
+
export const paginateListResources = createPaginator(Resiliencehubv2Client, ListResourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListServiceEventsCommand, } from "../commands/ListServiceEventsCommand";
|
|
3
|
+
import { Resiliencehubv2Client } from "../Resiliencehubv2Client";
|
|
4
|
+
export const paginateListServiceEvents = createPaginator(Resiliencehubv2Client, ListServiceEventsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListServiceFunctionsCommand, } from "../commands/ListServiceFunctionsCommand";
|
|
3
|
+
import { Resiliencehubv2Client } from "../Resiliencehubv2Client";
|
|
4
|
+
export const paginateListServiceFunctions = createPaginator(Resiliencehubv2Client, ListServiceFunctionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListServiceTopologyEdgesCommand, } from "../commands/ListServiceTopologyEdgesCommand";
|
|
3
|
+
import { Resiliencehubv2Client } from "../Resiliencehubv2Client";
|
|
4
|
+
export const paginateListServiceTopologyEdges = createPaginator(Resiliencehubv2Client, ListServiceTopologyEdgesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListServicesCommand, } from "../commands/ListServicesCommand";
|
|
3
|
+
import { Resiliencehubv2Client } from "../Resiliencehubv2Client";
|
|
4
|
+
export const paginateListServices = createPaginator(Resiliencehubv2Client, ListServicesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListSystemEventsCommand, } from "../commands/ListSystemEventsCommand";
|
|
3
|
+
import { Resiliencehubv2Client } from "../Resiliencehubv2Client";
|
|
4
|
+
export const paginateListSystemEvents = createPaginator(Resiliencehubv2Client, ListSystemEventsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListSystemsCommand } from "../commands/ListSystemsCommand";
|
|
3
|
+
import { Resiliencehubv2Client } from "../Resiliencehubv2Client";
|
|
4
|
+
export const paginateListSystems = createPaginator(Resiliencehubv2Client, ListSystemsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListUserJourneysCommand, } from "../commands/ListUserJourneysCommand";
|
|
3
|
+
import { Resiliencehubv2Client } from "../Resiliencehubv2Client";
|
|
4
|
+
export const paginateListUserJourneys = createPaginator(Resiliencehubv2Client, ListUserJourneysCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from "./Interfaces";
|
|
2
|
+
export * from "./ListAssertionsPaginator";
|
|
3
|
+
export * from "./ListDependenciesPaginator";
|
|
4
|
+
export * from "./ListFailureModeAssessmentsPaginator";
|
|
5
|
+
export * from "./ListFailureModeFindingsPaginator";
|
|
6
|
+
export * from "./ListInputSourcesPaginator";
|
|
7
|
+
export * from "./ListPoliciesPaginator";
|
|
8
|
+
export * from "./ListReportsPaginator";
|
|
9
|
+
export * from "./ListResourcesPaginator";
|
|
10
|
+
export * from "./ListServiceEventsPaginator";
|
|
11
|
+
export * from "./ListServiceFunctionsPaginator";
|
|
12
|
+
export * from "./ListServicesPaginator";
|
|
13
|
+
export * from "./ListServiceTopologyEdgesPaginator";
|
|
14
|
+
export * from "./ListSystemEventsPaginator";
|
|
15
|
+
export * from "./ListSystemsPaginator";
|
|
16
|
+
export * from "./ListUserJourneysPaginator";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
+
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
4
|
+
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
5
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
6
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/core/retry";
|
|
7
|
+
import { calculateBodyLength } from "@smithy/core/serde";
|
|
8
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
9
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
10
|
+
export const getRuntimeConfig = (config) => {
|
|
11
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
12
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
13
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
14
|
+
return {
|
|
15
|
+
...clientSharedValues,
|
|
16
|
+
...config,
|
|
17
|
+
runtime: "browser",
|
|
18
|
+
defaultsMode,
|
|
19
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
20
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
21
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
22
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
23
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
+
sha256: config?.sha256 ?? Sha256,
|
|
27
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS, } from "@aws-sdk/core/client";
|
|
3
|
+
import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchemes";
|
|
4
|
+
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
5
|
+
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
6
|
+
import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
8
|
+
import { calculateBodyLength, Hash } from "@smithy/core/serde";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
10
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
11
|
+
export const getRuntimeConfig = (config) => {
|
|
12
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
13
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
15
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
+
awsCheckVersion(process.version);
|
|
17
|
+
const loaderConfig = {
|
|
18
|
+
profile: config?.profile,
|
|
19
|
+
logger: clientSharedValues.logger,
|
|
20
|
+
};
|
|
21
|
+
return {
|
|
22
|
+
...clientSharedValues,
|
|
23
|
+
...config,
|
|
24
|
+
runtime: "node",
|
|
25
|
+
defaultsMode,
|
|
26
|
+
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
27
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
28
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
30
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
31
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
32
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
33
|
+
retryMode: config?.retryMode ??
|
|
34
|
+
loadNodeConfig({
|
|
35
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
37
|
+
}, config),
|
|
38
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
41
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
42
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
+
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
|
+
export const getRuntimeConfig = (config) => {
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
+
return {
|
|
6
|
+
...browserDefaults,
|
|
7
|
+
...config,
|
|
8
|
+
runtime: "react-native",
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
3
|
+
import { NoOpLogger } from "@smithy/core/client";
|
|
4
|
+
import { parseUrl } from "@smithy/core/protocols";
|
|
5
|
+
import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
|
|
6
|
+
import { defaultResiliencehubv2HttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
7
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
8
|
+
import { errorTypeRegistries } from "./schemas/schemas_0";
|
|
9
|
+
export const getRuntimeConfig = (config) => {
|
|
10
|
+
return {
|
|
11
|
+
apiVersion: "2026-02-17",
|
|
12
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
13
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
14
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
16
|
+
extensions: config?.extensions ?? [],
|
|
17
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultResiliencehubv2HttpAuthSchemeProvider,
|
|
18
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
19
|
+
{
|
|
20
|
+
schemeId: "aws.auth#sigv4",
|
|
21
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
22
|
+
signer: new AwsSdkSigV4Signer(),
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
27
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
28
|
+
defaultNamespace: "com.amazonaws.resiliencehubv2",
|
|
29
|
+
errorTypeRegistries,
|
|
30
|
+
version: "2026-02-17",
|
|
31
|
+
serviceTarget: "NGRHServiceCore",
|
|
32
|
+
},
|
|
33
|
+
serviceId: config?.serviceId ?? "resiliencehubv2",
|
|
34
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
35
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
36
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration } from "@aws-sdk/core/client";
|
|
2
|
+
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/core/client";
|
|
3
|
+
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/core/protocols";
|
|
4
|
+
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
+
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
7
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
9
|
+
};
|