Interface PutResourcePolicyRequest.Builder

  • Method Details

    • resourceArn

      PutResourcePolicyRequest.Builder resourceArn(String resourceArn)

      Amazon Resource Name (ARN) of the resource to which you want to attach a policy.

      Parameters:
      resourceArn - Amazon Resource Name (ARN) of the resource to which you want to attach a policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policy

      A policy you want to associate with a resource.

      Parameters:
      policy - A policy you want to associate with a resource.
      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

      PutResourcePolicyRequest.Builder policyHash(String policyHash)

      ID of the current policy version. The hash helps to prevent a situation where multiple users attempt to overwrite a policy. You must provide this hash when updating or deleting a policy.

      Parameters:
      policyHash - ID of the current policy version. The hash helps to prevent a situation where multiple users attempt to overwrite a policy. You must provide this hash when updating or deleting a policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

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