Interface PutResourcePolicyRequest.Builder

  • Method Details

    • policy

      The policy to create or update. For example, the following policy grants a user authorization to restore a snapshot.

      "{\"Version\": \"2012-10-17\", \"Statement\" : [{ \"Sid\": \"AllowUserRestoreFromSnapshot\", \"Principal\":{\"AWS\": [\"739247239426\"]}, \"Action\": [\"redshift-serverless:RestoreFromSnapshot\"] , \"Effect\": \"Allow\" }]}"

      Parameters:
      policy - The policy to create or update. For example, the following policy grants a user authorization to restore a snapshot.

      "{\"Version\": \"2012-10-17\", \"Statement\" : [{ \"Sid\": \"AllowUserRestoreFromSnapshot\", \"Principal\":{\"AWS\": [\"739247239426\"]}, \"Action\": [\"redshift-serverless:RestoreFromSnapshot\"] , \"Effect\": \"Allow\" }]}"

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

      PutResourcePolicyRequest.Builder resourceArn(String resourceArn)

      The Amazon Resource Name (ARN) of the account to create or update a resource policy for.

      Parameters:
      resourceArn - The Amazon Resource Name (ARN) of the account to create or update a resource policy for.
      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.