[][src]Struct netlify_lambda_http::request::Identity

pub struct Identity {
    pub source_ip: String,
    pub cognito_identity_id: Option<String>,
    pub cognito_identity_pool_id: Option<String>,
    pub cognito_authentication_provider: Option<String>,
    pub cognito_authentication_type: Option<String>,
    pub account_id: Option<String>,
    pub caller: Option<String>,
    pub api_key: Option<String>,
    pub access_key: Option<String>,
    pub user: Option<String>,
    pub user_agent: Option<String>,
    pub user_arn: Option<String>,
}

Identity assoicated with API Gateway request

Fields

source_ip: String

The source IP address of the TCP connection making the request to API Gateway.

cognito_identity_id: Option<String>

The Amazon Cognito identity ID of the caller making the request. Available only if the request was signed with Amazon Cognito credentials.

cognito_identity_pool_id: Option<String>

The Amazon Cognito identity pool ID of the caller making the request. Available only if the request was signed with Amazon Cognito credentials.

cognito_authentication_provider: Option<String>

A comma-separated list of the Amazon Cognito authentication providers used by the caller making the request. Available only if the request was signed with Amazon Cognito credentials.

cognito_authentication_type: Option<String>

The Amazon Cognito authentication type of the caller making the request. Available only if the request was signed with Amazon Cognito credentials.

account_id: Option<String>

The AWS account ID associated with the request.

caller: Option<String>

The principal identifier of the caller making the request.

api_key: Option<String>

For API methods that require an API key, this variable is the API key associated with the method request. For methods that don't require an API key, this variable is null.

access_key: Option<String>

Undocumented. Can be the API key ID associated with an API request that requires an API key. The description of api_key and access_key may actually be reversed.

user: Option<String>

The principal identifier of the user making the request. Used in Lambda authorizers.

user_agent: Option<String>

The User-Agent header of the API caller.

user_arn: Option<String>

The Amazon Resource Name (ARN) of the effective user identified after authentication.

Trait Implementations

impl Clone for Identity[src]

impl Debug for Identity[src]

impl Default for Identity[src]

impl<'de> Deserialize<'de> for Identity[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithSubscriber for T[src]