envs_1 / data /lib /python3.10 /site-packages /awscli /examples /cognito-identity /create-identity-pool.rst
| **To create an identity pool with Cognito identity pool provider** | |
| This example creates an identity pool named MyIdentityPool. It has a Cognito identity pool provider. | |
| Unauthenticated identities are not allowed. | |
| Command:: | |
| aws cognito-identity create-identity-pool --identity-pool-name MyIdentityPool --no-allow-unauthenticated-identities --cognito-identity-providers ProviderName="cognito-idp.us-west-2.amazonaws.com/us-west-2_aaaaaaaaa",ClientId="3n4b5urk1ft4fl3mg5e62d9ado",ServerSideTokenCheck=false | |
| Output:: | |
| { | |
| "IdentityPoolId": "us-west-2:11111111-1111-1111-1111-111111111111", | |
| "IdentityPoolName": "MyIdentityPool", | |
| "AllowUnauthenticatedIdentities": false, | |
| "CognitoIdentityProviders": [ | |
| { | |
| "ProviderName": "cognito-idp.us-west-2.amazonaws.com/us-west-2_111111111", | |
| "ClientId": "3n4b5urk1ft4fl3mg5e62d9ado", | |
| "ServerSideTokenCheck": false | |
| } | |
| ] | |
| } | |