#[non_exhaustive]pub struct TestInvokeAuthorizerOutput {
pub client_status: i32,
pub log: Option<String>,
pub latency: i64,
pub principal_id: Option<String>,
pub policy: Option<String>,
pub authorization: Option<HashMap<String, Vec<String>>>,
pub claims: Option<HashMap<String, String>>,
/* private fields */
}
Expand description
Represents the response of the test invoke request for a custom Authorizer
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.client_status: i32
The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.
log: Option<String>
The API Gateway execution log for the test authorizer request.
latency: i64
The execution latency of the test authorizer request.
principal_id: Option<String>
The principal identity returned by the Authorizer
policy: Option<String>
The JSON policy document returned by the Authorizer
The authorization response.
claims: Option<HashMap<String, String>>
The open identity claims, with any supported custom attributes, returned from the Cognito Your User Pool configured for the API.
Implementations§
source§impl TestInvokeAuthorizerOutput
impl TestInvokeAuthorizerOutput
sourcepub fn client_status(&self) -> i32
pub fn client_status(&self) -> i32
The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.
sourcepub fn log(&self) -> Option<&str>
pub fn log(&self) -> Option<&str>
The API Gateway execution log for the test authorizer request.
sourcepub fn principal_id(&self) -> Option<&str>
pub fn principal_id(&self) -> Option<&str>
The principal identity returned by the Authorizer
The authorization response.
source§impl TestInvokeAuthorizerOutput
impl TestInvokeAuthorizerOutput
sourcepub fn builder() -> TestInvokeAuthorizerOutputBuilder
pub fn builder() -> TestInvokeAuthorizerOutputBuilder
Creates a new builder-style object to manufacture TestInvokeAuthorizerOutput
.
Trait Implementations§
source§impl Clone for TestInvokeAuthorizerOutput
impl Clone for TestInvokeAuthorizerOutput
source§fn clone(&self) -> TestInvokeAuthorizerOutput
fn clone(&self) -> TestInvokeAuthorizerOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TestInvokeAuthorizerOutput
impl Debug for TestInvokeAuthorizerOutput
source§impl PartialEq<TestInvokeAuthorizerOutput> for TestInvokeAuthorizerOutput
impl PartialEq<TestInvokeAuthorizerOutput> for TestInvokeAuthorizerOutput
source§fn eq(&self, other: &TestInvokeAuthorizerOutput) -> bool
fn eq(&self, other: &TestInvokeAuthorizerOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for TestInvokeAuthorizerOutput
impl RequestId for TestInvokeAuthorizerOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.