Experimental
@aws-cdk/aws-amplify-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
BasicAuthConfig Struct
A Basic Auth configuration.
| Stability | Experimental |
|---|---|
| Source | lib/basic-auth.ts |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as amplify_alpha from '@aws-cdk/aws-amplify-alpha';
const basicAuthConfig: amplify_alpha.BasicAuthConfig = {
enableBasicAuth: false,
password: 'password',
username: 'username',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_amplify_alpha as amplify_alpha
basic_auth_config = amplify_alpha.BasicAuthConfig(
enable_basic_auth=False,
password="password",
username="username"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.amplify.alpha.*;
BasicAuthConfig basicAuthConfig = BasicAuthConfig.builder()
.enableBasicAuth(false)
.password("password")
.username("username")
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.Amplify.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Amplify.Alpha;
var basicAuthConfig = new BasicAuthConfig {
EnableBasicAuth = false,
Password = "password",
Username = "username"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdkamplifyalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import amplify_alpha "github.com/aws/aws-cdk-go/awscdkamplifyalpha"
basicAuthConfig := &BasicAuthConfig{
EnableBasicAuth: jsii.Boolean(false),
Password: jsii.String("password"),
Username: jsii.String("username"),
}
Properties
enableBasicAuthbooleanenable_basic_authboolenableBasicAuthBooleanEnableBasicAuthboolEnableBasicAuth*bool required #Whether to enable Basic Auth.
The password.
The username.