Interface DeleteResourcePolicyRequest.Builder

  • Method Details

    • resourceArn

      DeleteResourcePolicyRequest.Builder resourceArn(String resourceArn)

      Amazon Resource Name (ARN) of the resource to which the policies are attached.

      Parameters:
      resourceArn - Amazon Resource Name (ARN) of the resource to which the policies are attached.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyId

      The policy ID.

      Parameters:
      policyId - The policy ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyHash

      ID of the current policy version. The hash helps to prevent multiple calls from attempting to overwrite a policy.

      Parameters:
      policyHash - ID of the current policy version. The hash helps to prevent multiple calls from attempting to overwrite a policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • deletionMode

      DeleteResourcePolicyRequest.Builder deletionMode(String deletionMode)

      Specifies the intended outcome of the operation. Applies only to the Document resource type. The operation ignores this parameter for other resource types. Optional. Defaults to RemoveSharing.

      • RemoveSharing – Deletes the resource policy and removes sharing of the document.

      • RollbackMigration – Reverts the document to Custom sharing, preserving existing consumer access, instead of removing the policy.

      Parameters:
      deletionMode - Specifies the intended outcome of the operation. Applies only to the Document resource type. The operation ignores this parameter for other resource types. Optional. Defaults to RemoveSharing.

      • RemoveSharing – Deletes the resource policy and removes sharing of the document.

      • RollbackMigration – Reverts the document to Custom sharing, preserving existing consumer access, instead of removing the policy.

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

      Specifies the intended outcome of the operation. Applies only to the Document resource type. The operation ignores this parameter for other resource types. Optional. Defaults to RemoveSharing.

      • RemoveSharing – Deletes the resource policy and removes sharing of the document.

      • RollbackMigration – Reverts the document to Custom sharing, preserving existing consumer access, instead of removing the policy.

      Parameters:
      deletionMode - Specifies the intended outcome of the operation. Applies only to the Document resource type. The operation ignores this parameter for other resource types. Optional. Defaults to RemoveSharing.

      • RemoveSharing – Deletes the resource policy and removes sharing of the document.

      • RollbackMigration – Reverts the document to Custom sharing, preserving existing consumer access, instead of removing the policy.

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

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