interface BasicAuthConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Amplify.Mixins.CfnBranchPropsMixin.BasicAuthConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsamplify/mixins#CfnBranchPropsMixin_BasicAuthConfigProperty |
Java | software.amazon.awscdk.mixins.preview.services.amplify.mixins.CfnBranchPropsMixin.BasicAuthConfigProperty |
Python | aws_cdk.mixins_preview.aws_amplify.mixins.CfnBranchPropsMixin.BasicAuthConfigProperty |
TypeScript | @aws-cdk/mixins-preview » aws_amplify » mixins » CfnBranchPropsMixin » BasicAuthConfigProperty |
Use the BasicAuthConfig property type to set password protection for a specific branch.
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.CfnBranchPropsMixin.BasicAuthConfigProperty = {
enableBasicAuth: false,
password: 'password',
username: 'username',
};
Properties
| Name | Type | Description |
|---|---|---|
| enable | boolean | IResolvable | Enables basic authorization for the branch. |
| password? | string | The password for basic authorization. |
| username? | string |
enableBasicAuth?
Type:
boolean | IResolvable
(optional)
Enables basic authorization for the branch.
password?
Type:
string
(optional)
The password for basic authorization.
username?
Type:
string
(optional)

.NET
Go
Java
Python
TypeScript