CognitoIdentityProvider module#
Index > CognitoIdentityProvider
Auto-generated documentation for CognitoIdentityProvider type annotations stubs module mypy-boto3-cognito-idp.
How to install#
Generate locally (recommended)#
You can generate type annotations for boto3
package locally with mypy-boto3-builder
.
Use uv for build isolation.
- Run mypy-boto3-builder in your package root directory:
uvx --with 'boto3==1.36.26' mypy-boto3-builder
- Select
boto3-stubs
AWS SDK. - Add
CognitoIdentityProvider
service. - Use provided commands to install generated packages.
VSCode extension#
Add AWS Boto3
extension to your VSCode and run AWS boto3: Quick Start
command.
Click Modify
and select boto3 common
and CognitoIdentityProvider
.
From PyPI with pip#
Install boto3-stubs
for CognitoIdentityProvider
service.
# install with boto3 type annotations
python -m pip install 'boto3-stubs[cognito-idp]'
# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'boto3-stubs-lite[cognito-idp]'
# standalone installation
python -m pip install mypy-boto3-cognito-idp
How to uninstall#
python -m pip uninstall -y mypy-boto3-cognito-idp
Usage#
Code samples can be found in Examples.
CognitoIdentityProviderClient#
Type annotations and code completion for boto3.client("cognito-idp")
as CognitoIdentityProviderClient
boto3 documentation
# CognitoIdentityProviderClient usage example
from boto3.session import Session
from mypy_boto3_cognito_idp.client import CognitoIdentityProviderClient
def get_client() -> CognitoIdentityProviderClient:
return Session().client("cognito-idp")
Paginators#
Type annotations and code completion for paginators
from boto3.client("cognito-idp").get_paginator("...")
.
# AdminListGroupsForUserPaginator usage example
from boto3.session import Session
from mypy_boto3_cognito_idp.paginator import AdminListGroupsForUserPaginator
def get_admin_list_groups_for_user_paginator() -> AdminListGroupsForUserPaginator:
return Session().client("cognito-idp").get_paginator("admin_list_groups_for_user"))
- AdminListGroupsForUserPaginator
- AdminListUserAuthEventsPaginator
- ListGroupsPaginator
- ListIdentityProvidersPaginator
- ListResourceServersPaginator
- ListUserPoolClientsPaginator
- ListUserPoolsPaginator
- ListUsersInGroupPaginator
- ListUsersPaginator
Literals#
Type annotations for literals used in methods and schema.
# AccountTakeoverEventActionTypeType usage example
from mypy_boto3_cognito_idp.literals import AccountTakeoverEventActionTypeType
def get_value() -> AccountTakeoverEventActionTypeType:
return "BLOCK"
- AccountTakeoverEventActionTypeType
- AdminListGroupsForUserPaginatorName
- AdminListUserAuthEventsPaginatorName
- AdvancedSecurityEnabledModeTypeType
- AdvancedSecurityModeTypeType
- AliasAttributeTypeType
- AssetCategoryTypeType
- AssetExtensionTypeType
- AttributeDataTypeType
- AuthFactorTypeType
- AuthFlowTypeType
- ChallengeNameType
- ChallengeNameTypeType
- ChallengeResponseType
- ColorSchemeModeTypeType
- CompromisedCredentialsEventActionTypeType
- CustomEmailSenderLambdaVersionTypeType
- CustomSMSSenderLambdaVersionTypeType
- DefaultEmailOptionTypeType
- DeletionProtectionTypeType
- DeliveryMediumTypeType
- DeviceRememberedStatusTypeType
- DomainStatusTypeType
- EmailSendingAccountTypeType
- EventFilterTypeType
- EventResponseTypeType
- EventSourceNameType
- EventTypeType
- ExplicitAuthFlowsTypeType
- FeedbackValueTypeType
- IdentityProviderTypeTypeType
- ListGroupsPaginatorName
- ListIdentityProvidersPaginatorName
- ListResourceServersPaginatorName
- ListUserPoolClientsPaginatorName
- ListUserPoolsPaginatorName
- ListUsersInGroupPaginatorName
- ListUsersPaginatorName
- LogLevelType
- MessageActionTypeType
- OAuthFlowTypeType
- PreTokenGenerationLambdaVersionTypeType
- PreventUserExistenceErrorTypesType
- RecoveryOptionNameTypeType
- RiskDecisionTypeType
- RiskLevelTypeType
- StatusTypeType
- TimeUnitsTypeType
- UserImportJobStatusTypeType
- UserPoolMfaTypeType
- UserPoolTierTypeType
- UserStatusTypeType
- UserVerificationTypeType
- UsernameAttributeTypeType
- VerifiedAttributeTypeType
- VerifySoftwareTokenResponseTypeType
- CognitoIdentityProviderServiceName
- ServiceName
- ResourceServiceName
- PaginatorName
- RegionName
Type definitions#
Type annotations for type definitions used in methods and schema.
- RecoveryOptionTypeTypeDef
- AccountTakeoverActionTypeTypeDef
- AdminAddUserToGroupRequestTypeDef
- AdminConfirmSignUpRequestTypeDef
- MessageTemplateTypeTypeDef
- AttributeTypeTypeDef
- ResponseMetadataTypeDef
- AdminDeleteUserAttributesRequestTypeDef
- AdminDeleteUserRequestTypeDef
- ProviderUserIdentifierTypeTypeDef
- AdminDisableUserRequestTypeDef
- AdminEnableUserRequestTypeDef
- AdminForgetDeviceRequestTypeDef
- AdminGetDeviceRequestTypeDef
- AdminGetUserRequestTypeDef
- MFAOptionTypeTypeDef
- AnalyticsMetadataTypeTypeDef
- AdminListDevicesRequestTypeDef
- PaginatorConfigTypeDef
- AdminListGroupsForUserRequestTypeDef
- GroupTypeTypeDef
- AdminListUserAuthEventsRequestTypeDef
- AdminRemoveUserFromGroupRequestTypeDef
- AdminResetUserPasswordRequestTypeDef
- EmailMfaSettingsTypeTypeDef
- SMSMfaSettingsTypeTypeDef
- SoftwareTokenMfaSettingsTypeTypeDef
- AdminSetUserPasswordRequestTypeDef
- AdminUpdateAuthEventFeedbackRequestTypeDef
- AdminUpdateDeviceStatusRequestTypeDef
- AdminUserGlobalSignOutRequestTypeDef
- AdvancedSecurityAdditionalFlowsTypeTypeDef
- AnalyticsConfigurationTypeTypeDef
- AssetTypeOutputTypeDef
- BlobTypeDef
- AssociateSoftwareTokenRequestTypeDef
- ChallengeResponseTypeTypeDef
- EventContextDataTypeTypeDef
- EventFeedbackTypeTypeDef
- EventRiskTypeTypeDef
- NewDeviceMetadataTypeTypeDef
- ChangePasswordRequestTypeDef
- CloudWatchLogsConfigurationTypeTypeDef
- CodeDeliveryDetailsTypeTypeDef
- CompleteWebAuthnRegistrationRequestTypeDef
- CompromisedCredentialsActionsTypeTypeDef
- DeviceSecretVerifierConfigTypeTypeDef
- UserContextDataTypeTypeDef
- HttpHeaderTypeDef
- CreateGroupRequestTypeDef
- CreateIdentityProviderRequestTypeDef
- IdentityProviderTypeTypeDef
- ResourceServerScopeTypeTypeDef
- CreateUserImportJobRequestTypeDef
- UserImportJobTypeTypeDef
- TokenValidityUnitsTypeTypeDef
- CustomDomainConfigTypeTypeDef
- DeviceConfigurationTypeTypeDef
- EmailConfigurationTypeTypeDef
- SmsConfigurationTypeTypeDef
- UsernameConfigurationTypeTypeDef
- VerificationMessageTemplateTypeTypeDef
- CustomEmailLambdaVersionConfigTypeTypeDef
- CustomSMSLambdaVersionConfigTypeTypeDef
- DeleteGroupRequestTypeDef
- DeleteIdentityProviderRequestTypeDef
- DeleteManagedLoginBrandingRequestTypeDef
- DeleteResourceServerRequestTypeDef
- DeleteUserAttributesRequestTypeDef
- DeleteUserPoolClientRequestTypeDef
- DeleteUserPoolDomainRequestTypeDef
- DeleteUserPoolRequestTypeDef
- DeleteUserRequestTypeDef
- DeleteWebAuthnCredentialRequestTypeDef
- DescribeIdentityProviderRequestTypeDef
- DescribeManagedLoginBrandingByClientRequestTypeDef
- DescribeManagedLoginBrandingRequestTypeDef
- DescribeResourceServerRequestTypeDef
- DescribeRiskConfigurationRequestTypeDef
- DescribeUserImportJobRequestTypeDef
- DescribeUserPoolClientRequestTypeDef
- DescribeUserPoolDomainRequestTypeDef
- DescribeUserPoolRequestTypeDef
- EmailMfaConfigTypeTypeDef
- FirehoseConfigurationTypeTypeDef
- ForgetDeviceRequestTypeDef
- GetCSVHeaderRequestTypeDef
- GetDeviceRequestTypeDef
- GetGroupRequestTypeDef
- GetIdentityProviderByIdentifierRequestTypeDef
- GetLogDeliveryConfigurationRequestTypeDef
- GetSigningCertificateRequestTypeDef
- GetUICustomizationRequestTypeDef
- UICustomizationTypeTypeDef
- GetUserAttributeVerificationCodeRequestTypeDef
- GetUserAuthFactorsRequestTypeDef
- GetUserPoolMfaConfigRequestTypeDef
- SoftwareTokenMfaConfigTypeTypeDef
- WebAuthnConfigurationTypeTypeDef
- GetUserRequestTypeDef
- GlobalSignOutRequestTypeDef
- PreTokenGenerationVersionConfigTypeTypeDef
- ListDevicesRequestTypeDef
- ListGroupsRequestTypeDef
- ListIdentityProvidersRequestTypeDef
- ProviderDescriptionTypeDef
- ListResourceServersRequestTypeDef
- ListTagsForResourceRequestTypeDef
- ListUserImportJobsRequestTypeDef
- ListUserPoolClientsRequestTypeDef
- UserPoolClientDescriptionTypeDef
- ListUserPoolsRequestTypeDef
- ListUsersInGroupRequestTypeDef
- ListUsersRequestTypeDef
- ListWebAuthnCredentialsRequestTypeDef
- WebAuthnCredentialDescriptionTypeDef
- S3ConfigurationTypeTypeDef
- NotifyEmailTypeTypeDef
- NumberAttributeConstraintsTypeTypeDef
- PasswordPolicyTypeTypeDef
- RevokeTokenRequestTypeDef
- RiskExceptionConfigurationTypeOutputTypeDef
- RiskExceptionConfigurationTypeTypeDef
- StringAttributeConstraintsTypeTypeDef
- SignInPolicyTypeOutputTypeDef
- SignInPolicyTypeTypeDef
- StartUserImportJobRequestTypeDef
- StartWebAuthnRegistrationRequestTypeDef
- StopUserImportJobRequestTypeDef
- TagResourceRequestTypeDef
- UntagResourceRequestTypeDef
- UpdateAuthEventFeedbackRequestTypeDef
- UpdateDeviceStatusRequestTypeDef
- UpdateGroupRequestTypeDef
- UpdateIdentityProviderRequestTypeDef
- UserAttributeUpdateSettingsTypeOutputTypeDef
- UserAttributeUpdateSettingsTypeTypeDef
- VerifySoftwareTokenRequestTypeDef
- VerifyUserAttributeRequestTypeDef
- AccountRecoverySettingTypeOutputTypeDef
- AccountRecoverySettingTypeTypeDef
- AccountTakeoverActionsTypeTypeDef
- AdminCreateUserConfigTypeTypeDef
- AdminCreateUserRequestTypeDef
- AdminUpdateUserAttributesRequestTypeDef
- DeviceTypeTypeDef
- UpdateUserAttributesRequestTypeDef
- AssociateSoftwareTokenResponseTypeDef
- ConfirmDeviceResponseTypeDef
- ConfirmSignUpResponseTypeDef
- CreateUserPoolDomainResponseTypeDef
- EmptyResponseMetadataTypeDef
- GetCSVHeaderResponseTypeDef
- GetSigningCertificateResponseTypeDef
- GetUserAuthFactorsResponseTypeDef
- ListTagsForResourceResponseTypeDef
- StartWebAuthnRegistrationResponseTypeDef
- UpdateUserPoolDomainResponseTypeDef
- VerifySoftwareTokenResponseTypeDef
- AdminDisableProviderForUserRequestTypeDef
- AdminLinkProviderForUserRequestTypeDef
- AdminGetUserResponseTypeDef
- AdminSetUserSettingsRequestTypeDef
- GetUserResponseTypeDef
- SetUserSettingsRequestTypeDef
- UserTypeTypeDef
- AdminListGroupsForUserRequestPaginateTypeDef
- AdminListUserAuthEventsRequestPaginateTypeDef
- ListGroupsRequestPaginateTypeDef
- ListIdentityProvidersRequestPaginateTypeDef
- ListResourceServersRequestPaginateTypeDef
- ListUserPoolClientsRequestPaginateTypeDef
- ListUserPoolsRequestPaginateTypeDef
- ListUsersInGroupRequestPaginateTypeDef
- ListUsersRequestPaginateTypeDef
- AdminListGroupsForUserResponseTypeDef
- CreateGroupResponseTypeDef
- GetGroupResponseTypeDef
- ListGroupsResponseTypeDef
- UpdateGroupResponseTypeDef
- AdminSetUserMFAPreferenceRequestTypeDef
- SetUserMFAPreferenceRequestTypeDef
- UserPoolAddOnsTypeTypeDef
- ManagedLoginBrandingTypeTypeDef
- AssetTypeTypeDef
- SetUICustomizationRequestTypeDef
- AuthEventTypeTypeDef
- AuthenticationResultTypeTypeDef
- ForgotPasswordResponseTypeDef
- GetUserAttributeVerificationCodeResponseTypeDef
- ResendConfirmationCodeResponseTypeDef
- SignUpResponseTypeDef
- UpdateUserAttributesResponseTypeDef
- CompromisedCredentialsRiskConfigurationTypeOutputTypeDef
- CompromisedCredentialsRiskConfigurationTypeTypeDef
- ConfirmDeviceRequestTypeDef
- ConfirmForgotPasswordRequestTypeDef
- ConfirmSignUpRequestTypeDef
- ForgotPasswordRequestTypeDef
- InitiateAuthRequestTypeDef
- ResendConfirmationCodeRequestTypeDef
- RespondToAuthChallengeRequestTypeDef
- SignUpRequestTypeDef
- ContextDataTypeTypeDef
- CreateIdentityProviderResponseTypeDef
- DescribeIdentityProviderResponseTypeDef
- GetIdentityProviderByIdentifierResponseTypeDef
- UpdateIdentityProviderResponseTypeDef
- CreateResourceServerRequestTypeDef
- ResourceServerTypeTypeDef
- UpdateResourceServerRequestTypeDef
- CreateUserImportJobResponseTypeDef
- DescribeUserImportJobResponseTypeDef
- ListUserImportJobsResponseTypeDef
- StartUserImportJobResponseTypeDef
- StopUserImportJobResponseTypeDef
- CreateUserPoolClientRequestTypeDef
- UpdateUserPoolClientRequestTypeDef
- UserPoolClientTypeTypeDef
- CreateUserPoolDomainRequestTypeDef
- DomainDescriptionTypeTypeDef
- UpdateUserPoolDomainRequestTypeDef
- SmsMfaConfigTypeTypeDef
- GetUICustomizationResponseTypeDef
- SetUICustomizationResponseTypeDef
- LambdaConfigTypeTypeDef
- ListIdentityProvidersResponseTypeDef
- ListUserPoolClientsResponseTypeDef
- ListWebAuthnCredentialsResponseTypeDef
- LogConfigurationTypeTypeDef
- NotifyConfigurationTypeTypeDef
- RiskExceptionConfigurationTypeUnionTypeDef
- SchemaAttributeTypeTypeDef
- UserPoolPolicyTypeOutputTypeDef
- UserPoolPolicyTypeTypeDef
- UserAttributeUpdateSettingsTypeUnionTypeDef
- AccountRecoverySettingTypeUnionTypeDef
- AdminGetDeviceResponseTypeDef
- AdminListDevicesResponseTypeDef
- GetDeviceResponseTypeDef
- ListDevicesResponseTypeDef
- AdminCreateUserResponseTypeDef
- ListUsersInGroupResponseTypeDef
- ListUsersResponseTypeDef
- CreateManagedLoginBrandingResponseTypeDef
- DescribeManagedLoginBrandingByClientResponseTypeDef
- DescribeManagedLoginBrandingResponseTypeDef
- UpdateManagedLoginBrandingResponseTypeDef
- AssetTypeUnionTypeDef
- AdminListUserAuthEventsResponseTypeDef
- AdminInitiateAuthResponseTypeDef
- AdminRespondToAuthChallengeResponseTypeDef
- InitiateAuthResponseTypeDef
- RespondToAuthChallengeResponseTypeDef
- CompromisedCredentialsRiskConfigurationTypeUnionTypeDef
- AdminInitiateAuthRequestTypeDef
- AdminRespondToAuthChallengeRequestTypeDef
- CreateResourceServerResponseTypeDef
- DescribeResourceServerResponseTypeDef
- ListResourceServersResponseTypeDef
- UpdateResourceServerResponseTypeDef
- CreateUserPoolClientResponseTypeDef
- DescribeUserPoolClientResponseTypeDef
- UpdateUserPoolClientResponseTypeDef
- DescribeUserPoolDomainResponseTypeDef
- GetUserPoolMfaConfigResponseTypeDef
- SetUserPoolMfaConfigRequestTypeDef
- SetUserPoolMfaConfigResponseTypeDef
- UserPoolDescriptionTypeTypeDef
- LogDeliveryConfigurationTypeTypeDef
- SetLogDeliveryConfigurationRequestTypeDef
- AccountTakeoverRiskConfigurationTypeTypeDef
- AddCustomAttributesRequestTypeDef
- UserPoolTypeTypeDef
- UserPoolPolicyTypeUnionTypeDef
- CreateManagedLoginBrandingRequestTypeDef
- UpdateManagedLoginBrandingRequestTypeDef
- ListUserPoolsResponseTypeDef
- GetLogDeliveryConfigurationResponseTypeDef
- SetLogDeliveryConfigurationResponseTypeDef
- RiskConfigurationTypeTypeDef
- SetRiskConfigurationRequestTypeDef
- CreateUserPoolResponseTypeDef
- DescribeUserPoolResponseTypeDef
- CreateUserPoolRequestTypeDef
- UpdateUserPoolRequestTypeDef
- DescribeRiskConfigurationResponseTypeDef
- SetRiskConfigurationResponseTypeDef