title: AWSCognitoIdentityProvider; Status Code: 400; Error Code: InvalidParameterException: Cognito Invalid AttributeDataType
body: <p>I like to create a cognito user pool via AWS-CDK version 0.24.1 based on Java. During <code>cdk deploy</code> i get the error InvalidParameterException.</p>
  
  <p><strong>Service:</strong> AWSCognitoIdentityProvider;<br>
  <strong>Status Code:</strong> 400;<br>
  <strong>Error Code:</strong> InvalidParameterException: Cognito Invalid AttributeDataType input, consider using the provided AttributeDataType enum</p>
  
  <pre><code>    CfnUserPool userPool = new CfnUserPool(this, "cognito",
      CfnUserPoolProps.builder()
          .withAdminCreateUserConfig(
              AdminCreateUserConfigProperty.builder()
                  .withAllowAdminCreateUserOnly(false)
                  .build())
          .withPolicies(
              PoliciesProperty.builder()
                  .withPasswordPolicy(
                      PasswordPolicyProperty.builder()
                          .withMinimumLength(6)
                          .withRequireLowercase(false)
                          .withRequireNumbers(false)
                          .withRequireSymbols(false)
                          .withRequireUppercase(false)
                          .build()
                  )
                  .build()
          )
          .withAutoVerifiedAttributes(Arrays.asList("email"))
          .withSchema(Arrays.asList("email"))
      .build());
  </code></pre>
  
  <p>Maybe the simple string list <code>.withAutoVerifiedAttributes(Arrays.asList("email"))</code> or <code>    .withSchema(Arrays.asList("email"))</code> is wrong. But unfortunately there is only list of object declared in method signature and no concret typ: <code>public CfnUserPoolProps.Builder withAutoVerifiedAttributes(@Nullable List value)</code>.</p>
  
  <p>Is there an example snippte to create a similar userpool using aws-cdk based on Java.</p>