Skip to main content

failure_mode_assessments

Creates, updates, deletes, gets or lists a failure_mode_assessments resource.

Overview

Namefailure_mode_assessments
TypeResource
Idaws.resiliencehubv2.failure_mode_assessments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
achievabilityobjectThe achievability results from the assessment.
assessment_costobjectThe cost of the assessment.
assessment_idstringThe unique identifier of the assessment. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}</code>)
assessment_statusstringThe current status of the assessment. (NOT_STARTED, PENDING, IN_PROGRESS, FAILED, SUCCESS)
assessment_stepstringThe current step of the assessment process. (TOPOLOGY_GENERATION, INPUT_VALIDATION, DESIGN_ANALYSIS, TOPOLOGY_ENHANCEMENT, SERVICE_FUNCTION_GENERATION, POLICY_VALIDATION, RESILIENCE_ASSESSMENT, FAILURE_MODE_FINDINGS_CONSOLIDATION, FAILURE_MODE_FINDINGS_ENRICHMENT)
billable_assessment_unit_countintegerThe number of billable assessment units consumed by the assessment.
ended_atstring (date-time)The timestamp when the assessment ended.
error_codestringThe error code if the assessment failed. (INVALID_PERMISSIONS, CMK_ACCESS_DENIED, AGENT_ERROR, INTERNAL_ERROR, DESIGN_FILE_ACCESS_DENIED)
error_messagestringA message describing the error if the assessment failed.
service_arnstringARN identifier. (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>)
started_atstring (date-time)The timestamp when the assessment started.
total_findingsintegerThe total number of findings generated by the assessment.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_failure_mode_assessmentsselectserviceArn, regionassessmentStatuses, startedAfter, endedBefore, sortBy, sortOrder, maxResults, nextTokenLists failure mode assessments.

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)
serviceArnstring
assessmentStatusesarraySpecifies the assessment statuses to include in the results.
endedBeforestring (date-time)Specifies that only assessments that ended at or before this timestamp appear in the results.
maxResultsinteger
nextTokenstring
sortBystringThe field to use for sorting failure mode assessments.
sortOrderstringThe sort order for results.
startedAfterstring (date-time)Specifies that only assessments that started at or after this timestamp appear in the results.

SELECT examples

Lists failure mode assessments.

SELECT
achievability,
assessment_cost,
assessment_id,
assessment_status,
assessment_step,
billable_assessment_unit_count,
ended_at,
error_code,
error_message,
service_arn,
started_at,
total_findings
FROM aws.resiliencehubv2.failure_mode_assessments
WHERE serviceArn = '{{ serviceArn }}' -- required
AND region = '{{ region }}' -- required
AND assessmentStatuses = '{{ assessmentStatuses }}'
AND startedAfter = '{{ startedAfter }}'
AND endedBefore = '{{ endedBefore }}'
AND sortBy = '{{ sortBy }}'
AND sortOrder = '{{ sortOrder }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;