Skip to content

list_third_party_telemetry_enrichments

list_third_party_telemetry_enrichments(
    *,
    config_overrides: Optional[ObservabilityAdminClientConfig] = None,
    status: Optional[ThirdPartyTelemetryEnrichmentStatus] = None,
    telemetry_source: Optional[ThirdPartyTelemetrySource] = None,
    max_results: Optional[ListThirdPartyTelemetryEnrichmentsMaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> ListThirdPartyTelemetryEnrichmentsOutput

Returns a summary of each third-party telemetry enrichment in your account and Region. To get the full configuration of an enrichment, use GetThirdPartyTelemetryEnrichment. The results are paginated. To get the next page of results, use NextToken.

Parameters:

  • status (Optional[ThirdPartyTelemetryEnrichmentStatus], default: None ) –

    Returns only the enrichments that have this status. Valid values:

    • Initializing - CloudWatch is setting up the enrichment. Some telemetry can be enriched before setup completes.

    • Running - The enrichment is active.

    • Stopped - The enrichment is stopped.

    • Impaired - The enrichment has a problem. StatusReason describes the problem.

  • telemetry_source (Optional[ThirdPartyTelemetrySource], default: None ) –

    Returns only the enrichments for this third-party telemetry source.

  • max_results (Optional[ListThirdPartyTelemetryEnrichmentsMaxResults], default: None ) –

    The maximum number of results to return in a single call. If you omit this parameter, the operation returns up to 100 results.

  • next_token (Optional[NextToken], default: None ) –

    The token for the next set of results. A previous call generates this token. If you omit this parameter, the operation returns the first page of results.

Raises:

Source code in docs_src/capo_observabilityadmin/_services/observability_admin.py
def list_third_party_telemetry_enrichments(
    self,
    *,
    config_overrides: Optional[ObservabilityAdminClientConfig] = None,
    status: Optional[
        "capo_observabilityadmin.types.third_party_telemetry_enrichment_status.ThirdPartyTelemetryEnrichmentStatus"
    ] = None,
    telemetry_source: Optional[
        "capo_observabilityadmin.types.third_party_telemetry_source.ThirdPartyTelemetrySource"
    ] = None,
    max_results: Optional[
        "capo_observabilityadmin.types.list_third_party_telemetry_enrichments_max_results.ListThirdPartyTelemetryEnrichmentsMaxResults"
    ] = None,
    next_token: Optional[
        "capo_observabilityadmin.types.next_token.NextToken"
    ] = None,
) -> "capo_observabilityadmin.types.list_third_party_telemetry_enrichments_output.ListThirdPartyTelemetryEnrichmentsOutput":
    """<p>Returns a summary of each third-party telemetry enrichment in your account and Region. To get the full configuration of an enrichment, use <code>GetThirdPartyTelemetryEnrichment</code>. The results are paginated. To get the next page of results, use <code>NextToken</code>.</p>

    Args:
        status: <p>Returns only the enrichments that have this status. Valid values:</p> <ul> <li> <p> <code>Initializing</code> - CloudWatch is setting up the enrichment. Some telemetry can be enriched before setup completes.</p> </li> <li> <p> <code>Running</code> - The enrichment is active.</p> </li> <li> <p> <code>Stopped</code> - The enrichment is stopped.</p> </li> <li> <p> <code>Impaired</code> - The enrichment has a problem. <code>StatusReason</code> describes the problem.</p> </li> </ul>
        telemetry_source: <p>Returns only the enrichments for this third-party telemetry source.</p>
        max_results: <p>The maximum number of results to return in a single call. If you omit this parameter, the operation returns up to 100 results.</p>
        next_token: <p>The token for the next set of results. A previous call generates this token. If you omit this parameter, the operation returns the first page of results.</p>

    Raises:
        capo_observabilityadmin.errors.access_denied_exception.AccessDeniedException: <p> Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access management for Amazon Web Services resources</a> in the IAM user guide. </p>
        capo_observabilityadmin.errors.internal_server_exception.InternalServerException: <p> Indicates the request has failed to process because of an unknown server error, exception, or failure. </p>
        capo_observabilityadmin.errors.too_many_requests_exception.TooManyRequestsException: <p> The request throughput limit was exceeded. </p>
        capo_observabilityadmin.errors.validation_exception.ValidationException: <p> Indicates input validation failed. Check your request parameters and retry the request. </p>
        capo_observabilityadmin.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_observabilityadmin.types.list_third_party_telemetry_enrichments_input.ListThirdPartyTelemetryEnrichmentsInput]",
    ) -> OperationResponse[
        "capo_observabilityadmin.types.list_third_party_telemetry_enrichments_output.ListThirdPartyTelemetryEnrichmentsOutput"
    ]:
        import capo_observabilityadmin._operations.observability_admin.list_third_party_telemetry_enrichments

        output, http_response = (
            capo_observabilityadmin._operations.observability_admin.list_third_party_telemetry_enrichments.list_third_party_telemetry_enrichments(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListThirdPartyTelemetryEnrichments")
    )
    input_: capo_observabilityadmin.types.list_third_party_telemetry_enrichments_input.ListThirdPartyTelemetryEnrichmentsInput = {}
    if status is not None:
        input_["status"] = status
    if telemetry_source is not None:
        input_["telemetry_source"] = telemetry_source
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output