Class PutResourcePolicyRequest

    • Method Detail

      • policy

        public final String 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:
        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\" }]}"

      • resourceArn

        public final String resourceArn()

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

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

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object