-
Notifications
You must be signed in to change notification settings - Fork 17
/
CustomAttributeConfig.go
48 lines (45 loc) · 1.93 KB
/
CustomAttributeConfig.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package awscognito
// Configuration that will be fed into CloudFormation for any custom attribute type.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// customAttributeConfig := &CustomAttributeConfig{
// DataType: jsii.String("dataType"),
//
// // the properties below are optional
// Mutable: jsii.Boolean(false),
// NumberConstraints: &NumberAttributeConstraints{
// Max: jsii.Number(123),
// Min: jsii.Number(123),
// },
// StringConstraints: &StringAttributeConstraints{
// MaxLen: jsii.Number(123),
// MinLen: jsii.Number(123),
// },
// }
//
type CustomAttributeConfig struct {
// The data type of the custom attribute.
// See: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SchemaAttributeType.html#CognitoUserPools-Type-SchemaAttributeType-AttributeDataType
//
DataType *string `field:"required" json:"dataType" yaml:"dataType"`
// Specifies whether the value of the attribute can be changed.
//
// 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.
//
Mutable *bool `field:"optional" json:"mutable" yaml:"mutable"`
// The constraints for a custom attribute of the 'Number' data type.
// Default: - None.
//
NumberConstraints *NumberAttributeConstraints `field:"optional" json:"numberConstraints" yaml:"numberConstraints"`
// The constraints for a custom attribute of 'String' data type.
// Default: - None.
//
StringConstraints *StringAttributeConstraints `field:"optional" json:"stringConstraints" yaml:"stringConstraints"`
}