Skip to content

get_timeline_event

get_timeline_event(
    incident_record_arn: Arn,
    event_id: UUID,
    *,
    config_overrides: Optional[SSMIncidentsClientConfig] = None,
) -> GetTimelineEventOutput

Retrieves a timeline event based on its ID and incident record.

Parameters:

  • incident_record_arn (Arn) –

    The Amazon Resource Name (ARN) of the incident that includes the timeline event.

  • event_id (UUID) –

    The ID of the event. You can get an event's ID when you create it, or by using ListTimelineEvents.

Raises:

Source code in docs_src/capo_ssm_incidents/_services/ssm_incidents.py
def get_timeline_event(
    self,
    incident_record_arn: "capo_ssm_incidents.types.arn.Arn",
    event_id: "capo_ssm_incidents.types.uuid.UUID",
    *,
    config_overrides: Optional[SSMIncidentsClientConfig] = None,
) -> "capo_ssm_incidents.types.get_timeline_event_output.GetTimelineEventOutput":
    """<p>Retrieves a timeline event based on its ID and incident record.</p>

    Args:
        incident_record_arn: <p>The Amazon Resource Name (ARN) of the incident that includes the timeline event.</p>
        event_id: <p>The ID of the event. You can get an event's ID when you create it, or by using <code>ListTimelineEvents</code>.</p>

    Raises:
        capo_ssm_incidents.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient access to perform this operation.</p>
        capo_ssm_incidents.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception or failure.</p>
        capo_ssm_incidents.errors.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource which doesn't exist. </p>
        capo_ssm_incidents.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_ssm_incidents.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
        capo_ssm_incidents.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_ssm_incidents.types.get_timeline_event_input.GetTimelineEventInput]",
    ) -> OperationResponse[
        "capo_ssm_incidents.types.get_timeline_event_output.GetTimelineEventOutput"
    ]:
        import capo_ssm_incidents._operations.ssm_incidents.get_timeline_event

        output, http_response = (
            capo_ssm_incidents._operations.ssm_incidents.get_timeline_event.get_timeline_event(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetTimelineEvent")
    )
    input_: capo_ssm_incidents.types.get_timeline_event_input.GetTimelineEventInput = {
        "incident_record_arn": incident_record_arn,
        "event_id": event_id,
    }

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