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 more