GetResourcePolicy
Source:
src/AWS/CloudHSMV2/GetResourcePolicy.ts
Runtime binding for the GetResourcePolicy operation (IAM action
cloudhsm:GetResourcePolicy).
Reads the resource policy attached to a CloudHSM backup (backups are the
only CloudHSM resource that supports policies — they govern cross-account
backup sharing). Provide the implementation with
Effect.provide(AWS.CloudHSMV2.GetResourcePolicyHttp).
Sharing Backups
Section titled “Sharing Backups”const getResourcePolicy = yield* AWS.CloudHSMV2.GetResourcePolicy();
const { Policy } = yield* getResourcePolicy({ ResourceArn: backupArn });