Interface PutPolicyRequest.Builder

  • Method Details

    • arn

      The Amazon Resource Name (ARN) of the resource for which the policy needs to be updated.

      Parameters:
      arn - The Amazon Resource Name (ARN) of the resource for which the policy needs to be updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • token

      A unique identifier for the current revision of the policy.

      Parameters:
      token - A unique identifier for the current revision of the policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policy

      The resource-based policy.

      If you set the value of the effect parameter in the policy to Deny for the PutPolicy operation, you must also set the value of the effect parameter to Deny for the AddPolicyStatement operation.

      Parameters:
      policy - The resource-based policy.

      If you set the value of the effect parameter in the policy to Deny for the PutPolicy operation, you must also set the value of the effect parameter to Deny for the AddPolicyStatement operation.

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

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