public String getPolicy() {
        return this.policy;
    }
<p>
The policy to create or update. For example, the following policy grants a user authorization to restore a
snapshot.
</p>
<p>
<code>"{\"Version\": \"2012-10-17\", \"Statement\" : [{ \"Sid\": \"AllowUserRestoreFromSnapshot\", \"Principal\":{\"AWS\": [\"739247239426\"]}, \"Action\": [\"redshift-serverless:RestoreFromSnapshot\"] , \"Effect\": \"Allow\" }]}"</code>
</p>

@return The policy to create or update. For example, the following policy grants a user authorization to restore
        a snapshot.</p>
        <p>
        <code>"{\"Version\": \"2012-10-17\", \"Statement\" : [{ \"Sid\": \"AllowUserRestoreFromSnapshot\", \"Principal\":{\"AWS\": [\"739247239426\"]}, \"Action\": [\"redshift-serverless:RestoreFromSnapshot\"] , \"Effect\": \"Allow\" }]}"</code>
aws-java-sdk-redshiftserverless/src/main/java/com/amazonaws/services/redshiftserverless/model/PutResourcePolicyRequest.java