Interface CheckAccessNotGrantedRequest.Builder

    • Method Detail

      • policyDocument

        CheckAccessNotGrantedRequest.Builder policyDocument​(String policyDocument)

        The JSON policy document to use as the content for the policy.

        Parameters:
        policyDocument - The JSON policy document to use as the content for the policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • access

        CheckAccessNotGrantedRequest.Builder access​(Collection<Access> access)

        An access object containing the permissions that shouldn't be granted by the specified policy.

        Parameters:
        access - An access object containing the permissions that shouldn't be granted by the specified policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • access

        CheckAccessNotGrantedRequest.Builder access​(Access... access)

        An access object containing the permissions that shouldn't be granted by the specified policy.

        Parameters:
        access - An access object containing the permissions that shouldn't be granted by the specified policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • access

        CheckAccessNotGrantedRequest.Builder access​(Consumer<Access.Builder>... access)

        An access object containing the permissions that shouldn't be granted by the specified policy.

        This is a convenience method that creates an instance of the Access.Builder avoiding the need to create one manually via Access.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #access(List).

        Parameters:
        access - a consumer that will call methods on Access.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #access(java.util.Collection)
      • policyType

        CheckAccessNotGrantedRequest.Builder policyType​(String policyType)

        The type of policy. Identity policies grant permissions to IAM principals. Identity policies include managed and inline policies for IAM roles, users, and groups.

        Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or Amazon S3 bucket policy.

        Parameters:
        policyType - The type of policy. Identity policies grant permissions to IAM principals. Identity policies include managed and inline policies for IAM roles, users, and groups.

        Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or Amazon S3 bucket policy.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AccessCheckPolicyType, AccessCheckPolicyType
      • policyType

        CheckAccessNotGrantedRequest.Builder policyType​(AccessCheckPolicyType policyType)

        The type of policy. Identity policies grant permissions to IAM principals. Identity policies include managed and inline policies for IAM roles, users, and groups.

        Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or Amazon S3 bucket policy.

        Parameters:
        policyType - The type of policy. Identity policies grant permissions to IAM principals. Identity policies include managed and inline policies for IAM roles, users, and groups.

        Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or Amazon S3 bucket policy.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AccessCheckPolicyType, AccessCheckPolicyType