Open3

CognitoのSMS文字数制限

noritama73noritama73

sms_authentication_messageとかで140字以上のメッセージを設定しようとするとエラーになる

$ aws cognito-idp create-user-pool --pool-name test --sms-authentication-message ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz:{####}

An error occurred (InvalidParameterException) when calling the CreateUserPool operation: 1 validation error detected: Value 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz:{####}' at 'smsAuthenticationMessage' failed to satisfy constraint: Member must have length less than or equal to 140