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

A builder for App.

Implementations§

source§

impl AppBuilder

source

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

The unique ID of the Amplify app.

This field is required.
source

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

The unique ID of the Amplify app.

source

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

The unique ID of the Amplify app.

source

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

The Amazon Resource Name (ARN) of the Amplify app.

This field is required.
source

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

The Amazon Resource Name (ARN) of the Amplify app.

source

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

The Amazon Resource Name (ARN) of the Amplify app.

source

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

The name for the Amplify app.

This field is required.
source

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

The name for the Amplify app.

source

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

The name for the 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 the Amplify app.

source

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

The tag for the Amplify app.

source

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

The tag for the Amplify app.

source

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

The description for the Amplify app.

This field is required.
source

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

The description for the Amplify app.

source

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

The description for the Amplify app.

source

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

The Git repository for the Amplify app.

This field is required.
source

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

The Git repository for the Amplify app.

source

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

The Git repository for the 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.

This field is required.
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 create_time(self, input: DateTime) -> Self

Creates a date and time for the Amplify app.

This field is required.
source

pub fn set_create_time(self, input: Option<DateTime>) -> Self

Creates a date and time for the Amplify app.

source

pub fn get_create_time(&self) -> &Option<DateTime>

Creates a date and time for the Amplify app.

source

pub fn update_time(self, input: DateTime) -> Self

Updates the date and time for the Amplify app.

This field is required.
source

pub fn set_update_time(self, input: Option<DateTime>) -> Self

Updates the date and time for the Amplify app.

source

pub fn get_update_time(&self) -> &Option<DateTime>

Updates the date and time for the Amplify app.

source

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

The AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) of the 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 the Amazon Resource Name (ARN) of the Amplify app.

source

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

The AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) of the Amplify app.

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 for the Amplify app.

For a list of the environment variables that are accessible to Amplify by default, see Amplify Environment variables in the Amplify Hosting User Guide.

source

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

The environment variables for the Amplify app.

For a list of the environment variables that are accessible to Amplify by default, see Amplify Environment variables in the Amplify Hosting User Guide.

source

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

The environment variables for the Amplify app.

For a list of the environment variables that are accessible to Amplify by default, see Amplify Environment variables in the Amplify Hosting User Guide.

source

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

The default domain for the Amplify app.

This field is required.
source

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

The default domain for the Amplify app.

source

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

The default domain for the Amplify app.

source

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

Enables the auto-building of branches for the Amplify app.

This field is required.
source

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

Enables the auto-building of branches for the Amplify app.

source

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

Enables the auto-building of branches for the Amplify app.

source

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

Automatically disconnect 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 disconnect 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 disconnect 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 the Amplify app's branches.

This field is required.
source

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

Enables basic authorization for the Amplify app's branches.

source

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

Enables basic authorization for the Amplify app's branches.

source

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

The basic authorization credentials for branches for the 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 basic authorization credentials for branches for the 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 basic authorization credentials for branches for the 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.

Describes the custom redirect and rewrite rules for the Amplify app.

source

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

Describes the custom redirect and rewrite rules for the Amplify app.

source

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

Describes the custom redirect and rewrite rules for the Amplify app.

source

pub fn production_branch(self, input: ProductionBranch) -> Self

Describes the information about a production branch of the Amplify app.

source

pub fn set_production_branch(self, input: Option<ProductionBranch>) -> Self

Describes the information about a production branch of the Amplify app.

source

pub fn get_production_branch(&self) -> &Option<ProductionBranch>

Describes the information about a production branch of the Amplify app.

source

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

Describes the content of the build specification (build spec) for the Amplify app.

source

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

Describes the content of the build specification (build spec) for the Amplify app.

source

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

Describes the content of the build specification (build spec) for the Amplify app.

source

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

Describes the custom HTTP headers for the Amplify app.

source

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

Describes the custom HTTP headers for the Amplify app.

source

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

Describes the custom HTTP headers for the Amplify app.

source

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

Enables automated branch creation for the Amplify app.

source

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

Enables automated branch creation for the Amplify app.

source

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

Enables automated branch creation for the 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.

Describes the automated branch creation glob patterns for the Amplify app.

source

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

Describes the automated branch creation glob patterns for the Amplify app.

source

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

Describes the automated branch creation glob patterns for the Amplify app.

source

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

Describes the automated branch creation configuration for the Amplify app.

source

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

Describes the automated branch creation configuration for the Amplify app.

source

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

Describes the automated branch creation configuration for the Amplify app.

source

pub fn repository_clone_method(self, input: RepositoryCloneMethod) -> Self

This is for internal use.

The Amplify service uses this parameter to specify the authentication protocol to use to access the Git repository for an Amplify app. Amplify specifies TOKEN for a GitHub repository, SIGV4 for an Amazon Web Services CodeCommit repository, and SSH for GitLab and Bitbucket repositories.

source

pub fn set_repository_clone_method( self, input: Option<RepositoryCloneMethod> ) -> Self

This is for internal use.

The Amplify service uses this parameter to specify the authentication protocol to use to access the Git repository for an Amplify app. Amplify specifies TOKEN for a GitHub repository, SIGV4 for an Amazon Web Services CodeCommit repository, and SSH for GitLab and Bitbucket repositories.

source

pub fn get_repository_clone_method(&self) -> &Option<RepositoryCloneMethod>

This is for internal use.

The Amplify service uses this parameter to specify the authentication protocol to use to access the Git repository for an Amplify app. Amplify specifies TOKEN for a GitHub repository, SIGV4 for an Amazon Web Services CodeCommit repository, and SSH for GitLab and Bitbucket repositories.

source

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

Consumes the builder and constructs a App. This method will fail if any of the following fields are not set:

Trait Implementations§

source§

impl Clone for AppBuilder

source§

fn clone(&self) -> AppBuilder

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 AppBuilder

source§

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

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

impl Default for AppBuilder

source§

fn default() -> AppBuilder

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

impl PartialEq for AppBuilder

source§

fn eq(&self, other: &AppBuilder) -> 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 AppBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 T
where 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<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where 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 T
where 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 T
where 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