create_deployment
¶
create_deployment(
app_name: AppName,
environment_name: EnvironmentName,
*,
config_overrides: Optional[AmplifyGen3ClientConfig] = 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/amplify_gen3.py
4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 | |