Interface PutPolicyAssignmentRequest.Builder

  • Method Details

    • accountId

      The ID of the Amazon Web Services account that contains the policy and the principal.

      Parameters:
      accountId - The ID of the Amazon Web Services account that contains the policy and the principal.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyArn

      The Amazon Resource Name (ARN) of the policy to assign.

      Parameters:
      policyArn - The Amazon Resource Name (ARN) of the policy to assign.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • principalArn

      PutPolicyAssignmentRequest.Builder principalArn(String principalArn)

      The ARN of the user, group, or account to assign the policy to.

      Parameters:
      principalArn - The ARN of the user, group, or account to assign the policy to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • existingPolicyArn

      PutPolicyAssignmentRequest.Builder existingPolicyArn(String existingPolicyArn)

      The ARN of the policy that you expect the principal to have before this request. If the principal has a different policy of the same type, or no policy of that type, the request fails with a ConflictException and makes no change. If you don't specify a value, the operation doesn't check the existing assignment.

      Parameters:
      existingPolicyArn - The ARN of the policy that you expect the principal to have before this request. If the principal has a different policy of the same type, or no policy of that type, the request fails with a ConflictException and makes no change. If you don't specify a value, the operation doesn't check the existing assignment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • revision

      The revision of the assignment from your most recent read. If the assignment has changed since that revision, the request fails with a ConflictException. If you don't specify a value, the operation doesn't check the revision.

      Parameters:
      revision - The revision of the assignment from your most recent read. If the assignment has changed since that revision, the request fails with a ConflictException. If you don't specify a value, the operation doesn't check the revision.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      PutPolicyAssignmentRequest.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.