Struct aws_sdk_accessanalyzer::operation::get_generated_policy::builders::GetGeneratedPolicyFluentBuilder
source · pub struct GetGeneratedPolicyFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to GetGeneratedPolicy
.
Retrieves the policy that was generated using StartPolicyGeneration
.
Implementations§
source§impl GetGeneratedPolicyFluentBuilder
impl GetGeneratedPolicyFluentBuilder
sourcepub fn as_input(&self) -> &GetGeneratedPolicyInputBuilder
pub fn as_input(&self) -> &GetGeneratedPolicyInputBuilder
Access the GetGeneratedPolicy as a reference.
sourcepub async fn send(
self,
) -> Result<GetGeneratedPolicyOutput, SdkError<GetGeneratedPolicyError, HttpResponse>>
pub async fn send( self, ) -> Result<GetGeneratedPolicyOutput, SdkError<GetGeneratedPolicyError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self,
) -> CustomizableOperation<GetGeneratedPolicyOutput, GetGeneratedPolicyError, Self>
pub fn customize( self, ) -> CustomizableOperation<GetGeneratedPolicyOutput, GetGeneratedPolicyError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn job_id(self, input: impl Into<String>) -> Self
pub fn job_id(self, input: impl Into<String>) -> Self
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 set_job_id(self, input: Option<String>) -> Self
pub fn set_job_id(self, input: Option<String>) -> Self
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 get_job_id(&self) -> &Option<String>
pub fn get_job_id(&self) -> &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.
sourcepub fn include_resource_placeholders(self, input: bool) -> Self
pub fn include_resource_placeholders(self, input: bool) -> Self
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 set_include_resource_placeholders(self, input: Option<bool>) -> Self
pub fn set_include_resource_placeholders(self, input: Option<bool>) -> Self
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 get_include_resource_placeholders(&self) -> &Option<bool>
pub fn get_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, input: bool) -> Self
pub fn include_service_level_template(self, input: bool) -> Self
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.
sourcepub fn set_include_service_level_template(self, input: Option<bool>) -> Self
pub fn set_include_service_level_template(self, input: Option<bool>) -> Self
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.
sourcepub fn get_include_service_level_template(&self) -> &Option<bool>
pub fn get_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§
source§impl Clone for GetGeneratedPolicyFluentBuilder
impl Clone for GetGeneratedPolicyFluentBuilder
source§fn clone(&self) -> GetGeneratedPolicyFluentBuilder
fn clone(&self) -> GetGeneratedPolicyFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for GetGeneratedPolicyFluentBuilder
impl !RefUnwindSafe for GetGeneratedPolicyFluentBuilder
impl Send for GetGeneratedPolicyFluentBuilder
impl Sync for GetGeneratedPolicyFluentBuilder
impl Unpin for GetGeneratedPolicyFluentBuilder
impl !UnwindSafe for GetGeneratedPolicyFluentBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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