Struct aws_sdk_amplify::client::fluent_builders::CreateApp
source · [−]pub struct CreateApp { /* private fields */ }Expand description
Fluent builder constructing a request to CreateApp.
Creates a new Amplify app.
Implementations
sourceimpl CreateApp
impl CreateApp
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateApp, AwsResponseRetryClassifier>, SdkError<CreateAppError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateApp, AwsResponseRetryClassifier>, SdkError<CreateAppError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(self) -> Result<CreateAppOutput, SdkError<CreateAppError>>
pub async fn send(self) -> Result<CreateAppOutput, SdkError<CreateAppError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description for an Amplify app.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description for an Amplify app.
sourcepub fn repository(self, input: impl Into<String>) -> Self
pub fn repository(self, input: impl Into<String>) -> Self
The repository for an Amplify app.
sourcepub fn set_repository(self, input: Option<String>) -> Self
pub fn set_repository(self, input: Option<String>) -> Self
The repository for an Amplify app.
sourcepub fn set_platform(self, input: Option<Platform>) -> Self
pub fn set_platform(self, input: Option<Platform>) -> Self
The platform or framework for an Amplify app.
sourcepub fn iam_service_role_arn(self, input: impl Into<String>) -> Self
pub fn iam_service_role_arn(self, input: impl Into<String>) -> Self
The AWS Identity and Access Management (IAM) service role for an Amplify app.
sourcepub fn set_iam_service_role_arn(self, input: Option<String>) -> Self
pub fn set_iam_service_role_arn(self, input: Option<String>) -> Self
The AWS Identity and Access Management (IAM) service role for an Amplify app.
sourcepub fn oauth_token(self, input: impl Into<String>) -> Self
pub fn oauth_token(self, input: impl Into<String>) -> Self
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 create a new 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 set_oauth_token(self, input: Option<String>) -> Self
pub fn set_oauth_token(self, input: Option<String>) -> Self
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 create a new 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, input: impl Into<String>) -> Self
pub fn access_token(self, input: impl Into<String>) -> Self
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 create a new 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 set_access_token(self, input: Option<String>) -> Self
pub fn set_access_token(self, input: Option<String>) -> Self
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 create a new 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 environment_variables(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn environment_variables(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
Adds a key-value pair to environmentVariables.
To override the contents of this collection use set_environment_variables.
The environment variables map for an Amplify app.
sourcepub fn set_environment_variables(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_environment_variables(
self,
input: Option<HashMap<String, String>>
) -> Self
The environment variables map for an Amplify app.
sourcepub fn enable_branch_auto_build(self, input: bool) -> Self
pub fn enable_branch_auto_build(self, input: bool) -> Self
Enables the auto building of branches for an Amplify app.
sourcepub fn set_enable_branch_auto_build(self, input: Option<bool>) -> Self
pub fn set_enable_branch_auto_build(self, input: Option<bool>) -> Self
Enables the auto building of branches for an Amplify app.
sourcepub fn enable_branch_auto_deletion(self, input: bool) -> Self
pub fn enable_branch_auto_deletion(self, input: bool) -> Self
Automatically disconnects a branch in the Amplify Console when you delete a branch from your Git repository.
sourcepub fn set_enable_branch_auto_deletion(self, input: Option<bool>) -> Self
pub fn set_enable_branch_auto_deletion(self, input: Option<bool>) -> Self
Automatically disconnects a branch in the Amplify Console when you delete a branch from your Git repository.
sourcepub fn enable_basic_auth(self, input: bool) -> Self
pub fn enable_basic_auth(self, input: bool) -> Self
Enables basic authorization for an Amplify app. This will apply to all branches that are part of this app.
sourcepub fn set_enable_basic_auth(self, input: Option<bool>) -> Self
pub fn set_enable_basic_auth(self, input: Option<bool>) -> Self
Enables basic authorization for an Amplify app. This will apply to all branches that are part of this app.
sourcepub fn basic_auth_credentials(self, input: impl Into<String>) -> Self
pub fn basic_auth_credentials(self, input: impl Into<String>) -> Self
The credentials for basic authorization for an Amplify app. You must base64-encode the authorization credentials and provide them in the format user:password.
sourcepub fn set_basic_auth_credentials(self, input: Option<String>) -> Self
pub fn set_basic_auth_credentials(self, input: Option<String>) -> Self
The credentials for basic authorization for an Amplify app. You must base64-encode the authorization credentials and provide them in the format user:password.
sourcepub fn custom_rules(self, input: CustomRule) -> Self
pub fn custom_rules(self, input: CustomRule) -> Self
Appends an item to customRules.
To override the contents of this collection use set_custom_rules.
The custom rewrite and redirect rules for an Amplify app.
sourcepub fn set_custom_rules(self, input: Option<Vec<CustomRule>>) -> Self
pub fn set_custom_rules(self, input: Option<Vec<CustomRule>>) -> Self
The custom rewrite and redirect rules for an Amplify app.
Adds a key-value pair to tags.
To override the contents of this collection use set_tags.
The tag for an Amplify app.
The tag for an Amplify app.
sourcepub fn build_spec(self, input: impl Into<String>) -> Self
pub fn build_spec(self, input: impl Into<String>) -> Self
The build specification (build spec) for an Amplify app.
sourcepub fn set_build_spec(self, input: Option<String>) -> Self
pub fn set_build_spec(self, input: Option<String>) -> Self
The build specification (build spec) for an Amplify app.
sourcepub fn custom_headers(self, input: impl Into<String>) -> Self
pub fn custom_headers(self, input: impl Into<String>) -> Self
The custom HTTP headers for an Amplify app.
sourcepub fn set_custom_headers(self, input: Option<String>) -> Self
pub fn set_custom_headers(self, input: Option<String>) -> Self
The custom HTTP headers for an Amplify app.
sourcepub fn enable_auto_branch_creation(self, input: bool) -> Self
pub fn enable_auto_branch_creation(self, input: bool) -> Self
Enables automated branch creation for an Amplify app.
sourcepub fn set_enable_auto_branch_creation(self, input: Option<bool>) -> Self
pub fn set_enable_auto_branch_creation(self, input: Option<bool>) -> Self
Enables automated branch creation for an Amplify app.
sourcepub fn auto_branch_creation_patterns(self, input: impl Into<String>) -> Self
pub fn auto_branch_creation_patterns(self, input: impl Into<String>) -> Self
Appends an item to autoBranchCreationPatterns.
To override the contents of this collection use set_auto_branch_creation_patterns.
The automated branch creation glob patterns for an Amplify app.
sourcepub fn set_auto_branch_creation_patterns(
self,
input: Option<Vec<String>>
) -> Self
pub fn set_auto_branch_creation_patterns(
self,
input: Option<Vec<String>>
) -> Self
The automated branch creation glob patterns for an Amplify app.
sourcepub fn auto_branch_creation_config(self, input: AutoBranchCreationConfig) -> Self
pub fn auto_branch_creation_config(self, input: AutoBranchCreationConfig) -> Self
The automated branch creation configuration for an Amplify app.
sourcepub fn set_auto_branch_creation_config(
self,
input: Option<AutoBranchCreationConfig>
) -> Self
pub fn set_auto_branch_creation_config(
self,
input: Option<AutoBranchCreationConfig>
) -> Self
The automated branch creation configuration for an Amplify app.