Skip to content

list_deployment_events

list_deployment_events(
    deployment_id: DeploymentId,
    *,
    config_overrides: Optional[LaunchWizardClientConfig] = None,
    max_results: Optional[MaxDeploymentEventResults] = None,
    next_token: Optional[NextToken] = None,
) -> ListDeploymentEventsOutput

Lists the events of a deployment.

Parameters:

  • deployment_id (DeploymentId) –

    The ID of the deployment.

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

    The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output.

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

    The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.

Raises:

Examples:

List all actions taken during a deployment.

>>> client.list_deployment_events(deployment_id='4c1b59c1-659c-467f-b6e9-6ef6f9d28e1d')
Source code in docs_src/capo_launch_wizard/_services/launch_wizard.py
def list_deployment_events(
    self,
    deployment_id: "capo_launch_wizard.types.deployment_id.DeploymentId",
    *,
    config_overrides: Optional[LaunchWizardClientConfig] = None,
    max_results: Optional[
        "capo_launch_wizard.types.max_deployment_event_results.MaxDeploymentEventResults"
    ] = None,
    next_token: Optional["capo_launch_wizard.types.next_token.NextToken"] = None,
) -> "capo_launch_wizard.types.list_deployment_events_output.ListDeploymentEventsOutput":
    """<p>Lists the events of a deployment.</p>

    Args:
        deployment_id: <p>The ID of the deployment.</p>
        max_results: <p>The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output.</p>
        next_token: <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>

    Raises:
        capo_launch_wizard.errors.internal_server_exception.InternalServerException: <p>An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on <a href="https://repost.aws/">re:Post</a>.</p>
        capo_launch_wizard.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified workload or deployment resource can't be found.</p>
        capo_launch_wizard.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
        capo_launch_wizard.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        List all actions taken during a deployment.

        >>> client.list_deployment_events(deployment_id='4c1b59c1-659c-467f-b6e9-6ef6f9d28e1d')
    """

    def _handler(
        req: "OperationRequest[capo_launch_wizard.types.list_deployment_events_input.ListDeploymentEventsInput]",
    ) -> OperationResponse[
        "capo_launch_wizard.types.list_deployment_events_output.ListDeploymentEventsOutput"
    ]:
        import capo_launch_wizard._operations.launch_wizard.list_deployment_events

        output, http_response = (
            capo_launch_wizard._operations.launch_wizard.list_deployment_events.list_deployment_events(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListDeploymentEvents")
    )
    input_: capo_launch_wizard.types.list_deployment_events_input.ListDeploymentEventsInput = {
        "deployment_id": deployment_id
    }
    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