In AWS KMS, the resource-based permissions document attached to a cryptographic key that controls access and can enable…