interface BasicAuthConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.Amplify.CfnBranchPropsMixin.BasicAuthConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsamplify#CfnBranchPropsMixin_BasicAuthConfigProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.amplify.CfnBranchPropsMixin.BasicAuthConfigProperty |
Python | aws_cdk.cfn_property_mixins.aws_amplify.CfnBranchPropsMixin.BasicAuthConfigProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_amplify » 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 { aws_amplify as amplify } from '@aws-cdk/cfn-property-mixins';
const basicAuthConfigProperty: amplify.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