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

Description

Updates an existing backup plan identified by its backupPlanId with the input document in JSON format. The new version is uniquely identified by a VersionId.

Synopsis

Creating a Request

data UpdateBackupPlan Source #

See: newUpdateBackupPlan smart constructor.

Constructors

UpdateBackupPlan' 

Fields

Instances

Instances details
ToJSON UpdateBackupPlan Source # 
Instance details

Defined in Amazonka.Backup.UpdateBackupPlan

ToHeaders UpdateBackupPlan Source # 
Instance details

Defined in Amazonka.Backup.UpdateBackupPlan

ToPath UpdateBackupPlan Source # 
Instance details

Defined in Amazonka.Backup.UpdateBackupPlan

ToQuery UpdateBackupPlan Source # 
Instance details

Defined in Amazonka.Backup.UpdateBackupPlan

AWSRequest UpdateBackupPlan Source # 
Instance details

Defined in Amazonka.Backup.UpdateBackupPlan

Associated Types

type AWSResponse UpdateBackupPlan #

Generic UpdateBackupPlan Source # 
Instance details

Defined in Amazonka.Backup.UpdateBackupPlan

Associated Types

type Rep UpdateBackupPlan :: Type -> Type #

Show UpdateBackupPlan Source # 
Instance details

Defined in Amazonka.Backup.UpdateBackupPlan

NFData UpdateBackupPlan Source # 
Instance details

Defined in Amazonka.Backup.UpdateBackupPlan

Methods

rnf :: UpdateBackupPlan -> () #

Eq UpdateBackupPlan Source # 
Instance details

Defined in Amazonka.Backup.UpdateBackupPlan

Hashable UpdateBackupPlan Source # 
Instance details

Defined in Amazonka.Backup.UpdateBackupPlan

type AWSResponse UpdateBackupPlan Source # 
Instance details

Defined in Amazonka.Backup.UpdateBackupPlan

type Rep UpdateBackupPlan Source # 
Instance details

Defined in Amazonka.Backup.UpdateBackupPlan

type Rep UpdateBackupPlan = D1 ('MetaData "UpdateBackupPlan" "Amazonka.Backup.UpdateBackupPlan" "amazonka-backup-2.0-LovIt41tphM6jvgQJhTyRf" 'False) (C1 ('MetaCons "UpdateBackupPlan'" 'PrefixI 'True) (S1 ('MetaSel ('Just "backupPlanId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "backupPlan") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 BackupPlanInput)))

newUpdateBackupPlan Source #

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

UpdateBackupPlan, updateBackupPlan_backupPlanId - Uniquely identifies a backup plan.

$sel:backupPlan:UpdateBackupPlan', updateBackupPlan_backupPlan - Specifies the body of a backup plan. Includes a BackupPlanName and one or more sets of Rules.

Request Lenses

updateBackupPlan_backupPlanId :: Lens' UpdateBackupPlan Text Source #

Uniquely identifies a backup plan.

updateBackupPlan_backupPlan :: Lens' UpdateBackupPlan BackupPlanInput Source #

Specifies the body of a backup plan. Includes a BackupPlanName and one or more sets of Rules.

Destructuring the Response

data UpdateBackupPlanResponse Source #

See: newUpdateBackupPlanResponse smart constructor.

Constructors

UpdateBackupPlanResponse' 

Fields

  • advancedBackupSettings :: Maybe [AdvancedBackupSetting]

    Contains a list of BackupOptions for each resource type.

  • backupPlanArn :: Maybe Text

    An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example, arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50.

  • backupPlanId :: Maybe Text

    Uniquely identifies a backup plan.

  • creationDate :: Maybe POSIX

    The date and time a backup plan 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.

  • versionId :: Maybe Text

    Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. Version Ids cannot be edited.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic UpdateBackupPlanResponse Source # 
Instance details

Defined in Amazonka.Backup.UpdateBackupPlan

Associated Types

type Rep UpdateBackupPlanResponse :: Type -> Type #

Read UpdateBackupPlanResponse Source # 
Instance details

Defined in Amazonka.Backup.UpdateBackupPlan

Show UpdateBackupPlanResponse Source # 
Instance details

Defined in Amazonka.Backup.UpdateBackupPlan

NFData UpdateBackupPlanResponse Source # 
Instance details

Defined in Amazonka.Backup.UpdateBackupPlan

Eq UpdateBackupPlanResponse Source # 
Instance details

Defined in Amazonka.Backup.UpdateBackupPlan

type Rep UpdateBackupPlanResponse Source # 
Instance details

Defined in Amazonka.Backup.UpdateBackupPlan

type Rep UpdateBackupPlanResponse = D1 ('MetaData "UpdateBackupPlanResponse" "Amazonka.Backup.UpdateBackupPlan" "amazonka-backup-2.0-LovIt41tphM6jvgQJhTyRf" 'False) (C1 ('MetaCons "UpdateBackupPlanResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "advancedBackupSettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AdvancedBackupSetting])) :*: (S1 ('MetaSel ('Just "backupPlanArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "backupPlanId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "creationDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "versionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newUpdateBackupPlanResponse Source #

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

UpdateBackupPlanResponse, updateBackupPlanResponse_advancedBackupSettings - Contains a list of BackupOptions for each resource type.

UpdateBackupPlanResponse, updateBackupPlanResponse_backupPlanArn - An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example, arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50.

UpdateBackupPlan, updateBackupPlanResponse_backupPlanId - Uniquely identifies a backup plan.

UpdateBackupPlanResponse, updateBackupPlanResponse_creationDate - The date and time a backup plan 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.

UpdateBackupPlanResponse, updateBackupPlanResponse_versionId - Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. Version Ids cannot be edited.

$sel:httpStatus:UpdateBackupPlanResponse', updateBackupPlanResponse_httpStatus - The response's http status code.

Response Lenses

updateBackupPlanResponse_backupPlanArn :: Lens' UpdateBackupPlanResponse (Maybe Text) Source #

An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example, arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50.

updateBackupPlanResponse_creationDate :: Lens' UpdateBackupPlanResponse (Maybe UTCTime) Source #

The date and time a backup plan 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.

updateBackupPlanResponse_versionId :: Lens' UpdateBackupPlanResponse (Maybe Text) Source #

Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. Version Ids cannot be edited.