getVaultAccessPolicy

This operation retrieves the access-policy subresource set on the vault; for more information on setting this subresource, see Set Vault Access Policy (PUT access-policy). If there is no access policy set on the vault, the operation returns a 404 Not found error. For more information about vault access policies, see Amazon Glacier Access Control with Vault Access Policies.

Samples


fun main() { 
   //sampleStart 
   // The example retrieves the access policy set on the vault named example vault.
val resp = glacierClient.getVaultAccessPolicy {
    accountId = "-"
    vaultName = "example-vault"
} 
   //sampleEnd
}