interface BasicAuthConfig
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Amplify.BasicAuthConfig |
Java | software.amazon.awscdk.services.amplify.BasicAuthConfig |
Python | aws_cdk.aws_amplify.BasicAuthConfig |
TypeScript (source) | @aws-cdk/aws-amplify » BasicAuthConfig |
Obtainable from
Basic
.bind()
A Basic Auth configuration.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as amplify from '@aws-cdk/aws-amplify';
const basicAuthConfig: amplify.BasicAuthConfig = {
enableBasicAuth: false,
password: 'password',
username: 'username',
};
Properties
Name | Type | Description |
---|---|---|
enable | boolean | Whether to enable Basic Auth. |
password | string | The password. |
username | string | The username. |
enableBasicAuth
Type:
boolean
Whether to enable Basic Auth.
password
Type:
string
The password.
username
Type:
string
The username.