Struct aws_sdk_verifiedpermissions::operation::batch_is_authorized::builders::BatchIsAuthorizedFluentBuilder
source · pub struct BatchIsAuthorizedFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to BatchIsAuthorized.
Makes a series of decisions about multiple authorization requests for one principal or resource. Each request contains the equivalent content of an IsAuthorized request: principal, action, resource, and context. Either the principal or the resource parameter must be identical across all requests. For example, Verified Permissions won't evaluate a pair of requests where bob views photo1 and alice views photo2. Authorization of bob to view photo1 and photo2, or bob and alice to view photo1, are valid batches.
The request is evaluated against all policies in the specified policy store that match the entities that you declare. The result of the decisions is a series of Allow or Deny responses, along with the IDs of the policies that produced each decision.
The entities of a BatchIsAuthorized API request can contain up to 100 principals and up to 100 resources. The requests of a BatchIsAuthorized API request can contain up to 30 requests.
The BatchIsAuthorized operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permission verifiedpermissions:IsAuthorized in their IAM policies.
Implementations§
source§impl BatchIsAuthorizedFluentBuilder
impl BatchIsAuthorizedFluentBuilder
sourcepub fn as_input(&self) -> &BatchIsAuthorizedInputBuilder
pub fn as_input(&self) -> &BatchIsAuthorizedInputBuilder
Access the BatchIsAuthorized as a reference.
sourcepub async fn send(
self
) -> Result<BatchIsAuthorizedOutput, SdkError<BatchIsAuthorizedError, HttpResponse>>
pub async fn send( self ) -> Result<BatchIsAuthorizedOutput, SdkError<BatchIsAuthorizedError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<BatchIsAuthorizedOutput, BatchIsAuthorizedError, Self>
pub fn customize( self ) -> CustomizableOperation<BatchIsAuthorizedOutput, BatchIsAuthorizedError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn policy_store_id(self, input: impl Into<String>) -> Self
pub fn policy_store_id(self, input: impl Into<String>) -> Self
Specifies the ID of the policy store. Policies in this policy store will be used to make the authorization decisions for the input.
sourcepub fn set_policy_store_id(self, input: Option<String>) -> Self
pub fn set_policy_store_id(self, input: Option<String>) -> Self
Specifies the ID of the policy store. Policies in this policy store will be used to make the authorization decisions for the input.
sourcepub fn get_policy_store_id(&self) -> &Option<String>
pub fn get_policy_store_id(&self) -> &Option<String>
Specifies the ID of the policy store. Policies in this policy store will be used to make the authorization decisions for the input.
sourcepub fn entities(self, input: EntitiesDefinition) -> Self
pub fn entities(self, input: EntitiesDefinition) -> Self
Specifies the list of resources and principals and their associated attributes that Verified Permissions can examine when evaluating the policies.
You can include only principal and resource entities in this parameter; you can't include actions. You must specify actions in the schema.
sourcepub fn set_entities(self, input: Option<EntitiesDefinition>) -> Self
pub fn set_entities(self, input: Option<EntitiesDefinition>) -> Self
Specifies the list of resources and principals and their associated attributes that Verified Permissions can examine when evaluating the policies.
You can include only principal and resource entities in this parameter; you can't include actions. You must specify actions in the schema.
sourcepub fn get_entities(&self) -> &Option<EntitiesDefinition>
pub fn get_entities(&self) -> &Option<EntitiesDefinition>
Specifies the list of resources and principals and their associated attributes that Verified Permissions can examine when evaluating the policies.
You can include only principal and resource entities in this parameter; you can't include actions. You must specify actions in the schema.
sourcepub fn requests(self, input: BatchIsAuthorizedInputItem) -> Self
pub fn requests(self, input: BatchIsAuthorizedInputItem) -> Self
Appends an item to requests.
To override the contents of this collection use set_requests.
An array of up to 30 requests that you want Verified Permissions to evaluate.
sourcepub fn set_requests(
self,
input: Option<Vec<BatchIsAuthorizedInputItem>>
) -> Self
pub fn set_requests( self, input: Option<Vec<BatchIsAuthorizedInputItem>> ) -> Self
An array of up to 30 requests that you want Verified Permissions to evaluate.
sourcepub fn get_requests(&self) -> &Option<Vec<BatchIsAuthorizedInputItem>>
pub fn get_requests(&self) -> &Option<Vec<BatchIsAuthorizedInputItem>>
An array of up to 30 requests that you want Verified Permissions to evaluate.
Trait Implementations§
source§impl Clone for BatchIsAuthorizedFluentBuilder
impl Clone for BatchIsAuthorizedFluentBuilder
source§fn clone(&self) -> BatchIsAuthorizedFluentBuilder
fn clone(&self) -> BatchIsAuthorizedFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more