Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cognito metadata #564

Merged
merged 2 commits into from Nov 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions lambda-runtime/src/types.rs
Expand Up @@ -57,23 +57,31 @@ pub struct ClientContext {
#[serde(rename_all = "camelCase")]
pub struct ClientApplication {
/// The mobile app installation id
#[serde(alias = "installation_id")]
pub installation_id: String,
/// The app title for the mobile app as registered with AWS' mobile services.
#[serde(alias = "app_title")]
pub app_title: String,
/// The version name of the application as registered with AWS' mobile services.
#[serde(alias = "app_version_name")]
pub app_version_name: String,
/// The app version code.
#[serde(alias = "app_version_code")]
pub app_version_code: String,
/// The package name for the mobile application invoking the function
#[serde(alias = "app_package_name")]
pub app_package_name: String,
}

/// Cognito identity information sent with the event
#[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct CognitoIdentity {
/// The unique identity id for the Cognito credentials invoking the function.
#[serde(alias = "cognitoIdentityId", alias = "identity_id")]
pub identity_id: String,
/// The identity pool id the caller is "registered" with.
#[serde(alias = "cognitoIdentityPoolId", alias = "identity_pool_id")]
pub identity_pool_id: String,
}

Expand Down