Interface GetGeneratedPolicyRequest.Builder

    • Method Detail

      • jobId

        GetGeneratedPolicyRequest.Builder jobId​(String 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.