libZSservicesZSamazonka-backupZSamazonka-backup
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Backup.PutBackupVaultAccessPolicy

Description

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

Creating a Request

data PutBackupVaultAccessPolicy Source #

See: newPutBackupVaultAccessPolicy smart constructor.

Constructors

PutBackupVaultAccessPolicy' 

Fields

  • policy :: Maybe Text

    The backup vault access policy document in JSON format.

  • backupVaultName :: Text

    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.

Instances

Instances details
Eq PutBackupVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Backup.PutBackupVaultAccessPolicy

Read PutBackupVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Backup.PutBackupVaultAccessPolicy

Show PutBackupVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Backup.PutBackupVaultAccessPolicy

Generic PutBackupVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Backup.PutBackupVaultAccessPolicy

Associated Types

type Rep PutBackupVaultAccessPolicy :: Type -> Type #

NFData PutBackupVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Backup.PutBackupVaultAccessPolicy

Hashable PutBackupVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Backup.PutBackupVaultAccessPolicy

ToJSON PutBackupVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Backup.PutBackupVaultAccessPolicy

AWSRequest PutBackupVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Backup.PutBackupVaultAccessPolicy

ToHeaders PutBackupVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Backup.PutBackupVaultAccessPolicy

ToPath PutBackupVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Backup.PutBackupVaultAccessPolicy

ToQuery PutBackupVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Backup.PutBackupVaultAccessPolicy

type Rep PutBackupVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Backup.PutBackupVaultAccessPolicy

type Rep PutBackupVaultAccessPolicy = D1 ('MetaData "PutBackupVaultAccessPolicy" "Amazonka.Backup.PutBackupVaultAccessPolicy" "libZSservicesZSamazonka-backupZSamazonka-backup" 'False) (C1 ('MetaCons "PutBackupVaultAccessPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "backupVaultName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse PutBackupVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Backup.PutBackupVaultAccessPolicy

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 #

Instances

Instances details
Eq PutBackupVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Backup.PutBackupVaultAccessPolicy

Read PutBackupVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Backup.PutBackupVaultAccessPolicy

Show PutBackupVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Backup.PutBackupVaultAccessPolicy

Generic PutBackupVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Backup.PutBackupVaultAccessPolicy

Associated Types

type Rep PutBackupVaultAccessPolicyResponse :: Type -> Type #

NFData PutBackupVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Backup.PutBackupVaultAccessPolicy

type Rep PutBackupVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Backup.PutBackupVaultAccessPolicy

type Rep PutBackupVaultAccessPolicyResponse = D1 ('MetaData "PutBackupVaultAccessPolicyResponse" "Amazonka.Backup.PutBackupVaultAccessPolicy" "libZSservicesZSamazonka-backupZSamazonka-backup" 'False) (C1 ('MetaCons "PutBackupVaultAccessPolicyResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newPutBackupVaultAccessPolicyResponse :: PutBackupVaultAccessPolicyResponse Source #

Create a value of PutBackupVaultAccessPolicyResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.