Gets information about a deployment configuration.
Parameters:
-
deployment_config_name
(DeploymentConfigName)
–
The name of a deployment configuration associated with the user or Amazon Web Services account.
Raises:
Source code in docs_src/capo_codedeploy/_services/async_code_deploy.py
| async def get_deployment_config(
self,
deployment_config_name: "capo_codedeploy.types.deployment_config_name.DeploymentConfigName",
*,
config_overrides: Optional[AsyncCodeDeployClientConfig] = None,
) -> "capo_codedeploy.types.get_deployment_config_output.GetDeploymentConfigOutput":
"""<p>Gets information about a deployment configuration.</p>
Args:
deployment_config_name: <p>The name of a deployment configuration associated with the user or Amazon Web Services account.</p>
Raises:
capo_codedeploy.errors.deployment_config_does_not_exist_exception.DeploymentConfigDoesNotExistException: <p>The deployment configuration does not exist with the user or Amazon Web Services account.</p>
capo_codedeploy.errors.deployment_config_name_required_exception.DeploymentConfigNameRequiredException: <p>The deployment configuration name was not specified.</p>
capo_codedeploy.errors.invalid_compute_platform_exception.InvalidComputePlatformException: <p>The computePlatform is invalid. The computePlatform should be <code>Lambda</code>, <code>Server</code>, or <code>ECS</code>.</p>
capo_codedeploy.errors.invalid_deployment_config_name_exception.InvalidDeploymentConfigNameException: <p>The deployment configuration name was specified in an invalid format.</p>
capo_codedeploy.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_codedeploy.types.get_deployment_config_input.GetDeploymentConfigInput]",
) -> AsyncOperationResponse[
"capo_codedeploy.types.get_deployment_config_output.GetDeploymentConfigOutput"
]:
import capo_codedeploy._operations.code_deploy_20141006.get_deployment_config
(
output,
http_response,
) = await capo_codedeploy._operations.code_deploy_20141006.get_deployment_config.async_get_deployment_config(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetDeploymentConfig")
)
input_: capo_codedeploy.types.get_deployment_config_input.GetDeploymentConfigInput = {
"deployment_config_name": deployment_config_name
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|