Returns the status of a deployment.
Parameters:
-
deployment_id
(__string)
–
The ID of the deployment.
-
group_id
(__string)
–
The ID of the Greengrass group.
Raises:
Source code in docs_src/capo_greengrass/_services/greengrass.py
| def get_deployment_status(
self,
deployment_id: "capo_greengrass.types.__string.__string",
group_id: "capo_greengrass.types.__string.__string",
*,
config_overrides: Optional[GreengrassClientConfig] = None,
) -> "capo_greengrass.types.get_deployment_status_response.GetDeploymentStatusResponse":
"""Returns the status of a deployment.
Args:
deployment_id: The ID of the deployment.
group_id: The ID of the Greengrass group.
Raises:
capo_greengrass.errors.bad_request_exception.BadRequestException: General error information.
capo_greengrass.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_greengrass.types.get_deployment_status_request.GetDeploymentStatusRequest]",
) -> OperationResponse[
"capo_greengrass.types.get_deployment_status_response.GetDeploymentStatusResponse"
]:
import capo_greengrass._operations.greengrass.get_deployment_status
output, http_response = (
capo_greengrass._operations.greengrass.get_deployment_status.get_deployment_status(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetDeploymentStatus")
)
input_: capo_greengrass.types.get_deployment_status_request.GetDeploymentStatusRequest = {
"deployment_id": deployment_id,
"group_id": group_id,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|