create_deployment
async
¶
create_deployment(
app_name: AppName,
environment_name: EnvironmentName,
*,
config_overrides: Optional[AsyncAmplifyGen3ClientConfig] = None,
source_config: Optional[DeploymentSourceConfigRequest] = None,
description: Optional[Description] = None,
tags: Optional[TagMap] = None,
branch_arn: Optional[BranchArn] = None,
publishable_key_action: Optional[PublishableKeyAction] = None,
) -> CreateDeploymentResponse
Creates a deployment for an environment of a Gen 3 app.
Parameters:
-
app_name(AppName) –The name of the app.
-
environment_name(EnvironmentName) –The name of the environment.
-
source_config(Optional[DeploymentSourceConfigRequest], default:None) –The source to deploy.
-
description(Optional[Description], default:None) –The description of the deployment.
-
tags(Optional[TagMap], default:None) –The tags to apply to the resource.
-
branch_arn(Optional[BranchArn], default:None) –The Amazon Resource Name (ARN) of the branch to deploy to. This applies only to an app with a backend. The branch must belong to the same app and environment. In the Production environment, it must be the production branch. If you omit this, Amplify chooses the branch and creates it if it doesn't exist.
-
publishable_key_action(Optional[PublishableKeyAction], default:None) –Specifies what the deployment does with the branch's publishable key, for an app with a backend. CREATE_NEW creates a new key that this deployment and later deployments use. The previous key stays active until you revoke it with RevokeApiKey. REUSE, the default, uses the branch's current key.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
InternalServerException–An internal error occurred. Retry the request.
-
ResourceNotFoundException–The requested resource was not found.
-
RoleNotAssumableException–The specified IAM role cannot be assumed. Verify the role and its trust policy, and try again.
-
ServiceQuotaExceededException–The request would exceed a service quota for your account.
-
ThrottlingException–The request was denied because the request rate exceeds the allowed limit.
-
ValidationException–The request contains invalid parameters or is otherwise malformed.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_amplifygen3/_services/async_amplify_gen3.py
4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 | |