Skip to content

start_telemetry_pipeline_refresh async

start_telemetry_pipeline_refresh(
    pipeline_identifier: TelemetryPipelineIdentifier,
    *,
    config_overrides: Optional[AsyncObservabilityAdminClientConfig] = None,
) -> StartTelemetryPipelineRefreshOutput

Starts a refresh of an external-cloud telemetry pipeline. The refresh re-reads the connector's telemetry manifest and re-discovers the sources in scope.

The pipeline must be in the ACTIVE or UPDATE_FAILED state, with no refresh already running. You can use GetTelemetryPipeline to track the refresh.

Parameters:

Raises:

Source code in docs_src/capo_observabilityadmin/_services/async_observability_admin.py
async def start_telemetry_pipeline_refresh(
    self,
    pipeline_identifier: "capo_observabilityadmin.types.telemetry_pipeline_identifier.TelemetryPipelineIdentifier",
    *,
    config_overrides: Optional[AsyncObservabilityAdminClientConfig] = None,
) -> "capo_observabilityadmin.types.start_telemetry_pipeline_refresh_output.StartTelemetryPipelineRefreshOutput":
    """<p>Starts a refresh of an external-cloud telemetry pipeline. The refresh re-reads the connector's telemetry manifest and re-discovers the sources in scope.</p> <p>The pipeline must be in the <code>ACTIVE</code> or <code>UPDATE_FAILED</code> state, with no refresh already running. You can use <code>GetTelemetryPipeline</code> to track the refresh.</p>

    Args:
        pipeline_identifier: <p>The Amazon Resource Name (ARN) of the telemetry pipeline to refresh.</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.conflict_exception.ConflictException: <p> The requested operation conflicts with the current state of the specified resource or with another request. </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.resource_not_found_exception.ResourceNotFoundException: <p> The specified resource (such as a telemetry rule) could not be found. </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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_observabilityadmin.types.start_telemetry_pipeline_refresh_input.StartTelemetryPipelineRefreshInput]",
    ) -> AsyncOperationResponse[
        "capo_observabilityadmin.types.start_telemetry_pipeline_refresh_output.StartTelemetryPipelineRefreshOutput"
    ]:
        import capo_observabilityadmin._operations.observability_admin.start_telemetry_pipeline_refresh

        (
            output,
            http_response,
        ) = await capo_observabilityadmin._operations.observability_admin.start_telemetry_pipeline_refresh.async_start_telemetry_pipeline_refresh(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("StartTelemetryPipelineRefresh")
    )
    input_: capo_observabilityadmin.types.start_telemetry_pipeline_refresh_input.StartTelemetryPipelineRefreshInput = {
        "pipeline_identifier": pipeline_identifier
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output