{"id":23262,"date":"2022-12-21T10:00:46","date_gmt":"2022-12-21T01:00:46","guid":{"rendered":"https:\/\/www.skyarch.net\/blog\/?p=23262"},"modified":"2022-12-20T20:03:15","modified_gmt":"2022-12-20T11:03:15","slug":"cognito-%e3%83%a6%e3%83%bc%e3%82%b6%e3%83%bc%e3%83%97%e3%83%bc%e3%83%ab%e3%82%92-cfn-%e3%81%a7%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e3%81%a8%e3%81%8d%e3%80%8cphone_number_verified%e3%80%8d%e3%81%8c","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/cognito-%e3%83%a6%e3%83%bc%e3%82%b6%e3%83%bc%e3%83%97%e3%83%bc%e3%83%ab%e3%82%92-cfn-%e3%81%a7%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e3%81%a8%e3%81%8d%e3%80%8cphone_number_verified%e3%80%8d%e3%81%8c\/","title":{"rendered":"Cognito \u30e6\u30fc\u30b6\u30fc\u30d7\u30fc\u30eb\u3092 CFn \u3067\u4f5c\u6210\u3059\u308b\u3068\u304d\u300cphone_number_verified\u300d\u304c\u6307\u5b9a\u3067\u304d\u306a\u3044"},"content":{"rendered":"<h1>\u30a8\u30e9\u30fc\u3001\u56f0\u3063\u3066\u3044\u305f\u3053\u3068<\/h1>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306a CloudFormation \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067 Cognito \u30e6\u30fc\u30b6\u30fc\u30d7\u30fc\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3068\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<pre>AWSTemplateFormatVersion: 2010-09-09\n\nResources:\n  UserPool:\n    Type: AWS::Cognito::UserPool\n    Properties: \n      UserPoolName: test-phonenumberverified-userpool\n      Schema:\n        - Name: phone_number_verified\n          AttributeDataType: Boolean\n          DeveloperOnlyAttribute: false\n          Mutable: true\n          Required: false\n<\/pre>\n<p><code>phone_number_verified<\/code> \u3068\u3044\u3046\u5c5e\u6027\u3092\u8a2d\u5b9a\u3057\u305f\u3044\u306e\u3067\u3059\u304c\u3001\u540d\u524d\u304c\u9577\u3059\u304e\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30a8\u30e9\u30fc\u5185\u5bb9\u7684\u306b\u3001\u8a70\u3093\u3067\u308b\u306e\u3067\u306f\uff1f\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u2026<\/p>\n<pre>1 validation error detected: Value 'phone_number_verified' at 'schema.1.member.name' failed to satisfy constraint: Member must have length less than or equal to 20 (Service: AWSCognitoIdentityProviderService; Status Code: 400; Error Code: InvalidParameterException; Request ID: xxxx; Proxy: null)\n<\/pre>\n<h1>\u89e3\u6c7a\u65b9\u6cd5<\/h1>\n<p><code>phone_number_verified<\/code> \u306f\u660e\u793a\u7684\u306b\u6307\u5b9a\u3057\u306a\u304f\u3066\u3082\u3001\u30e6\u30fc\u30b6\u30fc\u30d7\u30fc\u30eb\u4f5c\u6210\u6642\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3054\u304f\u6700\u4f4e\u9650\u306e\u8a18\u8f09\u3057\u304b\u306a\u3044\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u3042\u3063\u3066\u3082\u3001<\/p>\n<pre>AWSTemplateFormatVersion: 2010-09-09\n\nResources:\n  UserPool:\n    Type: AWS::Cognito::UserPool\n    Properties: \n      UserPoolName: test-phonenumberverified-userpool\n<\/pre>\n<p>\u4e0a\u8a18\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u4f5c\u6210\u3057\u305f\u30ea\u30bd\u30fc\u30b9\u3092 <a href=\"https:\/\/docs.aws.amazon.com\/cognito-user-identity-pools\/latest\/APIReference\/API_DescribeUserPool.html\" target=\"_blank\" rel=\"noopener\">DescribeUserPool<\/a> API \u3067\u53c2\u7167\u3057\u3066\u307f\u308b\u3068\u3001<br \/>\n<code>phone_number_verified<\/code> \u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n<pre>$ aws cognito-idp describe-user-pool --user-pool-id ap-northeast-1_xxxx --no-cli-pager\n{\n    \"UserPool\": {\n        \"Id\": \"ap-northeast-1_xxxx\",\n        \"Name\": \"test-phonenumberverified-userpool\",\n        \"LastModifiedDate\": \"2022-12-20T14:27:08.276000+09:00\",\n        \"CreationDate\": \"2022-12-20T14:27:08.276000+09:00\",\n        \"SchemaAttributes\": [\n            ...\n            {\n                \"Name\": \"phone_number_verified\",\n                \"AttributeDataType\": \"Boolean\",\n                \"DeveloperOnlyAttribute\": false,\n                \"Mutable\": true,\n                \"Required\": false\n            },\n            ...\n        ],\n        \"UserPoolTags\": {},\n        \"Arn\": \"arn:aws:cognito-idp:ap-northeast-1:111122223333:userpool\/ap-northeast-1_xxxx\"\n    }\n}\n<\/pre>\n<p>\u89e3\u6c7a\u65b9\u6cd5\u3068\u547c\u3079\u308b\u3082\u306e\u304b\u5206\u304b\u308a\u307e\u305b\u3093\u304c\u3001\u691c\u7d22\u3057\u3066\u307f\u308b\u3068\u540c\u3058\u3088\u3046\u306a\u30a8\u30e9\u30fc\u306b\u906d\u9047\u3057\u3066\u3044\u308b\u30b1\u30fc\u30b9\u3082\u3042\u3063\u305f\u306e\u3067<br \/>\n\u305d\u3046\u3044\u3063\u305f\u5834\u5408\u306e\u52a9\u3051\u306b\u306a\u308c\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n<p><code>phone_number_verified<\/code> \u4ee5\u5916\u3067\u3082 <code>name<\/code> \u3084 <code>email<\/code> \u306a\u3069\u591a\u304f\u306e\u5c5e\u6027\u304c<br \/>\n\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u305d\u308c\u3089\u306f CloudFormation \u3067\u660e\u793a\u7684\u306b\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3057\u305f\u3002<\/p>\n<p>\u5171\u540c\u8457\u8005: \u795e\u6d25<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30a8\u30e9\u30fc\u3001\u56f0\u3063\u3066\u3044\u305f\u3053\u3068 \u4ee5\u4e0b\u306e\u3088\u3046\u306a CloudFormation \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067 Cognito \u30e6\u30fc\u30b6\u30fc\u30d7\u30fc\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3068\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002 AWSTemplateFormatVersion: 2010-09-0&#8230;<\/p>\n","protected":false},"author":60,"featured_media":23263,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"https:\/\/www.skyarch.net\/blog\/?p=23262","footnotes":""},"categories":[20,1213],"tags":[538,102,542],"class_list":{"0":"post-23262","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-aws","8":"category-cognito","9":"tag-amazon-cognito","10":"tag-aws","11":"tag-aws-cloudformation","12":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/23262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/60"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=23262"}],"version-history":[{"count":7,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/23262\/revisions"}],"predecessor-version":[{"id":23300,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/23262\/revisions\/23300"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/23263"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=23262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=23262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=23262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}