Struct aws_sdk_accessanalyzer::operation::get_generated_policy::builders::GetGeneratedPolicyInputBuilder
source · #[non_exhaustive]pub struct GetGeneratedPolicyInputBuilder { /* private fields */ }Expand description
A builder for GetGeneratedPolicyInput.
Implementations§
source§impl GetGeneratedPolicyInputBuilder
impl GetGeneratedPolicyInputBuilder
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.
sourcepub fn build(self) -> Result<GetGeneratedPolicyInput, BuildError>
pub fn build(self) -> Result<GetGeneratedPolicyInput, BuildError>
Consumes the builder and constructs a GetGeneratedPolicyInput.
source§impl GetGeneratedPolicyInputBuilder
impl GetGeneratedPolicyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<GetGeneratedPolicyOutput, SdkError<GetGeneratedPolicyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<GetGeneratedPolicyOutput, SdkError<GetGeneratedPolicyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetGeneratedPolicyInputBuilder
impl Clone for GetGeneratedPolicyInputBuilder
source§fn clone(&self) -> GetGeneratedPolicyInputBuilder
fn clone(&self) -> GetGeneratedPolicyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for GetGeneratedPolicyInputBuilder
impl Default for GetGeneratedPolicyInputBuilder
source§fn default() -> GetGeneratedPolicyInputBuilder
fn default() -> GetGeneratedPolicyInputBuilder
source§impl PartialEq for GetGeneratedPolicyInputBuilder
impl PartialEq for GetGeneratedPolicyInputBuilder
source§fn eq(&self, other: &GetGeneratedPolicyInputBuilder) -> bool
fn eq(&self, other: &GetGeneratedPolicyInputBuilder) -> bool
self and other values to be equal, and is used
by ==.