deleteAppVersionAppComponent method

Future<DeleteAppVersionAppComponentResponse> deleteAppVersionAppComponent({
  1. required String appArn,
  2. required String id,
  3. String? clientToken,
})

Deletes an Application Component from the Resilience Hub application.

  • 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.

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

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

Parameter id : Identifier of the Application Component.

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<DeleteAppVersionAppComponentResponse> deleteAppVersionAppComponent({
  required String appArn,
  required String id,
  String? clientToken,
}) async {
  final $payload = <String, dynamic>{
    'appArn': appArn,
    'id': id,
    'clientToken': clientToken ?? _s.generateIdempotencyToken(),
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/delete-app-version-app-component',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteAppVersionAppComponentResponse.fromJson(response);
}