Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Backup

import { Backup } from "https://aws-api.deno.dev/v0.3/services/backup.ts?docs=full";
class Backup {
constructor(apiFactory: client.ApiFactory);
async createBackupPlan(params: CreateBackupPlanInput, opts?: client.RequestOptions): Promise<CreateBackupPlanOutput>;
async createBackupSelection(params: CreateBackupSelectionInput, opts?: client.RequestOptions): Promise<CreateBackupSelectionOutput>;
async createBackupVault(params: CreateBackupVaultInput, opts?: client.RequestOptions): Promise<CreateBackupVaultOutput>;
async createFramework(params: CreateFrameworkInput, opts?: client.RequestOptions): Promise<CreateFrameworkOutput>;
async createReportPlan(params: CreateReportPlanInput, opts?: client.RequestOptions): Promise<CreateReportPlanOutput>;
async deleteBackupPlan(params: DeleteBackupPlanInput, opts?: client.RequestOptions): Promise<DeleteBackupPlanOutput>;
async deleteBackupSelection(params: DeleteBackupSelectionInput, opts?: client.RequestOptions): Promise<void>;
async deleteBackupVault(params: DeleteBackupVaultInput, opts?: client.RequestOptions): Promise<void>;
async deleteBackupVaultAccessPolicy(params: DeleteBackupVaultAccessPolicyInput, opts?: client.RequestOptions): Promise<void>;
async deleteBackupVaultLockConfiguration(params: DeleteBackupVaultLockConfigurationInput, opts?: client.RequestOptions): Promise<void>;
async deleteBackupVaultNotifications(params: DeleteBackupVaultNotificationsInput, opts?: client.RequestOptions): Promise<void>;
async deleteFramework(params: DeleteFrameworkInput, opts?: client.RequestOptions): Promise<void>;
async deleteRecoveryPoint(params: DeleteRecoveryPointInput, opts?: client.RequestOptions): Promise<void>;
async deleteReportPlan(params: DeleteReportPlanInput, opts?: client.RequestOptions): Promise<void>;
async describeBackupJob(params: DescribeBackupJobInput, opts?: client.RequestOptions): Promise<DescribeBackupJobOutput>;
async describeBackupVault(params: DescribeBackupVaultInput, opts?: client.RequestOptions): Promise<DescribeBackupVaultOutput>;
async describeCopyJob(params: DescribeCopyJobInput, opts?: client.RequestOptions): Promise<DescribeCopyJobOutput>;
async describeFramework(params: DescribeFrameworkInput, opts?: client.RequestOptions): Promise<DescribeFrameworkOutput>;
async describeGlobalSettings(opts?: client.RequestOptions): Promise<DescribeGlobalSettingsOutput>;
async describeProtectedResource(params: DescribeProtectedResourceInput, opts?: client.RequestOptions): Promise<DescribeProtectedResourceOutput>;
async describeRecoveryPoint(params: DescribeRecoveryPointInput, opts?: client.RequestOptions): Promise<DescribeRecoveryPointOutput>;
async describeRegionSettings(opts?: client.RequestOptions): Promise<DescribeRegionSettingsOutput>;
async describeReportJob(params: DescribeReportJobInput, opts?: client.RequestOptions): Promise<DescribeReportJobOutput>;
async describeReportPlan(params: DescribeReportPlanInput, opts?: client.RequestOptions): Promise<DescribeReportPlanOutput>;
async describeRestoreJob(params: DescribeRestoreJobInput, opts?: client.RequestOptions): Promise<DescribeRestoreJobOutput>;
async disassociateRecoveryPoint(params: DisassociateRecoveryPointInput, opts?: client.RequestOptions): Promise<void>;
async exportBackupPlanTemplate(params: ExportBackupPlanTemplateInput, opts?: client.RequestOptions): Promise<ExportBackupPlanTemplateOutput>;
async getBackupPlan(params: GetBackupPlanInput, opts?: client.RequestOptions): Promise<GetBackupPlanOutput>;
async getBackupPlanFromJSON(params: GetBackupPlanFromJSONInput, opts?: client.RequestOptions): Promise<GetBackupPlanFromJSONOutput>;
async getBackupPlanFromTemplate(params: GetBackupPlanFromTemplateInput, opts?: client.RequestOptions): Promise<GetBackupPlanFromTemplateOutput>;
async getBackupSelection(params: GetBackupSelectionInput, opts?: client.RequestOptions): Promise<GetBackupSelectionOutput>;
async getBackupVaultAccessPolicy(params: GetBackupVaultAccessPolicyInput, opts?: client.RequestOptions): Promise<GetBackupVaultAccessPolicyOutput>;
async getBackupVaultNotifications(params: GetBackupVaultNotificationsInput, opts?: client.RequestOptions): Promise<GetBackupVaultNotificationsOutput>;
async getRecoveryPointRestoreMetadata(params: GetRecoveryPointRestoreMetadataInput, opts?: client.RequestOptions): Promise<GetRecoveryPointRestoreMetadataOutput>;
async getSupportedResourceTypes(opts?: client.RequestOptions): Promise<GetSupportedResourceTypesOutput>;
async listBackupJobs(params?: ListBackupJobsInput, opts?: client.RequestOptions): Promise<ListBackupJobsOutput>;
async listBackupPlans(params?: ListBackupPlansInput, opts?: client.RequestOptions): Promise<ListBackupPlansOutput>;
async listBackupPlanTemplates(params?: ListBackupPlanTemplatesInput, opts?: client.RequestOptions): Promise<ListBackupPlanTemplatesOutput>;
async listBackupPlanVersions(params: ListBackupPlanVersionsInput, opts?: client.RequestOptions): Promise<ListBackupPlanVersionsOutput>;
async listBackupSelections(params: ListBackupSelectionsInput, opts?: client.RequestOptions): Promise<ListBackupSelectionsOutput>;
async listBackupVaults(params?: ListBackupVaultsInput, opts?: client.RequestOptions): Promise<ListBackupVaultsOutput>;
async listCopyJobs(params?: ListCopyJobsInput, opts?: client.RequestOptions): Promise<ListCopyJobsOutput>;
async listFrameworks(params?: ListFrameworksInput, opts?: client.RequestOptions): Promise<ListFrameworksOutput>;
async listProtectedResources(params?: ListProtectedResourcesInput, opts?: client.RequestOptions): Promise<ListProtectedResourcesOutput>;
async listRecoveryPointsByBackupVault(params: ListRecoveryPointsByBackupVaultInput, opts?: client.RequestOptions): Promise<ListRecoveryPointsByBackupVaultOutput>;
async listRecoveryPointsByResource(params: ListRecoveryPointsByResourceInput, opts?: client.RequestOptions): Promise<ListRecoveryPointsByResourceOutput>;
async listReportJobs(params?: ListReportJobsInput, opts?: client.RequestOptions): Promise<ListReportJobsOutput>;
async listReportPlans(params?: ListReportPlansInput, opts?: client.RequestOptions): Promise<ListReportPlansOutput>;
async listRestoreJobs(params?: ListRestoreJobsInput, opts?: client.RequestOptions): Promise<ListRestoreJobsOutput>;
async listTags(params: ListTagsInput, opts?: client.RequestOptions): Promise<ListTagsOutput>;
async putBackupVaultAccessPolicy(params: PutBackupVaultAccessPolicyInput, opts?: client.RequestOptions): Promise<void>;
async putBackupVaultLockConfiguration(params: PutBackupVaultLockConfigurationInput, opts?: client.RequestOptions): Promise<void>;
async putBackupVaultNotifications(params: PutBackupVaultNotificationsInput, opts?: client.RequestOptions): Promise<void>;
async startBackupJob(params: StartBackupJobInput, opts?: client.RequestOptions): Promise<StartBackupJobOutput>;
async startCopyJob(params: StartCopyJobInput, opts?: client.RequestOptions): Promise<StartCopyJobOutput>;
async startReportJob(params: StartReportJobInput, opts?: client.RequestOptions): Promise<StartReportJobOutput>;
async startRestoreJob(params: StartRestoreJobInput, opts?: client.RequestOptions): Promise<StartRestoreJobOutput>;
async stopBackupJob(params: StopBackupJobInput, opts?: client.RequestOptions): Promise<void>;
async tagResource(params: TagResourceInput, opts?: client.RequestOptions): Promise<void>;
async untagResource(params: UntagResourceInput, opts?: client.RequestOptions): Promise<void>;
async updateBackupPlan(params: UpdateBackupPlanInput, opts?: client.RequestOptions): Promise<UpdateBackupPlanOutput>;
async updateFramework(params: UpdateFrameworkInput, opts?: client.RequestOptions): Promise<UpdateFrameworkOutput>;
async updateGlobalSettings(params?: UpdateGlobalSettingsInput, opts?: client.RequestOptions): Promise<void>;
async updateRecoveryPointLifecycle(params: UpdateRecoveryPointLifecycleInput, opts?: client.RequestOptions): Promise<UpdateRecoveryPointLifecycleOutput>;
async updateRegionSettings(params?: UpdateRegionSettingsInput, opts?: client.RequestOptions): Promise<void>;
async updateReportPlan(params: UpdateReportPlanInput, opts?: client.RequestOptions): Promise<UpdateReportPlanOutput>;
 
static ApiMetadata: client.ApiMetadata;
}

§Constructors

§
new Backup(apiFactory: client.ApiFactory)
[src]

§Methods

§
createBackupPlan(params: CreateBackupPlanInput, opts?: client.RequestOptions): Promise<CreateBackupPlanOutput>
[src]

Creates a backup plan using a backup plan name and backup rules. A backup plan is a document that contains information that Backup uses to schedule tasks that create recovery points for resources.

If you call CreateBackupPlan with a plan that already exists, you receive an AlreadyExistsException exception.

§

Creates a JSON document that specifies a set of resources to assign to a backup plan. For examples, see Assigning resources programmatically.

§

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.

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

§
createFramework(params: CreateFrameworkInput, opts?: client.RequestOptions): Promise<CreateFrameworkOutput>
[src]

Creates a framework with one or more controls. A framework is a collection of controls that you can use to evaluate your backup practices. By using pre-built customizable controls to define your policies, you can evaluate whether your backup practices comply with your policies and which resources are not yet in compliance.

§
createReportPlan(params: CreateReportPlanInput, opts?: client.RequestOptions): Promise<CreateReportPlanOutput>
[src]

Creates a report plan. A report plan is a document that contains information about the contents of the report and where Backup will deliver it.

If you call CreateReportPlan with a plan that already exists, you receive an AlreadyExistsException exception.

§
deleteBackupPlan(params: DeleteBackupPlanInput, opts?: client.RequestOptions): Promise<DeleteBackupPlanOutput>
[src]

Deletes a backup plan. A backup plan can only be deleted after all associated selections of resources have been deleted. Deleting a backup plan deletes the current version of a backup plan. Previous versions, if any, will still exist.

§
deleteBackupSelection(params: DeleteBackupSelectionInput, opts?: client.RequestOptions): Promise<void>
[src]

Deletes the resource selection associated with a backup plan that is specified by the SelectionId.

§
deleteBackupVault(params: DeleteBackupVaultInput, opts?: client.RequestOptions): Promise<void>
[src]

Deletes the backup vault identified by its name. A vault can be deleted only if it is empty.

§
deleteBackupVaultAccessPolicy(params: DeleteBackupVaultAccessPolicyInput, opts?: client.RequestOptions): Promise<void>
[src]

Deletes the policy document that manages permissions on a backup vault.

§
deleteBackupVaultLockConfiguration(params: DeleteBackupVaultLockConfigurationInput, opts?: client.RequestOptions): Promise<void>
[src]

Deletes Backup Vault Lock from a backup vault specified by a backup vault name.

If the Vault Lock configuration is immutable, then you cannot delete Vault Lock using API operations, and you will receive an InvalidRequestException if you attempt to do so. For more information, see Vault Lock in the Backup Developer Guide.

§
deleteBackupVaultNotifications(params: DeleteBackupVaultNotificationsInput, opts?: client.RequestOptions): Promise<void>
[src]

Deletes event notifications for the specified backup vault.

§
deleteFramework(params: DeleteFrameworkInput, opts?: client.RequestOptions): Promise<void>
[src]

Deletes the framework specified by a framework name.

§
deleteRecoveryPoint(params: DeleteRecoveryPointInput, opts?: client.RequestOptions): Promise<void>
[src]

Deletes the recovery point specified by a recovery point ID.

If the recovery point ID belongs to a continuous backup, calling this endpoint deletes the existing continuous backup and stops future continuous backup.

§
deleteReportPlan(params: DeleteReportPlanInput, opts?: client.RequestOptions): Promise<void>
[src]

Deletes the report plan specified by a report plan name.

§

Returns backup job details for the specified BackupJobId.

§

Returns metadata about a backup vault specified by its name.

§
describeCopyJob(params: DescribeCopyJobInput, opts?: client.RequestOptions): Promise<DescribeCopyJobOutput>
[src]

Returns metadata associated with creating a copy of a resource.

§

Returns the framework details for the specified FrameworkName.

§
describeGlobalSettings(opts?: client.RequestOptions): Promise<DescribeGlobalSettingsOutput>
[src]

Describes whether the Amazon Web Services account is opted in to cross-account backup. Returns an error if the account is not a member of an Organizations organization. Example: describe-global-settings --region us-west-2

§

Returns information about a saved resource, including the last time it was backed up, its Amazon Resource Name (ARN), and the Amazon Web Services service type of the saved resource.

§

Returns metadata associated with a recovery point, including ID, status, encryption, and lifecycle.

§
describeRegionSettings(opts?: client.RequestOptions): Promise<DescribeRegionSettingsOutput>
[src]

Returns the current service opt-in settings for the Region. If service opt-in is enabled for a service, Backup tries to protect that service's resources in this Region, when the resource is included in an on-demand backup or scheduled backup plan. Otherwise, Backup does not try to protect that service's resources in this Region.

§

Returns the details associated with creating a report as specified by its ReportJobId.

§

Returns a list of all report plans for an Amazon Web Services account and Amazon Web Services Region.

§

Returns metadata associated with a restore job that is specified by a job ID.

§
disassociateRecoveryPoint(params: DisassociateRecoveryPointInput, opts?: client.RequestOptions): Promise<void>
[src]

Deletes the specified continuous backup recovery point from Backup and releases control of that continuous backup to the source service, such as Amazon RDS. The source service will continue to create and retain continuous backups using the lifecycle that you specified in your original backup plan.

Does not support snapshot backup recovery points.

§

Returns the backup plan that is specified by the plan ID as a backup template.

§
getBackupPlan(params: GetBackupPlanInput, opts?: client.RequestOptions): Promise<GetBackupPlanOutput>
[src]

Returns BackupPlan details for the specified BackupPlanId. The details are the body of a backup plan in JSON format, in addition to plan metadata.

§

Returns a valid JSON document specifying a backup plan or an error.

§

Returns the template specified by its templateId as a backup plan.

§

Returns selection metadata and a document in JSON format that specifies a list of resources that are associated with a backup plan.

§

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

§

Returns event notifications for the specified backup vault.

§

Returns a set of metadata key-value pairs that were used to create the backup.

§
getSupportedResourceTypes(opts?: client.RequestOptions): Promise<GetSupportedResourceTypesOutput>
[src]

Returns the Amazon Web Services resource types supported by Backup.

§
listBackupJobs(params?: ListBackupJobsInput, opts?: client.RequestOptions): Promise<ListBackupJobsOutput>
[src]

Returns a list of existing backup jobs for an authenticated account for the last 30 days. For a longer period of time, consider using these monitoring tools.

§
listBackupPlans(params?: ListBackupPlansInput, opts?: client.RequestOptions): Promise<ListBackupPlansOutput>
[src]

Returns a list of all active backup plans for an authenticated account. The list contains information such as Amazon Resource Names (ARNs), plan IDs, creation and deletion dates, version IDs, plan names, and creator request IDs.

§

Returns metadata of your saved backup plan templates, including the template ID, name, and the creation and deletion dates.

§

Returns version metadata of your backup plans, including Amazon Resource Names (ARNs), backup plan IDs, creation and deletion dates, plan names, and version IDs.

§

Returns an array containing metadata of the resources associated with the target backup plan.

§
listBackupVaults(params?: ListBackupVaultsInput, opts?: client.RequestOptions): Promise<ListBackupVaultsOutput>
[src]

Returns a list of recovery point storage containers along with information about them.

§
listCopyJobs(params?: ListCopyJobsInput, opts?: client.RequestOptions): Promise<ListCopyJobsOutput>
[src]

Returns metadata about your copy jobs.

§
listFrameworks(params?: ListFrameworksInput, opts?: client.RequestOptions): Promise<ListFrameworksOutput>
[src]

Returns a list of all frameworks for an Amazon Web Services account and Amazon Web Services Region.

§

Returns an array of resources successfully backed up by Backup, including the time the resource was saved, an Amazon Resource Name (ARN) of the resource, and a resource type.

§

Returns detailed information about the recovery points stored in a backup vault.

§

Returns detailed information about all the recovery points of the type specified by a resource Amazon Resource Name (ARN).

Note: For Amazon EFS and Amazon EC2, this action only lists recovery points created by Backup.

§
listReportJobs(params?: ListReportJobsInput, opts?: client.RequestOptions): Promise<ListReportJobsOutput>
[src]

Returns details about your report jobs.

§
listReportPlans(params?: ListReportPlansInput, opts?: client.RequestOptions): Promise<ListReportPlansOutput>
[src]

Returns a list of your report plans. For detailed information about a single report plan, use DescribeReportPlan.

§
listRestoreJobs(params?: ListRestoreJobsInput, opts?: client.RequestOptions): Promise<ListRestoreJobsOutput>
[src]

Returns a list of jobs that Backup initiated to restore a saved resource, including details about the recovery process.

§
listTags(params: ListTagsInput, opts?: client.RequestOptions): Promise<ListTagsOutput>
[src]

Returns a list of key-value pairs assigned to a target recovery point, backup plan, or backup vault.

Note: ListTags are currently only supported with Amazon EFS backups.

§
putBackupVaultAccessPolicy(params: PutBackupVaultAccessPolicyInput, opts?: client.RequestOptions): Promise<void>
[src]

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.

§
putBackupVaultLockConfiguration(params: PutBackupVaultLockConfigurationInput, opts?: client.RequestOptions): Promise<void>
[src]

Applies Backup Vault Lock to a backup vault, preventing attempts to delete any recovery point stored in or created in a backup vault. Vault Lock also prevents attempts to update the lifecycle policy that controls the retention period of any recovery point currently stored in a backup vault. If specified, Vault Lock enforces a minimum and maximum retention period for future backup and copy jobs that target a backup vault.

Note: Backup Vault Lock has yet to receive a third-party assessment for SEC 17a-4(f) and CFTC.

§
putBackupVaultNotifications(params: PutBackupVaultNotificationsInput, opts?: client.RequestOptions): Promise<void>
[src]

Turns on notifications on a backup vault for the specified topic and events.

§
startBackupJob(params: StartBackupJobInput, opts?: client.RequestOptions): Promise<StartBackupJobOutput>
[src]

Starts an on-demand backup job for the specified resource.

§
startCopyJob(params: StartCopyJobInput, opts?: client.RequestOptions): Promise<StartCopyJobOutput>
[src]

Starts a job to create a one-time copy of the specified resource.

Does not support continuous backups.

§
startReportJob(params: StartReportJobInput, opts?: client.RequestOptions): Promise<StartReportJobOutput>
[src]

Starts an on-demand report job for the specified report plan.

§
startRestoreJob(params: StartRestoreJobInput, opts?: client.RequestOptions): Promise<StartRestoreJobOutput>
[src]

Recovers the saved resource identified by an Amazon Resource Name (ARN).

§
stopBackupJob(params: StopBackupJobInput, opts?: client.RequestOptions): Promise<void>
[src]

Attempts to cancel a job to create a one-time backup of a resource.

§
tagResource(params: TagResourceInput, opts?: client.RequestOptions): Promise<void>
[src]

Assigns a set of key-value pairs to a recovery point, backup plan, or backup vault identified by an Amazon Resource Name (ARN).

§
untagResource(params: UntagResourceInput, opts?: client.RequestOptions): Promise<void>
[src]

Removes a set of key-value pairs from a recovery point, backup plan, or backup vault identified by an Amazon Resource Name (ARN)

§
updateBackupPlan(params: UpdateBackupPlanInput, opts?: client.RequestOptions): Promise<UpdateBackupPlanOutput>
[src]

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.

§
updateFramework(params: UpdateFrameworkInput, opts?: client.RequestOptions): Promise<UpdateFrameworkOutput>
[src]

Updates an existing framework identified by its FrameworkName with the input document in JSON format.

§
updateGlobalSettings(params?: UpdateGlobalSettingsInput, opts?: client.RequestOptions): Promise<void>
[src]

Updates whether the Amazon Web Services account is opted in to cross-account backup. Returns an error if the account is not an Organizations management account. Use the DescribeGlobalSettings API to determine the current settings.

§

Sets the transition lifecycle of a recovery point.

The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define.

Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.

Only Amazon EFS file system backups can be transitioned to cold storage.

Does not support continuous backups.

§
updateRegionSettings(params?: UpdateRegionSettingsInput, opts?: client.RequestOptions): Promise<void>
[src]

Updates the current service opt-in settings for the Region. If service-opt-in is enabled for a service, Backup tries to protect that service's resources in this Region, when the resource is included in an on-demand backup or scheduled backup plan. Otherwise, Backup does not try to protect that service's resources in this Region. Use the DescribeRegionSettings API to determine the resource types that are supported.

§
updateReportPlan(params: UpdateReportPlanInput, opts?: client.RequestOptions): Promise<UpdateReportPlanOutput>
[src]

Updates an existing report plan identified by its ReportPlanName with the input document in JSON format.

§Static Properties