create_environment
¶
create_environment(
app_name: AppName,
environment_name: EnvironmentName,
environment_role_arn: EnvironmentRoleArn,
*,
config_overrides: Optional[AmplifyGen3ClientConfig] = None,
environment_role_permission_mode: Optional[EnvironmentRolePermissionMode] = None,
source_config: Optional[EnvironmentSourceConfigRequest] = None,
gradual_rollout_config: Optional[GradualRolloutConfig] = None,
tags: Optional[TagMap] = None,
web: Optional[EnvironmentWebConfigRequest] = None,
network_config: Optional[EnvironmentNetworkConfigRequest] = None,
backend: Optional[EnvironmentBackendConfigRequest] = None,
) -> CreateEnvironmentResponse
Creates an environment for a Gen 3 app.
Parameters:
-
app_name(AppName) –The name of the app.
-
environment_name(EnvironmentName) –The name of the environment.
-
environment_role_arn(EnvironmentRoleArn) –The Amazon Resource Name (ARN) of the IAM role for the environment.
-
environment_role_permission_mode(Optional[EnvironmentRolePermissionMode], default:None) –The permission mode for the environment's IAM role.
-
source_config(Optional[EnvironmentSourceConfigRequest], default:None) –The source configuration for the environment.
-
gradual_rollout_config(Optional[GradualRolloutConfig], default:None) –The gradual rollout settings for the environment.
-
tags(Optional[TagMap], default:None) –The tags to apply to the resource.
-
web(Optional[EnvironmentWebConfigRequest], default:None) –The web hosting settings for the environment.
-
network_config(Optional[EnvironmentNetworkConfigRequest], default:None) –The VPC network configuration for the environment.
-
backend(Optional[EnvironmentBackendConfigRequest], default:None) –The backend settings for the environment. You can specify this only when the app has a backend. If you omit this, the default authentication settings and the plan's default database settings are used.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
ConflictException–The request conflicts with the current state of the resource.
-
InternalServerException–An internal error occurred. Retry the request.
-
ResourceNotFoundException–The requested resource was not found.
-
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
3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 | |