Skip to content

get_integration

get_integration(
    integration_name: IntegrationName,
    *,
    config_overrides: Optional[CloudWatchLogsClientConfig] = None,
) -> GetIntegrationResponse

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/cloud_watch_logs.py
def get_integration(
    self,
    integration_name: "capo_cloudwatch_logs.types.integration_name.IntegrationName",
    *,
    config_overrides: Optional[CloudWatchLogsClientConfig] = 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.
    """

    def _handler(
        req: "OperationRequest[capo_cloudwatch_logs.types.get_integration_request.GetIntegrationRequest]",
    ) -> OperationResponse[
        "capo_cloudwatch_logs.types.get_integration_response.GetIntegrationResponse"
    ]:
        import capo_cloudwatch_logs._operations.logs_20140328.get_integration

        output, http_response = (
            capo_cloudwatch_logs._operations.logs_20140328.get_integration.get_integration(
                req.options, req.input
            )
        )
        return OperationResponse(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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output