Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Sets a resource-based policy that is used to manage access permissions on the target backup vault. Requires a backup vault name and an access policy document in JSON format.
Synopsis
- data PutBackupVaultAccessPolicy = PutBackupVaultAccessPolicy' {
- policy :: Maybe Text
- backupVaultName :: Text
- newPutBackupVaultAccessPolicy :: Text -> PutBackupVaultAccessPolicy
- putBackupVaultAccessPolicy_policy :: Lens' PutBackupVaultAccessPolicy (Maybe Text)
- putBackupVaultAccessPolicy_backupVaultName :: Lens' PutBackupVaultAccessPolicy Text
- data PutBackupVaultAccessPolicyResponse = PutBackupVaultAccessPolicyResponse' {
- newPutBackupVaultAccessPolicyResponse :: PutBackupVaultAccessPolicyResponse
Creating a Request
data PutBackupVaultAccessPolicy Source #
See: newPutBackupVaultAccessPolicy
smart constructor.
PutBackupVaultAccessPolicy' | |
|
Instances
newPutBackupVaultAccessPolicy Source #
Create a value of PutBackupVaultAccessPolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:policy:PutBackupVaultAccessPolicy'
, putBackupVaultAccessPolicy_policy
- The backup vault access policy document in JSON format.
$sel:backupVaultName:PutBackupVaultAccessPolicy'
, putBackupVaultAccessPolicy_backupVaultName
- The name of a logical container where backups are stored. Backup vaults
are identified by names that are unique to the account used to create
them and the Amazon Web Services Region where they are created. They
consist of lowercase letters, numbers, and hyphens.
Request Lenses
putBackupVaultAccessPolicy_policy :: Lens' PutBackupVaultAccessPolicy (Maybe Text) Source #
The backup vault access policy document in JSON format.
putBackupVaultAccessPolicy_backupVaultName :: Lens' PutBackupVaultAccessPolicy Text Source #
The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens.
Destructuring the Response
data PutBackupVaultAccessPolicyResponse Source #
See: newPutBackupVaultAccessPolicyResponse
smart constructor.
Instances
newPutBackupVaultAccessPolicyResponse :: PutBackupVaultAccessPolicyResponse Source #
Create a value of PutBackupVaultAccessPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.