interface BasicAuthConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Amplify.Mixins.CfnAppPropsMixin.BasicAuthConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsamplify/mixins#CfnAppPropsMixin_BasicAuthConfigProperty |
Java | software.amazon.awscdk.mixins.preview.services.amplify.mixins.CfnAppPropsMixin.BasicAuthConfigProperty |
Python | aws_cdk.mixins_preview.aws_amplify.mixins.CfnAppPropsMixin.BasicAuthConfigProperty |
TypeScript | @aws-cdk/mixins-preview » aws_amplify » mixins » CfnAppPropsMixin » BasicAuthConfigProperty |
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 { mixins as amplify_mixins } from '@aws-cdk/mixins-preview/aws-amplify';
const basicAuthConfigProperty: amplify_mixins.CfnAppPropsMixin.BasicAuthConfigProperty = {
enableBasicAuth: false,
password: 'password',
username: 'username',
};
Properties
| Name | Type | Description |
|---|---|---|
| enable | boolean | IResolvable | Enables basic authorization for the Amplify app's branches. |
| password? | string | The password for basic authorization. |
| username? | string | The user name for basic authorization. |
enableBasicAuth?
Type:
boolean | IResolvable
(optional)
Enables basic authorization for the Amplify app's branches.
password?
Type:
string
(optional)
The password for basic authorization.
username?
Type:
string
(optional)
The user name for basic authorization.

.NET
Go
Java
Python
TypeScript