Class AppProps.Builder

java.lang.Object
software.amazon.awscdk.services.amplify.AppProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<AppProps>
Enclosing interface:
AppProps

@Stability(Experimental) public static final class AppProps.Builder extends Object implements software.amazon.jsii.Builder<AppProps>
A builder for AppProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • appName

      @Stability(Experimental) public AppProps.Builder appName(String appName)
      Sets the value of AppProps.getAppName()
      Parameters:
      appName - The name for the application.
      Returns:
      this
    • autoBranchCreation

      @Stability(Experimental) public AppProps.Builder autoBranchCreation(AutoBranchCreation autoBranchCreation)
      Parameters:
      autoBranchCreation - The auto branch creation configuration. Use this to automatically create branches that match a certain pattern.
      Returns:
      this
    • autoBranchDeletion

      @Stability(Experimental) public AppProps.Builder autoBranchDeletion(Boolean autoBranchDeletion)
      Parameters:
      autoBranchDeletion - Automatically disconnect a branch in the Amplify Console when you delete a branch from your Git repository.
      Returns:
      this
    • basicAuth

      @Stability(Experimental) public AppProps.Builder basicAuth(BasicAuth basicAuth)
      Sets the value of AppProps.getBasicAuth()
      Parameters:
      basicAuth - The Basic Auth configuration. Use this to set password protection at an app level to all your branches.
      Returns:
      this
    • buildSpec

      @Stability(Experimental) public AppProps.Builder buildSpec(BuildSpec buildSpec)
      Sets the value of AppProps.getBuildSpec()
      Parameters:
      buildSpec - BuildSpec for the application. Alternatively, add a amplify.yml file to the repository.
      Returns:
      this
    • customResponseHeaders

      @Stability(Experimental) public AppProps.Builder customResponseHeaders(List<? extends CustomResponseHeader> customResponseHeaders)
      Parameters:
      customResponseHeaders - The custom HTTP response headers for an Amplify app.
      Returns:
      this
    • customRules

      @Stability(Experimental) public AppProps.Builder customRules(List<? extends CustomRule> customRules)
      Sets the value of AppProps.getCustomRules()
      Parameters:
      customRules - Custom rewrite/redirect rules for the application.
      Returns:
      this
    • description

      @Stability(Experimental) public AppProps.Builder description(String description)
      Sets the value of AppProps.getDescription()
      Parameters:
      description - A description for the application.
      Returns:
      this
    • environmentVariables

      @Stability(Experimental) public AppProps.Builder environmentVariables(Map<String,String> environmentVariables)
      Parameters:
      environmentVariables - Environment variables for the application. All environment variables that you add are encrypted to prevent rogue access so you can use them to store secret information.
      Returns:
      this
    • role

      @Stability(Experimental) public AppProps.Builder role(IRole role)
      Sets the value of AppProps.getRole()
      Parameters:
      role - The IAM service role to associate with the application. The App implements IGrantable.
      Returns:
      this
    • sourceCodeProvider

      @Stability(Experimental) public AppProps.Builder sourceCodeProvider(ISourceCodeProvider sourceCodeProvider)
      Parameters:
      sourceCodeProvider - The source code provider for this application.
      Returns:
      this
    • build

      @Stability(Experimental) public AppProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<AppProps>
      Returns:
      a new instance of AppProps
      Throws:
      NullPointerException - if any required attribute was not provided