Skip to main content

app_assessments

Creates, updates, deletes, gets or lists an app_assessments resource.

Overview

Nameapp_assessments
TypeResource
Idaws.resiliencehub.app_assessments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
app_arnstringAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide. (pattern: <code>^arn:(aws|aws-cn|aws-iso|aws-iso-[a-z]{1}|aws-us-gov):[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:([a-z]{2}-((iso[a-z]{0,1}-)|(gov-)){0,1}[a-z]+-[0-9]):[0-9]{12}:[A-Za-z0-9/][A-Za-z0-9:_/+.-]{0,1023}$</code>)
app_versionstringVersion of an application. (pattern: <code>^\S{1,50}$</code>)
assessment_arnstringAmazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:partition:resiliencehub:region:account:app-assessment/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide. (pattern: <code>^arn:(aws|aws-cn|aws-iso|aws-iso-[a-z]{1}|aws-us-gov):[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:([a-z]{2}-((iso[a-z]{0,1}-)|(gov-)){0,1}[a-z]+-[0-9]):[0-9]{12}:[A-Za-z0-9/][A-Za-z0-9:_/+.-]{0,1023}$</code>)
assessment_namestringName of the assessment. (pattern: <code>^[A-Za-z0-9][A-Za-z0-9_-]{1,59}$</code>)
assessment_statusstringCurrent status of the assessment for the resiliency policy. (Pending, InProgress, Failed, Success)
complianceobjectApplication compliance against the resiliency policy.
compliance_statusstringCurrent status of the compliance for the resiliency policy. (PolicyBreached, PolicyMet, NotApplicable, MissingPolicy)
costobjectCost for the application.
drift_statusstringIndicates if compliance drifts (deviations) were detected while running an assessment for your application. (NotChecked, NotDetected, Detected)
end_timestring (date-time)End time for the action.
invokerstringThe entity that invoked the assessment. (User, System)
messagestringError or warning message from the assessment execution
policyobjectResiliency policy of an application.
resiliency_scoreobjectCurrent resiliency score for an application.
resource_errors_detailsobjectA resource error object containing a list of errors retrieving an application's resources.
start_timestring (date-time)Starting time for the action.
summaryobjectIndicates the AI-generated summary for the Resilience Hub assessment, providing a concise overview that highlights the top risks and recommendations. This property is available only in the US East (N. Virginia) Region.
tagsobjectTags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.
version_namestringVersion name of the published application. (pattern: <code>^\S{1,50}$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_app_assessmentselectregionDescribes an assessment for an Resilience Hub application.
list_app_assessmentsselectregionappArn, assessmentName, assessmentStatus, complianceStatus, invoker, maxResults, nextToken, reverseOrderLists the assessments for an Resilience Hub application. You can use request parameters to refine the results for the response object.
delete_app_assessmentdeleteregionDeletes an Resilience Hub application assessment. This is a destructive action that can't be undone.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
appArnstringAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
assessmentNamestringThe name for the assessment.
assessmentStatusarrayThe current status of the assessment for the resiliency policy.
complianceStatusstringThe current status of compliance for the resiliency policy.
invokerstringSpecifies the entity that invoked a specific assessment, either a User or the System.
maxResultsintegerMaximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.
nextTokenstringNull, or the token from a previous call to get the next set of results.
reverseOrderbooleanThe default is to sort by ascending startTime. To sort by descending startTime, set reverseOrder to true.

SELECT examples

Describes an assessment for an Resilience Hub application.

SELECT
app_arn,
app_version,
assessment_arn,
assessment_name,
assessment_status,
compliance,
compliance_status,
cost,
drift_status,
end_time,
invoker,
message,
policy,
resiliency_score,
resource_errors_details,
start_time,
summary,
tags,
version_name
FROM aws.resiliencehub.app_assessments
WHERE region = '{{ region }}' -- required
;

DELETE examples

Deletes an Resilience Hub application assessment. This is a destructive action that can't be undone.

DELETE FROM aws.resiliencehub.app_assessments
WHERE region = '{{ region }}' --required
;