create_app
¶
create_app(
app_name: AppName,
default_environments_configuration: DefaultEnvironmentsConfiguration,
*,
config_overrides: Optional[AmplifyGen3ClientConfig] = None,
source_config: Optional[AppSourceConfigRequest] = None,
web: Optional[AppWebConfigRequest] = None,
backend: Optional[AppBackendRequest] = None,
tags: Optional[TagMap] = None,
) -> CreateAppResponse
Creates a new Amplify Gen 3 app.
Parameters:
-
app_name(AppName) –The name of the app.
-
source_config(Optional[AppSourceConfigRequest], default:None) –The source repository configuration for the app.
-
web(Optional[AppWebConfigRequest], default:None) –The web hosting settings for the app.
-
backend(Optional[AppBackendRequest], default:None) –The backend settings for the app. Omit this for a frontend-only app.
-
default_environments_configuration(DefaultEnvironmentsConfiguration) –The settings for the Production and Preview environments that Amplify creates for the app. Specify one entry for each environment.
-
tags(Optional[TagMap], default:None) –The tags to apply to the resource.
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.
-
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
2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 | |