Skip to content

get_deployment

get_deployment(
    application_id: Name,
    environment_id: Name,
    deployment_number: Integer,
    *,
    config_overrides: Optional[AppConfigClientConfig] = None,
) -> Deployment

Retrieves information about a configuration deployment.

Parameters:

  • application_id (Name) –

    The ID of the application that includes the deployment you want to get.

  • environment_id (Name) –

    The ID of the environment that includes the deployment you want to get.

  • deployment_number (Integer) –

    The sequence number of the deployment.

Raises:

Source code in docs_src/capo_appconfig/_services/app_config.py
def get_deployment(
    self,
    application_id: "capo_appconfig.types.name.Name",
    environment_id: "capo_appconfig.types.name.Name",
    deployment_number: "capo_appconfig.types.integer.Integer",
    *,
    config_overrides: Optional[AppConfigClientConfig] = None,
) -> "capo_appconfig.types.deployment.Deployment":
    """<p>Retrieves information about a configuration deployment.</p>

    Args:
        application_id: <p>The ID of the application that includes the deployment you want to get. </p>
        environment_id: <p>The ID of the environment that includes the deployment you want to get. </p>
        deployment_number: <p>The sequence number of the deployment.</p>

    Raises:
        capo_appconfig.errors.bad_request_exception.BadRequestException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
        capo_appconfig.errors.internal_server_exception.InternalServerException: <p>There was an internal failure in the AppConfig service.</p>
        capo_appconfig.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource could not be found.</p>
        capo_appconfig.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_appconfig.types.get_deployment_request.GetDeploymentRequest]",
    ) -> OperationResponse["capo_appconfig.types.deployment.Deployment"]:
        import capo_appconfig._operations.amazon_app_config.get_deployment

        output, http_response = (
            capo_appconfig._operations.amazon_app_config.get_deployment.get_deployment(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetDeployment")
    )
    input_: capo_appconfig.types.get_deployment_request.GetDeploymentRequest = {
        "application_id": application_id,
        "environment_id": environment_id,
        "deployment_number": deployment_number,
    }

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