Interface GetGeneratedPolicyRequest.Builder

  • Method Details

    • jobId

      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.

      Parameters:
      jobId - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • includeResourcePlaceholders

      GetGeneratedPolicyRequest.Builder includeResourcePlaceholders(Boolean includeResourcePlaceholders)

      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 "*".

      Parameters:
      includeResourcePlaceholders - 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 "*".

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • includeServiceLevelTemplate

      GetGeneratedPolicyRequest.Builder includeServiceLevelTemplate(Boolean includeServiceLevelTemplate)

      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.

      Parameters:
      includeServiceLevelTemplate - 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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      GetGeneratedPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.