#[non_exhaustive]
pub struct CreateAppInputBuilder { /* private fields */ }
Expand description

A builder for CreateAppInput.

Implementations§

source§

impl CreateAppInputBuilder

source

pub fn name(self, input: impl Into<String>) -> Self

The name for an Amplify app.

source

pub fn set_name(self, input: Option<String>) -> Self

The name for an Amplify app.

source

pub fn get_name(&self) -> &Option<String>

The name for an Amplify app.

source

pub fn description(self, input: impl Into<String>) -> Self

The description for an Amplify app.

source

pub fn set_description(self, input: Option<String>) -> Self

The description for an Amplify app.

source

pub fn get_description(&self) -> &Option<String>

The description for an Amplify app.

source

pub fn repository(self, input: impl Into<String>) -> Self

The repository for an Amplify app.

source

pub fn set_repository(self, input: Option<String>) -> Self

The repository for an Amplify app.

source

pub fn get_repository(&self) -> &Option<String>

The repository for an Amplify app.

source

pub fn platform(self, input: Platform) -> Self

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.

source

pub fn set_platform(self, input: Option<Platform>) -> Self

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.

source

pub fn get_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.

source

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.

source

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.

source

pub fn get_iam_service_role_arn(&self) -> &Option<String>

The AWS Identity and Access Management (IAM) service role for an Amplify app.

source

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 .

source

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 .

source

pub fn get_oauth_token(&self) -> &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 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 .

source

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 .

source

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 .

source

pub fn get_access_token(&self) -> &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 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 .

source

pub fn environment_variables( self, k: impl Into<String>, v: impl Into<String> ) -> Self

Adds a key-value pair to environment_variables.

To override the contents of this collection use set_environment_variables.

The environment variables map for an Amplify app.

source

pub fn set_environment_variables( self, input: Option<HashMap<String, String>> ) -> Self

The environment variables map for an Amplify app.

source

pub fn get_environment_variables(&self) -> &Option<HashMap<String, String>>

The environment variables map for an Amplify app.

source

pub fn enable_branch_auto_build(self, input: bool) -> Self

Enables the auto building of branches for an Amplify app.

source

pub fn set_enable_branch_auto_build(self, input: Option<bool>) -> Self

Enables the auto building of branches for an Amplify app.

source

pub fn get_enable_branch_auto_build(&self) -> &Option<bool>

Enables the auto building of branches for an Amplify app.

source

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.

source

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.

source

pub fn get_enable_branch_auto_deletion(&self) -> &Option<bool>

Automatically disconnects a branch in the Amplify Console when you delete a branch from your Git repository.

source

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.

source

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.

source

pub fn get_enable_basic_auth(&self) -> &Option<bool>

Enables basic authorization for an Amplify app. This will apply to all branches that are part of this app.

source

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.

source

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.

source

pub fn get_basic_auth_credentials(&self) -> &Option<String>

The credentials for basic authorization for an Amplify app. You must base64-encode the authorization credentials and provide them in the format user:password.

source

pub fn custom_rules(self, input: CustomRule) -> Self

Appends an item to custom_rules.

To override the contents of this collection use set_custom_rules.

The custom rewrite and redirect rules for an Amplify app.

source

pub fn set_custom_rules(self, input: Option<Vec<CustomRule>>) -> Self

The custom rewrite and redirect rules for an Amplify app.

source

pub fn get_custom_rules(&self) -> &Option<Vec<CustomRule>>

The custom rewrite and redirect rules for an Amplify app.

source

pub fn tags(self, k: impl Into<String>, v: impl Into<String>) -> Self

Adds a key-value pair to tags.

To override the contents of this collection use set_tags.

The tag for an Amplify app.

source

pub fn set_tags(self, input: Option<HashMap<String, String>>) -> Self

The tag for an Amplify app.

source

pub fn get_tags(&self) -> &Option<HashMap<String, String>>

The tag for an Amplify app.

source

pub fn build_spec(self, input: impl Into<String>) -> Self

The build specification (build spec) for an Amplify app.

source

pub fn set_build_spec(self, input: Option<String>) -> Self

The build specification (build spec) for an Amplify app.

source

pub fn get_build_spec(&self) -> &Option<String>

The build specification (build spec) for an Amplify app.

source

pub fn custom_headers(self, input: impl Into<String>) -> Self

The custom HTTP headers for an Amplify app.

source

pub fn set_custom_headers(self, input: Option<String>) -> Self

The custom HTTP headers for an Amplify app.

source

pub fn get_custom_headers(&self) -> &Option<String>

The custom HTTP headers for an Amplify app.

source

pub fn enable_auto_branch_creation(self, input: bool) -> Self

Enables automated branch creation for an Amplify app.

source

pub fn set_enable_auto_branch_creation(self, input: Option<bool>) -> Self

Enables automated branch creation for an Amplify app.

source

pub fn get_enable_auto_branch_creation(&self) -> &Option<bool>

Enables automated branch creation for an Amplify app.

source

pub fn auto_branch_creation_patterns(self, input: impl Into<String>) -> Self

Appends an item to auto_branch_creation_patterns.

To override the contents of this collection use set_auto_branch_creation_patterns.

The automated branch creation glob patterns for an Amplify app.

source

pub fn set_auto_branch_creation_patterns( self, input: Option<Vec<String>> ) -> Self

The automated branch creation glob patterns for an Amplify app.

source

pub fn get_auto_branch_creation_patterns(&self) -> &Option<Vec<String>>

The automated branch creation glob patterns for an Amplify app.

source

pub fn auto_branch_creation_config( self, input: AutoBranchCreationConfig ) -> Self

The automated branch creation configuration for an Amplify app.

source

pub fn set_auto_branch_creation_config( self, input: Option<AutoBranchCreationConfig> ) -> Self

The automated branch creation configuration for an Amplify app.

source

pub fn get_auto_branch_creation_config( &self ) -> &Option<AutoBranchCreationConfig>

The automated branch creation configuration for an Amplify app.

source

pub fn build(self) -> Result<CreateAppInput, BuildError>

Consumes the builder and constructs a CreateAppInput.

source§

impl CreateAppInputBuilder

source

pub async fn send_with( self, client: &Client ) -> Result<CreateAppOutput, SdkError<CreateAppError, HttpResponse>>

Sends a request with this input using the given client.

Trait Implementations§

source§

impl Clone for CreateAppInputBuilder

source§

fn clone(&self) -> CreateAppInputBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CreateAppInputBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for CreateAppInputBuilder

source§

fn default() -> CreateAppInputBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq for CreateAppInputBuilder

source§

fn eq(&self, other: &CreateAppInputBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for CreateAppInputBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more