pub struct ValidatePolicyRequest {
pub locale: Option<String>,
pub max_results: Option<i64>,
pub next_token: Option<String>,
pub policy_document: String,
pub policy_type: String,
}
Fields
locale: Option<String>
The locale to use for localizing the findings.
max_results: Option<i64>
The maximum number of results to return in the response.
next_token: Option<String>
A token used for pagination of results returned.
policy_document: String
The JSON policy document to use as the content for the policy.
policy_type: String
The type of policy to validate. Identity policies grant permissions to IAM principals. Identity policies include managed and inline policies for IAM roles, users, and groups. They also include service-control policies (SCPs) that are attached to an AWS organization, organizational unit (OU), or an account.
Resource policies grant permissions on AWS resources. Resource policies include trust policies for IAM roles and bucket policies for S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or S3 bucket policy.
Trait Implementations
sourceimpl Clone for ValidatePolicyRequest
impl Clone for ValidatePolicyRequest
sourcefn clone(&self) -> ValidatePolicyRequest
fn clone(&self) -> ValidatePolicyRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ValidatePolicyRequest
impl Debug for ValidatePolicyRequest
sourceimpl Default for ValidatePolicyRequest
impl Default for ValidatePolicyRequest
sourcefn default() -> ValidatePolicyRequest
fn default() -> ValidatePolicyRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<ValidatePolicyRequest> for ValidatePolicyRequest
impl PartialEq<ValidatePolicyRequest> for ValidatePolicyRequest
sourcefn eq(&self, other: &ValidatePolicyRequest) -> bool
fn eq(&self, other: &ValidatePolicyRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ValidatePolicyRequest) -> bool
fn ne(&self, other: &ValidatePolicyRequest) -> bool
This method tests for !=
.
sourceimpl Serialize for ValidatePolicyRequest
impl Serialize for ValidatePolicyRequest
impl StructuralPartialEq for ValidatePolicyRequest
Auto Trait Implementations
impl RefUnwindSafe for ValidatePolicyRequest
impl Send for ValidatePolicyRequest
impl Sync for ValidatePolicyRequest
impl Unpin for ValidatePolicyRequest
impl UnwindSafe for ValidatePolicyRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more