deleteAppAssessment method

Future<DeleteAppAssessmentResponse> deleteAppAssessment({
  1. required String assessmentArn,
  2. String? clientToken,
})

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

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter assessmentArn : Amazon 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.

Parameter clientToken : Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.

Implementation

Future<DeleteAppAssessmentResponse> deleteAppAssessment({
  required String assessmentArn,
  String? clientToken,
}) async {
  final $payload = <String, dynamic>{
    'assessmentArn': assessmentArn,
    'clientToken': clientToken ?? _s.generateIdempotencyToken(),
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/delete-app-assessment',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteAppAssessmentResponse.fromJson(response);
}