#[non_exhaustive]pub struct GetGeneratedPolicyInput {
pub job_id: Option<String>,
pub include_resource_placeholders: Option<bool>,
pub include_service_level_template: Option<bool>,
}
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.job_id: Option<String>
The JobId
that is returned by the StartPolicyGeneration
operation. The JobId
can be used with GetGeneratedPolicy
to retrieve the generated policies or used with CancelPolicyGeneration
to cancel the policy generation request.
include_resource_placeholders: Option<bool>
The level of detail that you want to generate. You can specify whether to generate policies with placeholders for resource ARNs for actions that support resource level granularity in policies.
For example, in the resource section of a policy, you can receive a placeholder such as "Resource":"arn:aws:s3:::${BucketName}"
instead of "*"
.
include_service_level_template: Option<bool>
The level of detail that you want to generate. You can specify whether to generate service-level policies.
IAM Access Analyzer uses iam:servicelastaccessed
to identify services that have been used recently to create this service-level template.
Implementations
sourceimpl GetGeneratedPolicyInput
impl GetGeneratedPolicyInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetGeneratedPolicy, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetGeneratedPolicy, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<GetGeneratedPolicy
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture GetGeneratedPolicyInput
.
sourceimpl GetGeneratedPolicyInput
impl GetGeneratedPolicyInput
sourcepub fn job_id(&self) -> Option<&str>
pub fn job_id(&self) -> Option<&str>
The JobId
that is returned by the StartPolicyGeneration
operation. The JobId
can be used with GetGeneratedPolicy
to retrieve the generated policies or used with CancelPolicyGeneration
to cancel the policy generation request.
sourcepub fn include_resource_placeholders(&self) -> Option<bool>
pub fn include_resource_placeholders(&self) -> Option<bool>
The level of detail that you want to generate. You can specify whether to generate policies with placeholders for resource ARNs for actions that support resource level granularity in policies.
For example, in the resource section of a policy, you can receive a placeholder such as "Resource":"arn:aws:s3:::${BucketName}"
instead of "*"
.
sourcepub fn include_service_level_template(&self) -> Option<bool>
pub fn include_service_level_template(&self) -> Option<bool>
The level of detail that you want to generate. You can specify whether to generate service-level policies.
IAM Access Analyzer uses iam:servicelastaccessed
to identify services that have been used recently to create this service-level template.
Trait Implementations
sourceimpl Clone for GetGeneratedPolicyInput
impl Clone for GetGeneratedPolicyInput
sourcefn clone(&self) -> GetGeneratedPolicyInput
fn clone(&self) -> GetGeneratedPolicyInput
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 GetGeneratedPolicyInput
impl Debug for GetGeneratedPolicyInput
sourceimpl PartialEq<GetGeneratedPolicyInput> for GetGeneratedPolicyInput
impl PartialEq<GetGeneratedPolicyInput> for GetGeneratedPolicyInput
sourcefn eq(&self, other: &GetGeneratedPolicyInput) -> bool
fn eq(&self, other: &GetGeneratedPolicyInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GetGeneratedPolicyInput) -> bool
fn ne(&self, other: &GetGeneratedPolicyInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for GetGeneratedPolicyInput
Auto Trait Implementations
impl RefUnwindSafe for GetGeneratedPolicyInput
impl Send for GetGeneratedPolicyInput
impl Sync for GetGeneratedPolicyInput
impl Unpin for GetGeneratedPolicyInput
impl UnwindSafe for GetGeneratedPolicyInput
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