#aws #sdk


AWS SDK for Amazon Cognito Identity Provider

29 breaking releases

new 0.31.1 Sep 20, 2023
0.30.0 Aug 23, 2023
0.28.0 May 24, 2023
0.25.0 Mar 30, 2023
0.0.0 May 8, 2021

#27 in #aws

Download history 1636/week @ 2023-06-06 2059/week @ 2023-06-13 2092/week @ 2023-06-20 1487/week @ 2023-06-27 2259/week @ 2023-07-04 3013/week @ 2023-07-11 3469/week @ 2023-07-18 3035/week @ 2023-07-25 3882/week @ 2023-08-01 3776/week @ 2023-08-08 3238/week @ 2023-08-15 3321/week @ 2023-08-22 3402/week @ 2023-08-29 2717/week @ 2023-09-05 3267/week @ 2023-09-12 3513/week @ 2023-09-19

13,565 downloads per month


108K SLoC


Please Note: The SDK is currently in Developer Preview and is intended strictly for feedback purposes only. Do not use this SDK for production workloads.

With the Amazon Cognito user pools API, you can set up user pools and app clients, and authenticate users. To authenticate users from third-party identity providers (IdPs) in this API, you can link IdP users to native user profiles. Learn more about the authentication and authorization of federated users in the Using the Amazon Cognito user pools API and user pool endpoints.

This API reference provides detailed information about API operations and object types in Amazon Cognito. At the bottom of the page for each API operation and object, under See Also, you can learn how to use it in an Amazon Web Services SDK in the language of your choice.

Along with resource management operations, the Amazon Cognito user pools API includes classes of operations and authorization models for client-side and server-side user operations. For more information, see Using the Amazon Cognito native and OIDC APIs in the Amazon Cognito Developer Guide.

You can also start reading about the CognitoIdentityProvider client in the following SDK guides.

To get started with an Amazon Web Services SDK, see Tools to Build on Amazon Web Services. For example actions and scenarios, see Code examples for Amazon Cognito Identity Provider using Amazon Web Services SDKs.

Getting Started

Examples are available for many services and operations, check out the examples folder in GitHub.

The SDK provides one crate per AWS service. You must add Tokio as a dependency within your Rust project to execute asynchronous code. To add aws-sdk-cognitoidentityprovider to your project, add the following to your Cargo.toml file:

aws-config = "0.56.1"
aws-sdk-cognitoidentityprovider = "0.31.1"
tokio = { version = "1", features = ["full"] }

Then in code, a client can be created with the following:

use aws_sdk_cognitoidentityprovider as cognitoidentityprovider;

async fn main() -> Result<(), cognitoidentityprovider::Error> {
    let config = aws_config::load_from_env().await;
    let client = aws_sdk_cognitoidentityprovider::Client::new(&config);

    // ... make some calls with the client


See the client documentation for information on what calls can be made, and the inputs and outputs for each of those calls.

Using the SDK

Until the SDK is released, we will be adding information about using the SDK to the Developer Guide. Feel free to suggest additional sections for the guide by opening an issue and describing what you are trying to do.

Getting Help


This project is licensed under the Apache-2.0 License.


~377K SLoC