Struct aws_sdk_verifiedpermissions::operation::is_authorized::builders::IsAuthorizedOutputBuilder
source · #[non_exhaustive]pub struct IsAuthorizedOutputBuilder { /* private fields */ }Expand description
A builder for IsAuthorizedOutput.
Implementations§
source§impl IsAuthorizedOutputBuilder
impl IsAuthorizedOutputBuilder
sourcepub fn decision(self, input: Decision) -> Self
pub fn decision(self, input: Decision) -> Self
An authorization decision that indicates if the authorization request should be allowed or denied.
This field is required.sourcepub fn set_decision(self, input: Option<Decision>) -> Self
pub fn set_decision(self, input: Option<Decision>) -> Self
An authorization decision that indicates if the authorization request should be allowed or denied.
sourcepub fn get_decision(&self) -> &Option<Decision>
pub fn get_decision(&self) -> &Option<Decision>
An authorization decision that indicates if the authorization request should be allowed or denied.
sourcepub fn determining_policies(self, input: DeterminingPolicyItem) -> Self
pub fn determining_policies(self, input: DeterminingPolicyItem) -> Self
Appends an item to determining_policies.
To override the contents of this collection use set_determining_policies.
The list of determining policies used to make the authorization decision. For example, if there are two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be no determining policies.
sourcepub fn set_determining_policies(
self,
input: Option<Vec<DeterminingPolicyItem>>,
) -> Self
pub fn set_determining_policies( self, input: Option<Vec<DeterminingPolicyItem>>, ) -> Self
The list of determining policies used to make the authorization decision. For example, if there are two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be no determining policies.
sourcepub fn get_determining_policies(&self) -> &Option<Vec<DeterminingPolicyItem>>
pub fn get_determining_policies(&self) -> &Option<Vec<DeterminingPolicyItem>>
The list of determining policies used to make the authorization decision. For example, if there are two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be no determining policies.
sourcepub fn errors(self, input: EvaluationErrorItem) -> Self
pub fn errors(self, input: EvaluationErrorItem) -> Self
Appends an item to errors.
To override the contents of this collection use set_errors.
Errors that occurred while making an authorization decision, for example, a policy references an Entity or entity Attribute that does not exist in the slice.
sourcepub fn set_errors(self, input: Option<Vec<EvaluationErrorItem>>) -> Self
pub fn set_errors(self, input: Option<Vec<EvaluationErrorItem>>) -> Self
Errors that occurred while making an authorization decision, for example, a policy references an Entity or entity Attribute that does not exist in the slice.
sourcepub fn get_errors(&self) -> &Option<Vec<EvaluationErrorItem>>
pub fn get_errors(&self) -> &Option<Vec<EvaluationErrorItem>>
Errors that occurred while making an authorization decision, for example, a policy references an Entity or entity Attribute that does not exist in the slice.
sourcepub fn build(self) -> Result<IsAuthorizedOutput, BuildError>
pub fn build(self) -> Result<IsAuthorizedOutput, BuildError>
Consumes the builder and constructs a IsAuthorizedOutput.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for IsAuthorizedOutputBuilder
impl Clone for IsAuthorizedOutputBuilder
source§fn clone(&self) -> IsAuthorizedOutputBuilder
fn clone(&self) -> IsAuthorizedOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for IsAuthorizedOutputBuilder
impl Debug for IsAuthorizedOutputBuilder
source§impl Default for IsAuthorizedOutputBuilder
impl Default for IsAuthorizedOutputBuilder
source§fn default() -> IsAuthorizedOutputBuilder
fn default() -> IsAuthorizedOutputBuilder
impl StructuralPartialEq for IsAuthorizedOutputBuilder
Auto Trait Implementations§
impl Freeze for IsAuthorizedOutputBuilder
impl RefUnwindSafe for IsAuthorizedOutputBuilder
impl Send for IsAuthorizedOutputBuilder
impl Sync for IsAuthorizedOutputBuilder
impl Unpin for IsAuthorizedOutputBuilder
impl UnwindSafe for IsAuthorizedOutputBuilder
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