libZSservicesZSamazonka-opsworks-cmZSamazonka-opsworks-cm
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.OpsWorksCM.DeleteBackup

Description

Deletes a backup. You can delete both manual and automated backups. This operation is asynchronous.

An InvalidStateException is thrown when a backup deletion is already in progress. A ResourceNotFoundException is thrown when the backup does not exist. A ValidationException is thrown when parameters of the request are not valid.

Synopsis

Creating a Request

data DeleteBackup Source #

See: newDeleteBackup smart constructor.

Constructors

DeleteBackup' 

Fields

  • backupId :: Text

    The ID of the backup to delete. Run the DescribeBackups command to get a list of backup IDs. Backup IDs are in the format ServerName-yyyyMMddHHmmssSSS.

Instances

Instances details
Eq DeleteBackup Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteBackup

Read DeleteBackup Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteBackup

Show DeleteBackup Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteBackup

Generic DeleteBackup Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteBackup

Associated Types

type Rep DeleteBackup :: Type -> Type #

NFData DeleteBackup Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteBackup

Methods

rnf :: DeleteBackup -> () #

Hashable DeleteBackup Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteBackup

ToJSON DeleteBackup Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteBackup

AWSRequest DeleteBackup Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteBackup

Associated Types

type AWSResponse DeleteBackup #

ToHeaders DeleteBackup Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteBackup

ToPath DeleteBackup Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteBackup

ToQuery DeleteBackup Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteBackup

type Rep DeleteBackup Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteBackup

type Rep DeleteBackup = D1 ('MetaData "DeleteBackup" "Amazonka.OpsWorksCM.DeleteBackup" "libZSservicesZSamazonka-opsworks-cmZSamazonka-opsworks-cm" 'False) (C1 ('MetaCons "DeleteBackup'" 'PrefixI 'True) (S1 ('MetaSel ('Just "backupId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteBackup Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteBackup

newDeleteBackup Source #

Create a value of DeleteBackup 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:backupId:DeleteBackup', deleteBackup_backupId - The ID of the backup to delete. Run the DescribeBackups command to get a list of backup IDs. Backup IDs are in the format ServerName-yyyyMMddHHmmssSSS.

Request Lenses

deleteBackup_backupId :: Lens' DeleteBackup Text Source #

The ID of the backup to delete. Run the DescribeBackups command to get a list of backup IDs. Backup IDs are in the format ServerName-yyyyMMddHHmmssSSS.

Destructuring the Response

data DeleteBackupResponse Source #

See: newDeleteBackupResponse smart constructor.

Constructors

DeleteBackupResponse' 

Fields

Instances

Instances details
Eq DeleteBackupResponse Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteBackup

Read DeleteBackupResponse Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteBackup

Show DeleteBackupResponse Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteBackup

Generic DeleteBackupResponse Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteBackup

Associated Types

type Rep DeleteBackupResponse :: Type -> Type #

NFData DeleteBackupResponse Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteBackup

Methods

rnf :: DeleteBackupResponse -> () #

type Rep DeleteBackupResponse Source # 
Instance details

Defined in Amazonka.OpsWorksCM.DeleteBackup

type Rep DeleteBackupResponse = D1 ('MetaData "DeleteBackupResponse" "Amazonka.OpsWorksCM.DeleteBackup" "libZSservicesZSamazonka-opsworks-cmZSamazonka-opsworks-cm" 'False) (C1 ('MetaCons "DeleteBackupResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteBackupResponse Source #

Create a value of DeleteBackupResponse 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:httpStatus:DeleteBackupResponse', deleteBackupResponse_httpStatus - The response's http status code.

Response Lenses