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 |
Returns the access policy document that is associated with the named backup vault.
Synopsis
- data GetBackupVaultAccessPolicy = GetBackupVaultAccessPolicy' {}
- newGetBackupVaultAccessPolicy :: Text -> GetBackupVaultAccessPolicy
- getBackupVaultAccessPolicy_backupVaultName :: Lens' GetBackupVaultAccessPolicy Text
- data GetBackupVaultAccessPolicyResponse = GetBackupVaultAccessPolicyResponse' {
- backupVaultArn :: Maybe Text
- policy :: Maybe Text
- backupVaultName :: Maybe Text
- httpStatus :: Int
- newGetBackupVaultAccessPolicyResponse :: Int -> GetBackupVaultAccessPolicyResponse
- getBackupVaultAccessPolicyResponse_backupVaultArn :: Lens' GetBackupVaultAccessPolicyResponse (Maybe Text)
- getBackupVaultAccessPolicyResponse_policy :: Lens' GetBackupVaultAccessPolicyResponse (Maybe Text)
- getBackupVaultAccessPolicyResponse_backupVaultName :: Lens' GetBackupVaultAccessPolicyResponse (Maybe Text)
- getBackupVaultAccessPolicyResponse_httpStatus :: Lens' GetBackupVaultAccessPolicyResponse Int
Creating a Request
data GetBackupVaultAccessPolicy Source #
See: newGetBackupVaultAccessPolicy
smart constructor.
GetBackupVaultAccessPolicy' | |
|
Instances
newGetBackupVaultAccessPolicy Source #
Create a value of GetBackupVaultAccessPolicy
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:backupVaultName:GetBackupVaultAccessPolicy'
, getBackupVaultAccessPolicy_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
getBackupVaultAccessPolicy_backupVaultName :: Lens' GetBackupVaultAccessPolicy 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 GetBackupVaultAccessPolicyResponse Source #
See: newGetBackupVaultAccessPolicyResponse
smart constructor.
GetBackupVaultAccessPolicyResponse' | |
|
Instances
newGetBackupVaultAccessPolicyResponse Source #
Create a value of GetBackupVaultAccessPolicyResponse
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:backupVaultArn:GetBackupVaultAccessPolicyResponse'
, getBackupVaultAccessPolicyResponse_backupVaultArn
- An Amazon Resource Name (ARN) that uniquely identifies a backup vault;
for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault
.
$sel:policy:GetBackupVaultAccessPolicyResponse'
, getBackupVaultAccessPolicyResponse_policy
- The backup vault access policy document in JSON format.
$sel:backupVaultName:GetBackupVaultAccessPolicy'
, getBackupVaultAccessPolicyResponse_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 Region where they are created. They consist of lowercase
letters, numbers, and hyphens.
$sel:httpStatus:GetBackupVaultAccessPolicyResponse'
, getBackupVaultAccessPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
getBackupVaultAccessPolicyResponse_backupVaultArn :: Lens' GetBackupVaultAccessPolicyResponse (Maybe Text) Source #
An Amazon Resource Name (ARN) that uniquely identifies a backup vault;
for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault
.
getBackupVaultAccessPolicyResponse_policy :: Lens' GetBackupVaultAccessPolicyResponse (Maybe Text) Source #
The backup vault access policy document in JSON format.
getBackupVaultAccessPolicyResponse_backupVaultName :: Lens' GetBackupVaultAccessPolicyResponse (Maybe 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 Region where they are created. They consist of lowercase letters, numbers, and hyphens.
getBackupVaultAccessPolicyResponse_httpStatus :: Lens' GetBackupVaultAccessPolicyResponse Int Source #
The response's http status code.