Deletes an integration. Returns the resulting status.
Parameters:
-
identifier
(IntegrationIdentifier)
–
Identifies the integration to delete — exactly one of integrationId, integrationArn, or integrationName.
Raises:
Examples:
Delete an integration by id
The following example deletes the integration identified by its id. DeleteIntegration is idempotent and returns an empty response. Payloads are shown as JSON; on the wire they are CBOR-encoded.
>>> client.delete_integration(identifier={'integrationId': 'a1b2c3d4-5e6f-4a3b-8c9d-0e1f2a3b4c5d'})
Source code in docs_src/capo_cloudwatchomni/_services/cloud_watch_omni.py
| def delete_integration(
self,
identifier: "capo_cloudwatchomni.types.integration_identifier.IntegrationIdentifier",
*,
config_overrides: Optional[CloudWatchOmniClientConfig] = None,
) -> "capo_cloudwatchomni.types.delete_integration_output.DeleteIntegrationOutput":
"""Deletes an integration. Returns the resulting status.
Args:
identifier: Identifies the integration to delete — exactly one of integrationId, integrationArn, or integrationName.
Raises:
capo_cloudwatchomni.errors.access_denied_exception.AccessDeniedException: The caller is not authorized to perform this action.
capo_cloudwatchomni.errors.internal_server_exception.InternalServerException: An unexpected error occurred while processing the request.
capo_cloudwatchomni.errors.throttling_exception.ThrottlingException: The request was throttled due to exceeding the allowed request rate.
capo_cloudwatchomni.errors.validation_exception.ValidationException: A parameter is specified incorrectly.
capo_cloudwatchomni.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
Delete an integration by id
The following example deletes the integration identified by its id. DeleteIntegration is idempotent and returns an empty response. Payloads are shown as JSON; on the wire they are CBOR-encoded.
>>> client.delete_integration(identifier={'integrationId': 'a1b2c3d4-5e6f-4a3b-8c9d-0e1f2a3b4c5d'})
"""
def _handler(
req: "OperationRequest[capo_cloudwatchomni.types.delete_integration_input.DeleteIntegrationInput]",
) -> OperationResponse[
"capo_cloudwatchomni.types.delete_integration_output.DeleteIntegrationOutput"
]:
import capo_cloudwatchomni._operations.cloud_watch_omni_frontend.delete_integration
output, http_response = (
capo_cloudwatchomni._operations.cloud_watch_omni_frontend.delete_integration.delete_integration(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteIntegration")
)
input_: capo_cloudwatchomni.types.delete_integration_input.DeleteIntegrationInput = {
"identifier": identifier
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|