Struct aws_sdk_accessanalyzer::operation::check_access_not_granted::builders::CheckAccessNotGrantedInputBuilder
source · #[non_exhaustive]pub struct CheckAccessNotGrantedInputBuilder { /* private fields */ }Expand description
A builder for CheckAccessNotGrantedInput.
Implementations§
source§impl CheckAccessNotGrantedInputBuilder
impl CheckAccessNotGrantedInputBuilder
sourcepub fn policy_document(self, input: impl Into<String>) -> Self
pub fn policy_document(self, input: impl Into<String>) -> Self
The JSON policy document to use as the content for the policy.
This field is required.sourcepub fn set_policy_document(self, input: Option<String>) -> Self
pub fn set_policy_document(self, input: Option<String>) -> Self
The JSON policy document to use as the content for the policy.
sourcepub fn get_policy_document(&self) -> &Option<String>
pub fn get_policy_document(&self) -> &Option<String>
The JSON policy document to use as the content for the policy.
sourcepub fn access(self, input: Access) -> Self
pub fn access(self, input: Access) -> Self
Appends an item to access.
To override the contents of this collection use set_access.
An access object containing the permissions that shouldn't be granted by the specified policy.
sourcepub fn set_access(self, input: Option<Vec<Access>>) -> Self
pub fn set_access(self, input: Option<Vec<Access>>) -> Self
An access object containing the permissions that shouldn't be granted by the specified policy.
sourcepub fn get_access(&self) -> &Option<Vec<Access>>
pub fn get_access(&self) -> &Option<Vec<Access>>
An access object containing the permissions that shouldn't be granted by the specified policy.
sourcepub fn policy_type(self, input: AccessCheckPolicyType) -> Self
pub fn policy_type(self, input: AccessCheckPolicyType) -> Self
The type of policy. Identity policies grant permissions to IAM principals. Identity policies include managed and inline policies for IAM roles, users, and groups.
Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or Amazon S3 bucket policy.
This field is required.sourcepub fn set_policy_type(self, input: Option<AccessCheckPolicyType>) -> Self
pub fn set_policy_type(self, input: Option<AccessCheckPolicyType>) -> Self
The type of policy. Identity policies grant permissions to IAM principals. Identity policies include managed and inline policies for IAM roles, users, and groups.
Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or Amazon S3 bucket policy.
sourcepub fn get_policy_type(&self) -> &Option<AccessCheckPolicyType>
pub fn get_policy_type(&self) -> &Option<AccessCheckPolicyType>
The type of policy. Identity policies grant permissions to IAM principals. Identity policies include managed and inline policies for IAM roles, users, and groups.
Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or Amazon S3 bucket policy.
sourcepub fn build(self) -> Result<CheckAccessNotGrantedInput, BuildError>
pub fn build(self) -> Result<CheckAccessNotGrantedInput, BuildError>
Consumes the builder and constructs a CheckAccessNotGrantedInput.
source§impl CheckAccessNotGrantedInputBuilder
impl CheckAccessNotGrantedInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CheckAccessNotGrantedOutput, SdkError<CheckAccessNotGrantedError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CheckAccessNotGrantedOutput, SdkError<CheckAccessNotGrantedError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CheckAccessNotGrantedInputBuilder
impl Clone for CheckAccessNotGrantedInputBuilder
source§fn clone(&self) -> CheckAccessNotGrantedInputBuilder
fn clone(&self) -> CheckAccessNotGrantedInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CheckAccessNotGrantedInputBuilder
impl Default for CheckAccessNotGrantedInputBuilder
source§fn default() -> CheckAccessNotGrantedInputBuilder
fn default() -> CheckAccessNotGrantedInputBuilder
source§impl PartialEq for CheckAccessNotGrantedInputBuilder
impl PartialEq for CheckAccessNotGrantedInputBuilder
source§fn eq(&self, other: &CheckAccessNotGrantedInputBuilder) -> bool
fn eq(&self, other: &CheckAccessNotGrantedInputBuilder) -> bool
self and other values to be equal, and is used
by ==.