Interface CfnApp.BasicAuthConfigProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnApp.BasicAuthConfigProperty.Jsii$Proxy
Enclosing class:
CfnApp

@Stability(Stable) public static interface CfnApp.BasicAuthConfigProperty extends software.amazon.jsii.JsiiSerializable
Use the BasicAuthConfig property type to set password protection at an app level to all your branches.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.amplify.*;
 BasicAuthConfigProperty basicAuthConfigProperty = BasicAuthConfigProperty.builder()
         .enableBasicAuth(false)
         .password("password")
         .username("username")
         .build();
 
  • Method Details

    • getEnableBasicAuth

      @Stability(Stable) @Nullable default Object getEnableBasicAuth()
      Enables basic authorization for the Amplify app's branches.
    • getPassword

      @Stability(Stable) @Nullable default String getPassword()
      The password for basic authorization.

      Length Constraints: Minimum length of 1. Maximum length of 255.

    • getUsername

      @Stability(Stable) @Nullable default String getUsername()
      The user name for basic authorization.

      Length Constraints: Minimum length of 1. Maximum length of 255.

    • builder

      @Stability(Stable) static CfnApp.BasicAuthConfigProperty.Builder builder()
      Returns:
      a CfnApp.BasicAuthConfigProperty.Builder of CfnApp.BasicAuthConfigProperty