Skip to content

get_deployment

get_deployment(
    deployment_id: DeploymentId,
    *,
    config_overrides: Optional[LaunchWizardClientConfig] = None,
) -> GetDeploymentOutput

Returns information about the deployment.

Parameters:

  • deployment_id (DeploymentId) –

    The ID of the deployment.

Raises:

Examples:

Get details about a given deployment.

>>> client.get_deployment(deployment_id='1111111-1111-1111-1111-111111111111')
Source code in docs_src/capo_launch_wizard/_services/launch_wizard.py
def get_deployment(
    self,
    deployment_id: "capo_launch_wizard.types.deployment_id.DeploymentId",
    *,
    config_overrides: Optional[LaunchWizardClientConfig] = None,
) -> "capo_launch_wizard.types.get_deployment_output.GetDeploymentOutput":
    """<p>Returns information about the deployment.</p>

    Args:
        deployment_id: <p>The ID of the deployment.</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:
        Get details about a given deployment.

        >>> client.get_deployment(deployment_id='1111111-1111-1111-1111-111111111111')
    """

    def _handler(
        req: "OperationRequest[capo_launch_wizard.types.get_deployment_input.GetDeploymentInput]",
    ) -> OperationResponse[
        "capo_launch_wizard.types.get_deployment_output.GetDeploymentOutput"
    ]:
        import capo_launch_wizard._operations.launch_wizard.get_deployment

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

    def _redact_output(
        output: "capo_launch_wizard.types.get_deployment_output.GetDeploymentOutput",
    ) -> dict[str, Any]:
        import capo_launch_wizard.types.get_deployment_output

        return capo_launch_wizard.types.get_deployment_output.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("GetDeployment", redact_output=_redact_output),
    )
    input_: capo_launch_wizard.types.get_deployment_input.GetDeploymentInput = {
        "deployment_id": deployment_id
    }

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