title: Getting AttributeError: module 'aws_cdk.aws_cognito' has no attribute 'UserPoolResourceServer' Error
body: <p>I am trying to create "CfnUserPoolResourceServer" of cognito using python code. As per <a href="https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_cognito/CfnUserPoolResourceServer.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_cognito/CfnUserPoolResourceServer.html</a> I am trying to set "scopes" parameter.
  As per <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolresourceserver.html#cfn-cognito-userpoolresourceserver-scopes" rel="nofollow noreferrer">https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolresourceserver.html#cfn-cognito-userpoolresourceserver-scopes</a> document the type of scopes is "List of "ResourceServerScopeType". So I am trying to initialize ResourceServerScopeType object as below - </p>
  
  <pre><code>_rs = _cognito.UserPoolResourceServer()
          _rs1 = _rs.ResourceServerScopeType
          _rs1.Scopes.ScopeName = "access_db_data"
          _rs1.Scopes.ScopeDescription = "access data from table"
  </code></pre>
  
  <p>But I am getting below error - </p>
  
  <pre><code>AttributeError: module 'aws_cdk.aws_cognito' has no attribute 'UserPoolResourceServer'
  </code></pre>
  
  <p>I am not able to understand how to setup "scopes" parameter for CfnUserPoolResourceServer. Please help me out.</p>