#[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: i32The 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: i64The execution latency, in ms, 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 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.impl StructuralPartialEq for TestInvokeAuthorizerOutput
Auto Trait Implementations§
impl Freeze for TestInvokeAuthorizerOutput
impl RefUnwindSafe for TestInvokeAuthorizerOutput
impl Send for TestInvokeAuthorizerOutput
impl Sync for TestInvokeAuthorizerOutput
impl Unpin for TestInvokeAuthorizerOutput
impl UnwindSafe for TestInvokeAuthorizerOutput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more