pub struct GetGeneratedPolicy { /* private fields */ }
Expand description
Fluent builder constructing a request to GetGeneratedPolicy
.
Retrieves the policy that was generated using StartPolicyGeneration
.
Implementations§
source§impl GetGeneratedPolicy
impl GetGeneratedPolicy
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<GetGeneratedPolicy, AwsResponseRetryClassifier>, SdkError<GetGeneratedPolicyError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<GetGeneratedPolicy, AwsResponseRetryClassifier>, SdkError<GetGeneratedPolicyError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<GetGeneratedPolicyOutput, SdkError<GetGeneratedPolicyError>>
pub async fn send(
self
) -> Result<GetGeneratedPolicyOutput, SdkError<GetGeneratedPolicyError>>
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 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 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 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.
Trait Implementations§
source§impl Clone for GetGeneratedPolicy
impl Clone for GetGeneratedPolicy
source§fn clone(&self) -> GetGeneratedPolicy
fn clone(&self) -> GetGeneratedPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more