Class CfnBranch.BasicAuthConfigProperty
Use the BasicAuthConfig property type to set password protection for a specific branch.
Inheritance
System.Object
CfnBranch.BasicAuthConfigProperty
Implements
Namespace: Amazon.CDK.AWS.Amplify
Assembly: Amazon.CDK.AWS.Amplify.dll
Syntax (csharp)
public class BasicAuthConfigProperty : Object, CfnBranch.IBasicAuthConfigProperty
Syntax (vb)
Public Class BasicAuthConfigProperty
Inherits Object
Implements CfnBranch.IBasicAuthConfigProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Amplify;
var basicAuthConfigProperty = new BasicAuthConfigProperty {
Password = "password",
Username = "username",
// the properties below are optional
EnableBasicAuth = false
};
Synopsis
Constructors
BasicAuthConfigProperty() |
Properties
EnableBasicAuth | Enables basic authorization for the branch. |
Password | The password for basic authorization. |
Username | The user name for basic authorization. |
Constructors
BasicAuthConfigProperty()
public BasicAuthConfigProperty()
Properties
EnableBasicAuth
Enables basic authorization for the branch.
public object EnableBasicAuth { get; set; }
Property Value
System.Object
Remarks
Password
The password for basic authorization.
public string Password { get; set; }
Property Value
System.String
Remarks
Length Constraints: Minimum length of 1. Maximum length of 255.
Username
The user name for basic authorization.
public string Username { get; set; }
Property Value
System.String
Remarks
Length Constraints: Minimum length of 1. Maximum length of 255.