create_app
async
¶
create_app(
app_name: AppName,
default_environments_configuration: DefaultEnvironmentsConfiguration,
*,
config_overrides: Optional[AsyncAmplifyGen3ClientConfig] = 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/async_amplify_gen3.py
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 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 | |