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.CreateBackupVault

Description

Creates a logical container where backups are stored. A CreateBackupVault request includes a name, optionally one or more resource tags, an encryption key, and a request ID.

Do not include sensitive data, such as passport numbers, in the name of a backup vault.

Synopsis

Creating a Request

data CreateBackupVault Source #

See: newCreateBackupVault smart constructor.

Constructors

CreateBackupVault' 

Fields

  • backupVaultTags :: Maybe (Sensitive (HashMap Text Text))

    Metadata that you can assign to help organize the resources that you create. Each tag is a key-value pair.

  • creatorRequestId :: Maybe Text

    A unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. This parameter is optional.

    If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.

  • encryptionKeyArn :: Maybe Text

    The server-side encryption key that is used to protect your backups; for example, arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab.

  • 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 letters, numbers, and hyphens.

Instances

Instances details
ToJSON CreateBackupVault Source # 
Instance details

Defined in Amazonka.Backup.CreateBackupVault

ToHeaders CreateBackupVault Source # 
Instance details

Defined in Amazonka.Backup.CreateBackupVault

ToPath CreateBackupVault Source # 
Instance details

Defined in Amazonka.Backup.CreateBackupVault

ToQuery CreateBackupVault Source # 
Instance details

Defined in Amazonka.Backup.CreateBackupVault

AWSRequest CreateBackupVault Source # 
Instance details

Defined in Amazonka.Backup.CreateBackupVault

Associated Types

type AWSResponse CreateBackupVault #

Generic CreateBackupVault Source # 
Instance details

Defined in Amazonka.Backup.CreateBackupVault

Associated Types

type Rep CreateBackupVault :: Type -> Type #

Show CreateBackupVault Source # 
Instance details

Defined in Amazonka.Backup.CreateBackupVault

NFData CreateBackupVault Source # 
Instance details

Defined in Amazonka.Backup.CreateBackupVault

Methods

rnf :: CreateBackupVault -> () #

Eq CreateBackupVault Source # 
Instance details

Defined in Amazonka.Backup.CreateBackupVault

Hashable CreateBackupVault Source # 
Instance details

Defined in Amazonka.Backup.CreateBackupVault

type AWSResponse CreateBackupVault Source # 
Instance details

Defined in Amazonka.Backup.CreateBackupVault

type Rep CreateBackupVault Source # 
Instance details

Defined in Amazonka.Backup.CreateBackupVault

type Rep CreateBackupVault = D1 ('MetaData "CreateBackupVault" "Amazonka.Backup.CreateBackupVault" "amazonka-backup-2.0-LovIt41tphM6jvgQJhTyRf" 'False) (C1 ('MetaCons "CreateBackupVault'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "backupVaultTags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive (HashMap Text Text)))) :*: S1 ('MetaSel ('Just "creatorRequestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "encryptionKeyArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "backupVaultName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateBackupVault Source #

Create a value of CreateBackupVault 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:backupVaultTags:CreateBackupVault', createBackupVault_backupVaultTags - Metadata that you can assign to help organize the resources that you create. Each tag is a key-value pair.

CreateBackupVault, createBackupVault_creatorRequestId - A unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. This parameter is optional.

If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.

CreateBackupVault, createBackupVault_encryptionKeyArn - The server-side encryption key that is used to protect your backups; for example, arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab.

CreateBackupVault, createBackupVault_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 letters, numbers, and hyphens.

Request Lenses

createBackupVault_backupVaultTags :: Lens' CreateBackupVault (Maybe (HashMap Text Text)) Source #

Metadata that you can assign to help organize the resources that you create. Each tag is a key-value pair.

createBackupVault_creatorRequestId :: Lens' CreateBackupVault (Maybe Text) Source #

A unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. This parameter is optional.

If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.

createBackupVault_encryptionKeyArn :: Lens' CreateBackupVault (Maybe Text) Source #

The server-side encryption key that is used to protect your backups; for example, arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab.

createBackupVault_backupVaultName :: Lens' CreateBackupVault 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 letters, numbers, and hyphens.

Destructuring the Response

data CreateBackupVaultResponse Source #

See: newCreateBackupVaultResponse smart constructor.

Constructors

CreateBackupVaultResponse' 

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.

  • creationDate :: Maybe POSIX

    The date and time a backup vault is created, in Unix format and Coordinated Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic CreateBackupVaultResponse Source # 
Instance details

Defined in Amazonka.Backup.CreateBackupVault

Associated Types

type Rep CreateBackupVaultResponse :: Type -> Type #

Read CreateBackupVaultResponse Source # 
Instance details

Defined in Amazonka.Backup.CreateBackupVault

Show CreateBackupVaultResponse Source # 
Instance details

Defined in Amazonka.Backup.CreateBackupVault

NFData CreateBackupVaultResponse Source # 
Instance details

Defined in Amazonka.Backup.CreateBackupVault

Eq CreateBackupVaultResponse Source # 
Instance details

Defined in Amazonka.Backup.CreateBackupVault

type Rep CreateBackupVaultResponse Source # 
Instance details

Defined in Amazonka.Backup.CreateBackupVault

type Rep CreateBackupVaultResponse = D1 ('MetaData "CreateBackupVaultResponse" "Amazonka.Backup.CreateBackupVault" "amazonka-backup-2.0-LovIt41tphM6jvgQJhTyRf" 'False) (C1 ('MetaCons "CreateBackupVaultResponse'" '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 "creationDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newCreateBackupVaultResponse Source #

Create a value of CreateBackupVaultResponse 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:

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

CreateBackupVault, createBackupVaultResponse_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.

CreateBackupVaultResponse, createBackupVaultResponse_creationDate - The date and time a backup vault is created, in Unix format and Coordinated Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

$sel:httpStatus:CreateBackupVaultResponse', createBackupVaultResponse_httpStatus - The response's http status code.

Response Lenses

createBackupVaultResponse_backupVaultArn :: Lens' CreateBackupVaultResponse (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.

createBackupVaultResponse_backupVaultName :: Lens' CreateBackupVaultResponse (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.

createBackupVaultResponse_creationDate :: Lens' CreateBackupVaultResponse (Maybe UTCTime) Source #

The date and time a backup vault is created, in Unix format and Coordinated Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.