delete_app_version_app_component
¶
delete_app_version_app_component(
app_arn: Arn,
id: String255,
*,
config_overrides: Optional[resiliencehubClientConfig] = None,
client_token: Optional[ClientToken] = None,
) -> DeleteAppVersionAppComponentResponse
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
PublishAppVersionAPI. -
You will not be able to delete an Application Component if it has resources associated with it.
Parameters:
-
app_arn(Arn) –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. -
id(String255) –Identifier of the Application Component.
-
client_token(Optional[ClientToken], default:None) –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.
Raises:
-
AccessDeniedException–You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions.
-
ConflictException–This exception occurs when a conflict with a previous successful write is detected. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception.
-
InternalServerException–This exception occurs when there is an internal failure in the Resilience Hub service.
-
ResourceNotFoundException–This exception occurs when the specified resource could not be found.
-
ThrottlingException–This exception occurs when you have exceeded the limit on the number of requests per second.
-
ValidationException–This exception occurs when a request is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.