Resiliencehub
import { Resiliencehub } from "https://aws-api-bqtgftz736ft.deno.dev/v0.5/services/resiliencehub.ts?docs=full";§Constructors
§Methods
Accepts the resource grouping recommendations suggested by Resilience Hub for your application.
Adds the source of resource-maps to the draft version of an application. During assessment, Resilience Hub will use these resource-maps to resolve the latest physical ID for each resource in the application template. For more information about different types of resources supported by Resilience Hub and how to add them in your application, see Step 2: How is your application managed? in the Resilience Hub User Guide.
Enables you to include or exclude one or more operational recommendations.
Creates an Resilience Hub application. An Resilience Hub application is a collection of Amazon Web Services resources structured to prevent and recover Amazon Web Services application disruptions. To describe a Resilience Hub application, you provide an application name, resources from one or more CloudFormation stacks, Resource Groups, Terraform state files, AppRegistry applications, and an appropriate resiliency policy. In addition, you can also add resources that are located on Amazon Elastic Kubernetes Service (Amazon EKS) clusters as optional resources. For more information about the number of resources supported per application, see Service quotas.
After you create an Resilience Hub application, you publish it so that you can run a resiliency assessment on it. You can then use recommendations from the assessment to improve resiliency by running another assessment, comparing results, and then iterating the process until you achieve your goals for recovery time objective (RTO) and recovery point objective (RPO).
Creates a new Application Component in the Resilience Hub application.
Note:
This API updates the Resilience Hub application draft version.
To use this Application Component for running assessments, you must publish the Resilience Hub application using the PublishAppVersion API.
Adds a resource to the Resilience Hub application and assigns it to the specified Application Components. If you specify a new Application Component, Resilience Hub will automatically create the Application Component.
Note:
- This action has no effect outside Resilience Hub.
- This API updates the Resilience Hub application draft version.
To use this resource for running resiliency assessments, you must publish the Resilience Hub application using the PublishAppVersion API.
- To update application version with new physicalResourceID, you must call ResolveAppVersionResources API.
Creates a new recommendation template for the Resilience Hub application.
Creates a resiliency policy for an application.
Note:
Resilience Hub allows you to provide a value of zero for rtoInSecs and rpoInSecs of your resiliency policy.
But, while assessing your application, the lowest possible assessment result is near zero.
Hence, if you provide value zero for rtoInSecs and rpoInSecs, the estimated workload RTO and estimated workload RPO result will be near zero and the Compliance status for your application will be set to Policy breached.
Deletes an Resilience Hub application assessment. This is a destructive action that can't be undone.
Deletes the input source and all of its imported resources from the Resilience Hub application.
Deletes an Application Component from the Resilience Hub application.
Note:
- This API updates the Resilience Hub application draft version.
To use this Application Component for running assessments, you must publish the Resilience Hub application using the PublishAppVersion API.
- You will not be able to delete an Application Component if it has resources associated with it.
Deletes a resource from the Resilience Hub application.
Note:
- You can only delete a manually added resource.
To exclude non-manually added resources, use the UpdateAppVersionResource API.
- This action has no effect outside Resilience Hub.
- This API updates the Resilience Hub application draft version.
To use this resource for running resiliency assessments, you must publish the Resilience Hub application using the PublishAppVersion API.
Deletes a recommendation template. This is a destructive action that can't be undone.
Deletes a resiliency policy. This is a destructive action that can't be undone.
Describes an assessment for an Resilience Hub application.
Describes the Resilience Hub application version.
Describes an Application Component in the Resilience Hub application.
Describes a resource of the Resilience Hub application.
Note:
This API accepts only one of the following parameters to describe the resource:
- resourceName
- logicalResourceId
- physicalResourceId (Along with physicalResourceId, you can also provide awsAccountId, and awsRegion)
Returns the resolution status for the specified resolution identifier for an application version.
If resolutionId is not specified, the current resolution status is returned.
Describes details about an Resilience Hub application.
Describes the status of importing resources to an application version.
Note:
If you get a 404 error with ResourceImportStatusNotFoundAppMetadataException, you must call importResourcesToDraftAppVersion after creating the application and before calling describeDraftAppVersionResourcesImportStatus to obtain the status.
Describes a specified resiliency policy for an Resilience Hub application. The returned policy object includes creation time, data location constraints, the Amazon Resource Name (ARN) for the policy, tags, tier, and more.
Describes the resource grouping recommendation tasks run by Resilience Hub for your application.
Imports resources to Resilience Hub application draft version from different input sources. For more information about the input sources supported by Resilience Hub, see Discover the structure and describe your Resilience Hub application.
Lists the alarm recommendations for an Resilience Hub application.
List of compliance drifts that were detected while running an assessment.
Indicates the list of resource drifts that were detected while running an assessment.
Lists the assessments for an Resilience Hub application. You can use request parameters to refine the results for the response object.
Lists the compliances for an Resilience Hub Application Component.
Lists the recommendations for an Resilience Hub Application Component.
Lists all the input sources of the Resilience Hub application. For more information about the input sources supported by Resilience Hub, see Discover the structure and describe your Resilience Hub application.
Lists your Resilience Hub applications.
Note: You can filter applications using only one filter at a time or without using any filter. If you try to filter applications using multiple filters, you will get the following error: An error occurred (ValidationException) when calling the ListApps operation: Only one filter is supported for this operation.
Lists all the Application Components in the Resilience Hub application.
Lists how the resources in an application version are mapped/sourced from. Mappings can be physical resource identifiers, CloudFormation stacks, resource-groups, or an application registry app.
Lists all the resources in an Resilience Hub application.
Lists the different versions for the Resilience Hub applications.
Lists the recommendation templates for the Resilience Hub applications.
Lists the resiliency policies for the Resilience Hub applications.
Lists the resource grouping recommendations suggested by Resilience Hub for your application.
Lists the standard operating procedure (SOP) recommendations for the Resilience Hub applications.
Lists the suggested resiliency policies for the Resilience Hub applications.
Lists the tags for your resources in your Resilience Hub applications.
Lists the test recommendations for the Resilience Hub application.
Lists the resources that are not currently supported in Resilience Hub. An unsupported resource is a resource that exists in the object that was used to create an app, but is not supported by Resilience Hub.
Publishes a new version of a specific Resilience Hub application.
Adds or updates the app template for an Resilience Hub application draft version.
Rejects resource grouping recommendations.
Removes resource mappings from a draft application version.
Resolves the resources for an application version.
Creates a new application assessment for an application.
Starts grouping recommendation task.
Updates the Resilience Hub application version.
Note:
This API updates the Resilience Hub application draft version.
To use this information for running resiliency assessments, you must publish the Resilience Hub application using the PublishAppVersion API.
Updates an existing Application Component in the Resilience Hub application.
Note:
This API updates the Resilience Hub application draft version.
To use this Application Component for running assessments, you must publish the Resilience Hub application using the PublishAppVersion API.
Updates the resource details in the Resilience Hub application.
Note:
- This action has no effect outside Resilience Hub.
- This API updates the Resilience Hub application draft version.
To use this resource for running resiliency assessments, you must publish the Resilience Hub application using the PublishAppVersion API.
- To update application version with new physicalResourceID, you must call ResolveAppVersionResources API.
Updates a resiliency policy.
Note:
Resilience Hub allows you to provide a value of zero for rtoInSecs and rpoInSecs of your resiliency policy.
But, while assessing your application, the lowest possible assessment result is near zero.
Hence, if you provide value zero for rtoInSecs and rpoInSecs, the estimated workload RTO and estimated workload RPO result will be near zero and the Compliance status for your application will be set to Policy breached.