CognitoIdentityClient.create_identity_pool
rboto-cognito-identity==0.4.0 · Service index · Types
Model summary (excerpt): Creates a new identity pool. The identity pool is a store of user identity information that is specific to your Amazon Web Services account. The keys for SupportedLoginProviders are as follows: Facebook: graph.facebook.com Google: accounts.google.com Sign in With Apple: appleid.apple.com Amazon: www.amazon.com Twitter: api.twitter.com Digits: www.digits.com If you don't provide a value for a...
Install and imports
from rboto import CognitoIdentityClient
from collections.abc import Sequence
from rboto_cognito_identity.types import (
CognitoIdentityProvider,
CreateIdentityPoolOutput,
)
Signature
async def create_identity_pool(
*,
identity_pool_name: str,
allow_unauthenticated_identities: bool,
allow_classic_flow: bool | None = None,
supported_login_providers: dict[str, str] | None = None,
developer_provider_name: str | None = None,
open_id_connect_provider_arns: Sequence[str] | None = None,
cognito_identity_providers: Sequence[CognitoIdentityProvider] | None = None,
saml_provider_arns: Sequence[str] | None = None,
identity_pool_tags: dict[str, str] | None = None,
) -> CreateIdentityPoolOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
identity_pool_name |
Yes | A string that you provide. |
allow_unauthenticated_identities |
Yes | TRUE if the identity pool supports unauthenticated logins. |
allow_classic_flow |
No | Enables or disables the Basic (Classic) authentication flow. For more information, see Identity Pools (Federated Identities) Authentication Flow in the Amazon Cognito Developer Guide . |
supported_login_providers |
No | Optional key:value pairs mapping provider names to provider app IDs. |
developer_provider_name |
No | The "domain" by which Cognito will refer to your users. This name acts as a placeholder that allows your backend and the Cognito service to communicate about the developer provider. For the DeveloperProviderName , you can use letters as well as period ( . ), underscore ( _ ), and dash ( - ). Once you have set a developer provider name, you cannot change it. Please take care in setting this... |
open_id_connect_provider_arns |
No | The Amazon Resource Names (ARN) of the OpenID Connect providers. |
cognito_identity_providers |
No | An array of Amazon Cognito user pools and their client IDs. |
saml_provider_arns |
No | An array of Amazon Resource Names (ARNs) of the SAML provider for your identity pool. |
identity_pool_tags |
No | Tags to assign to the identity pool. A tag is a label that you can apply to identity pools to categorize and manage them in different ways, such as by purpose, owner, environment, or other criteria. |
Output
CreateIdentityPoolOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
identity_pool_id |
str |
Always present | — |
identity_pool_name |
str |
Always present | — |
allow_unauthenticated_identities |
bool |
Always present | — |
allow_classic_flow |
bool | None |
Always present | — |
supported_login_providers |
dict[str, str] | None |
Always present | — |
developer_provider_name |
str | None |
Always present | — |
open_id_connect_provider_arns |
list[str] | None |
Always present | — |
cognito_identity_providers |
list[CognitoIdentityProviderOutput] | None |
Always present | CognitoIdentityProviderOutput |
saml_provider_arns |
list[str] | None |
Always present | — |
identity_pool_tags |
dict[str, str] | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
CognitoIdentityProvider, CreateIdentityPoolOutput
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_cognito_identity.exceptions:
InternalError, InvalidParameterError, LimitExceededError, NotAuthorizedError, ResourceConflictError, TooManyRequestsError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.