Class BooleanAttribute
The Boolean custom attribute type.
Inheritance
System.Object
BooleanAttribute
Implements
Namespace: Amazon.CDK.AWS.Cognito
Assembly: Amazon.CDK.AWS.Cognito.dll
Syntax (csharp)
public class BooleanAttribute : DeputyBase, ICustomAttribute
Syntax (vb)
Public Class BooleanAttribute
Inherits DeputyBase
Implements ICustomAttribute
Remarks
ExampleMetadata: infused
Examples
new UserPool(this, "myuserpool", new UserPoolProps {
// ...
StandardAttributes = new StandardAttributes {
Fullname = new StandardAttribute {
Required = true,
Mutable = false
},
Address = new StandardAttribute {
Required = false,
Mutable = true
}
},
CustomAttributes = new Dictionary<string, ICustomAttribute> {
{ "myappid", new StringAttribute(new StringAttributeProps { MinLen = 5, MaxLen = 15, Mutable = false }) },
{ "callingcode", new NumberAttribute(new NumberAttributeProps { Min = 1, Max = 3, Mutable = true }) },
{ "isEmployee", new BooleanAttribute(new CustomAttributeProps { Mutable = true }) },
{ "joinedOn", new DateTimeAttribute() }
}
});
Synopsis
Constructors
BooleanAttribute(ICustomAttributeProps) | |
BooleanAttribute(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
BooleanAttribute(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind() | Bind this custom attribute type to the values as expected by CloudFormation. |
Constructors
BooleanAttribute(ICustomAttributeProps)
BooleanAttribute(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected BooleanAttribute(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
BooleanAttribute(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected BooleanAttribute(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind()
Bind this custom attribute type to the values as expected by CloudFormation.
public virtual ICustomAttributeConfig Bind()
Returns