aws_sdk_amplify/client/update_app.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`UpdateApp`](crate::operation::update_app::builders::UpdateAppFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`app_id(impl Into<String>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::set_app_id):<br>required: **true**<br><p>The unique ID for an Amplify app.</p><br>
7 /// - [`name(impl Into<String>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::set_name):<br>required: **false**<br><p>The name for an Amplify app.</p><br>
8 /// - [`description(impl Into<String>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::set_description):<br>required: **false**<br><p>The description for an Amplify app.</p><br>
9 /// - [`platform(Platform)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::platform) / [`set_platform(Option<Platform>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::set_platform):<br>required: **false**<br><p>The platform for the Amplify app. For a static app, set the platform type to <code>WEB</code>. For a dynamic server-side rendered (SSR) app, set the platform type to <code>WEB_COMPUTE</code>. For an app requiring Amplify Hosting's original SSR support only, set the platform type to <code>WEB_DYNAMIC</code>.</p> <p>If you are deploying an SSG only app with Next.js version 14 or later, you must set the platform type to <code>WEB_COMPUTE</code>.</p><br>
10 /// - [`compute_role_arn(impl Into<String>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::compute_role_arn) / [`set_compute_role_arn(Option<String>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::set_compute_role_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the IAM role to assign to an SSR app. The SSR Compute role allows the Amplify Hosting compute service to securely access specific Amazon Web Services resources based on the role's permissions. For more information about the SSR Compute role, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-SSR-compute-role.html">Adding an SSR Compute role</a> in the <i>Amplify User Guide</i>.</p><br>
11 /// - [`iam_service_role_arn(impl Into<String>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::iam_service_role_arn) / [`set_iam_service_role_arn(Option<String>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::set_iam_service_role_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the IAM service role for the Amplify app.</p><br>
12 /// - [`environment_variables(impl Into<String>, impl Into<String>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::environment_variables) / [`set_environment_variables(Option<HashMap::<String, String>>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::set_environment_variables):<br>required: **false**<br><p>The environment variables for an Amplify app.</p><br>
13 /// - [`enable_branch_auto_build(bool)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::enable_branch_auto_build) / [`set_enable_branch_auto_build(Option<bool>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::set_enable_branch_auto_build):<br>required: **false**<br><p>Enables branch auto-building for an Amplify app.</p><br>
14 /// - [`enable_branch_auto_deletion(bool)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::enable_branch_auto_deletion) / [`set_enable_branch_auto_deletion(Option<bool>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::set_enable_branch_auto_deletion):<br>required: **false**<br><p>Automatically disconnects a branch in the Amplify console when you delete a branch from your Git repository.</p><br>
15 /// - [`enable_basic_auth(bool)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::enable_basic_auth) / [`set_enable_basic_auth(Option<bool>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::set_enable_basic_auth):<br>required: **false**<br><p>Enables basic authorization for an Amplify app.</p><br>
16 /// - [`basic_auth_credentials(impl Into<String>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::basic_auth_credentials) / [`set_basic_auth_credentials(Option<String>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::set_basic_auth_credentials):<br>required: **false**<br><p>The basic authorization credentials for an Amplify app. You must base64-encode the authorization credentials and provide them in the format <code>user:password</code>.</p><br>
17 /// - [`custom_rules(CustomRule)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::custom_rules) / [`set_custom_rules(Option<Vec::<CustomRule>>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::set_custom_rules):<br>required: **false**<br><p>The custom redirect and rewrite rules for an Amplify app.</p><br>
18 /// - [`build_spec(impl Into<String>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::build_spec) / [`set_build_spec(Option<String>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::set_build_spec):<br>required: **false**<br><p>The build specification (build spec) for an Amplify app.</p><br>
19 /// - [`custom_headers(impl Into<String>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::custom_headers) / [`set_custom_headers(Option<String>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::set_custom_headers):<br>required: **false**<br><p>The custom HTTP headers for an Amplify app.</p><br>
20 /// - [`enable_auto_branch_creation(bool)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::enable_auto_branch_creation) / [`set_enable_auto_branch_creation(Option<bool>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::set_enable_auto_branch_creation):<br>required: **false**<br><p>Enables automated branch creation for an Amplify app.</p><br>
21 /// - [`auto_branch_creation_patterns(impl Into<String>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::auto_branch_creation_patterns) / [`set_auto_branch_creation_patterns(Option<Vec::<String>>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::set_auto_branch_creation_patterns):<br>required: **false**<br><p>Describes the automated branch creation glob patterns for an Amplify app.</p><br>
22 /// - [`auto_branch_creation_config(AutoBranchCreationConfig)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::auto_branch_creation_config) / [`set_auto_branch_creation_config(Option<AutoBranchCreationConfig>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::set_auto_branch_creation_config):<br>required: **false**<br><p>The automated branch creation configuration for an Amplify app.</p><br>
23 /// - [`repository(impl Into<String>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::repository) / [`set_repository(Option<String>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::set_repository):<br>required: **false**<br><p>The name of the Git repository for an Amplify app.</p><br>
24 /// - [`oauth_token(impl Into<String>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::oauth_token) / [`set_oauth_token(Option<String>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::set_oauth_token):<br>required: **false**<br><p>The OAuth token for a third-party source control system for an Amplify app. The OAuth token is used to create a webhook and a read-only deploy key using SSH cloning. The OAuth token is not stored.</p> <p>Use <code>oauthToken</code> for repository providers other than GitHub, such as Bitbucket or CodeCommit.</p> <p>To authorize access to GitHub as your repository provider, use <code>accessToken</code>.</p> <p>You must specify either <code>oauthToken</code> or <code>accessToken</code> when you update an app.</p> <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html#migrating-to-github-app-auth">Migrating an existing OAuth app to the Amplify GitHub App</a> in the <i>Amplify User Guide</i> .</p><br>
25 /// - [`access_token(impl Into<String>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::access_token) / [`set_access_token(Option<String>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::set_access_token):<br>required: **false**<br><p>The personal access token for a GitHub repository for an Amplify app. The personal access token is used to authorize access to a GitHub repository using the Amplify GitHub App. The token is not stored.</p> <p>Use <code>accessToken</code> for GitHub repositories only. To authorize access to a repository provider such as Bitbucket or CodeCommit, use <code>oauthToken</code>.</p> <p>You must specify either <code>accessToken</code> or <code>oauthToken</code> when you update an app.</p> <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html#migrating-to-github-app-auth">Migrating an existing OAuth app to the Amplify GitHub App</a> in the <i>Amplify User Guide</i> .</p><br>
26 /// - [`job_config(JobConfig)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::job_config) / [`set_job_config(Option<JobConfig>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::set_job_config):<br>required: **false**<br><p>Describes the configuration details that apply to the jobs for an Amplify app.</p><br>
27 /// - [`cache_config(CacheConfig)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::cache_config) / [`set_cache_config(Option<CacheConfig>)`](crate::operation::update_app::builders::UpdateAppFluentBuilder::set_cache_config):<br>required: **false**<br><p>The cache configuration for the Amplify app.</p><br>
28 /// - On success, responds with [`UpdateAppOutput`](crate::operation::update_app::UpdateAppOutput) with field(s):
29 /// - [`app(Option<App>)`](crate::operation::update_app::UpdateAppOutput::app): <p>Represents the updated Amplify app.</p>
30 /// - On failure, responds with [`SdkError<UpdateAppError>`](crate::operation::update_app::UpdateAppError)
31 pub fn update_app(&self) -> crate::operation::update_app::builders::UpdateAppFluentBuilder {
32 crate::operation::update_app::builders::UpdateAppFluentBuilder::new(self.handle.clone())
33 }
34}