Deletes an application. If the application has associations, you must delete them first. Alternatively, use the force option to delete the application and remove its associations.
Parameters:
-
arn
(ArnOrUUID)
–
The Amazon Resource Name (ARN) of the Application.
-
force
(Optional[Boolean], default:
None
)
–
Specifies whether to delete the application even if it still has application associations. If true, the operation removes the application and its associations. If false or absent, the delete fails when associations exist.
Setting this parameter to true permanently removes all of the application's associations. Doing so might impact other resources that rely on and reference the application. This action can't be undone.
Raises:
Examples:
To delete an application
The following deletes an application.
>>> client.delete_application(arn='arn:aws:app-integrations:us-west-2:0123456789012:application/98542c53-e8ac-4570-9c85-c6552c8d9c5e')
Source code in docs_src/capo_appintegrations/_services/app_integrations.py
| def delete_application(
self,
arn: "capo_appintegrations.types.arn_or_uuid.ArnOrUUID",
*,
config_overrides: Optional[AppIntegrationsClientConfig] = None,
force: Optional["capo_appintegrations.types.boolean.Boolean"] = None,
) -> "capo_appintegrations.types.delete_application_response.DeleteApplicationResponse":
"""<p>Deletes an application. If the application has associations, you must delete them first. Alternatively, use the <code>force</code> option to delete the application and remove its associations.</p>
Args:
arn: <p>The Amazon Resource Name (ARN) of the Application.</p>
force: <p>Specifies whether to delete the application even if it still has application associations. If <code>true</code>, the operation removes the application and its associations. If <code>false</code> or absent, the delete fails when associations exist.</p> <important> <p>Setting this parameter to <code>true</code> permanently removes all of the application's associations. Doing so might impact other resources that rely on and reference the application. This action can't be undone.</p> </important>
Raises:
capo_appintegrations.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
capo_appintegrations.errors.internal_service_error.InternalServiceError: <p>Request processing failed due to an error or failure with the service.</p>
capo_appintegrations.errors.invalid_request_exception.InvalidRequestException: <p>The request is not valid. </p>
capo_appintegrations.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
capo_appintegrations.errors.throttling_exception.ThrottlingException: <p>The throttling limit has been exceeded.</p>
capo_appintegrations.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
To delete an application
The following deletes an application.
>>> client.delete_application(arn='arn:aws:app-integrations:us-west-2:0123456789012:application/98542c53-e8ac-4570-9c85-c6552c8d9c5e')
"""
def _handler(
req: "OperationRequest[capo_appintegrations.types.delete_application_request.DeleteApplicationRequest]",
) -> OperationResponse[
"capo_appintegrations.types.delete_application_response.DeleteApplicationResponse"
]:
import capo_appintegrations._operations.amazon_app_integration_service.delete_application
output, http_response = (
capo_appintegrations._operations.amazon_app_integration_service.delete_application.delete_application(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteApplication")
)
input_: capo_appintegrations.types.delete_application_request.DeleteApplicationRequest = {
"arn": arn
}
if force is not None:
input_["force"] = force
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|