Returns information about the deployment.
Parameters:
Raises:
Examples:
Get details about a given deployment.
>>> await client.get_deployment(deployment_id='1111111-1111-1111-1111-111111111111')
Source code in docs_src/capo_launch_wizard/_services/async_launch_wizard.py
| async def get_deployment(
self,
deployment_id: "capo_launch_wizard.types.deployment_id.DeploymentId",
*,
config_overrides: Optional[AsyncLaunchWizardClientConfig] = 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.
>>> await client.get_deployment(deployment_id='1111111-1111-1111-1111-111111111111')
"""
async def _handler(
req: "AsyncOperationRequest[capo_launch_wizard.types.get_deployment_input.GetDeploymentInput]",
) -> AsyncOperationResponse[
"capo_launch_wizard.types.get_deployment_output.GetDeploymentOutput"
]:
import capo_launch_wizard._operations.launch_wizard.get_deployment
(
output,
http_response,
) = await capo_launch_wizard._operations.launch_wizard.get_deployment.async_get_deployment(
req.options, req.input
)
return AsyncOperationResponse(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 = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|