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. If only actions are specified, IAM Access Analyzer checks for access to peform at least one of the actions on any resource in the policy. If only resources are specified, then IAM Access Analyzer checks for access to perform any action on at least one of the resources. If both actions and resources are specified, IAM Access Analyzer checks for access to perform at least one of the specified actions on at least one of the specified resources.

        Parameters:
        access - An access object containing the permissions that shouldn't be granted by the specified policy. If only actions are specified, IAM Access Analyzer checks for access to peform at least one of the actions on any resource in the policy. If only resources are specified, then IAM Access Analyzer checks for access to perform any action on at least one of the resources. If both actions and resources are specified, IAM Access Analyzer checks for access to perform at least one of the specified actions on at least one of the specified resources.
        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. If only actions are specified, IAM Access Analyzer checks for access to peform at least one of the actions on any resource in the policy. If only resources are specified, then IAM Access Analyzer checks for access to perform any action on at least one of the resources. If both actions and resources are specified, IAM Access Analyzer checks for access to perform at least one of the specified actions on at least one of the specified resources.

        Parameters:
        access - An access object containing the permissions that shouldn't be granted by the specified policy. If only actions are specified, IAM Access Analyzer checks for access to peform at least one of the actions on any resource in the policy. If only resources are specified, then IAM Access Analyzer checks for access to perform any action on at least one of the resources. If both actions and resources are specified, IAM Access Analyzer checks for access to perform at least one of the specified actions on at least one of the specified resources.
        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. If only actions are specified, IAM Access Analyzer checks for access to peform at least one of the actions on any resource in the policy. If only resources are specified, then IAM Access Analyzer checks for access to perform any action on at least one of the resources. If both actions and resources are specified, IAM Access Analyzer checks for access to perform at least one of the specified actions on at least one of the specified resources.

        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.

        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.

        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.

        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.

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