Struct aws_sdk_accessanalyzer::input::ValidatePolicyInput
source · [−]#[non_exhaustive]pub struct ValidatePolicyInput {
pub locale: Option<Locale>,
pub max_results: Option<i32>,
pub next_token: Option<String>,
pub policy_document: Option<String>,
pub policy_type: Option<PolicyType>,
pub validate_policy_resource_type: Option<ValidatePolicyResourceType>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.locale: Option<Locale>
The locale to use for localizing the findings.
max_results: Option<i32>
The maximum number of results to return in the response.
next_token: Option<String>
A token used for pagination of results returned.
policy_document: Option<String>
The JSON policy document to use as the content for the policy.
policy_type: Option<PolicyType>
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 Amazon Web Services organization, organizational unit (OU), or an account.
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.
validate_policy_resource_type: Option<ValidatePolicyResourceType>
The type of resource to attach to your resource policy. Specify a value for the policy validation resource type only if the policy type is RESOURCE_POLICY
. For example, to validate a resource policy to attach to an Amazon S3 bucket, you can choose AWS::S3::Bucket
for the policy validation resource type.
For resource types not supported as valid values, IAM Access Analyzer runs policy checks that apply to all resource policies. For example, to validate a resource policy to attach to a KMS key, do not specify a value for the policy validation resource type and IAM Access Analyzer will run policy checks that apply to all resource policies.
Implementations
sourceimpl ValidatePolicyInput
impl ValidatePolicyInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ValidatePolicy, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ValidatePolicy, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<ValidatePolicy
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ValidatePolicyInput
.
sourceimpl ValidatePolicyInput
impl ValidatePolicyInput
sourcepub fn max_results(&self) -> Option<i32>
pub fn max_results(&self) -> Option<i32>
The maximum number of results to return in the response.
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
A token used for pagination of results returned.
sourcepub fn policy_document(&self) -> Option<&str>
pub fn policy_document(&self) -> Option<&str>
The JSON policy document to use as the content for the policy.
sourcepub fn policy_type(&self) -> Option<&PolicyType>
pub fn policy_type(&self) -> Option<&PolicyType>
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 Amazon Web Services organization, organizational unit (OU), or an account.
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 validate_policy_resource_type(
&self
) -> Option<&ValidatePolicyResourceType>
pub fn validate_policy_resource_type(
&self
) -> Option<&ValidatePolicyResourceType>
The type of resource to attach to your resource policy. Specify a value for the policy validation resource type only if the policy type is RESOURCE_POLICY
. For example, to validate a resource policy to attach to an Amazon S3 bucket, you can choose AWS::S3::Bucket
for the policy validation resource type.
For resource types not supported as valid values, IAM Access Analyzer runs policy checks that apply to all resource policies. For example, to validate a resource policy to attach to a KMS key, do not specify a value for the policy validation resource type and IAM Access Analyzer will run policy checks that apply to all resource policies.
Trait Implementations
sourceimpl Clone for ValidatePolicyInput
impl Clone for ValidatePolicyInput
sourcefn clone(&self) -> ValidatePolicyInput
fn clone(&self) -> ValidatePolicyInput
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 ValidatePolicyInput
impl Debug for ValidatePolicyInput
sourceimpl PartialEq<ValidatePolicyInput> for ValidatePolicyInput
impl PartialEq<ValidatePolicyInput> for ValidatePolicyInput
sourcefn eq(&self, other: &ValidatePolicyInput) -> bool
fn eq(&self, other: &ValidatePolicyInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ValidatePolicyInput) -> bool
fn ne(&self, other: &ValidatePolicyInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for ValidatePolicyInput
Auto Trait Implementations
impl RefUnwindSafe for ValidatePolicyInput
impl Send for ValidatePolicyInput
impl Sync for ValidatePolicyInput
impl Unpin for ValidatePolicyInput
impl UnwindSafe for ValidatePolicyInput
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> 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