title: AWS Cognito - createIdentityPool - Where to get ProviderName and ClientId?
body: <p>I'm attempting to use AWS Cognito to aid support for multi tenancy within my application.</p>
  
  <p><a href="https://aws.amazon.com/blogs/apn/managing-saas-users-with-amazon-cognito/" rel="noreferrer">https://aws.amazon.com/blogs/apn/managing-saas-users-with-amazon-cognito/</a></p>
  
  <blockquote>
    <p><strong>Provisioning User Pools</strong></p>
    
    <p>Assuming you were to associate a single user pool with each tenant,
    you would need to introduce provisioning automation that would create
    a tenant’s user pool during the sign-up process. This would also
    require automation that configures all the other moving parts of
    Amazon Cognito to declare and associate the user pools with the other
    Amazon Cognito constructs and security policies.</p>
    
    <p>The basic steps here would be to first create a user pool for the
    tenant and apply any tenant-specific customizations or policies (these
    would typically be the same for all tenants). Then, you’d need your
    automation to provision and configure an identity pool. Finally, you’d
    have to associate the identity pool with your newly created user pool.
    The process is a bit more involved than that, but these are the key
    concepts you need to have in mind as you think about how to add this
    automation to your tenant creation lifecycle.</p>
    
    <p>AWS provides a series of APIs that you can use to implement your
    provisioning automation model. These APIs are available for a number
    of different languages and environments.</p>
  </blockquote>
  
  <p>So far I've been able to use the SDK to create many of the bits and pieces but am struggling with <code>createIdentityPool ()</code> specifically <code>CognitoIdentityProviders</code>
  The documentation states that CognitoIdentityProviders should contain...</p>
  
  <blockquote>
    <p>ProviderName — (String) The provider name for an Amazon Cognito
    Identity User Pool. For example,
    <strong>cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789</strong>.</p>
    
    <p>ClientId — (String) The client ID for the Amazon Cognito Identity User
    Pool.</p>
    
    <p>ServerSideTokenCheck — (Boolean) TRUE if server-side token validation
    is enabled for the identity provider’s token.</p>
  </blockquote>
  
  <p>Where should I be getting <code>ProviderName</code> and <code>ClientId</code> from?</p>
  
  <p>I have vars holding the values returned from <code>createUserPool()</code> and <code>createUserPoolClient()</code> but can't see anything within them that fits.</p>
  
  <p>Any help appreciated.</p>