Show / Hide Table of Contents

Class CustomAttributeConfig

Configuration that will be fed into CloudFormation for any custom attribute type.

Inheritance
object
CustomAttributeConfig
Implements
ICustomAttributeConfig
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.Cognito
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CustomAttributeConfig : ICustomAttributeConfig
Syntax (vb)
Public Class CustomAttributeConfig Implements ICustomAttributeConfig
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.Cognito;

            var customAttributeConfig = new CustomAttributeConfig {
                DataType = "dataType",

                // the properties below are optional
                Mutable = false,
                NumberConstraints = new NumberAttributeConstraints {
                    Max = 123,
                    Min = 123
                },
                StringConstraints = new StringAttributeConstraints {
                    MaxLen = 123,
                    MinLen = 123
                }
            };

Synopsis

Constructors

CustomAttributeConfig()

Configuration that will be fed into CloudFormation for any custom attribute type.

Properties

DataType

The data type of the custom attribute.

Mutable

Specifies whether the value of the attribute can be changed.

NumberConstraints

The constraints for a custom attribute of the 'Number' data type.

StringConstraints

The constraints for a custom attribute of 'String' data type.

Constructors

CustomAttributeConfig()

Configuration that will be fed into CloudFormation for any custom attribute type.

public CustomAttributeConfig()
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.Cognito;

            var customAttributeConfig = new CustomAttributeConfig {
                DataType = "dataType",

                // the properties below are optional
                Mutable = false,
                NumberConstraints = new NumberAttributeConstraints {
                    Max = 123,
                    Min = 123
                },
                StringConstraints = new StringAttributeConstraints {
                    MaxLen = 123,
                    MinLen = 123
                }
            };

Properties

DataType

The data type of the custom attribute.

public string DataType { get; set; }
Property Value

string

Remarks

See: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SchemaAttributeType.html#CognitoUserPools-Type-SchemaAttributeType-AttributeDataType

Mutable

Specifies whether the value of the attribute can be changed.

public bool? Mutable { get; set; }
Property Value

bool?

Remarks

For any user pool attribute that's mapped to an identity provider attribute, you must set this parameter to true. Amazon Cognito updates mapped attributes when users sign in to your application through an identity provider. If an attribute is immutable, Amazon Cognito throws an error when it attempts to update the attribute.

Default: false

NumberConstraints

The constraints for a custom attribute of the 'Number' data type.

public INumberAttributeConstraints? NumberConstraints { get; set; }
Property Value

INumberAttributeConstraints

Remarks

Default: - None.

StringConstraints

The constraints for a custom attribute of 'String' data type.

public IStringAttributeConstraints? StringConstraints { get; set; }
Property Value

IStringAttributeConstraints

Remarks

Default: - None.

Implements

ICustomAttributeConfig
Back to top Generated by DocFX