Returns the details of a single integration, identified by its identifier, Amazon Resource Name, or name.
Parameters:
-
identifier
(IntegrationIdentifier)
–
Identifies the integration to return — exactly one of integrationId, integrationArn, or integrationName.
Raises:
Examples:
Get an integration by id
The following example returns the integration with the given id. Payloads are shown as JSON; on the wire they are CBOR-encoded.
>>> await client.get_integration(identifier={'integrationId': 'a1b2c3d4-5e6f-4a3b-8c9d-0e1f2a3b4c5d'})
Source code in docs_src/capo_cloudwatchomni/_services/async_cloud_watch_omni.py
| async def get_integration(
self,
identifier: "capo_cloudwatchomni.types.integration_identifier.IntegrationIdentifier",
*,
config_overrides: Optional[AsyncCloudWatchOmniClientConfig] = None,
) -> "capo_cloudwatchomni.types.get_integration_output.GetIntegrationOutput":
"""Returns the details of a single integration, identified by its identifier, Amazon Resource Name, or name.
Args:
identifier: Identifies the integration to return — 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.resource_not_found_exception.ResourceNotFoundException: The specified resource does not exist.
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:
Get an integration by id
The following example returns the integration with the given id. Payloads are shown as JSON; on the wire they are CBOR-encoded.
>>> await client.get_integration(identifier={'integrationId': 'a1b2c3d4-5e6f-4a3b-8c9d-0e1f2a3b4c5d'})
"""
async def _handler(
req: "AsyncOperationRequest[capo_cloudwatchomni.types.get_integration_input.GetIntegrationInput]",
) -> AsyncOperationResponse[
"capo_cloudwatchomni.types.get_integration_output.GetIntegrationOutput"
]:
import capo_cloudwatchomni._operations.cloud_watch_omni_frontend.get_integration
(
output,
http_response,
) = await capo_cloudwatchomni._operations.cloud_watch_omni_frontend.get_integration.async_get_integration(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetIntegration")
)
input_: capo_cloudwatchomni.types.get_integration_input.GetIntegrationInput = {
"identifier": identifier
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|