Returns information about one integration between CloudWatch Logs and OpenSearch Service.
Parameters:
-
integration_name
(IntegrationName)
–
The name of the integration that you want to find information about. To find the name of your integration, use ListIntegrations
Raises:
Source code in docs_src/capo_cloudwatch_logs/_services/async_cloud_watch_logs.py
| async def get_integration(
self,
integration_name: "capo_cloudwatch_logs.types.integration_name.IntegrationName",
*,
config_overrides: Optional[AsyncCloudWatchLogsClientConfig] = None,
) -> "capo_cloudwatch_logs.types.get_integration_response.GetIntegrationResponse":
"""<p>Returns information about one integration between CloudWatch Logs and OpenSearch Service. </p>
Args:
integration_name: <p>The name of the integration that you want to find information about. To find the name of your integration, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListIntegrations.html">ListIntegrations</a> </p>
Raises:
capo_cloudwatch_logs.errors.invalid_parameter_exception.InvalidParameterException: <p>A parameter is specified incorrectly.</p>
capo_cloudwatch_logs.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource does not exist.</p>
capo_cloudwatch_logs.errors.service_unavailable_exception.ServiceUnavailableException: <p>The service cannot complete the request.</p>
capo_cloudwatch_logs.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_cloudwatch_logs.types.get_integration_request.GetIntegrationRequest]",
) -> AsyncOperationResponse[
"capo_cloudwatch_logs.types.get_integration_response.GetIntegrationResponse"
]:
import capo_cloudwatch_logs._operations.logs_20140328.get_integration
(
output,
http_response,
) = await capo_cloudwatch_logs._operations.logs_20140328.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_cloudwatch_logs.types.get_integration_request.GetIntegrationRequest = {
"integration_name": integration_name
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|