amazonka-backup-2.0: Amazon Backup SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Backup.GetBackupVaultAccessPolicy

Description

Returns the access policy document that is associated with the named backup vault.

Synopsis

Creating a Request

data GetBackupVaultAccessPolicy Source #

See: newGetBackupVaultAccessPolicy smart constructor.

Constructors

GetBackupVaultAccessPolicy' 

Fields

  • 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
ToHeaders GetBackupVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Backup.GetBackupVaultAccessPolicy

ToPath GetBackupVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Backup.GetBackupVaultAccessPolicy

ToQuery GetBackupVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Backup.GetBackupVaultAccessPolicy

AWSRequest GetBackupVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Backup.GetBackupVaultAccessPolicy

Generic GetBackupVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Backup.GetBackupVaultAccessPolicy

Associated Types

type Rep GetBackupVaultAccessPolicy :: Type -> Type #

Read GetBackupVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Backup.GetBackupVaultAccessPolicy

Show GetBackupVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Backup.GetBackupVaultAccessPolicy

NFData GetBackupVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Backup.GetBackupVaultAccessPolicy

Eq GetBackupVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Backup.GetBackupVaultAccessPolicy

Hashable GetBackupVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Backup.GetBackupVaultAccessPolicy

type AWSResponse GetBackupVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Backup.GetBackupVaultAccessPolicy

type Rep GetBackupVaultAccessPolicy Source # 
Instance details

Defined in Amazonka.Backup.GetBackupVaultAccessPolicy

type Rep GetBackupVaultAccessPolicy = D1 ('MetaData "GetBackupVaultAccessPolicy" "Amazonka.Backup.GetBackupVaultAccessPolicy" "amazonka-backup-2.0-LovIt41tphM6jvgQJhTyRf" 'False) (C1 ('MetaCons "GetBackupVaultAccessPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "backupVaultName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

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:

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 #

Constructors

GetBackupVaultAccessPolicyResponse' 

Fields

  • backupVaultArn :: Maybe Text

    An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.

  • backupVaultName :: Maybe 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 Region where they are created. They consist of lowercase letters, numbers, and hyphens.

  • policy :: Maybe Text

    The backup vault access policy document in JSON format.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic GetBackupVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Backup.GetBackupVaultAccessPolicy

Associated Types

type Rep GetBackupVaultAccessPolicyResponse :: Type -> Type #

Read GetBackupVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Backup.GetBackupVaultAccessPolicy

Show GetBackupVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Backup.GetBackupVaultAccessPolicy

NFData GetBackupVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Backup.GetBackupVaultAccessPolicy

Eq GetBackupVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Backup.GetBackupVaultAccessPolicy

type Rep GetBackupVaultAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.Backup.GetBackupVaultAccessPolicy

type Rep GetBackupVaultAccessPolicyResponse = D1 ('MetaData "GetBackupVaultAccessPolicyResponse" "Amazonka.Backup.GetBackupVaultAccessPolicy" "amazonka-backup-2.0-LovIt41tphM6jvgQJhTyRf" 'False) (C1 ('MetaCons "GetBackupVaultAccessPolicyResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "backupVaultArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "backupVaultName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "policy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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:

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.

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:policy:GetBackupVaultAccessPolicyResponse', getBackupVaultAccessPolicyResponse_policy - The backup vault access policy document in JSON format.

$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_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_policy :: Lens' GetBackupVaultAccessPolicyResponse (Maybe Text) Source #

The backup vault access policy document in JSON format.