{"action":"created","issue":{"url":"https://api.github.com/repos/awslabs/aws-cdk/issues/1426","repository_url":"https://api.github.com/repos/awslabs/aws-cdk","labels_url":"https://api.github.com/repos/awslabs/aws-cdk/issues/1426/labels{/name}","comments_url":"https://api.github.com/repos/awslabs/aws-cdk/issues/1426/comments","events_url":"https://api.github.com/repos/awslabs/aws-cdk/issues/1426/events","html_url":"https://github.com/awslabs/aws-cdk/issues/1426","id":393886371,"node_id":"MDU6SXNzdWUzOTM4ODYzNzE=","number":1426,"title":"Unable to create a cognito user pool client","user":{"login":"lestephane","id":5460884,"node_id":"MDQ6VXNlcjU0NjA4ODQ=","avatar_url":"https://avatars3.githubusercontent.com/u/5460884?v=4","gravatar_id":"","url":"https://api.github.com/users/lestephane","html_url":"https://github.com/lestephane","followers_url":"https://api.github.com/users/lestephane/followers","following_url":"https://api.github.com/users/lestephane/following{/other_user}","gists_url":"https://api.github.com/users/lestephane/gists{/gist_id}","starred_url":"https://api.github.com/users/lestephane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lestephane/subscriptions","organizations_url":"https://api.github.com/users/lestephane/orgs","repos_url":"https://api.github.com/users/lestephane/repos","events_url":"https://api.github.com/users/lestephane/events{/privacy}","received_events_url":"https://api.github.com/users/lestephane/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-24T13:58:25Z","updated_at":"2018-12-25T07:52:57Z","closed_at":"2018-12-25T07:52:57Z","author_association":"NONE","body":"I don't know how to create a user pool's associated user pool client, as there does not seem to be a way to get the user pool `!Ref` when using the cloudformation resources, which I'm forced to use since there is no first class support for cognito user pools (and clients) in cdk just yet.\r\n\r\nThis is what i do without CloudFormation resources\r\n(the \"??????\" marker shows where i don't know what to do)\r\n\r\n```java\r\nUserPoolResource userPool = new UserPoolResource(this,\r\n                userPool().poolLogicalId(),\r\n                UserPoolResourceProps.builder()\r\n                        .withUserPoolName(userPool().poolName())\r\n                        .withPolicies(\r\n                                PoliciesProperty.builder()\r\n                                        .withPasswordPolicy(\r\n                                                PasswordPolicyProperty.builder()\r\n                                                        .withMinimumLength(8)\r\n                                                        .build())\r\n                                        .build())\r\n                        .build());\r\n\r\n\r\nnew UserPoolClientResource(this,\r\n        userPool().clientLogicalId(),\r\n        UserPoolClientResourceProps.builder()\r\n                .withClientName(userPool().clientName())\r\n                .withGenerateSecret(false)\r\n                .withRefreshTokenValidity(30)\r\n                .withUserPoolId(??????)\r\n                .build());\r\n```\r\n "},"comment":{"url":"https://api.github.com/repos/awslabs/aws-cdk/issues/comments/449819319","html_url":"https://github.com/awslabs/aws-cdk/issues/1426#issuecomment-449819319","issue_url":"https://api.github.com/repos/awslabs/aws-cdk/issues/1426","id":449819319,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTgxOTMxOQ==","user":{"login":"eladb","id":598796,"node_id":"MDQ6VXNlcjU5ODc5Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/598796?v=4","gravatar_id":"","url":"https://api.github.com/users/eladb","html_url":"https://github.com/eladb","followers_url":"https://api.github.com/users/eladb/followers","following_url":"https://api.github.com/users/eladb/following{/other_user}","gists_url":"https://api.github.com/users/eladb/gists{/gist_id}","starred_url":"https://api.github.com/users/eladb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eladb/subscriptions","organizations_url":"https://api.github.com/users/eladb/orgs","repos_url":"https://api.github.com/users/eladb/repos","events_url":"https://api.github.com/users/eladb/events{/privacy}","received_events_url":"https://api.github.com/users/eladb/received_events","type":"User","site_admin":false},"created_at":"2018-12-25T07:52:57Z","updated_at":"2018-12-25T07:52:57Z","author_association":"CONTRIBUTOR","body":"Reopen if this doesn't resolve your issue"}}
{"actor":{"display_login":"eladb"}}