Struct aws_sdk_accessanalyzer::operation::check_no_new_access::builders::CheckNoNewAccessInputBuilder
source · #[non_exhaustive]pub struct CheckNoNewAccessInputBuilder { /* private fields */ }
Expand description
A builder for CheckNoNewAccessInput
.
Implementations§
source§impl CheckNoNewAccessInputBuilder
impl CheckNoNewAccessInputBuilder
sourcepub fn new_policy_document(self, input: impl Into<String>) -> Self
pub fn new_policy_document(self, input: impl Into<String>) -> Self
The JSON policy document to use as the content for the updated policy.
This field is required.sourcepub fn set_new_policy_document(self, input: Option<String>) -> Self
pub fn set_new_policy_document(self, input: Option<String>) -> Self
The JSON policy document to use as the content for the updated policy.
sourcepub fn get_new_policy_document(&self) -> &Option<String>
pub fn get_new_policy_document(&self) -> &Option<String>
The JSON policy document to use as the content for the updated policy.
sourcepub fn existing_policy_document(self, input: impl Into<String>) -> Self
pub fn existing_policy_document(self, input: impl Into<String>) -> Self
The JSON policy document to use as the content for the existing policy.
This field is required.sourcepub fn set_existing_policy_document(self, input: Option<String>) -> Self
pub fn set_existing_policy_document(self, input: Option<String>) -> Self
The JSON policy document to use as the content for the existing policy.
sourcepub fn get_existing_policy_document(&self) -> &Option<String>
pub fn get_existing_policy_document(&self) -> &Option<String>
The JSON policy document to use as the content for the existing policy.
sourcepub fn policy_type(self, input: AccessCheckPolicyType) -> Self
pub fn policy_type(self, input: AccessCheckPolicyType) -> Self
The type of policy to compare. 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 to compare. 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 to compare. 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<CheckNoNewAccessInput, BuildError>
pub fn build(self) -> Result<CheckNoNewAccessInput, BuildError>
Consumes the builder and constructs a CheckNoNewAccessInput
.
source§impl CheckNoNewAccessInputBuilder
impl CheckNoNewAccessInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CheckNoNewAccessOutput, SdkError<CheckNoNewAccessError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CheckNoNewAccessOutput, SdkError<CheckNoNewAccessError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CheckNoNewAccessInputBuilder
impl Clone for CheckNoNewAccessInputBuilder
source§fn clone(&self) -> CheckNoNewAccessInputBuilder
fn clone(&self) -> CheckNoNewAccessInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CheckNoNewAccessInputBuilder
impl Debug for CheckNoNewAccessInputBuilder
source§impl Default for CheckNoNewAccessInputBuilder
impl Default for CheckNoNewAccessInputBuilder
source§fn default() -> CheckNoNewAccessInputBuilder
fn default() -> CheckNoNewAccessInputBuilder
source§impl PartialEq for CheckNoNewAccessInputBuilder
impl PartialEq for CheckNoNewAccessInputBuilder
source§fn eq(&self, other: &CheckNoNewAccessInputBuilder) -> bool
fn eq(&self, other: &CheckNoNewAccessInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CheckNoNewAccessInputBuilder
Auto Trait Implementations§
impl Freeze for CheckNoNewAccessInputBuilder
impl RefUnwindSafe for CheckNoNewAccessInputBuilder
impl Send for CheckNoNewAccessInputBuilder
impl Sync for CheckNoNewAccessInputBuilder
impl Unpin for CheckNoNewAccessInputBuilder
impl UnwindSafe for CheckNoNewAccessInputBuilder
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> 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