Struct aws_sdk_amplify::operation::update_app::UpdateAppInput
source · #[non_exhaustive]pub struct UpdateAppInput {Show 19 fields
pub app_id: Option<String>,
pub name: Option<String>,
pub description: Option<String>,
pub platform: Option<Platform>,
pub iam_service_role_arn: Option<String>,
pub environment_variables: Option<HashMap<String, String>>,
pub enable_branch_auto_build: Option<bool>,
pub enable_branch_auto_deletion: Option<bool>,
pub enable_basic_auth: Option<bool>,
pub basic_auth_credentials: Option<String>,
pub custom_rules: Option<Vec<CustomRule>>,
pub build_spec: Option<String>,
pub custom_headers: Option<String>,
pub enable_auto_branch_creation: Option<bool>,
pub auto_branch_creation_patterns: Option<Vec<String>>,
pub auto_branch_creation_config: Option<AutoBranchCreationConfig>,
pub repository: Option<String>,
pub oauth_token: Option<String>,
pub access_token: Option<String>,
}Expand description
The request structure for the update app request.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.app_id: Option<String>The unique ID for an Amplify app.
name: Option<String>The name for an Amplify app.
description: Option<String>The description for an Amplify app.
platform: Option<Platform>The platform for the Amplify app. For a static app, set the platform type to WEB. For a dynamic server-side rendered (SSR) app, set the platform type to WEB_COMPUTE. For an app requiring Amplify Hosting's original SSR support only, set the platform type to WEB_DYNAMIC.
iam_service_role_arn: Option<String>The AWS Identity and Access Management (IAM) service role for an Amplify app.
environment_variables: Option<HashMap<String, String>>The environment variables for an Amplify app.
enable_branch_auto_build: Option<bool>Enables branch auto-building for an Amplify app.
enable_branch_auto_deletion: Option<bool>Automatically disconnects a branch in the Amplify console when you delete a branch from your Git repository.
enable_basic_auth: Option<bool>Enables basic authorization for an Amplify app.
basic_auth_credentials: Option<String>The basic authorization credentials for an Amplify app. You must base64-encode the authorization credentials and provide them in the format user:password.
custom_rules: Option<Vec<CustomRule>>The custom redirect and rewrite rules for an Amplify app.
build_spec: Option<String>The build specification (build spec) for an Amplify app.
custom_headers: Option<String>The custom HTTP headers for an Amplify app.
enable_auto_branch_creation: Option<bool>Enables automated branch creation for an Amplify app.
auto_branch_creation_patterns: Option<Vec<String>>Describes the automated branch creation glob patterns for an Amplify app.
auto_branch_creation_config: Option<AutoBranchCreationConfig>The automated branch creation configuration for an Amplify app.
repository: Option<String>The name of the Git repository for an Amplify app.
oauth_token: Option<String>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.
Use oauthToken for repository providers other than GitHub, such as Bitbucket or CodeCommit.
To authorize access to GitHub as your repository provider, use accessToken.
You must specify either oauthToken or accessToken when you update an app.
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 Migrating an existing OAuth app to the Amplify GitHub App in the Amplify User Guide .
access_token: Option<String>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.
Use accessToken for GitHub repositories only. To authorize access to a repository provider such as Bitbucket or CodeCommit, use oauthToken.
You must specify either accessToken or oauthToken when you update an app.
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 Migrating an existing OAuth app to the Amplify GitHub App in the Amplify User Guide .
Implementations§
source§impl UpdateAppInput
impl UpdateAppInput
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description for an Amplify app.
sourcepub fn platform(&self) -> Option<&Platform>
pub fn platform(&self) -> Option<&Platform>
The platform for the Amplify app. For a static app, set the platform type to WEB. For a dynamic server-side rendered (SSR) app, set the platform type to WEB_COMPUTE. For an app requiring Amplify Hosting's original SSR support only, set the platform type to WEB_DYNAMIC.
sourcepub fn iam_service_role_arn(&self) -> Option<&str>
pub fn iam_service_role_arn(&self) -> Option<&str>
The AWS Identity and Access Management (IAM) service role for an Amplify app.
sourcepub fn environment_variables(&self) -> Option<&HashMap<String, String>>
pub fn environment_variables(&self) -> Option<&HashMap<String, String>>
The environment variables for an Amplify app.
sourcepub fn enable_branch_auto_build(&self) -> Option<bool>
pub fn enable_branch_auto_build(&self) -> Option<bool>
Enables branch auto-building for an Amplify app.
sourcepub fn enable_branch_auto_deletion(&self) -> Option<bool>
pub fn enable_branch_auto_deletion(&self) -> Option<bool>
Automatically disconnects a branch in the Amplify console when you delete a branch from your Git repository.
sourcepub fn enable_basic_auth(&self) -> Option<bool>
pub fn enable_basic_auth(&self) -> Option<bool>
Enables basic authorization for an Amplify app.
sourcepub fn basic_auth_credentials(&self) -> Option<&str>
pub fn basic_auth_credentials(&self) -> Option<&str>
The basic authorization credentials for an Amplify app. You must base64-encode the authorization credentials and provide them in the format user:password.
sourcepub fn custom_rules(&self) -> &[CustomRule]
pub fn custom_rules(&self) -> &[CustomRule]
The custom redirect and rewrite rules for an Amplify app.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .custom_rules.is_none().
sourcepub fn build_spec(&self) -> Option<&str>
pub fn build_spec(&self) -> Option<&str>
The build specification (build spec) for an Amplify app.
sourcepub fn custom_headers(&self) -> Option<&str>
pub fn custom_headers(&self) -> Option<&str>
The custom HTTP headers for an Amplify app.
sourcepub fn enable_auto_branch_creation(&self) -> Option<bool>
pub fn enable_auto_branch_creation(&self) -> Option<bool>
Enables automated branch creation for an Amplify app.
sourcepub fn auto_branch_creation_patterns(&self) -> &[String]
pub fn auto_branch_creation_patterns(&self) -> &[String]
Describes the automated branch creation glob patterns for an Amplify app.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .auto_branch_creation_patterns.is_none().
sourcepub fn auto_branch_creation_config(&self) -> Option<&AutoBranchCreationConfig>
pub fn auto_branch_creation_config(&self) -> Option<&AutoBranchCreationConfig>
The automated branch creation configuration for an Amplify app.
sourcepub fn repository(&self) -> Option<&str>
pub fn repository(&self) -> Option<&str>
The name of the Git repository for an Amplify app.
sourcepub fn oauth_token(&self) -> Option<&str>
pub fn oauth_token(&self) -> Option<&str>
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.
Use oauthToken for repository providers other than GitHub, such as Bitbucket or CodeCommit.
To authorize access to GitHub as your repository provider, use accessToken.
You must specify either oauthToken or accessToken when you update an app.
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 Migrating an existing OAuth app to the Amplify GitHub App in the Amplify User Guide .
sourcepub fn access_token(&self) -> Option<&str>
pub fn access_token(&self) -> Option<&str>
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.
Use accessToken for GitHub repositories only. To authorize access to a repository provider such as Bitbucket or CodeCommit, use oauthToken.
You must specify either accessToken or oauthToken when you update an app.
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 Migrating an existing OAuth app to the Amplify GitHub App in the Amplify User Guide .
source§impl UpdateAppInput
impl UpdateAppInput
sourcepub fn builder() -> UpdateAppInputBuilder
pub fn builder() -> UpdateAppInputBuilder
Creates a new builder-style object to manufacture UpdateAppInput.
Trait Implementations§
source§impl Clone for UpdateAppInput
impl Clone for UpdateAppInput
source§fn clone(&self) -> UpdateAppInput
fn clone(&self) -> UpdateAppInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for UpdateAppInput
impl Debug for UpdateAppInput
source§impl PartialEq for UpdateAppInput
impl PartialEq for UpdateAppInput
source§fn eq(&self, other: &UpdateAppInput) -> bool
fn eq(&self, other: &UpdateAppInput) -> bool
self and other values to be equal, and is used
by ==.