create_identity_pool
async
¶
create_identity_pool(
identity_pool_name: IdentityPoolName,
allow_unauthenticated_identities: IdentityPoolUnauthenticated,
*,
config_overrides: Optional[AsyncCognitoIdentityClientConfig] = None,
allow_classic_flow: Optional[ClassicFlow] = None,
supported_login_providers: Optional[IdentityProviders] = None,
developer_provider_name: Optional[DeveloperProviderName] = None,
open_id_connect_provider_ar_ns: Optional[OIDCProviderList] = None,
cognito_identity_providers: Optional[CognitoIdentityProviderList] = None,
saml_provider_ar_ns: Optional[SAMLProviderList] = None,
identity_pool_tags: Optional[IdentityPoolTagsType] = None,
) -> IdentityPool
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 parameter, Amazon Cognito sets it to its default value.
You must use Amazon Web Services developer credentials to call this operation.
Parameters:
-
identity_pool_name(IdentityPoolName) –A string that you provide.
-
allow_unauthenticated_identities(IdentityPoolUnauthenticated) –TRUE if the identity pool supports unauthenticated logins.
-
allow_classic_flow(Optional[ClassicFlow], default:None) –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(Optional[IdentityProviders], default:None) –Optional key:value pairs mapping provider names to provider app IDs.
-
developer_provider_name(Optional[DeveloperProviderName], default:None) –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 parameter.
-
open_id_connect_provider_ar_ns(Optional[OIDCProviderList], default:None) –The Amazon Resource Names (ARN) of the OpenID Connect providers.
-
cognito_identity_providers(Optional[CognitoIdentityProviderList], default:None) –An array of Amazon Cognito user pools and their client IDs.
-
saml_provider_ar_ns(Optional[SAMLProviderList], default:None) –An array of Amazon Resource Names (ARNs) of the SAML provider for your identity pool.
-
identity_pool_tags(Optional[IdentityPoolTagsType], default:None) –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.
Raises:
-
InternalErrorException–Thrown when the service encounters an error during processing the request.
-
InvalidParameterException–Thrown for missing or bad input parameter(s).
-
LimitExceededException–Thrown when the total number of user pools has exceeded a preset limit.
-
NotAuthorizedException–Thrown when a user is not authorized to access the requested resource.
-
ResourceConflictException–Thrown when a user tries to use a login which is already linked to another account.
-
TooManyRequestsException–Thrown when a request is throttled.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cognito_identity/_services/async_cognito_identity.py
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 | |