Skip to content
v2.275.0

BasicAuthConfigProperty Struct ​

Use the BasicAuthConfig property type to set password protection for a specific branch.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_amplify as amplify } from 'aws-cdk-lib';
const basicAuthConfigProperty: amplify.CfnBranch.BasicAuthConfigProperty = {
  password: 'password',
  username: 'username',

  // the properties below are optional
  enableBasicAuth: false,
};

Properties ​

enableBasicAuthoptionalboolean | IResolvableenable_basic_authoptionaltyping.Union[bool, IResolvable]enableBasicAuthoptionalBooleanEnableBasicAuthoptionalboolEnableBasicAuthoptionalinterface{}#
Enables basic authorization for the branch.
passwordstringpasswordstrpasswordStringPasswordstringPassword*stringrequired#
The password for basic authorization.
usernamestringusernamestrusernameStringUsernamestringUsername*stringrequired#