Class: AWS.Backup
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.Backup
- Identifier:
- backup
- API Version:
- 2018-11-15
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
Backup is a unified backup service designed to protect Amazon Web Services services and their associated data. Backup simplifies the creation, migration, restoration, and deletion of backups, while also providing reporting and auditing.
Sending a Request Using Backup
var backup = new AWS.Backup();
backup.cancelLegalHold(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the Backup object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var backup = new AWS.Backup({apiVersion: '2018-11-15'});
You can also set the API version globally in AWS.config.apiVersions
using
the backup service identifier:
AWS.config.apiVersions = {
backup: '2018-11-15',
// other service API versions
};
var backup = new AWS.Backup();
Version:
-
2018-11-15
Constructor Summary collapse
-
new AWS.Backup(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
cancelLegalHold(params = {}, callback) ⇒ AWS.Request
Removes the specified legal hold on a recovery point.
-
createBackupPlan(params = {}, callback) ⇒ AWS.Request
Creates a backup plan using a backup plan name and backup rules.
-
createBackupSelection(params = {}, callback) ⇒ AWS.Request
Creates a JSON document that specifies a set of resources to assign to a backup plan.
-
createBackupVault(params = {}, callback) ⇒ AWS.Request
Creates a logical container where backups are stored.
-
createFramework(params = {}, callback) ⇒ AWS.Request
Creates a framework with one or more controls.
-
createLegalHold(params = {}, callback) ⇒ AWS.Request
Creates a legal hold on a recovery point (backup).
-
createLogicallyAirGappedBackupVault(params = {}, callback) ⇒ AWS.Request
Creates a logical container to where backups may be copied.
This request includes a name, the Region, the maximum number of retention days, the minimum number of retention days, and optionally can include tags and a creator request ID.
Note: Do not include sensitive data, such as passport numbers, in the name of a backup vault.- createReportPlan(params = {}, callback) ⇒ AWS.Request
Creates a report plan.
- createRestoreTestingPlan(params = {}, callback) ⇒ AWS.Request
Creates a restore testing plan.
The first of two steps to create a restore testing plan.
- createRestoreTestingSelection(params = {}, callback) ⇒ AWS.Request
This request can be sent after CreateRestoreTestingPlan request returns successfully.
- deleteBackupPlan(params = {}, callback) ⇒ AWS.Request
Deletes a backup plan.
- deleteBackupSelection(params = {}, callback) ⇒ AWS.Request
Deletes the resource selection associated with a backup plan that is specified by the
SelectionId
..
- deleteBackupVault(params = {}, callback) ⇒ AWS.Request
Deletes the backup vault identified by its name.
- deleteBackupVaultAccessPolicy(params = {}, callback) ⇒ AWS.Request
Deletes the policy document that manages permissions on a backup vault.
.
- deleteBackupVaultLockConfiguration(params = {}, callback) ⇒ AWS.Request
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.- deleteBackupVaultNotifications(params = {}, callback) ⇒ AWS.Request
Deletes event notifications for the specified backup vault.
.
- deleteFramework(params = {}, callback) ⇒ AWS.Request
Deletes the framework specified by a framework name.
.
- deleteRecoveryPoint(params = {}, callback) ⇒ AWS.Request
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.
When an IAM role's permissions are insufficient to call this API, the service sends back an HTTP 200 response with an empty HTTP body, but the recovery point is not deleted.
- deleteReportPlan(params = {}, callback) ⇒ AWS.Request
Deletes the report plan specified by a report plan name.
.
- deleteRestoreTestingPlan(params = {}, callback) ⇒ AWS.Request
This request deletes the specified restore testing plan.
Deletion can only successfully occur if all associated restore testing selections are deleted first.
.- deleteRestoreTestingSelection(params = {}, callback) ⇒ AWS.Request
Input the Restore Testing Plan name and Restore Testing Selection name.
All testing selections associated with a restore testing plan must be deleted before the restore testing plan can be deleted.
.- describeBackupJob(params = {}, callback) ⇒ AWS.Request
Returns backup job details for the specified
BackupJobId
..
- describeBackupVault(params = {}, callback) ⇒ AWS.Request
Returns metadata about a backup vault specified by its name.
.
- describeCopyJob(params = {}, callback) ⇒ AWS.Request
Returns metadata associated with creating a copy of a resource.
.
- describeFramework(params = {}, callback) ⇒ AWS.Request
Returns the framework details for the specified
FrameworkName
..
- describeGlobalSettings(params = {}, callback) ⇒ AWS.Request
Describes whether the Amazon Web Services account is opted in to cross-account backup.
- describeProtectedResource(params = {}, callback) ⇒ AWS.Request
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.
.
- describeRecoveryPoint(params = {}, callback) ⇒ AWS.Request
Returns metadata associated with a recovery point, including ID, status, encryption, and lifecycle.
.
- describeRegionSettings(params = {}, callback) ⇒ AWS.Request
Returns the current service opt-in settings for the Region.
- describeReportJob(params = {}, callback) ⇒ AWS.Request
Returns the details associated with creating a report as specified by its
ReportJobId
..
- describeReportPlan(params = {}, callback) ⇒ AWS.Request
Returns a list of all report plans for an Amazon Web Services account and Amazon Web Services Region.
.
- describeRestoreJob(params = {}, callback) ⇒ AWS.Request
Returns metadata associated with a restore job that is specified by a job ID.
.
- disassociateRecoveryPoint(params = {}, callback) ⇒ AWS.Request
Deletes the specified continuous backup recovery point from Backup and releases control of that continuous backup to the source service, such as Amazon RDS.
- disassociateRecoveryPointFromParent(params = {}, callback) ⇒ AWS.Request
This action to a specific child (nested) recovery point removes the relationship between the specified recovery point and its parent (composite) recovery point.
.
- exportBackupPlanTemplate(params = {}, callback) ⇒ AWS.Request
Returns the backup plan that is specified by the plan ID as a backup template.
.
- getBackupPlan(params = {}, callback) ⇒ AWS.Request
Returns
BackupPlan
details for the specifiedBackupPlanId
.- getBackupPlanFromJSON(params = {}, callback) ⇒ AWS.Request
Returns a valid JSON document specifying a backup plan or an error.
.
- getBackupPlanFromTemplate(params = {}, callback) ⇒ AWS.Request
Returns the template specified by its
templateId
as a backup plan..
- getBackupSelection(params = {}, callback) ⇒ AWS.Request
Returns selection metadata and a document in JSON format that specifies a list of resources that are associated with a backup plan.
.
- getBackupVaultAccessPolicy(params = {}, callback) ⇒ AWS.Request
Returns the access policy document that is associated with the named backup vault.
.
- getBackupVaultNotifications(params = {}, callback) ⇒ AWS.Request
Returns event notifications for the specified backup vault.
.
- getLegalHold(params = {}, callback) ⇒ AWS.Request
This action returns details for a specified legal hold.
- getRecoveryPointRestoreMetadata(params = {}, callback) ⇒ AWS.Request
Returns a set of metadata key-value pairs that were used to create the backup.
.
- getRestoreJobMetadata(params = {}, callback) ⇒ AWS.Request
This request returns the metadata for the specified restore job.
.
- getRestoreTestingInferredMetadata(params = {}, callback) ⇒ AWS.Request
This request returns the minimal required set of metadata needed to start a restore job with secure default settings.
- getRestoreTestingPlan(params = {}, callback) ⇒ AWS.Request
Returns
RestoreTestingPlan
details for the specifiedRestoreTestingPlanName
.- getRestoreTestingSelection(params = {}, callback) ⇒ AWS.Request
Returns RestoreTestingSelection, which displays resources and elements of the restore testing plan.
.
- getSupportedResourceTypes(params = {}, callback) ⇒ AWS.Request
Returns the Amazon Web Services resource types supported by Backup.
.
- listBackupJobs(params = {}, callback) ⇒ AWS.Request
Returns a list of existing backup jobs for an authenticated account for the last 30 days.
- listBackupJobSummaries(params = {}, callback) ⇒ AWS.Request
This is a request for a summary of backup jobs created or running within the most recent 30 days.
- listBackupPlans(params = {}, callback) ⇒ AWS.Request
Lists the active backup plans for the account.
.
- listBackupPlanTemplates(params = {}, callback) ⇒ AWS.Request
Lists the backup plan templates.
.
- listBackupPlanVersions(params = {}, callback) ⇒ AWS.Request
Returns version metadata of your backup plans, including Amazon Resource Names (ARNs), backup plan IDs, creation and deletion dates, plan names, and version IDs.
.
- listBackupSelections(params = {}, callback) ⇒ AWS.Request
Returns an array containing metadata of the resources associated with the target backup plan.
.
- listBackupVaults(params = {}, callback) ⇒ AWS.Request
Returns a list of recovery point storage containers along with information about them.
.
- listCopyJobs(params = {}, callback) ⇒ AWS.Request
Returns metadata about your copy jobs.
.
- listCopyJobSummaries(params = {}, callback) ⇒ AWS.Request
This request obtains a list of copy jobs created or running within the the most recent 30 days.
- listFrameworks(params = {}, callback) ⇒ AWS.Request
Returns a list of all frameworks for an Amazon Web Services account and Amazon Web Services Region.
.
- listLegalHolds(params = {}, callback) ⇒ AWS.Request
This action returns metadata about active and previous legal holds.
.
- listProtectedResources(params = {}, callback) ⇒ AWS.Request
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.
.
- listProtectedResourcesByBackupVault(params = {}, callback) ⇒ AWS.Request
This request lists the protected resources corresponding to each backup vault.
.
- listRecoveryPointsByBackupVault(params = {}, callback) ⇒ AWS.Request
Returns detailed information about the recovery points stored in a backup vault.
.
- listRecoveryPointsByLegalHold(params = {}, callback) ⇒ AWS.Request
This action returns recovery point ARNs (Amazon Resource Names) of the specified legal hold.
.
- listRecoveryPointsByResource(params = {}, callback) ⇒ AWS.Request
The information about 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 = {}, callback) ⇒ AWS.Request
Returns details about your report jobs.
.
- listReportPlans(params = {}, callback) ⇒ AWS.Request
Returns a list of your report plans.
- listRestoreJobs(params = {}, callback) ⇒ AWS.Request
Returns a list of jobs that Backup initiated to restore a saved resource, including details about the recovery process.
.
- listRestoreJobsByProtectedResource(params = {}, callback) ⇒ AWS.Request
This returns restore jobs that contain the specified protected resource.
You must include
ResourceArn
.- listRestoreJobSummaries(params = {}, callback) ⇒ AWS.Request
This request obtains a summary of restore jobs created or running within the the most recent 30 days.
- listRestoreTestingPlans(params = {}, callback) ⇒ AWS.Request
Returns a list of restore testing plans.
.
- listRestoreTestingSelections(params = {}, callback) ⇒ AWS.Request
Returns a list of restore testing selections.
- listTags(params = {}, callback) ⇒ AWS.Request
Returns the tags assigned to the resource, such as a target recovery point, backup plan, or backup vault.
.
- putBackupVaultAccessPolicy(params = {}, callback) ⇒ AWS.Request
Sets a resource-based policy that is used to manage access permissions on the target backup vault.
- putBackupVaultLockConfiguration(params = {}, callback) ⇒ AWS.Request
Applies Backup Vault Lock to a backup vault, preventing attempts to delete any recovery point stored in or created in a backup vault.
- putBackupVaultNotifications(params = {}, callback) ⇒ AWS.Request
Turns on notifications on a backup vault for the specified topic and events.
.
- putRestoreValidationResult(params = {}, callback) ⇒ AWS.Request
This request allows you to send your independent self-run restore test validation results.
- startBackupJob(params = {}, callback) ⇒ AWS.Request
Starts an on-demand backup job for the specified resource.
.
- startCopyJob(params = {}, callback) ⇒ AWS.Request
Starts a job to create a one-time copy of the specified resource.
Does not support continuous backups.
.- startReportJob(params = {}, callback) ⇒ AWS.Request
Starts an on-demand report job for the specified report plan.
.
- startRestoreJob(params = {}, callback) ⇒ AWS.Request
Recovers the saved resource identified by an Amazon Resource Name (ARN).
.
- stopBackupJob(params = {}, callback) ⇒ AWS.Request
Attempts to cancel a job to create a one-time backup of a resource.
This action is not supported for the following services: Amazon FSx for Windows File Server, Amazon FSx for Lustre, Amazon FSx for NetApp ONTAP, Amazon FSx for OpenZFS, Amazon DocumentDB (with MongoDB compatibility), Amazon RDS, Amazon Aurora, and Amazon Neptune.
.- tagResource(params = {}, callback) ⇒ AWS.Request
Assigns a set of key-value pairs to a recovery point, backup plan, or backup vault identified by an Amazon Resource Name (ARN).
This API is supported for recovery points for resource types including Aurora, Amazon DocumentDB.
- untagResource(params = {}, callback) ⇒ AWS.Request
Removes a set of key-value pairs from a recovery point, backup plan, or backup vault identified by an Amazon Resource Name (ARN)
This API is not supported for recovery points for resource types including Aurora, Amazon DocumentDB.
- updateBackupPlan(params = {}, callback) ⇒ AWS.Request
Updates the specified backup plan.
- updateFramework(params = {}, callback) ⇒ AWS.Request
Updates the specified framework.
.
- updateGlobalSettings(params = {}, callback) ⇒ AWS.Request
Updates whether the Amazon Web Services account is opted in to cross-account backup.
- updateRecoveryPointLifecycle(params = {}, callback) ⇒ AWS.Request
Sets the transition lifecycle of a recovery point.
The lifecycle defines when a protected resource is transitioned to cold storage and when it expires.
- updateRegionSettings(params = {}, callback) ⇒ AWS.Request
Updates the current service opt-in settings for the Region.
Use the
.DescribeRegionSettings
API to determine the resource types that are supported.- updateReportPlan(params = {}, callback) ⇒ AWS.Request
Updates the specified report plan.
.
- updateRestoreTestingPlan(params = {}, callback) ⇒ AWS.Request
This request will send changes to your specified restore testing plan.
- updateRestoreTestingSelection(params = {}, callback) ⇒ AWS.Request
Updates the specified restore testing selection.
Most elements except the
RestoreTestingSelectionName
can be updated with this request.You can use either protected resource ARNs or conditions, but not both.
.Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.Backup(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Examples:
Constructing a Backup object
var backup = new AWS.Backup({apiVersion: '2018-11-15'});
Options Hash (options):
-
params
(map)
—
An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.
-
endpoint
(String|AWS.Endpoint)
—
The endpoint URI to send requests to. The default endpoint is built from the configured
region
. The endpoint should be a string like'https://{service}.{region}.amazonaws.com'
or an Endpoint object. -
accessKeyId
(String)
—
your AWS access key ID.
-
secretAccessKey
(String)
—
your AWS secret access key.
-
sessionToken
(AWS.Credentials)
—
the optional AWS session token to sign requests with.
-
credentials
(AWS.Credentials)
—
the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.
-
credentialProvider
(AWS.CredentialProviderChain)
—
the provider chain used to resolve credentials if no static
credentials
property is set. -
region
(String)
—
the region to send service requests to. See AWS.Backup.region for more information.
-
maxRetries
(Integer)
—
the maximum amount of retries to attempt with a request. See AWS.Backup.maxRetries for more information.
-
maxRedirects
(Integer)
—
the maximum amount of redirects to follow with a request. See AWS.Backup.maxRedirects for more information.
-
sslEnabled
(Boolean)
—
whether to enable SSL for requests.
-
paramValidation
(Boolean|map)
—
whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:
- min [Boolean] — Validates that a value meets the min
constraint. This is enabled by default when paramValidation is set
to
true
. - max [Boolean] — Validates that a value meets the max constraint.
- pattern [Boolean] — Validates that a string value matches a regular expression.
- enum [Boolean] — Validates that a string value matches one of the allowable enum values.
- min [Boolean] — Validates that a value meets the min
constraint. This is enabled by default when paramValidation is set
to
-
computeChecksums
(Boolean)
—
whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)
-
convertResponseTypes
(Boolean)
—
whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to
true
. -
correctClockSkew
(Boolean)
—
whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to
false
. -
s3ForcePathStyle
(Boolean)
—
whether to force path style URLs for S3 objects.
-
s3BucketEndpoint
(Boolean)
—
whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an
endpoint
to be provided explicitly to the service constructor. -
s3DisableBodySigning
(Boolean)
—
whether S3 body signing should be disabled when using signature version
v4
. Body signing can only be disabled when using https. Defaults totrue
. -
s3UsEast1RegionalEndpoint
('legacy'|'regional')
—
when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to
legacy
-
s3UseArnRegion
(Boolean)
—
whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to
true
-
retryDelayOptions
(map)
—
A set of options to configure the retry delay on retryable errors. Currently supported options are:
- base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
- customBackoff [function] — A custom function that accepts a
retry count and error and returns the amount of time to delay in
milliseconds. If the result is a non-zero negative value, no further
retry attempts will be made. The
base
option will be ignored if this option is supplied. The function is only called for retryable errors.
-
httpOptions
(map)
—
A set of options to pass to the low-level HTTP request. Currently supported options are:
- proxy [String] — the URL to proxy requests through
- agent [http.Agent, https.Agent] — the Agent object to perform
HTTP requests with. Used for connection pooling. Defaults to the global
agent (
http.globalAgent
) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment. - connectTimeout [Integer] — Sets the socket to timeout after
failing to establish a connection with the server after
connectTimeout
milliseconds. This timeout has no effect once a socket connection has been established. - timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
- xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
- xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
-
apiVersion
(String, Date)
—
a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by
apiVersions
). Specify 'latest' to use the latest possible version. -
apiVersions
(map<String, String|Date>)
—
a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.
-
logger
(#write, #log)
—
an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests
-
systemClockOffset
(Number)
—
an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global
AWS.config
object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds. -
signatureVersion
(String)
—
the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.
-
signatureCache
(Boolean)
—
whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to
true
. -
dynamoDbCrc32
(Boolean)
—
whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default:
true
. -
useAccelerateEndpoint
(Boolean)
—
Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default:
false
. -
clientSideMonitoring
(Boolean)
—
whether to collect and publish this client's performance metrics of all its API requests.
-
endpointDiscoveryEnabled
(Boolean|undefined)
—
whether to call operations with endpoints given by service dynamically. Setting this
-
endpointCacheSize
(Number)
—
the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000
-
hostPrefixEnabled
(Boolean)
—
whether to marshal request parameters to the prefix of hostname. Defaults to
true
. -
stsRegionalEndpoints
('legacy'|'regional')
—
whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.
-
useFipsEndpoint
(Boolean)
—
Enables FIPS compatible endpoints. Defaults to
false
. -
useDualstackEndpoint
(Boolean)
—
Enables IPv6 dualstack endpoint. Defaults to
false
.
Property Details
Method Details
cancelLegalHold(params = {}, callback) ⇒ AWS.Request
Removes the specified legal hold on a recovery point. This action can only be performed by a user with sufficient permissions.
Service Reference:
Examples:
Calling the cancelLegalHold operation
var params = { CancelDescription: 'STRING_VALUE', /* required */ LegalHoldId: 'STRING_VALUE', /* required */ RetainRecordInDays: 'NUMBER_VALUE' }; backup.cancelLegalHold(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
LegalHoldId
— (String
)The ID of the legal hold.
CancelDescription
— (String
)A string the describes the reason for removing the legal hold.
RetainRecordInDays
— (Integer
)The integer amount, in days, after which to remove legal hold.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
createBackupPlan(params = {}, callback) ⇒ AWS.Request
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 anAlreadyExistsException
exception.Service Reference:
Examples:
Calling the createBackupPlan operation
var params = { BackupPlan: { /* required */ BackupPlanName: 'STRING_VALUE', /* required */ Rules: [ /* required */ { RuleName: 'STRING_VALUE', /* required */ TargetBackupVaultName: 'STRING_VALUE', /* required */ CompletionWindowMinutes: 'NUMBER_VALUE', CopyActions: [ { DestinationBackupVaultArn: 'STRING_VALUE', /* required */ Lifecycle: { DeleteAfterDays: 'NUMBER_VALUE', MoveToColdStorageAfterDays: 'NUMBER_VALUE', OptInToArchiveForSupportedResources: true || false } }, /* more items */ ], EnableContinuousBackup: true || false, Lifecycle: { DeleteAfterDays: 'NUMBER_VALUE', MoveToColdStorageAfterDays: 'NUMBER_VALUE', OptInToArchiveForSupportedResources: true || false }, RecoveryPointTags: { '<TagKey>': 'STRING_VALUE', /* '<TagKey>': ... */ }, ScheduleExpression: 'STRING_VALUE', ScheduleExpressionTimezone: 'STRING_VALUE', StartWindowMinutes: 'NUMBER_VALUE' }, /* more items */ ], AdvancedBackupSettings: [ { BackupOptions: { '<BackupOptionKey>': 'STRING_VALUE', /* '<BackupOptionKey>': ... */ }, ResourceType: 'STRING_VALUE' }, /* more items */ ] }, BackupPlanTags: { '<TagKey>': 'STRING_VALUE', /* '<TagKey>': ... */ }, CreatorRequestId: 'STRING_VALUE' }; backup.createBackupPlan(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupPlan
— (map
)The body of a backup plan. Includes a
BackupPlanName
and one or more sets ofRules
.BackupPlanName
— required — (String
)The display name of a backup plan. Must contain 1 to 50 alphanumeric or '-_.' characters.
Rules
— required — (Array<map>
)An array of
BackupRule
objects, each of which specifies a scheduled task that is used to back up a selection of resources.RuleName
— required — (String
)A display name for a backup rule. Must contain 1 to 50 alphanumeric or '-_.' characters.
TargetBackupVaultName
— required — (String
)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.
ScheduleExpression
— (String
)A CRON expression in UTC specifying when Backup initiates a backup job.
StartWindowMinutes
— (Integer
)A value in minutes after a backup is scheduled before a job will be canceled if it doesn't start successfully. This value is optional. If this value is included, it must be at least 60 minutes to avoid errors.
This parameter has a maximum value of 100 years (52,560,000 minutes).
During the start window, the backup job status remains in
CREATED
status until it has successfully begun or until the start window time has run out. If within the start window time Backup receives an error that allows the job to be retried, Backup will automatically retry to begin the job at least every 10 minutes until the backup successfully begins (the job status changes toRUNNING
) or until the job status changes toEXPIRED
(which is expected to occur when the start window time is over).CompletionWindowMinutes
— (Integer
)A value in minutes after a backup job is successfully started before it must be completed or it will be canceled by Backup. This value is optional.
Lifecycle
— (map
)The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup will transition and expire 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 “retention” 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 storage.
Resource types that can transition to cold storage are listed in the Feature availability by resource table. Backup ignores this expression for other resource types.
This parameter has a maximum value of 100 years (36,500 days).
MoveToColdStorageAfterDays
— (Integer
)The number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)The number of days after creation that a recovery point is deleted. This value must be at least 90 days after the number of days specified in
MoveToColdStorageAfterDays
.OptInToArchiveForSupportedResources
— (Boolean
)If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
RecoveryPointTags
— (map<String>
)The tags to assign to the resources.
CopyActions
— (Array<map>
)An array of
CopyAction
objects, which contains the details of the copy operation.Lifecycle
— (map
)Specifies the time period, in days, before a recovery point transitions to cold storage or is deleted.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, on the console, the retention setting must be 90 days greater than the transition to cold after days setting. The transition to cold after days setting can't be changed after a backup has been transitioned to cold.
Resource types that can transition to cold storage are listed in the Feature availability by resource table. Backup ignores this expression for other resource types.
To remove the existing lifecycle and retention periods and keep your recovery points indefinitely, specify -1 for
MoveToColdStorageAfterDays
andDeleteAfterDays
.MoveToColdStorageAfterDays
— (Integer
)The number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)The number of days after creation that a recovery point is deleted. This value must be at least 90 days after the number of days specified in
MoveToColdStorageAfterDays
.OptInToArchiveForSupportedResources
— (Boolean
)If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
DestinationBackupVaultArn
— required — (String
)An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup. For example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.
EnableContinuousBackup
— (Boolean
)Specifies whether Backup creates continuous backups. True causes Backup to create continuous backups capable of point-in-time restore (PITR). False (or not specified) causes Backup to create snapshot backups.
ScheduleExpressionTimezone
— (String
)The timezone in which the schedule expression is set. By default, ScheduleExpressions are in UTC. You can modify this to a specified timezone.
AdvancedBackupSettings
— (Array<map>
)Specifies a list of
BackupOptions
for each resource type. These settings are only available for Windows Volume Shadow Copy Service (VSS) backup jobs.ResourceType
— (String
)Specifies an object containing resource type and backup options. The only supported resource type is Amazon EC2 instances with Windows Volume Shadow Copy Service (VSS). For a CloudFormation example, see the sample CloudFormation template to enable Windows VSS in the Backup User Guide.
Valid values:
EC2
.BackupOptions
— (map<String>
)Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs.
Valid values:
Set to
"WindowsVSS":"enabled"
to enable theWindowsVSS
backup option and create a Windows VSS backup.Set to
"WindowsVSS":"disabled"
to create a regular backup. TheWindowsVSS
option is not enabled by default.If you specify an invalid option, you get an
InvalidParameterValueException
exception.For more information about Windows VSS backups, see Creating a VSS-Enabled Windows Backup.
BackupPlanTags
— (map<String>
)The tags to assign to the backup plan.
CreatorRequestId
— (String
)Identifies the request and allows failed requests to be retried without the risk of running the operation twice. If the request includes a
CreatorRequestId
that matches an existing backup plan, that plan is returned. This parameter is optional.If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:BackupPlanId
— (String
)The ID of the backup plan.
BackupPlanArn
— (String
)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
.CreationDate
— (Date
)The date and time that 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
— (String
)Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. They cannot be edited.
AdvancedBackupSettings
— (Array<map>
)The settings for a resource type. This option is only available for Windows Volume Shadow Copy Service (VSS) backup jobs.
ResourceType
— (String
)Specifies an object containing resource type and backup options. The only supported resource type is Amazon EC2 instances with Windows Volume Shadow Copy Service (VSS). For a CloudFormation example, see the sample CloudFormation template to enable Windows VSS in the Backup User Guide.
Valid values:
EC2
.BackupOptions
— (map<String>
)Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs.
Valid values:
Set to
"WindowsVSS":"enabled"
to enable theWindowsVSS
backup option and create a Windows VSS backup.Set to
"WindowsVSS":"disabled"
to create a regular backup. TheWindowsVSS
option is not enabled by default.If you specify an invalid option, you get an
InvalidParameterValueException
exception.For more information about Windows VSS backups, see Creating a VSS-Enabled Windows Backup.
-
(AWS.Response)
—
Returns:
createBackupSelection(params = {}, callback) ⇒ AWS.Request
Creates a JSON document that specifies a set of resources to assign to a backup plan. For examples, see Assigning resources programmatically.
Service Reference:
Examples:
Calling the createBackupSelection operation
var params = { BackupPlanId: 'STRING_VALUE', /* required */ BackupSelection: { /* required */ IamRoleArn: 'STRING_VALUE', /* required */ SelectionName: 'STRING_VALUE', /* required */ Conditions: { StringEquals: [ { ConditionKey: 'STRING_VALUE', ConditionValue: 'STRING_VALUE' }, /* more items */ ], StringLike: [ { ConditionKey: 'STRING_VALUE', ConditionValue: 'STRING_VALUE' }, /* more items */ ], StringNotEquals: [ { ConditionKey: 'STRING_VALUE', ConditionValue: 'STRING_VALUE' }, /* more items */ ], StringNotLike: [ { ConditionKey: 'STRING_VALUE', ConditionValue: 'STRING_VALUE' }, /* more items */ ] }, ListOfTags: [ { ConditionKey: 'STRING_VALUE', /* required */ ConditionType: STRINGEQUALS, /* required */ ConditionValue: 'STRING_VALUE' /* required */ }, /* more items */ ], NotResources: [ 'STRING_VALUE', /* more items */ ], Resources: [ 'STRING_VALUE', /* more items */ ] }, CreatorRequestId: 'STRING_VALUE' }; backup.createBackupSelection(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupPlanId
— (String
)The ID of the backup plan.
BackupSelection
— (map
)The body of a request to assign a set of resources to a backup plan.
SelectionName
— required — (String
)The display name of a resource selection document. Must contain 1 to 50 alphanumeric or '-_.' characters.
IamRoleArn
— required — (String
)The ARN of the IAM role that Backup uses to authenticate when backing up the target resource; for example,
arn:aws:iam::123456789012:role/S3Access
.Resources
— (Array<String>
)The Amazon Resource Names (ARNs) of the resources to assign to a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
If you need to assign many resources to a backup plan, consider a different resource selection strategy, such as assigning all resources of a resource type or refining your resource selection using tags.
If you specify multiple ARNs, the resources much match any of the ARNs (OR logic).
ListOfTags
— (Array<map>
)The conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "backup", "ConditionValue": "daily"}
.ListOfTags
supports onlyStringEquals
. Condition operators are case sensitive.If you specify multiple conditions, the resources much match any of the conditions (OR logic).
ConditionType
— required — (String
)An operation applied to a key-value pair used to assign resources to your backup plan. Condition only supports
Possible values include:StringEquals
. For more flexible assignment options, includingStringLike
and the ability to exclude resources from your backup plan, useConditions
(with an "s" on the end) for yourBackupSelection
."STRINGEQUALS"
ConditionKey
— required — (String
)The key in a key-value pair. For example, in the tag
Department: Accounting
,Department
is the key.ConditionValue
— required — (String
)The value in a key-value pair. For example, in the tag
Department: Accounting
,Accounting
is the value.
NotResources
— (Array<String>
)The Amazon Resource Names (ARNs) of the resources to exclude from a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
If you need to exclude many resources from a backup plan, consider a different resource selection strategy, such as assigning only one or a few resource types or refining your resource selection using tags.
Conditions
— (map
)The conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "aws:ResourceTag/backup", "ConditionValue": "daily" }
.Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
. Condition operators are case sensitive.If you specify multiple conditions, the resources much match all conditions (AND logic).
StringEquals
— (Array<map>
)Filters the values of your tagged resources for only those resources that you tagged with the same value. Also called "exact matching."
ConditionKey
— (String
)The key in a key-value pair. For example, in the tag
Department: Accounting
,Department
is the key.ConditionValue
— (String
)The value in a key-value pair. For example, in the tag
Department: Accounting
,Accounting
is the value.
StringNotEquals
— (Array<map>
)Filters the values of your tagged resources for only those resources that you tagged that do not have the same value. Also called "negated matching."
ConditionKey
— (String
)The key in a key-value pair. For example, in the tag
Department: Accounting
,Department
is the key.ConditionValue
— (String
)The value in a key-value pair. For example, in the tag
Department: Accounting
,Accounting
is the value.
StringLike
— (Array<map>
)Filters the values of your tagged resources for matching tag values with the use of a wildcard character () anywhere in the string. For example, "prod" or "rod" matches the tag value "production".
ConditionKey
— (String
)The key in a key-value pair. For example, in the tag
Department: Accounting
,Department
is the key.ConditionValue
— (String
)The value in a key-value pair. For example, in the tag
Department: Accounting
,Accounting
is the value.
StringNotLike
— (Array<map>
)Filters the values of your tagged resources for non-matching tag values with the use of a wildcard character (*) anywhere in the string.
ConditionKey
— (String
)The key in a key-value pair. For example, in the tag
Department: Accounting
,Department
is the key.ConditionValue
— (String
)The value in a key-value pair. For example, in the tag
Department: Accounting
,Accounting
is the value.
CreatorRequestId
— (String
)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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:SelectionId
— (String
)Uniquely identifies the body of a request to assign a set of resources to a backup plan.
BackupPlanId
— (String
)The ID of the backup plan.
CreationDate
— (Date
)The date and time a backup selection 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.
-
(AWS.Response)
—
Returns:
createBackupVault(params = {}, callback) ⇒ AWS.Request
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.Service Reference:
Examples:
Calling the createBackupVault operation
var params = { BackupVaultName: 'STRING_VALUE', /* required */ BackupVaultTags: { '<TagKey>': 'STRING_VALUE', /* '<TagKey>': ... */ }, CreatorRequestId: 'STRING_VALUE', EncryptionKeyArn: 'STRING_VALUE' }; backup.createBackupVault(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupVaultName
— (String
)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.
BackupVaultTags
— (map<String>
)The tags to assign to the backup vault.
EncryptionKeyArn
— (String
)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
.CreatorRequestId
— (String
)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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:BackupVaultName
— (String
)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.
BackupVaultArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.CreationDate
— (Date
)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.
-
(AWS.Response)
—
Returns:
createFramework(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the createFramework operation
var params = { FrameworkControls: [ /* required */ { ControlName: 'STRING_VALUE', /* required */ ControlInputParameters: [ { ParameterName: 'STRING_VALUE', ParameterValue: 'STRING_VALUE' }, /* more items */ ], ControlScope: { ComplianceResourceIds: [ 'STRING_VALUE', /* more items */ ], ComplianceResourceTypes: [ 'STRING_VALUE', /* more items */ ], Tags: { '<string>': 'STRING_VALUE', /* '<string>': ... */ } } }, /* more items */ ], FrameworkName: 'STRING_VALUE', /* required */ FrameworkDescription: 'STRING_VALUE', FrameworkTags: { '<string>': 'STRING_VALUE', /* '<string>': ... */ }, IdempotencyToken: 'STRING_VALUE' }; backup.createFramework(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
FrameworkName
— (String
)The unique name of the framework. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
FrameworkDescription
— (String
)An optional description of the framework with a maximum of 1,024 characters.
FrameworkControls
— (Array<map>
)The controls that make up the framework. Each control in the list has a name, input parameters, and scope.
ControlName
— required — (String
)The name of a control. This name is between 1 and 256 characters.
ControlInputParameters
— (Array<map>
)The name/value pairs.
ParameterName
— (String
)The name of a parameter, for example,
BackupPlanFrequency
.ParameterValue
— (String
)The value of parameter, for example,
hourly
.
ControlScope
— (map
)The scope of a control. The control scope defines what the control will evaluate. Three examples of control scopes are: a specific backup plan, all backup plans with a specific tag, or all backup plans.
For more information, see
ControlScope
.ComplianceResourceIds
— (Array<String>
)The ID of the only Amazon Web Services resource that you want your control scope to contain.
ComplianceResourceTypes
— (Array<String>
)Describes whether the control scope includes one or more types of resources, such as
EFS
orRDS
.Tags
— (map<String>
)The tag key-value pair applied to those Amazon Web Services resources that you want to trigger an evaluation for a rule. A maximum of one key-value pair can be provided. The tag value is optional, but it cannot be an empty string if you are creating or editing a framework from the console (though the value can be an empty string when included in a CloudFormation template).
The structure to assign a tag is:
[{"Key":"string","Value":"string"}]
.
IdempotencyToken
— (String
)A customer-chosen string that you can use to distinguish between otherwise identical calls to
If a token is not provided, the SDK will use a version 4 UUID.CreateFrameworkInput
. Retrying a successful request with the same idempotency token results in a success message with no action taken.FrameworkTags
— (map<String>
)The tags to assign to the framework.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:FrameworkName
— (String
)The unique name of the framework. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
FrameworkArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
-
(AWS.Response)
—
Returns:
createLegalHold(params = {}, callback) ⇒ AWS.Request
Creates a legal hold on a recovery point (backup). A legal hold is a restraint on altering or deleting a backup until an authorized user cancels the legal hold. Any actions to delete or disassociate a recovery point will fail with an error if one or more active legal holds are on the recovery point.
Service Reference:
Examples:
Calling the createLegalHold operation
var params = { Description: 'STRING_VALUE', /* required */ Title: 'STRING_VALUE', /* required */ IdempotencyToken: 'STRING_VALUE', RecoveryPointSelection: { DateRange: { FromDate: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */ ToDate: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789 /* required */ }, ResourceIdentifiers: [ 'STRING_VALUE', /* more items */ ], VaultNames: [ 'STRING_VALUE', /* more items */ ] }, Tags: { '<TagKey>': 'STRING_VALUE', /* '<TagKey>': ... */ } }; backup.createLegalHold(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
Title
— (String
)The title of the legal hold.
Description
— (String
)The description of the legal hold.
IdempotencyToken
— (String
)This is a user-chosen string used to distinguish between otherwise identical calls. Retrying a successful request with the same idempotency token results in a success message with no action taken.
RecoveryPointSelection
— (map
)The criteria to assign a set of resources, such as resource types or backup vaults.
VaultNames
— (Array<String>
)These are the names of the vaults in which the selected recovery points are contained.
ResourceIdentifiers
— (Array<String>
)These are the resources included in the resource selection (including type of resources and vaults).
DateRange
— (map
)This is a resource filter containing FromDate: DateTime and ToDate: DateTime. Both values are required. Future DateTime values are not permitted.
The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds ((milliseconds are optional). For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
FromDate
— required — (Date
)This value is the beginning date, inclusive.
The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds (milliseconds are optional).
ToDate
— required — (Date
)This value is the end date, inclusive.
The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds (milliseconds are optional).
Tags
— (map<String>
)Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Title
— (String
)The title of the legal hold.
Status
— (String
)The status of the legal hold.
Possible values include:"CREATING"
"ACTIVE"
"CANCELING"
"CANCELED"
Description
— (String
)The description of the legal hold.
LegalHoldId
— (String
)The ID of the legal hold.
LegalHoldArn
— (String
)The Amazon Resource Name (ARN) of the legal hold.
CreationDate
— (Date
)The time when the legal hold was created.
RecoveryPointSelection
— (map
)The criteria to assign to a set of resources, such as resource types or backup vaults.
VaultNames
— (Array<String>
)These are the names of the vaults in which the selected recovery points are contained.
ResourceIdentifiers
— (Array<String>
)These are the resources included in the resource selection (including type of resources and vaults).
DateRange
— (map
)This is a resource filter containing FromDate: DateTime and ToDate: DateTime. Both values are required. Future DateTime values are not permitted.
The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds ((milliseconds are optional). For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
FromDate
— required — (Date
)This value is the beginning date, inclusive.
The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds (milliseconds are optional).
ToDate
— required — (Date
)This value is the end date, inclusive.
The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds (milliseconds are optional).
-
(AWS.Response)
—
Returns:
createLogicallyAirGappedBackupVault(params = {}, callback) ⇒ AWS.Request
Creates a logical container to where backups may be copied.
This request includes a name, the Region, the maximum number of retention days, the minimum number of retention days, and optionally can include tags and a creator request ID.
Note: Do not include sensitive data, such as passport numbers, in the name of a backup vault.Service Reference:
Examples:
Calling the createLogicallyAirGappedBackupVault operation
var params = { BackupVaultName: 'STRING_VALUE', /* required */ MaxRetentionDays: 'NUMBER_VALUE', /* required */ MinRetentionDays: 'NUMBER_VALUE', /* required */ BackupVaultTags: { '<TagKey>': 'STRING_VALUE', /* '<TagKey>': ... */ }, CreatorRequestId: 'STRING_VALUE' }; backup.createLogicallyAirGappedBackupVault(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupVaultName
— (String
)The name of a logical container where backups are stored. Logically air-gapped backup vaults are identified by names that are unique to the account used to create them and the Region where they are created.
BackupVaultTags
— (map<String>
)The tags to assign to the vault.
CreatorRequestId
— (String
)The ID of the creation request.
This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
MinRetentionDays
— (Integer
)This setting specifies the minimum retention period that the vault retains its recovery points.
The minimum value accepted is 7 days.
MaxRetentionDays
— (Integer
)The maximum retention period that the vault retains its recovery points.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:BackupVaultName
— (String
)The name of a logical container where backups are stored. Logically air-gapped backup vaults are identified by names that are unique to the account used to create them and the Region where they are created.
BackupVaultArn
— (String
)The ARN (Amazon Resource Name) of the vault.
CreationDate
— (Date
)The date and time when the vault was created.
This value is in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
VaultState
— (String
)The current state of the vault.
Possible values include:"CREATING"
"AVAILABLE"
"FAILED"
-
(AWS.Response)
—
Returns:
createReportPlan(params = {}, callback) ⇒ AWS.Request
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 anAlreadyExistsException
exception.Service Reference:
Examples:
Calling the createReportPlan operation
var params = { ReportDeliveryChannel: { /* required */ S3BucketName: 'STRING_VALUE', /* required */ Formats: [ 'STRING_VALUE', /* more items */ ], S3KeyPrefix: 'STRING_VALUE' }, ReportPlanName: 'STRING_VALUE', /* required */ ReportSetting: { /* required */ ReportTemplate: 'STRING_VALUE', /* required */ Accounts: [ 'STRING_VALUE', /* more items */ ], FrameworkArns: [ 'STRING_VALUE', /* more items */ ], NumberOfFrameworks: 'NUMBER_VALUE', OrganizationUnits: [ 'STRING_VALUE', /* more items */ ], Regions: [ 'STRING_VALUE', /* more items */ ] }, IdempotencyToken: 'STRING_VALUE', ReportPlanDescription: 'STRING_VALUE', ReportPlanTags: { '<string>': 'STRING_VALUE', /* '<string>': ... */ } }; backup.createReportPlan(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
ReportPlanName
— (String
)The unique name of the report plan. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
ReportPlanDescription
— (String
)An optional description of the report plan with a maximum of 1,024 characters.
ReportDeliveryChannel
— (map
)A structure that contains information about where and how to deliver your reports, specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your reports.
S3BucketName
— required — (String
)The unique name of the S3 bucket that receives your reports.
S3KeyPrefix
— (String
)The prefix for where Backup Audit Manager delivers your reports to Amazon S3. The prefix is this part of the following path: s3://your-bucket-name/
prefix
/Backup/us-west-2/year/month/day/report-name. If not specified, there is no prefix.Formats
— (Array<String>
)The format of your reports:
CSV
,JSON
, or both. If not specified, the default format isCSV
.
ReportSetting
— (map
)Identifies the report template for the report. Reports are built using a report template. The report templates are:
RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT
If the report template is
RESOURCE_COMPLIANCE_REPORT
orCONTROL_COMPLIANCE_REPORT
, this API resource also describes the report coverage by Amazon Web Services Regions and frameworks.ReportTemplate
— required — (String
)Identifies the report template for the report. Reports are built using a report template. The report templates are:
RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT
FrameworkArns
— (Array<String>
)The Amazon Resource Names (ARNs) of the frameworks a report covers.
NumberOfFrameworks
— (Integer
)The number of frameworks a report covers.
Accounts
— (Array<String>
)These are the accounts to be included in the report.
Use string value of
ROOT
to include all organizational units.OrganizationUnits
— (Array<String>
)These are the Organizational Units to be included in the report.
Regions
— (Array<String>
)These are the Regions to be included in the report.
Use the wildcard as the string value to include all Regions.
ReportPlanTags
— (map<String>
)The tags to assign to the report plan.
IdempotencyToken
— (String
)A customer-chosen string that you can use to distinguish between otherwise identical calls to
If a token is not provided, the SDK will use a version 4 UUID.CreateReportPlanInput
. Retrying a successful request with the same idempotency token results in a success message with no action taken.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ReportPlanName
— (String
)The unique name of the report plan.
ReportPlanArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
CreationTime
— (Date
)The date and time a backup vault is created, in Unix format and Coordinated Universal Time (UTC). The value of
CreationTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
-
(AWS.Response)
—
Returns:
createRestoreTestingPlan(params = {}, callback) ⇒ AWS.Request
Creates a restore testing plan.
The first of two steps to create a restore testing plan. After this request is successful, finish the procedure using CreateRestoreTestingSelection.
Service Reference:
Examples:
Calling the createRestoreTestingPlan operation
var params = { RestoreTestingPlan: { /* required */ RecoveryPointSelection: { /* required */ Algorithm: LATEST_WITHIN_WINDOW | RANDOM_WITHIN_WINDOW, ExcludeVaults: [ 'STRING_VALUE', /* more items */ ], IncludeVaults: [ 'STRING_VALUE', /* more items */ ], RecoveryPointTypes: [ CONTINUOUS | SNAPSHOT, /* more items */ ], SelectionWindowDays: 'NUMBER_VALUE' }, RestoreTestingPlanName: 'STRING_VALUE', /* required */ ScheduleExpression: 'STRING_VALUE', /* required */ ScheduleExpressionTimezone: 'STRING_VALUE', StartWindowHours: 'NUMBER_VALUE' }, CreatorRequestId: 'STRING_VALUE', Tags: { '<String>': 'STRING_VALUE', /* '<String>': ... */ } }; backup.createRestoreTestingPlan(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
CreatorRequestId
— (String
)This is a unique string that identifies the request and allows failed requests to be retriedwithout the risk of running the operation twice. This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
RestoreTestingPlan
— (map
)A restore testing plan must contain a unique
RestoreTestingPlanName
string you create and must contain aScheduleExpression
cron. You may optionally include aStartWindowHours
integer and aCreatorRequestId
string.The
RestoreTestingPlanName
is a unique string that is the name of the restore testing plan. This cannot be changed after creation, and it must consist of only alphanumeric characters and underscores.RecoveryPointSelection
— required — (map
)RecoveryPointSelection
has five parameters (three required and two optional). The values you specify determine which recovery point is included in the restore test. You must indicate withAlgorithm
if you want the latest recovery point within yourSelectionWindowDays
or if you want a random recovery point, and you must indicate throughIncludeVaults
from which vaults the recovery points can be chosen.Algorithm
(required) Valid values: "LATEST_WITHIN_WINDOW
" or "RANDOM_WITHIN_WINDOW
".Recovery point types
(required) Valid values: "SNAPSHOT
" and/or "CONTINUOUS
". IncludeSNAPSHOT
to restore only snapshot recovery points; includeCONTINUOUS
to restore continuous recovery points (point in time restore / PITR); use both to restore either a snapshot or a continuous recovery point. The recovery point will be determined by the value forAlgorithm
.IncludeVaults
(required). You must include one or more backup vaults. Use the wildcard ["*"] or specific ARNs.SelectionWindowDays
(optional) Value must be an integer (in days) from 1 to 365. If not included, the value defaults to30
.ExcludeVaults
(optional). You can choose to input one or more specific backup vault ARNs to exclude those vaults' contents from restore eligibility. Or, you can include a list of selectors. If this parameter and its value are not included, it defaults to empty list.Algorithm
— (String
)Acceptable values include "LATEST_WITHIN_WINDOW" or "RANDOM_WITHIN_WINDOW"
Possible values include:"LATEST_WITHIN_WINDOW"
"RANDOM_WITHIN_WINDOW"
ExcludeVaults
— (Array<String>
)Accepted values include specific ARNs or list of selectors. Defaults to empty list if not listed.
IncludeVaults
— (Array<String>
)Accepted values include wildcard [""] or by specific ARNs or ARN wilcard replacement ["arn:aws:backup:us-west-2:123456789012:backup-vault:asdf", ...] ["arn:aws:backup:::backup-vault:asdf-", ...]
RecoveryPointTypes
— (Array<String>
)These are the types of recovery points.
Include
SNAPSHOT
to restore only snapshot recovery points; includeCONTINUOUS
to restore continuous recovery points (point in time restore / PITR); use both to restore either a snapshot or a continuous recovery point. The recovery point will be determined by the value forAlgorithm
.SelectionWindowDays
— (Integer
)Accepted values are integers from 1 to 365.
RestoreTestingPlanName
— required — (String
)The RestoreTestingPlanName is a unique string that is the name of the restore testing plan. This cannot be changed after creation, and it must consist of only alphanumeric characters and underscores.
ScheduleExpression
— required — (String
)A CRON expression in specified timezone when a restore testing plan is executed.
ScheduleExpressionTimezone
— (String
)Optional. This is the timezone in which the schedule expression is set. By default, ScheduleExpressions are in UTC. You can modify this to a specified timezone.
StartWindowHours
— (Integer
)Defaults to 24 hours.
A value in hours after a restore test is scheduled before a job will be canceled if it doesn't start successfully. This value is optional. If this value is included, this parameter has a maximum value of 168 hours (one week).
Tags
— (map<String>
)The tags to assign to the restore testing plan.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:CreationTime
— (Date
)The date and time a restore testing plan was created, in Unix format and Coordinated Universal Time (UTC). The value of
CreationTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087AM.RestoreTestingPlanArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies the created restore testing plan.
RestoreTestingPlanName
— (String
)This unique string is the name of the restore testing plan.
The name cannot be changed after creation. The name consists of only alphanumeric characters and underscores. Maximum length is 50.
-
(AWS.Response)
—
Returns:
createRestoreTestingSelection(params = {}, callback) ⇒ AWS.Request
This request can be sent after CreateRestoreTestingPlan request returns successfully. This is the second part of creating a resource testing plan, and it must be completed sequentially.
This consists of
RestoreTestingSelectionName
,ProtectedResourceType
, and one of the following:-
ProtectedResourceArns
-
ProtectedResourceConditions
Each protected resource type can have one single value.
A restore testing selection can include a wildcard value ("*") for
ProtectedResourceArns
along withProtectedResourceConditions
. Alternatively, you can include up to 30 specific protected resource ARNs inProtectedResourceArns
.Cannot select by both protected resource types AND specific ARNs. Request will fail if both are included.
Service Reference:
Examples:
Calling the createRestoreTestingSelection operation
var params = { RestoreTestingPlanName: 'STRING_VALUE', /* required */ RestoreTestingSelection: { /* required */ IamRoleArn: 'STRING_VALUE', /* required */ ProtectedResourceType: 'STRING_VALUE', /* required */ RestoreTestingSelectionName: 'STRING_VALUE', /* required */ ProtectedResourceArns: [ 'STRING_VALUE', /* more items */ ], ProtectedResourceConditions: { StringEquals: [ { Key: 'STRING_VALUE', /* required */ Value: 'STRING_VALUE' /* required */ }, /* more items */ ], StringNotEquals: [ { Key: 'STRING_VALUE', /* required */ Value: 'STRING_VALUE' /* required */ }, /* more items */ ] }, RestoreMetadataOverrides: { '<String>': 'STRING_VALUE', /* '<String>': ... */ }, ValidationWindowHours: 'NUMBER_VALUE' }, CreatorRequestId: 'STRING_VALUE' }; backup.createRestoreTestingSelection(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
CreatorRequestId
— (String
)This is an optional unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
RestoreTestingPlanName
— (String
)Input the restore testing plan name that was returned from the related CreateRestoreTestingPlan request.
RestoreTestingSelection
— (map
)This consists of
RestoreTestingSelectionName
,ProtectedResourceType
, and one of the following:-
ProtectedResourceArns
-
ProtectedResourceConditions
Each protected resource type can have one single value.
A restore testing selection can include a wildcard value ("*") for
ProtectedResourceArns
along withProtectedResourceConditions
. Alternatively, you can include up to 30 specific protected resource ARNs inProtectedResourceArns
.IamRoleArn
— required — (String
)The Amazon Resource Name (ARN) of the IAM role that Backup uses to create the target resource; for example:
arn:aws:iam::123456789012:role/S3Access
.ProtectedResourceArns
— (Array<String>
)Each protected resource can be filtered by its specific ARNs, such as
ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
or by a wildcard:ProtectedResourceArns: ["*"]
, but not both.ProtectedResourceConditions
— (map
)If you have included the wildcard in ProtectedResourceArns, you can include resource conditions, such as
ProtectedResourceConditions: { StringEquals: [{ key: "XXXX", value: "YYYY" }]
.StringEquals
— (Array<map>
)Filters the values of your tagged resources for only those resources that you tagged with the same value. Also called "exact matching."
Key
— required — (String
)The tag key (String). The key can't start with
aws:
.Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern:
^(?![aA]{1}[wW]{1}[sS]{1}:)([\p{L}\p{Z}\p{N}_.:/=+-@]+)$
Value
— required — (String
)The value of the key.
Length Constraints: Maximum length of 256.
Pattern:
^([\p{L}\p{Z}\p{N}_.:/=+-@]*)$
StringNotEquals
— (Array<map>
)Filters the values of your tagged resources for only those resources that you tagged that do not have the same value. Also called "negated matching."
Key
— required — (String
)The tag key (String). The key can't start with
aws:
.Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern:
^(?![aA]{1}[wW]{1}[sS]{1}:)([\p{L}\p{Z}\p{N}_.:/=+-@]+)$
Value
— required — (String
)The value of the key.
Length Constraints: Maximum length of 256.
Pattern:
^([\p{L}\p{Z}\p{N}_.:/=+-@]*)$
ProtectedResourceType
— required — (String
)The type of Amazon Web Services resource included in a restore testing selection; for example, an Amazon EBS volume or an Amazon RDS database.
Supported resource types accepted include:
-
Aurora
for Amazon Aurora -
DocumentDB
for Amazon DocumentDB (with MongoDB compatibility) -
DynamoDB
for Amazon DynamoDB -
EBS
for Amazon Elastic Block Store -
EC2
for Amazon Elastic Compute Cloud -
EFS
for Amazon Elastic File System -
FSx
for Amazon FSx -
Neptune
for Amazon Neptune -
RDS
for Amazon Relational Database Service -
S3
for Amazon S3
-
RestoreMetadataOverrides
— (map<String>
)You can override certain restore metadata keys by including the parameter
RestoreMetadataOverrides
in the body ofRestoreTestingSelection
. Key values are not case sensitive.See the complete list of restore testing inferred metadata.
RestoreTestingSelectionName
— required — (String
)The unique name of the restore testing selection that belongs to the related restore testing plan.
ValidationWindowHours
— (Integer
)This is amount of hours (1 to 168) available to run a validation script on the data. The data will be deleted upon the completion of the validation script or the end of the specified retention period, whichever comes first.
-
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:CreationTime
— (Date
)The time that the resource testing selection was created.
RestoreTestingPlanArn
— (String
)The ARN of the restore testing plan with which the restore testing selection is associated.
RestoreTestingPlanName
— (String
)The name of the restore testing plan.
The name cannot be changed after creation. The name consists of only alphanumeric characters and underscores. Maximum length is 50.
RestoreTestingSelectionName
— (String
)The name of the restore testing selection for the related restore testing plan.
-
(AWS.Response)
—
Returns:
deleteBackupPlan(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the deleteBackupPlan operation
var params = { BackupPlanId: 'STRING_VALUE' /* required */ }; backup.deleteBackupPlan(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupPlanId
— (String
)Uniquely identifies a backup plan.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:BackupPlanId
— (String
)Uniquely identifies a backup plan.
BackupPlanArn
— (String
)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
.DeletionDate
— (Date
)The date and time a backup plan is deleted, in Unix format and Coordinated Universal Time (UTC). The value of
DeletionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.VersionId
— (String
)Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. Version IDs cannot be edited.
-
(AWS.Response)
—
Returns:
deleteBackupSelection(params = {}, callback) ⇒ AWS.Request
Deletes the resource selection associated with a backup plan that is specified by the
SelectionId
.Service Reference:
Examples:
Calling the deleteBackupSelection operation
var params = { BackupPlanId: 'STRING_VALUE', /* required */ SelectionId: 'STRING_VALUE' /* required */ }; backup.deleteBackupSelection(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupPlanId
— (String
)Uniquely identifies a backup plan.
SelectionId
— (String
)Uniquely identifies the body of a request to assign a set of resources to a backup plan.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deleteBackupVault(params = {}, callback) ⇒ AWS.Request
Deletes the backup vault identified by its name. A vault can be deleted only if it is empty.
Service Reference:
Examples:
Calling the deleteBackupVault operation
var params = { BackupVaultName: 'STRING_VALUE' /* required */ }; backup.deleteBackupVault(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupVaultName
— (String
)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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deleteBackupVaultAccessPolicy(params = {}, callback) ⇒ AWS.Request
Deletes the policy document that manages permissions on a backup vault.
Service Reference:
Examples:
Calling the deleteBackupVaultAccessPolicy operation
var params = { BackupVaultName: 'STRING_VALUE' /* required */ }; backup.deleteBackupVaultAccessPolicy(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupVaultName
— (String
)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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deleteBackupVaultLockConfiguration(params = {}, callback) ⇒ AWS.Request
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.Service Reference:
Examples:
Calling the deleteBackupVaultLockConfiguration operation
var params = { BackupVaultName: 'STRING_VALUE' /* required */ }; backup.deleteBackupVaultLockConfiguration(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupVaultName
— (String
)The name of the backup vault from which to delete Backup Vault Lock.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deleteBackupVaultNotifications(params = {}, callback) ⇒ AWS.Request
Deletes event notifications for the specified backup vault.
Service Reference:
Examples:
Calling the deleteBackupVaultNotifications operation
var params = { BackupVaultName: 'STRING_VALUE' /* required */ }; backup.deleteBackupVaultNotifications(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupVaultName
— (String
)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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deleteFramework(params = {}, callback) ⇒ AWS.Request
Deletes the framework specified by a framework name.
Service Reference:
Examples:
Calling the deleteFramework operation
var params = { FrameworkName: 'STRING_VALUE' /* required */ }; backup.deleteFramework(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
FrameworkName
— (String
)The unique name of a framework.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deleteRecoveryPoint(params = {}, callback) ⇒ AWS.Request
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.
When an IAM role's permissions are insufficient to call this API, the service sends back an HTTP 200 response with an empty HTTP body, but the recovery point is not deleted. Instead, it enters an
EXPIRED
state.EXPIRED
recovery points can be deleted with this API once the IAM role has theiam:CreateServiceLinkedRole
action. To learn more about adding this role, see Troubleshooting manual deletions.If the user or role is deleted or the permission within the role is removed, the deletion will not be successful and will enter an
EXPIRED
state.Service Reference:
Examples:
Calling the deleteRecoveryPoint operation
var params = { BackupVaultName: 'STRING_VALUE', /* required */ RecoveryPointArn: 'STRING_VALUE' /* required */ }; backup.deleteRecoveryPoint(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupVaultName
— (String
)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.
RecoveryPointArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deleteReportPlan(params = {}, callback) ⇒ AWS.Request
Deletes the report plan specified by a report plan name.
Service Reference:
Examples:
Calling the deleteReportPlan operation
var params = { ReportPlanName: 'STRING_VALUE' /* required */ }; backup.deleteReportPlan(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
ReportPlanName
— (String
)The unique name of a report plan.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deleteRestoreTestingPlan(params = {}, callback) ⇒ AWS.Request
This request deletes the specified restore testing plan.
Deletion can only successfully occur if all associated restore testing selections are deleted first.
Service Reference:
Examples:
Calling the deleteRestoreTestingPlan operation
var params = { RestoreTestingPlanName: 'STRING_VALUE' /* required */ }; backup.deleteRestoreTestingPlan(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
RestoreTestingPlanName
— (String
)Required unique name of the restore testing plan you wish to delete.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deleteRestoreTestingSelection(params = {}, callback) ⇒ AWS.Request
Input the Restore Testing Plan name and Restore Testing Selection name.
All testing selections associated with a restore testing plan must be deleted before the restore testing plan can be deleted.
Service Reference:
Examples:
Calling the deleteRestoreTestingSelection operation
var params = { RestoreTestingPlanName: 'STRING_VALUE', /* required */ RestoreTestingSelectionName: 'STRING_VALUE' /* required */ }; backup.deleteRestoreTestingSelection(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
RestoreTestingPlanName
— (String
)Required unique name of the restore testing plan that contains the restore testing selection you wish to delete.
RestoreTestingSelectionName
— (String
)Required unique name of the restore testing selection you wish to delete.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
describeBackupJob(params = {}, callback) ⇒ AWS.Request
Returns backup job details for the specified
BackupJobId
.Service Reference:
Examples:
Calling the describeBackupJob operation
var params = { BackupJobId: 'STRING_VALUE' /* required */ }; backup.describeBackupJob(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupJobId
— (String
)Uniquely identifies a request to Backup to back up a resource.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:AccountId
— (String
)Returns the account ID that owns the backup job.
BackupJobId
— (String
)Uniquely identifies a request to Backup to back up a resource.
BackupVaultName
— (String
)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.
BackupVaultArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.RecoveryPointArn
— (String
)An ARN that uniquely identifies a recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.ResourceArn
— (String
)An ARN that uniquely identifies a saved resource. The format of the ARN depends on the resource type.
CreationDate
— (Date
)The date and time that a backup job 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.CompletionDate
— (Date
)The date and time that a job to create a backup job is completed, in Unix format and Coordinated Universal Time (UTC). The value of
CompletionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.State
— (String
)The current state of a backup job.
Possible values include:"CREATED"
"PENDING"
"RUNNING"
"ABORTING"
"ABORTED"
"COMPLETED"
"FAILED"
"EXPIRED"
"PARTIAL"
StatusMessage
— (String
)A detailed message explaining the status of the job to back up a resource.
PercentDone
— (String
)Contains an estimated percentage that is complete of a job at the time the job status was queried.
BackupSizeInBytes
— (Integer
)The size, in bytes, of a backup.
IamRoleArn
— (String
)Specifies the IAM role ARN used to create the target recovery point; for example,
arn:aws:iam::123456789012:role/S3Access
.CreatedBy
— (map
)Contains identifying information about the creation of a backup job, including the
BackupPlanArn
,BackupPlanId
,BackupPlanVersion
, andBackupRuleId
of the backup plan that is used to create it.BackupPlanId
— (String
)Uniquely identifies a backup plan.
BackupPlanArn
— (String
)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
.BackupPlanVersion
— (String
)Version IDs are unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. They cannot be edited.
BackupRuleId
— (String
)Uniquely identifies a rule used to schedule the backup of a selection of resources.
ResourceType
— (String
)The type of Amazon Web Services resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.
BytesTransferred
— (Integer
)The size in bytes transferred to a backup vault at the time that the job status was queried.
ExpectedCompletionDate
— (Date
)The date and time that a job to back up resources is expected to be completed, in Unix format and Coordinated Universal Time (UTC). The value of
ExpectedCompletionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.StartBy
— (Date
)Specifies the time in Unix format and Coordinated Universal Time (UTC) when a backup job must be started before it is canceled. The value is calculated by adding the start window to the scheduled time. So if the scheduled time were 6:00 PM and the start window is 2 hours, the
StartBy
time would be 8:00 PM on the date specified. The value ofStartBy
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.BackupOptions
— (map<String>
)Represents the options specified as part of backup plan or on-demand backup job.
BackupType
— (String
)Represents the actual backup type selected for a backup job. For example, if a successful Windows Volume Shadow Copy Service (VSS) backup was taken,
BackupType
returns"WindowsVSS"
. IfBackupType
is empty, then the backup type was a regular backup.ParentJobId
— (String
)This returns the parent (composite) resource backup job ID.
IsParent
— (Boolean
)This returns the boolean value that a backup job is a parent (composite) job.
NumberOfChildJobs
— (Integer
)This returns the number of child (nested) backup jobs.
ChildJobsInState
— (map<Integer>
)This returns the statistics of the included child (nested) backup jobs.
ResourceName
— (String
)The non-unique name of the resource that belongs to the specified backup.
InitiationDate
— (Date
)The date a backup job was initiated.
MessageCategory
— (String
)The job count for the specified message category.
Example strings may include
AccessDenied
,SUCCESS
,AGGREGATE_ALL
, andINVALIDPARAMETERS
. View Monitoring for a list of accepted MessageCategory strings.
-
(AWS.Response)
—
Returns:
describeBackupVault(params = {}, callback) ⇒ AWS.Request
Returns metadata about a backup vault specified by its name.
Service Reference:
Examples:
Calling the describeBackupVault operation
var params = { BackupVaultName: 'STRING_VALUE', /* required */ BackupVaultAccountId: 'STRING_VALUE' }; backup.describeBackupVault(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupVaultName
— (String
)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.
BackupVaultAccountId
— (String
)The account ID of the specified backup vault.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:BackupVaultName
— (String
)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.
BackupVaultArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.VaultType
— (String
)The type of vault described.
Possible values include:"BACKUP_VAULT"
"LOGICALLY_AIR_GAPPED_BACKUP_VAULT"
VaultState
— (String
)The current state of the vault.->
Possible values include:"CREATING"
"AVAILABLE"
"FAILED"
EncryptionKeyArn
— (String
)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
.CreationDate
— (Date
)The date and time that 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.CreatorRequestId
— (String
)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.
NumberOfRecoveryPoints
— (Integer
)The number of recovery points that are stored in a backup vault.
Locked
— (Boolean
)A Boolean that indicates whether Backup Vault Lock is currently protecting the backup vault.
True
means that Vault Lock causes delete or update operations on the recovery points stored in the vault to fail.MinRetentionDays
— (Integer
)The Backup Vault Lock setting that specifies the minimum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock will not enforce a minimum retention period.
If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or longer than the minimum retention period. If the job's retention period is shorter than that minimum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected.
MaxRetentionDays
— (Integer
)The Backup Vault Lock setting that specifies the maximum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock does not enforce a maximum retention period on the recovery points in the vault (allowing indefinite storage).
If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or shorter than the maximum retention period. If the job's retention period is longer than that maximum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected.
LockDate
— (Date
)The date and time when Backup Vault Lock configuration cannot be changed or deleted.
If you applied Vault Lock to your vault without specifying a lock date, you can change any of your Vault Lock settings, or delete Vault Lock from the vault entirely, at any time.
This value is in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
-
(AWS.Response)
—
Returns:
describeCopyJob(params = {}, callback) ⇒ AWS.Request
Returns metadata associated with creating a copy of a resource.
Service Reference:
Examples:
Calling the describeCopyJob operation
var params = { CopyJobId: 'STRING_VALUE' /* required */ }; backup.describeCopyJob(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
CopyJobId
— (String
)Uniquely identifies a copy job.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:CopyJob
— (map
)Contains detailed information about a copy job.
AccountId
— (String
)The account ID that owns the copy job.
CopyJobId
— (String
)Uniquely identifies a copy job.
SourceBackupVaultArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a source copy vault; for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.SourceRecoveryPointArn
— (String
)An ARN that uniquely identifies a source recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.DestinationBackupVaultArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a destination copy vault; for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.DestinationRecoveryPointArn
— (String
)An ARN that uniquely identifies a destination recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.ResourceArn
— (String
)The Amazon Web Services resource to be copied; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.
CreationDate
— (Date
)The date and time a copy job 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.CompletionDate
— (Date
)The date and time a copy job is completed, in Unix format and Coordinated Universal Time (UTC). The value of
CompletionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.State
— (String
)The current state of a copy job.
Possible values include:"CREATED"
"RUNNING"
"COMPLETED"
"FAILED"
"PARTIAL"
StatusMessage
— (String
)A detailed message explaining the status of the job to copy a resource.
BackupSizeInBytes
— (Integer
)The size, in bytes, of a copy job.
IamRoleArn
— (String
)Specifies the IAM role ARN used to copy the target recovery point; for example,
arn:aws:iam::123456789012:role/S3Access
.CreatedBy
— (map
)Contains information about the backup plan and rule that Backup used to initiate the recovery point backup.
BackupPlanId
— (String
)Uniquely identifies a backup plan.
BackupPlanArn
— (String
)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
.BackupPlanVersion
— (String
)Version IDs are unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. They cannot be edited.
BackupRuleId
— (String
)Uniquely identifies a rule used to schedule the backup of a selection of resources.
ResourceType
— (String
)The type of Amazon Web Services resource to be copied; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.
ParentJobId
— (String
)This uniquely identifies a request to Backup to copy a resource. The return will be the parent (composite) job ID.
IsParent
— (Boolean
)This is a boolean value indicating this is a parent (composite) copy job.
CompositeMemberIdentifier
— (String
)The identifier of a resource within a composite group, such as nested (child) recovery point belonging to a composite (parent) stack. The ID is transferred from the logical ID within a stack.
NumberOfChildJobs
— (Integer
)The number of child (nested) copy jobs.
ChildJobsInState
— (map<Integer>
)This returns the statistics of the included child (nested) copy jobs.
ResourceName
— (String
)The non-unique name of the resource that belongs to the specified backup.
MessageCategory
— (String
)This parameter is the job count for the specified message category.
Example strings may include
AccessDenied
,SUCCESS
,AGGREGATE_ALL
, andInvalidParameters
. See Monitoring for a list of MessageCategory strings.The the value ANY returns count of all message categories.
AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum
-
(AWS.Response)
—
Returns:
describeFramework(params = {}, callback) ⇒ AWS.Request
Returns the framework details for the specified
FrameworkName
.Service Reference:
Examples:
Calling the describeFramework operation
var params = { FrameworkName: 'STRING_VALUE' /* required */ }; backup.describeFramework(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
FrameworkName
— (String
)The unique name of a framework.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:FrameworkName
— (String
)The unique name of a framework.
FrameworkArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
FrameworkDescription
— (String
)An optional description of the framework.
FrameworkControls
— (Array<map>
)The controls that make up the framework. Each control in the list has a name, input parameters, and scope.
ControlName
— required — (String
)The name of a control. This name is between 1 and 256 characters.
ControlInputParameters
— (Array<map>
)The name/value pairs.
ParameterName
— (String
)The name of a parameter, for example,
BackupPlanFrequency
.ParameterValue
— (String
)The value of parameter, for example,
hourly
.
ControlScope
— (map
)The scope of a control. The control scope defines what the control will evaluate. Three examples of control scopes are: a specific backup plan, all backup plans with a specific tag, or all backup plans.
For more information, see
ControlScope
.ComplianceResourceIds
— (Array<String>
)The ID of the only Amazon Web Services resource that you want your control scope to contain.
ComplianceResourceTypes
— (Array<String>
)Describes whether the control scope includes one or more types of resources, such as
EFS
orRDS
.Tags
— (map<String>
)The tag key-value pair applied to those Amazon Web Services resources that you want to trigger an evaluation for a rule. A maximum of one key-value pair can be provided. The tag value is optional, but it cannot be an empty string if you are creating or editing a framework from the console (though the value can be an empty string when included in a CloudFormation template).
The structure to assign a tag is:
[{"Key":"string","Value":"string"}]
.
CreationTime
— (Date
)The date and time that a framework is created, in ISO 8601 representation. The value of
CreationTime
is accurate to milliseconds. For example, 2020-07-10T15:00:00.000-08:00 represents the 10th of July 2020 at 3:00 PM 8 hours behind UTC.DeploymentStatus
— (String
)The deployment status of a framework. The statuses are:
CREATE_IN_PROGRESS | UPDATE_IN_PROGRESS | DELETE_IN_PROGRESS | COMPLETED | FAILED
FrameworkStatus
— (String
)A framework consists of one or more controls. Each control governs a resource, such as backup plans, backup selections, backup vaults, or recovery points. You can also turn Config recording on or off for each resource. The statuses are:
-
ACTIVE
when recording is turned on for all resources governed by the framework. -
PARTIALLY_ACTIVE
when recording is turned off for at least one resource governed by the framework. -
INACTIVE
when recording is turned off for all resources governed by the framework. -
UNAVAILABLE
when Backup is unable to validate recording status at this time.
-
IdempotencyToken
— (String
)A customer-chosen string that you can use to distinguish between otherwise identical calls to
DescribeFrameworkOutput
. Retrying a successful request with the same idempotency token results in a success message with no action taken.
-
(AWS.Response)
—
Returns:
describeGlobalSettings(params = {}, callback) ⇒ AWS.Request
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
Service Reference:
Examples:
Calling the describeGlobalSettings operation
var params = { }; backup.describeGlobalSettings(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
- params (Object) (defaults to: {})
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:GlobalSettings
— (map<String>
)The status of the flag
isCrossAccountBackupEnabled
.LastUpdateTime
— (Date
)The date and time that the flag
isCrossAccountBackupEnabled
was last updated. This update is in Unix format and Coordinated Universal Time (UTC). The value ofLastUpdateTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
-
(AWS.Response)
—
Returns:
describeProtectedResource(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the describeProtectedResource operation
var params = { ResourceArn: 'STRING_VALUE' /* required */ }; backup.describeProtectedResource(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
ResourceArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ResourceArn
— (String
)An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.
ResourceType
— (String
)The type of Amazon Web Services resource saved as a recovery point; for example, an Amazon EBS volume or an Amazon RDS database.
LastBackupTime
— (Date
)The date and time that a resource was last backed up, in Unix format and Coordinated Universal Time (UTC). The value of
LastBackupTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.ResourceName
— (String
)The name of the resource that belongs to the specified backup.
LastBackupVaultArn
— (String
)The ARN (Amazon Resource Name) of the backup vault that contains the most recent backup recovery point.
LastRecoveryPointArn
— (String
)The ARN (Amazon Resource Name) of the most recent recovery point.
LatestRestoreExecutionTimeMinutes
— (Integer
)The time, in minutes, that the most recent restore job took to complete.
LatestRestoreJobCreationDate
— (Date
)The creation date of the most recent restore job.
LatestRestoreRecoveryPointCreationDate
— (Date
)The date the most recent recovery point was created.
-
(AWS.Response)
—
Returns:
describeRecoveryPoint(params = {}, callback) ⇒ AWS.Request
Returns metadata associated with a recovery point, including ID, status, encryption, and lifecycle.
Service Reference:
Examples:
Calling the describeRecoveryPoint operation
var params = { BackupVaultName: 'STRING_VALUE', /* required */ RecoveryPointArn: 'STRING_VALUE', /* required */ BackupVaultAccountId: 'STRING_VALUE' }; backup.describeRecoveryPoint(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupVaultName
— (String
)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.
RecoveryPointArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.BackupVaultAccountId
— (String
)The account ID of the specified backup vault.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:RecoveryPointArn
— (String
)An ARN that uniquely identifies a recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.BackupVaultName
— (String
)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.
BackupVaultArn
— (String
)An ARN that uniquely identifies a backup vault; for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.SourceBackupVaultArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies the source vault where the resource was originally backed up in; for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
. If the recovery is restored to the same Amazon Web Services account or Region, this value will benull
.ResourceArn
— (String
)An ARN that uniquely identifies a saved resource. The format of the ARN depends on the resource type.
ResourceType
— (String
)The type of Amazon Web Services resource to save as a recovery point; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.
CreatedBy
— (map
)Contains identifying information about the creation of a recovery point, including the
BackupPlanArn
,BackupPlanId
,BackupPlanVersion
, andBackupRuleId
of the backup plan used to create it.BackupPlanId
— (String
)Uniquely identifies a backup plan.
BackupPlanArn
— (String
)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
.BackupPlanVersion
— (String
)Version IDs are unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. They cannot be edited.
BackupRuleId
— (String
)Uniquely identifies a rule used to schedule the backup of a selection of resources.
IamRoleArn
— (String
)Specifies the IAM role ARN used to create the target recovery point; for example,
arn:aws:iam::123456789012:role/S3Access
.Status
— (String
)A status code specifying the state of the recovery point.
PARTIAL
status indicates Backup could not create the recovery point before the backup window closed. To increase your backup plan window using the API, see UpdateBackupPlan. You can also increase your backup plan window using the Console by choosing and editing your backup plan.EXPIRED
status indicates that the recovery point has exceeded its retention period, but Backup lacks permission or is otherwise unable to delete it. To manually delete these recovery points, see Step 3: Delete the recovery points in the Clean up resources section of Getting started.STOPPED
status occurs on a continuous backup where a user has taken some action that causes the continuous backup to be disabled. This can be caused by the removal of permissions, turning off versioning, turning off events being sent to EventBridge, or disabling the EventBridge rules that are put in place by Backup. For recovery points of Amazon S3, Amazon RDS, and Amazon Aurora resources, this status occurs when the retention period of a continuous backup rule is changed.To resolve
STOPPED
status, ensure that all requested permissions are in place and that versioning is enabled on the S3 bucket. Once these conditions are met, the next instance of a backup rule running will result in a new continuous recovery point being created. The recovery points with STOPPED status do not need to be deleted.For SAP HANA on Amazon EC2
Possible values include:STOPPED
status occurs due to user action, application misconfiguration, or backup failure. To ensure that future continuous backups succeed, refer to the recovery point status and check SAP HANA for details."COMPLETED"
"PARTIAL"
"DELETING"
"EXPIRED"
StatusMessage
— (String
)A status message explaining the status of the recovery point.
CreationDate
— (Date
)The date and time that a recovery point 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.CompletionDate
— (Date
)The date and time that a job to create a recovery point is completed, in Unix format and Coordinated Universal Time (UTC). The value of
CompletionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.BackupSizeInBytes
— (Integer
)The size, in bytes, of a backup.
CalculatedLifecycle
— (map
)A
CalculatedLifecycle
object containingDeleteAt
andMoveToColdStorageAt
timestamps.MoveToColdStorageAt
— (Date
)A timestamp that specifies when to transition a recovery point to cold storage.
DeleteAt
— (Date
)A timestamp that specifies when to delete a recovery point.
Lifecycle
— (map
)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 that are transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” 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.
Resource types that can transition to cold storage are listed in the Feature availability by resource table. Backup ignores this expression for other resource types.
MoveToColdStorageAfterDays
— (Integer
)The number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)The number of days after creation that a recovery point is deleted. This value must be at least 90 days after the number of days specified in
MoveToColdStorageAfterDays
.OptInToArchiveForSupportedResources
— (Boolean
)If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
EncryptionKeyArn
— (String
)The server-side encryption key used to protect your backups; for example,
arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
.IsEncrypted
— (Boolean
)A Boolean value that is returned as
TRUE
if the specified recovery point is encrypted, orFALSE
if the recovery point is not encrypted.StorageClass
— (String
)Specifies the storage class of the recovery point. Valid values are
Possible values include:WARM
orCOLD
."WARM"
"COLD"
"DELETED"
LastRestoreTime
— (Date
)The date and time that a recovery point was last restored, in Unix format and Coordinated Universal Time (UTC). The value of
LastRestoreTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.ParentRecoveryPointArn
— (String
)This is an ARN that uniquely identifies a parent (composite) recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.CompositeMemberIdentifier
— (String
)The identifier of a resource within a composite group, such as nested (child) recovery point belonging to a composite (parent) stack. The ID is transferred from the logical ID within a stack.
IsParent
— (Boolean
)This returns the boolean value that a recovery point is a parent (composite) job.
ResourceName
— (String
)The name of the resource that belongs to the specified backup.
VaultType
— (String
)The type of vault in which the described recovery point is stored.
Possible values include:"BACKUP_VAULT"
"LOGICALLY_AIR_GAPPED_BACKUP_VAULT"
-
(AWS.Response)
—
Returns:
describeRegionSettings(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the describeRegionSettings operation
var params = { }; backup.describeRegionSettings(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
- params (Object) (defaults to: {})
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ResourceTypeOptInPreference
— (map<Boolean>
)The services along with the opt-in preferences in the Region.
ResourceTypeManagementPreference
— (map<Boolean>
)Returns whether Backup fully manages the backups for a resource type.
For the benefits of full Backup management, see Full Backup management.
For a list of resource types and whether each supports full Backup management, see the Feature availability by resource table.
If
"DynamoDB":false
, you can enable full Backup management for DynamoDB backup by enabling Backup's advanced DynamoDB backup features.
-
(AWS.Response)
—
Returns:
describeReportJob(params = {}, callback) ⇒ AWS.Request
Returns the details associated with creating a report as specified by its
ReportJobId
.Service Reference:
Examples:
Calling the describeReportJob operation
var params = { ReportJobId: 'STRING_VALUE' /* required */ }; backup.describeReportJob(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
ReportJobId
— (String
)The identifier of the report job. A unique, randomly generated, Unicode, UTF-8 encoded string that is at most 1,024 bytes long. The report job ID cannot be edited.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ReportJob
— (map
)The information about a report job, including its completion and creation times, report destination, unique report job ID, Amazon Resource Name (ARN), report template, status, and status message.
ReportJobId
— (String
)The identifier for a report job. A unique, randomly generated, Unicode, UTF-8 encoded string that is at most 1,024 bytes long. Report job IDs cannot be edited.
ReportPlanArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
ReportTemplate
— (String
)Identifies the report template for the report. Reports are built using a report template. The report templates are:
RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT
CreationTime
— (Date
)The date and time that a report job is created, in Unix format and Coordinated Universal Time (UTC). The value of
CreationTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.CompletionTime
— (Date
)The date and time that a report job is completed, in Unix format and Coordinated Universal Time (UTC). The value of
CompletionTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.Status
— (String
)The status of a report job. The statuses are:
CREATED | RUNNING | COMPLETED | FAILED
COMPLETED
means that the report is available for your review at your designated destination. If the status isFAILED
, review theStatusMessage
for the reason.StatusMessage
— (String
)A message explaining the status of the report job.
ReportDestination
— (map
)The S3 bucket name and S3 keys for the destination where the report job publishes the report.
S3BucketName
— (String
)The unique name of the Amazon S3 bucket that receives your reports.
S3Keys
— (Array<String>
)The object key that uniquely identifies your reports in your S3 bucket.
-
(AWS.Response)
—
Returns:
describeReportPlan(params = {}, callback) ⇒ AWS.Request
Returns a list of all report plans for an Amazon Web Services account and Amazon Web Services Region.
Service Reference:
Examples:
Calling the describeReportPlan operation
var params = { ReportPlanName: 'STRING_VALUE' /* required */ }; backup.describeReportPlan(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
ReportPlanName
— (String
)The unique name of a report plan.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ReportPlan
— (map
)Returns details about the report plan that is specified by its name. These details include the report plan's Amazon Resource Name (ARN), description, settings, delivery channel, deployment status, creation time, and last attempted and successful run times.
ReportPlanArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
ReportPlanName
— (String
)The unique name of the report plan. This name is between 1 and 256 characters starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
ReportPlanDescription
— (String
)An optional description of the report plan with a maximum 1,024 characters.
ReportSetting
— (map
)Identifies the report template for the report. Reports are built using a report template. The report templates are:
RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT
If the report template is
RESOURCE_COMPLIANCE_REPORT
orCONTROL_COMPLIANCE_REPORT
, this API resource also describes the report coverage by Amazon Web Services Regions and frameworks.ReportTemplate
— required — (String
)Identifies the report template for the report. Reports are built using a report template. The report templates are:
RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT
FrameworkArns
— (Array<String>
)The Amazon Resource Names (ARNs) of the frameworks a report covers.
NumberOfFrameworks
— (Integer
)The number of frameworks a report covers.
Accounts
— (Array<String>
)These are the accounts to be included in the report.
Use string value of
ROOT
to include all organizational units.OrganizationUnits
— (Array<String>
)These are the Organizational Units to be included in the report.
Regions
— (Array<String>
)These are the Regions to be included in the report.
Use the wildcard as the string value to include all Regions.
ReportDeliveryChannel
— (map
)Contains information about where and how to deliver your reports, specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your reports.
S3BucketName
— required — (String
)The unique name of the S3 bucket that receives your reports.
S3KeyPrefix
— (String
)The prefix for where Backup Audit Manager delivers your reports to Amazon S3. The prefix is this part of the following path: s3://your-bucket-name/
prefix
/Backup/us-west-2/year/month/day/report-name. If not specified, there is no prefix.Formats
— (Array<String>
)The format of your reports:
CSV
,JSON
, or both. If not specified, the default format isCSV
.
DeploymentStatus
— (String
)The deployment status of a report plan. The statuses are:
CREATE_IN_PROGRESS | UPDATE_IN_PROGRESS | DELETE_IN_PROGRESS | COMPLETED
CreationTime
— (Date
)The date and time that a report plan is created, in Unix format and Coordinated Universal Time (UTC). The value of
CreationTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.LastAttemptedExecutionTime
— (Date
)The date and time that a report job associated with this report plan last attempted to run, in Unix format and Coordinated Universal Time (UTC). The value of
LastAttemptedExecutionTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.LastSuccessfulExecutionTime
— (Date
)The date and time that a report job associated with this report plan last successfully ran, in Unix format and Coordinated Universal Time (UTC). The value of
LastSuccessfulExecutionTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
-
(AWS.Response)
—
Returns:
describeRestoreJob(params = {}, callback) ⇒ AWS.Request
Returns metadata associated with a restore job that is specified by a job ID.
Service Reference:
Examples:
Calling the describeRestoreJob operation
var params = { RestoreJobId: 'STRING_VALUE' /* required */ }; backup.describeRestoreJob(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
RestoreJobId
— (String
)Uniquely identifies the job that restores a recovery point.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:AccountId
— (String
)Returns the account ID that owns the restore job.
RestoreJobId
— (String
)Uniquely identifies the job that restores a recovery point.
RecoveryPointArn
— (String
)An ARN that uniquely identifies a recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.CreationDate
— (Date
)The date and time that a restore job 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.CompletionDate
— (Date
)The date and time that a job to restore a recovery point is completed, in Unix format and Coordinated Universal Time (UTC). The value of
CompletionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.Status
— (String
)Status code specifying the state of the job that is initiated by Backup to restore a recovery point.
Possible values include:"PENDING"
"RUNNING"
"COMPLETED"
"ABORTED"
"FAILED"
StatusMessage
— (String
)A message showing the status of a job to restore a recovery point.
PercentDone
— (String
)Contains an estimated percentage that is complete of a job at the time the job status was queried.
BackupSizeInBytes
— (Integer
)The size, in bytes, of the restored resource.
IamRoleArn
— (String
)Specifies the IAM role ARN used to create the target recovery point; for example,
arn:aws:iam::123456789012:role/S3Access
.ExpectedCompletionTimeMinutes
— (Integer
)The amount of time in minutes that a job restoring a recovery point is expected to take.
CreatedResourceArn
— (String
)The Amazon Resource Name (ARN) of the resource that was created by the restore job.
The format of the ARN depends on the resource type of the backed-up resource.
ResourceType
— (String
)Returns metadata associated with a restore job listed by resource type.
RecoveryPointCreationDate
— (Date
)The creation date of the recovery point made by the specifed restore job.
CreatedBy
— (map
)Contains identifying information about the creation of a restore job.
RestoreTestingPlanArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a restore testing plan.
ValidationStatus
— (String
)The status of validation run on the indicated restore job.
Possible values include:"FAILED"
"SUCCESSFUL"
"TIMED_OUT"
"VALIDATING"
ValidationStatusMessage
— (String
)The status message.
DeletionStatus
— (String
)The status of the data generated by the restore test.
Possible values include:"DELETING"
"FAILED"
"SUCCESSFUL"
DeletionStatusMessage
— (String
)This describes the restore job deletion status.
-
(AWS.Response)
—
Returns:
disassociateRecoveryPoint(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the disassociateRecoveryPoint operation
var params = { BackupVaultName: 'STRING_VALUE', /* required */ RecoveryPointArn: 'STRING_VALUE' /* required */ }; backup.disassociateRecoveryPoint(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupVaultName
— (String
)The unique name of an Backup vault.
RecoveryPointArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies an Backup recovery point.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
disassociateRecoveryPointFromParent(params = {}, callback) ⇒ AWS.Request
This action to a specific child (nested) recovery point removes the relationship between the specified recovery point and its parent (composite) recovery point.
Service Reference:
Examples:
Calling the disassociateRecoveryPointFromParent operation
var params = { BackupVaultName: 'STRING_VALUE', /* required */ RecoveryPointArn: 'STRING_VALUE' /* required */ }; backup.disassociateRecoveryPointFromParent(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupVaultName
— (String
)The name of a logical container where the child (nested) recovery point is 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.
RecoveryPointArn
— (String
)The Amazon Resource Name (ARN) that uniquely identifies the child (nested) recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
exportBackupPlanTemplate(params = {}, callback) ⇒ AWS.Request
Returns the backup plan that is specified by the plan ID as a backup template.
Service Reference:
Examples:
Calling the exportBackupPlanTemplate operation
var params = { BackupPlanId: 'STRING_VALUE' /* required */ }; backup.exportBackupPlanTemplate(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupPlanId
— (String
)Uniquely identifies a backup plan.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:BackupPlanTemplateJson
— (String
)The body of a backup plan template in JSON format.
Note: This is a signed JSON document that cannot be modified before being passed toGetBackupPlanFromJSON.
-
(AWS.Response)
—
Returns:
getBackupPlan(params = {}, callback) ⇒ AWS.Request
Returns
BackupPlan
details for the specifiedBackupPlanId
. The details are the body of a backup plan in JSON format, in addition to plan metadata.Service Reference:
Examples:
Calling the getBackupPlan operation
var params = { BackupPlanId: 'STRING_VALUE', /* required */ VersionId: 'STRING_VALUE' }; backup.getBackupPlan(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupPlanId
— (String
)Uniquely identifies a backup plan.
VersionId
— (String
)Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. Version IDs cannot be edited.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:BackupPlan
— (map
)Specifies the body of a backup plan. Includes a
BackupPlanName
and one or more sets ofRules
.BackupPlanName
— required — (String
)The display name of a backup plan. Must contain only alphanumeric or '-_.' special characters.
If this is set in the console, it can contain 1 to 50 characters; if this is set through CLI or API, it can contain 1 to 200 characters.
Rules
— required — (Array<map>
)An array of
BackupRule
objects, each of which specifies a scheduled task that is used to back up a selection of resources.RuleName
— required — (String
)A display name for a backup rule. Must contain 1 to 50 alphanumeric or '-_.' characters.
TargetBackupVaultName
— required — (String
)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.
ScheduleExpression
— (String
)A cron expression in UTC specifying when Backup initiates a backup job. For more information about Amazon Web Services cron expressions, see Schedule Expressions for Rules in the Amazon CloudWatch Events User Guide.. Two examples of Amazon Web Services cron expressions are
15 * ? * * *
(take a backup every hour at 15 minutes past the hour) and0 12 * * ? *
(take a backup every day at 12 noon UTC). For a table of examples, click the preceding link and scroll down the page.StartWindowMinutes
— (Integer
)A value in minutes after a backup is scheduled before a job will be canceled if it doesn't start successfully. This value is optional. If this value is included, it must be at least 60 minutes to avoid errors.
During the start window, the backup job status remains in
CREATED
status until it has successfully begun or until the start window time has run out. If within the start window time Backup receives an error that allows the job to be retried, Backup will automatically retry to begin the job at least every 10 minutes until the backup successfully begins (the job status changes toRUNNING
) or until the job status changes toEXPIRED
(which is expected to occur when the start window time is over).CompletionWindowMinutes
— (Integer
)A value in minutes after a backup job is successfully started before it must be completed or it will be canceled by Backup. This value is optional.
Lifecycle
— (map
)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 “retention” 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.
Resource types that can transition to cold storage are listed in the Feature availability by resource table. Backup ignores this expression for other resource types.
MoveToColdStorageAfterDays
— (Integer
)The number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)The number of days after creation that a recovery point is deleted. This value must be at least 90 days after the number of days specified in
MoveToColdStorageAfterDays
.OptInToArchiveForSupportedResources
— (Boolean
)If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
RecoveryPointTags
— (map<String>
)The tags that are assigned to resources that are associated with this rule when restored from backup.
RuleId
— (String
)Uniquely identifies a rule that is used to schedule the backup of a selection of resources.
CopyActions
— (Array<map>
)An array of
CopyAction
objects, which contains the details of the copy operation.Lifecycle
— (map
)Specifies the time period, in days, before a recovery point transitions to cold storage or is deleted.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, on the console, the retention setting must be 90 days greater than the transition to cold after days setting. The transition to cold after days setting can't be changed after a backup has been transitioned to cold.
Resource types that can transition to cold storage are listed in the Feature availability by resource table. Backup ignores this expression for other resource types.
To remove the existing lifecycle and retention periods and keep your recovery points indefinitely, specify -1 for
MoveToColdStorageAfterDays
andDeleteAfterDays
.MoveToColdStorageAfterDays
— (Integer
)The number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)The number of days after creation that a recovery point is deleted. This value must be at least 90 days after the number of days specified in
MoveToColdStorageAfterDays
.OptInToArchiveForSupportedResources
— (Boolean
)If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
DestinationBackupVaultArn
— required — (String
)An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup. For example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.
EnableContinuousBackup
— (Boolean
)Specifies whether Backup creates continuous backups. True causes Backup to create continuous backups capable of point-in-time restore (PITR). False (or not specified) causes Backup to create snapshot backups.
ScheduleExpressionTimezone
— (String
)The timezone in which the schedule expression is set. By default, ScheduleExpressions are in UTC. You can modify this to a specified timezone.
AdvancedBackupSettings
— (Array<map>
)Contains a list of
BackupOptions
for each resource type.ResourceType
— (String
)Specifies an object containing resource type and backup options. The only supported resource type is Amazon EC2 instances with Windows Volume Shadow Copy Service (VSS). For a CloudFormation example, see the sample CloudFormation template to enable Windows VSS in the Backup User Guide.
Valid values:
EC2
.BackupOptions
— (map<String>
)Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs.
Valid values:
Set to
"WindowsVSS":"enabled"
to enable theWindowsVSS
backup option and create a Windows VSS backup.Set to
"WindowsVSS":"disabled"
to create a regular backup. TheWindowsVSS
option is not enabled by default.If you specify an invalid option, you get an
InvalidParameterValueException
exception.For more information about Windows VSS backups, see Creating a VSS-Enabled Windows Backup.
BackupPlanId
— (String
)Uniquely identifies a backup plan.
BackupPlanArn
— (String
)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
.VersionId
— (String
)Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. Version IDs cannot be edited.
CreatorRequestId
— (String
)A unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice.
CreationDate
— (Date
)The date and time that 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.DeletionDate
— (Date
)The date and time that a backup plan is deleted, in Unix format and Coordinated Universal Time (UTC). The value of
DeletionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.LastExecutionDate
— (Date
)The last time this backup plan was run. A date and time, in Unix format and Coordinated Universal Time (UTC). The value of
LastExecutionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.AdvancedBackupSettings
— (Array<map>
)Contains a list of
BackupOptions
for each resource type. The list is populated only if the advanced option is set for the backup plan.ResourceType
— (String
)Specifies an object containing resource type and backup options. The only supported resource type is Amazon EC2 instances with Windows Volume Shadow Copy Service (VSS). For a CloudFormation example, see the sample CloudFormation template to enable Windows VSS in the Backup User Guide.
Valid values:
EC2
.BackupOptions
— (map<String>
)Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs.
Valid values:
Set to
"WindowsVSS":"enabled"
to enable theWindowsVSS
backup option and create a Windows VSS backup.Set to
"WindowsVSS":"disabled"
to create a regular backup. TheWindowsVSS
option is not enabled by default.If you specify an invalid option, you get an
InvalidParameterValueException
exception.For more information about Windows VSS backups, see Creating a VSS-Enabled Windows Backup.
-
(AWS.Response)
—
Returns:
getBackupPlanFromJSON(params = {}, callback) ⇒ AWS.Request
Returns a valid JSON document specifying a backup plan or an error.
Service Reference:
Examples:
Calling the getBackupPlanFromJSON operation
var params = { BackupPlanTemplateJson: 'STRING_VALUE' /* required */ }; backup.getBackupPlanFromJSON(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupPlanTemplateJson
— (String
)A customer-supplied backup plan document in JSON format.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:BackupPlan
— (map
)Specifies the body of a backup plan. Includes a
BackupPlanName
and one or more sets ofRules
.BackupPlanName
— required — (String
)The display name of a backup plan. Must contain only alphanumeric or '-_.' special characters.
If this is set in the console, it can contain 1 to 50 characters; if this is set through CLI or API, it can contain 1 to 200 characters.
Rules
— required — (Array<map>
)An array of
BackupRule
objects, each of which specifies a scheduled task that is used to back up a selection of resources.RuleName
— required — (String
)A display name for a backup rule. Must contain 1 to 50 alphanumeric or '-_.' characters.
TargetBackupVaultName
— required — (String
)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.
ScheduleExpression
— (String
)A cron expression in UTC specifying when Backup initiates a backup job. For more information about Amazon Web Services cron expressions, see Schedule Expressions for Rules in the Amazon CloudWatch Events User Guide.. Two examples of Amazon Web Services cron expressions are
15 * ? * * *
(take a backup every hour at 15 minutes past the hour) and0 12 * * ? *
(take a backup every day at 12 noon UTC). For a table of examples, click the preceding link and scroll down the page.StartWindowMinutes
— (Integer
)A value in minutes after a backup is scheduled before a job will be canceled if it doesn't start successfully. This value is optional. If this value is included, it must be at least 60 minutes to avoid errors.
During the start window, the backup job status remains in
CREATED
status until it has successfully begun or until the start window time has run out. If within the start window time Backup receives an error that allows the job to be retried, Backup will automatically retry to begin the job at least every 10 minutes until the backup successfully begins (the job status changes toRUNNING
) or until the job status changes toEXPIRED
(which is expected to occur when the start window time is over).CompletionWindowMinutes
— (Integer
)A value in minutes after a backup job is successfully started before it must be completed or it will be canceled by Backup. This value is optional.
Lifecycle
— (map
)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 “retention” 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.
Resource types that can transition to cold storage are listed in the Feature availability by resource table. Backup ignores this expression for other resource types.
MoveToColdStorageAfterDays
— (Integer
)The number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)The number of days after creation that a recovery point is deleted. This value must be at least 90 days after the number of days specified in
MoveToColdStorageAfterDays
.OptInToArchiveForSupportedResources
— (Boolean
)If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
RecoveryPointTags
— (map<String>
)The tags that are assigned to resources that are associated with this rule when restored from backup.
RuleId
— (String
)Uniquely identifies a rule that is used to schedule the backup of a selection of resources.
CopyActions
— (Array<map>
)An array of
CopyAction
objects, which contains the details of the copy operation.Lifecycle
— (map
)Specifies the time period, in days, before a recovery point transitions to cold storage or is deleted.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, on the console, the retention setting must be 90 days greater than the transition to cold after days setting. The transition to cold after days setting can't be changed after a backup has been transitioned to cold.
Resource types that can transition to cold storage are listed in the Feature availability by resource table. Backup ignores this expression for other resource types.
To remove the existing lifecycle and retention periods and keep your recovery points indefinitely, specify -1 for
MoveToColdStorageAfterDays
andDeleteAfterDays
.MoveToColdStorageAfterDays
— (Integer
)The number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)The number of days after creation that a recovery point is deleted. This value must be at least 90 days after the number of days specified in
MoveToColdStorageAfterDays
.OptInToArchiveForSupportedResources
— (Boolean
)If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
DestinationBackupVaultArn
— required — (String
)An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup. For example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.
EnableContinuousBackup
— (Boolean
)Specifies whether Backup creates continuous backups. True causes Backup to create continuous backups capable of point-in-time restore (PITR). False (or not specified) causes Backup to create snapshot backups.
ScheduleExpressionTimezone
— (String
)The timezone in which the schedule expression is set. By default, ScheduleExpressions are in UTC. You can modify this to a specified timezone.
AdvancedBackupSettings
— (Array<map>
)Contains a list of
BackupOptions
for each resource type.ResourceType
— (String
)Specifies an object containing resource type and backup options. The only supported resource type is Amazon EC2 instances with Windows Volume Shadow Copy Service (VSS). For a CloudFormation example, see the sample CloudFormation template to enable Windows VSS in the Backup User Guide.
Valid values:
EC2
.BackupOptions
— (map<String>
)Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs.
Valid values:
Set to
"WindowsVSS":"enabled"
to enable theWindowsVSS
backup option and create a Windows VSS backup.Set to
"WindowsVSS":"disabled"
to create a regular backup. TheWindowsVSS
option is not enabled by default.If you specify an invalid option, you get an
InvalidParameterValueException
exception.For more information about Windows VSS backups, see Creating a VSS-Enabled Windows Backup.
-
(AWS.Response)
—
Returns:
getBackupPlanFromTemplate(params = {}, callback) ⇒ AWS.Request
Returns the template specified by its
templateId
as a backup plan.Service Reference:
Examples:
Calling the getBackupPlanFromTemplate operation
var params = { BackupPlanTemplateId: 'STRING_VALUE' /* required */ }; backup.getBackupPlanFromTemplate(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupPlanTemplateId
— (String
)Uniquely identifies a stored backup plan template.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:BackupPlanDocument
— (map
)Returns the body of a backup plan based on the target template, including the name, rules, and backup vault of the plan.
BackupPlanName
— required — (String
)The display name of a backup plan. Must contain only alphanumeric or '-_.' special characters.
If this is set in the console, it can contain 1 to 50 characters; if this is set through CLI or API, it can contain 1 to 200 characters.
Rules
— required — (Array<map>
)An array of
BackupRule
objects, each of which specifies a scheduled task that is used to back up a selection of resources.RuleName
— required — (String
)A display name for a backup rule. Must contain 1 to 50 alphanumeric or '-_.' characters.
TargetBackupVaultName
— required — (String
)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.
ScheduleExpression
— (String
)A cron expression in UTC specifying when Backup initiates a backup job. For more information about Amazon Web Services cron expressions, see Schedule Expressions for Rules in the Amazon CloudWatch Events User Guide.. Two examples of Amazon Web Services cron expressions are
15 * ? * * *
(take a backup every hour at 15 minutes past the hour) and0 12 * * ? *
(take a backup every day at 12 noon UTC). For a table of examples, click the preceding link and scroll down the page.StartWindowMinutes
— (Integer
)A value in minutes after a backup is scheduled before a job will be canceled if it doesn't start successfully. This value is optional. If this value is included, it must be at least 60 minutes to avoid errors.
During the start window, the backup job status remains in
CREATED
status until it has successfully begun or until the start window time has run out. If within the start window time Backup receives an error that allows the job to be retried, Backup will automatically retry to begin the job at least every 10 minutes until the backup successfully begins (the job status changes toRUNNING
) or until the job status changes toEXPIRED
(which is expected to occur when the start window time is over).CompletionWindowMinutes
— (Integer
)A value in minutes after a backup job is successfully started before it must be completed or it will be canceled by Backup. This value is optional.
Lifecycle
— (map
)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 “retention” 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.
Resource types that can transition to cold storage are listed in the Feature availability by resource table. Backup ignores this expression for other resource types.
MoveToColdStorageAfterDays
— (Integer
)The number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)The number of days after creation that a recovery point is deleted. This value must be at least 90 days after the number of days specified in
MoveToColdStorageAfterDays
.OptInToArchiveForSupportedResources
— (Boolean
)If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
RecoveryPointTags
— (map<String>
)The tags that are assigned to resources that are associated with this rule when restored from backup.
RuleId
— (String
)Uniquely identifies a rule that is used to schedule the backup of a selection of resources.
CopyActions
— (Array<map>
)An array of
CopyAction
objects, which contains the details of the copy operation.Lifecycle
— (map
)Specifies the time period, in days, before a recovery point transitions to cold storage or is deleted.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, on the console, the retention setting must be 90 days greater than the transition to cold after days setting. The transition to cold after days setting can't be changed after a backup has been transitioned to cold.
Resource types that can transition to cold storage are listed in the Feature availability by resource table. Backup ignores this expression for other resource types.
To remove the existing lifecycle and retention periods and keep your recovery points indefinitely, specify -1 for
MoveToColdStorageAfterDays
andDeleteAfterDays
.MoveToColdStorageAfterDays
— (Integer
)The number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)The number of days after creation that a recovery point is deleted. This value must be at least 90 days after the number of days specified in
MoveToColdStorageAfterDays
.OptInToArchiveForSupportedResources
— (Boolean
)If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
DestinationBackupVaultArn
— required — (String
)An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup. For example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.
EnableContinuousBackup
— (Boolean
)Specifies whether Backup creates continuous backups. True causes Backup to create continuous backups capable of point-in-time restore (PITR). False (or not specified) causes Backup to create snapshot backups.
ScheduleExpressionTimezone
— (String
)The timezone in which the schedule expression is set. By default, ScheduleExpressions are in UTC. You can modify this to a specified timezone.
AdvancedBackupSettings
— (Array<map>
)Contains a list of
BackupOptions
for each resource type.ResourceType
— (String
)Specifies an object containing resource type and backup options. The only supported resource type is Amazon EC2 instances with Windows Volume Shadow Copy Service (VSS). For a CloudFormation example, see the sample CloudFormation template to enable Windows VSS in the Backup User Guide.
Valid values:
EC2
.BackupOptions
— (map<String>
)Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs.
Valid values:
Set to
"WindowsVSS":"enabled"
to enable theWindowsVSS
backup option and create a Windows VSS backup.Set to
"WindowsVSS":"disabled"
to create a regular backup. TheWindowsVSS
option is not enabled by default.If you specify an invalid option, you get an
InvalidParameterValueException
exception.For more information about Windows VSS backups, see Creating a VSS-Enabled Windows Backup.
-
(AWS.Response)
—
Returns:
getBackupSelection(params = {}, callback) ⇒ AWS.Request
Returns selection metadata and a document in JSON format that specifies a list of resources that are associated with a backup plan.
Service Reference:
Examples:
Calling the getBackupSelection operation
var params = { BackupPlanId: 'STRING_VALUE', /* required */ SelectionId: 'STRING_VALUE' /* required */ }; backup.getBackupSelection(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupPlanId
— (String
)Uniquely identifies a backup plan.
SelectionId
— (String
)Uniquely identifies the body of a request to assign a set of resources to a backup plan.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:BackupSelection
— (map
)Specifies the body of a request to assign a set of resources to a backup plan.
SelectionName
— required — (String
)The display name of a resource selection document. Must contain 1 to 50 alphanumeric or '-_.' characters.
IamRoleArn
— required — (String
)The ARN of the IAM role that Backup uses to authenticate when backing up the target resource; for example,
arn:aws:iam::123456789012:role/S3Access
.Resources
— (Array<String>
)The Amazon Resource Names (ARNs) of the resources to assign to a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
If you need to assign many resources to a backup plan, consider a different resource selection strategy, such as assigning all resources of a resource type or refining your resource selection using tags.
If you specify multiple ARNs, the resources much match any of the ARNs (OR logic).
ListOfTags
— (Array<map>
)The conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "backup", "ConditionValue": "daily"}
.ListOfTags
supports onlyStringEquals
. Condition operators are case sensitive.If you specify multiple conditions, the resources much match any of the conditions (OR logic).
ConditionType
— required — (String
)An operation applied to a key-value pair used to assign resources to your backup plan. Condition only supports
Possible values include:StringEquals
. For more flexible assignment options, includingStringLike
and the ability to exclude resources from your backup plan, useConditions
(with an "s" on the end) for yourBackupSelection
."STRINGEQUALS"
ConditionKey
— required — (String
)The key in a key-value pair. For example, in the tag
Department: Accounting
,Department
is the key.ConditionValue
— required — (String
)The value in a key-value pair. For example, in the tag
Department: Accounting
,Accounting
is the value.
NotResources
— (Array<String>
)The Amazon Resource Names (ARNs) of the resources to exclude from a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
If you need to exclude many resources from a backup plan, consider a different resource selection strategy, such as assigning only one or a few resource types or refining your resource selection using tags.
Conditions
— (map
)The conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "aws:ResourceTag/backup", "ConditionValue": "daily" }
.Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
. Condition operators are case sensitive.If you specify multiple conditions, the resources much match all conditions (AND logic).
StringEquals
— (Array<map>
)Filters the values of your tagged resources for only those resources that you tagged with the same value. Also called "exact matching."
ConditionKey
— (String
)The key in a key-value pair. For example, in the tag
Department: Accounting
,Department
is the key.ConditionValue
— (String
)The value in a key-value pair. For example, in the tag
Department: Accounting
,Accounting
is the value.
StringNotEquals
— (Array<map>
)Filters the values of your tagged resources for only those resources that you tagged that do not have the same value. Also called "negated matching."
ConditionKey
— (String
)The key in a key-value pair. For example, in the tag
Department: Accounting
,Department
is the key.ConditionValue
— (String
)The value in a key-value pair. For example, in the tag
Department: Accounting
,Accounting
is the value.
StringLike
— (Array<map>
)Filters the values of your tagged resources for matching tag values with the use of a wildcard character () anywhere in the string. For example, "prod" or "rod" matches the tag value "production".
ConditionKey
— (String
)The key in a key-value pair. For example, in the tag
Department: Accounting
,Department
is the key.ConditionValue
— (String
)The value in a key-value pair. For example, in the tag
Department: Accounting
,Accounting
is the value.
StringNotLike
— (Array<map>
)Filters the values of your tagged resources for non-matching tag values with the use of a wildcard character (*) anywhere in the string.
ConditionKey
— (String
)The key in a key-value pair. For example, in the tag
Department: Accounting
,Department
is the key.ConditionValue
— (String
)The value in a key-value pair. For example, in the tag
Department: Accounting
,Accounting
is the value.
SelectionId
— (String
)Uniquely identifies the body of a request to assign a set of resources to a backup plan.
BackupPlanId
— (String
)Uniquely identifies a backup plan.
CreationDate
— (Date
)The date and time a backup selection 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.CreatorRequestId
— (String
)A unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice.
-
(AWS.Response)
—
Returns:
getBackupVaultAccessPolicy(params = {}, callback) ⇒ AWS.Request
Returns the access policy document that is associated with the named backup vault.
Service Reference:
Examples:
Calling the getBackupVaultAccessPolicy operation
var params = { BackupVaultName: 'STRING_VALUE' /* required */ }; backup.getBackupVaultAccessPolicy(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupVaultName
— (String
)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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:BackupVaultName
— (String
)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.
BackupVaultArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.Policy
— (String
)The backup vault access policy document in JSON format.
-
(AWS.Response)
—
Returns:
getBackupVaultNotifications(params = {}, callback) ⇒ AWS.Request
Returns event notifications for the specified backup vault.
Service Reference:
Examples:
Calling the getBackupVaultNotifications operation
var params = { BackupVaultName: 'STRING_VALUE' /* required */ }; backup.getBackupVaultNotifications(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupVaultName
— (String
)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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:BackupVaultName
— (String
)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.
BackupVaultArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.SNSTopicArn
— (String
)An ARN that uniquely identifies an Amazon Simple Notification Service (Amazon SNS) topic; for example,
arn:aws:sns:us-west-2:111122223333:MyTopic
.BackupVaultEvents
— (Array<String>
)An array of events that indicate the status of jobs to back up resources to the backup vault.
-
(AWS.Response)
—
Returns:
getLegalHold(params = {}, callback) ⇒ AWS.Request
This action returns details for a specified legal hold. The details are the body of a legal hold in JSON format, in addition to metadata.
Service Reference:
Examples:
Calling the getLegalHold operation
var params = { LegalHoldId: 'STRING_VALUE' /* required */ }; backup.getLegalHold(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
LegalHoldId
— (String
)The ID of the legal hold.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Title
— (String
)The title of the legal hold.
Status
— (String
)The status of the legal hold.
Possible values include:"CREATING"
"ACTIVE"
"CANCELING"
"CANCELED"
Description
— (String
)The description of the legal hold.
CancelDescription
— (String
)The reason for removing the legal hold.
LegalHoldId
— (String
)The ID of the legal hold.
LegalHoldArn
— (String
)The framework ARN for the specified legal hold. The format of the ARN depends on the resource type.
CreationDate
— (Date
)The time when the legal hold was created.
CancellationDate
— (Date
)The time when the legal hold was cancelled.
RetainRecordUntil
— (Date
)The date and time until which the legal hold record is retained.
RecoveryPointSelection
— (map
)The criteria to assign a set of resources, such as resource types or backup vaults.
VaultNames
— (Array<String>
)These are the names of the vaults in which the selected recovery points are contained.
ResourceIdentifiers
— (Array<String>
)These are the resources included in the resource selection (including type of resources and vaults).
DateRange
— (map
)This is a resource filter containing FromDate: DateTime and ToDate: DateTime. Both values are required. Future DateTime values are not permitted.
The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds ((milliseconds are optional). For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
FromDate
— required — (Date
)This value is the beginning date, inclusive.
The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds (milliseconds are optional).
ToDate
— required — (Date
)This value is the end date, inclusive.
The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds (milliseconds are optional).
-
(AWS.Response)
—
Returns:
getRecoveryPointRestoreMetadata(params = {}, callback) ⇒ AWS.Request
Returns a set of metadata key-value pairs that were used to create the backup.
Service Reference:
Examples:
Calling the getRecoveryPointRestoreMetadata operation
var params = { BackupVaultName: 'STRING_VALUE', /* required */ RecoveryPointArn: 'STRING_VALUE', /* required */ BackupVaultAccountId: 'STRING_VALUE' }; backup.getRecoveryPointRestoreMetadata(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupVaultName
— (String
)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.
RecoveryPointArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.BackupVaultAccountId
— (String
)The account ID of the specified backup vault.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:BackupVaultArn
— (String
)An ARN that uniquely identifies a backup vault; for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.RecoveryPointArn
— (String
)An ARN that uniquely identifies a recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.RestoreMetadata
— (map<String>
)The set of metadata key-value pairs that describe the original configuration of the backed-up resource. These values vary depending on the service that is being restored.
ResourceType
— (String
)The resource type of the recovery point.
-
(AWS.Response)
—
Returns:
getRestoreJobMetadata(params = {}, callback) ⇒ AWS.Request
This request returns the metadata for the specified restore job.
Service Reference:
Examples:
Calling the getRestoreJobMetadata operation
var params = { RestoreJobId: 'STRING_VALUE' /* required */ }; backup.getRestoreJobMetadata(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
RestoreJobId
— (String
)This is a unique identifier of a restore job within Backup.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:RestoreJobId
— (String
)This is a unique identifier of a restore job within Backup.
Metadata
— (map<String>
)This contains the metadata of the specified backup job.
-
(AWS.Response)
—
Returns:
getRestoreTestingInferredMetadata(params = {}, callback) ⇒ AWS.Request
This request returns the minimal required set of metadata needed to start a restore job with secure default settings.
BackupVaultName
andRecoveryPointArn
are required parameters.BackupVaultAccountId
is an optional parameter.Service Reference:
Examples:
Calling the getRestoreTestingInferredMetadata operation
var params = { BackupVaultName: 'STRING_VALUE', /* required */ RecoveryPointArn: 'STRING_VALUE', /* required */ BackupVaultAccountId: 'STRING_VALUE' }; backup.getRestoreTestingInferredMetadata(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupVaultAccountId
— (String
)The account ID of the specified backup vault.
BackupVaultName
— (String
)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 ServicesRegion where they are created. They consist of letters, numbers, and hyphens.
RecoveryPointArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:InferredMetadata
— (map<String>
)This is a string map of the metadata inferred from the request.
-
(AWS.Response)
—
Returns:
getRestoreTestingPlan(params = {}, callback) ⇒ AWS.Request
Returns
RestoreTestingPlan
details for the specifiedRestoreTestingPlanName
. The details are the body of a restore testing plan in JSON format, in addition to plan metadata.Service Reference:
Examples:
Calling the getRestoreTestingPlan operation
var params = { RestoreTestingPlanName: 'STRING_VALUE' /* required */ }; backup.getRestoreTestingPlan(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
RestoreTestingPlanName
— (String
)Required unique name of the restore testing plan.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:RestoreTestingPlan
— (map
)Specifies the body of a restore testing plan. Includes
RestoreTestingPlanName
.CreationTime
— required — (Date
)The date and time that a restore testing plan was created, in Unix format and Coordinated Universal Time (UTC). The value of
CreationTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.CreatorRequestId
— (String
)This identifies the request and allows failed requests to be retried without the risk of running the operation twice. If the request includes a
CreatorRequestId
that matches an existing backup plan, that plan is returned. This parameter is optional.If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
LastExecutionTime
— (Date
)The last time a restore test was run with the specified restore testing plan. A date and time, in Unix format and Coordinated Universal Time (UTC). The value of
LastExecutionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.LastUpdateTime
— (Date
)The date and time that the restore testing plan was updated. This update is in Unix format and Coordinated Universal Time (UTC). The value of
LastUpdateTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.RecoveryPointSelection
— required — (map
)The specified criteria to assign a set of resources, such as recovery point types or backup vaults.
Algorithm
— (String
)Acceptable values include "LATEST_WITHIN_WINDOW" or "RANDOM_WITHIN_WINDOW"
Possible values include:"LATEST_WITHIN_WINDOW"
"RANDOM_WITHIN_WINDOW"
ExcludeVaults
— (Array<String>
)Accepted values include specific ARNs or list of selectors. Defaults to empty list if not listed.
IncludeVaults
— (Array<String>
)Accepted values include wildcard [""] or by specific ARNs or ARN wilcard replacement ["arn:aws:backup:us-west-2:123456789012:backup-vault:asdf", ...] ["arn:aws:backup:::backup-vault:asdf-", ...]
RecoveryPointTypes
— (Array<String>
)These are the types of recovery points.
Include
SNAPSHOT
to restore only snapshot recovery points; includeCONTINUOUS
to restore continuous recovery points (point in time restore / PITR); use both to restore either a snapshot or a continuous recovery point. The recovery point will be determined by the value forAlgorithm
.SelectionWindowDays
— (Integer
)Accepted values are integers from 1 to 365.
RestoreTestingPlanArn
— required — (String
)An Amazon Resource Name (ARN) that uniquely identifies a restore testing plan.
RestoreTestingPlanName
— required — (String
)The restore testing plan name.
ScheduleExpression
— required — (String
)A CRON expression in specified timezone when a restore testing plan is executed.
ScheduleExpressionTimezone
— (String
)Optional. This is the timezone in which the schedule expression is set. By default, ScheduleExpressions are in UTC. You can modify this to a specified timezone.
StartWindowHours
— (Integer
)Defaults to 24 hours.
A value in hours after a restore test is scheduled before a job will be canceled if it doesn't start successfully. This value is optional. If this value is included, this parameter has a maximum value of 168 hours (one week).
-
(AWS.Response)
—
Returns:
getRestoreTestingSelection(params = {}, callback) ⇒ AWS.Request
Returns RestoreTestingSelection, which displays resources and elements of the restore testing plan.
Service Reference:
Examples:
Calling the getRestoreTestingSelection operation
var params = { RestoreTestingPlanName: 'STRING_VALUE', /* required */ RestoreTestingSelectionName: 'STRING_VALUE' /* required */ }; backup.getRestoreTestingSelection(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
RestoreTestingPlanName
— (String
)Required unique name of the restore testing plan.
RestoreTestingSelectionName
— (String
)Required unique name of the restore testing selection.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:RestoreTestingSelection
— (map
)Unique name of the restore testing selection.
CreationTime
— required — (Date
)The date and time that a restore testing selection was created, in Unix format and Coordinated Universal Time (UTC). The value of
CreationTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 201812:11:30.087 AM.CreatorRequestId
— (String
)This identifies the request and allows failed requests to be retried without the risk of running the operation twice. If the request includes a
CreatorRequestId
that matches an existing backup plan, that plan is returned. This parameter is optional.If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
IamRoleArn
— required — (String
)The Amazon Resource Name (ARN) of the IAM role that Backup uses to create the target resource; for example:
arn:aws:iam::123456789012:role/S3Access
.ProtectedResourceArns
— (Array<String>
)You can include specific ARNs, such as
ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
or you can include a wildcard:ProtectedResourceArns: ["*"]
, but not both.ProtectedResourceConditions
— (map
)In a resource testing selection, this parameter filters by specific conditions such as
StringEquals
orStringNotEquals
.StringEquals
— (Array<map>
)Filters the values of your tagged resources for only those resources that you tagged with the same value. Also called "exact matching."
Key
— required — (String
)The tag key (String). The key can't start with
aws:
.Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern:
^(?![aA]{1}[wW]{1}[sS]{1}:)([\p{L}\p{Z}\p{N}_.:/=+-@]+)$
Value
— required — (String
)The value of the key.
Length Constraints: Maximum length of 256.
Pattern:
^([\p{L}\p{Z}\p{N}_.:/=+-@]*)$
StringNotEquals
— (Array<map>
)Filters the values of your tagged resources for only those resources that you tagged that do not have the same value. Also called "negated matching."
Key
— required — (String
)The tag key (String). The key can't start with
aws:
.Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern:
^(?![aA]{1}[wW]{1}[sS]{1}:)([\p{L}\p{Z}\p{N}_.:/=+-@]+)$
Value
— required — (String
)The value of the key.
Length Constraints: Maximum length of 256.
Pattern:
^([\p{L}\p{Z}\p{N}_.:/=+-@]*)$
ProtectedResourceType
— required — (String
)The type of Amazon Web Services resource included in a resource testing selection; for example, an Amazon EBS volume or an Amazon RDS database.
RestoreMetadataOverrides
— (map<String>
)You can override certain restore metadata keys by including the parameter
RestoreMetadataOverrides
in the body ofRestoreTestingSelection
. Key values are not case sensitive.See the complete list of restore testing inferred metadata.
RestoreTestingPlanName
— required — (String
)The RestoreTestingPlanName is a unique string that is the name of the restore testing plan.
RestoreTestingSelectionName
— required — (String
)The unique name of the restore testing selection that belongs to the related restore testing plan.
ValidationWindowHours
— (Integer
)This is amount of hours (1 to 168) available to run a validation script on the data. The data will be deleted upon the completion of the validation script or the end of the specified retention period, whichever comes first.
-
(AWS.Response)
—
Returns:
getSupportedResourceTypes(params = {}, callback) ⇒ AWS.Request
Returns the Amazon Web Services resource types supported by Backup.
Service Reference:
Examples:
Calling the getSupportedResourceTypes operation
backup.getSupportedResourceTypes(function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
- params (Object) (defaults to: {})
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ResourceTypes
— (Array<String>
)Contains a string with the supported Amazon Web Services resource types:
-
Aurora
for Amazon Aurora -
CloudFormation
for CloudFormation -
DocumentDB
for Amazon DocumentDB (with MongoDB compatibility) -
DynamoDB
for Amazon DynamoDB -
EBS
for Amazon Elastic Block Store -
EC2
for Amazon Elastic Compute Cloud -
EFS
for Amazon Elastic File System -
FSx
for Amazon FSx -
Neptune
for Amazon Neptune -
RDS
for Amazon Relational Database Service -
Redshift
for Amazon Redshift -
S3
for Amazon Simple Storage Service (Amazon S3) -
SAP HANA on Amazon EC2
for SAP HANA databases on Amazon Elastic Compute Cloud instances -
Storage Gateway
for Storage Gateway -
Timestream
for Amazon Timestream -
VirtualMachine
for VMware virtual machines
-
-
(AWS.Response)
—
Returns:
listBackupJobs(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the listBackupJobs operation
var params = { ByAccountId: 'STRING_VALUE', ByBackupVaultName: 'STRING_VALUE', ByCompleteAfter: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, ByCompleteBefore: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, ByCreatedAfter: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, ByCreatedBefore: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, ByMessageCategory: 'STRING_VALUE', ByParentJobId: 'STRING_VALUE', ByResourceArn: 'STRING_VALUE', ByResourceType: 'STRING_VALUE', ByState: CREATED | PENDING | RUNNING | ABORTING | ABORTED | COMPLETED | FAILED | EXPIRED | PARTIAL, MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; backup.listBackupJobs(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.MaxResults
— (Integer
)The maximum number of items to be returned.
ByResourceArn
— (String
)Returns only backup jobs that match the specified resource Amazon Resource Name (ARN).
ByState
— (String
)Returns only backup jobs that are in the specified state.
Completed with issues
is a status found only in the Backup console. For API, this status refers to jobs with a state ofCOMPLETED
and aMessageCategory
with a value other thanSUCCESS
; that is, the status is completed but comes with a status message.To obtain the job count for
Completed with issues
, run two GET requests, and subtract the second, smaller number:GET /backup-jobs/?state=COMPLETED
GET /backup-jobs/?messageCategory=SUCCESS&state=COMPLETED
Possible values include:"CREATED"
"PENDING"
"RUNNING"
"ABORTING"
"ABORTED"
"COMPLETED"
"FAILED"
"EXPIRED"
"PARTIAL"
ByBackupVaultName
— (String
)Returns only backup jobs that will be stored in the specified backup vault. 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.
ByCreatedBefore
— (Date
)Returns only backup jobs that were created before the specified date.
ByCreatedAfter
— (Date
)Returns only backup jobs that were created after the specified date.
ByResourceType
— (String
)Returns only backup jobs for the specified resources:
-
Aurora
for Amazon Aurora -
CloudFormation
for CloudFormation -
DocumentDB
for Amazon DocumentDB (with MongoDB compatibility) -
DynamoDB
for Amazon DynamoDB -
EBS
for Amazon Elastic Block Store -
EC2
for Amazon Elastic Compute Cloud -
EFS
for Amazon Elastic File System -
FSx
for Amazon FSx -
Neptune
for Amazon Neptune -
RDS
for Amazon Relational Database Service -
Redshift
for Amazon Redshift -
S3
for Amazon Simple Storage Service (Amazon S3) -
SAP HANA on Amazon EC2
for SAP HANA databases on Amazon Elastic Compute Cloud instances -
Storage Gateway
for Storage Gateway -
Timestream
for Amazon Timestream -
VirtualMachine
for VMware virtual machines
-
ByAccountId
— (String
)The account ID to list the jobs from. Returns only backup jobs associated with the specified account ID.
If used from an Organizations management account, passing
*
returns all jobs across the organization.ByCompleteAfter
— (Date
)Returns only backup jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).
ByCompleteBefore
— (Date
)Returns only backup jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).
ByParentJobId
— (String
)This is a filter to list child (nested) jobs based on parent job ID.
ByMessageCategory
— (String
)This is an optional parameter that can be used to filter out jobs with a MessageCategory which matches the value you input.
Example strings may include
AccessDenied
,SUCCESS
,AGGREGATE_ALL
, andInvalidParameters
.View Monitoring
The wildcard () returns count of all message categories.
AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:BackupJobs
— (Array<map>
)An array of structures containing metadata about your backup jobs returned in JSON format.
AccountId
— (String
)The account ID that owns the backup job.
BackupJobId
— (String
)Uniquely identifies a request to Backup to back up a resource.
BackupVaultName
— (String
)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.
BackupVaultArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.RecoveryPointArn
— (String
)An ARN that uniquely identifies a recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.ResourceArn
— (String
)An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.
CreationDate
— (Date
)The date and time a backup job 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.CompletionDate
— (Date
)The date and time a job to create a backup job is completed, in Unix format and Coordinated Universal Time (UTC). The value of
CompletionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.State
— (String
)The current state of a backup job.
Possible values include:"CREATED"
"PENDING"
"RUNNING"
"ABORTING"
"ABORTED"
"COMPLETED"
"FAILED"
"EXPIRED"
"PARTIAL"
StatusMessage
— (String
)A detailed message explaining the status of the job to back up a resource.
PercentDone
— (String
)Contains an estimated percentage complete of a job at the time the job status was queried.
BackupSizeInBytes
— (Integer
)The size, in bytes, of a backup.
IamRoleArn
— (String
)Specifies the IAM role ARN used to create the target recovery point. IAM roles other than the default role must include either
AWSBackup
orAwsBackup
in the role name. For example,arn:aws:iam::123456789012:role/AWSBackupRDSAccess
. Role names without those strings lack permissions to perform backup jobs.CreatedBy
— (map
)Contains identifying information about the creation of a backup job, including the
BackupPlanArn
,BackupPlanId
,BackupPlanVersion
, andBackupRuleId
of the backup plan used to create it.BackupPlanId
— (String
)Uniquely identifies a backup plan.
BackupPlanArn
— (String
)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
.BackupPlanVersion
— (String
)Version IDs are unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. They cannot be edited.
BackupRuleId
— (String
)Uniquely identifies a rule used to schedule the backup of a selection of resources.
ExpectedCompletionDate
— (Date
)The date and time a job to back up resources is expected to be completed, in Unix format and Coordinated Universal Time (UTC). The value of
ExpectedCompletionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.StartBy
— (Date
)Specifies the time in Unix format and Coordinated Universal Time (UTC) when a backup job must be started before it is canceled. The value is calculated by adding the start window to the scheduled time. So if the scheduled time were 6:00 PM and the start window is 2 hours, the
StartBy
time would be 8:00 PM on the date specified. The value ofStartBy
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.ResourceType
— (String
)The type of Amazon Web Services resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only supported resource type is Amazon EC2.
BytesTransferred
— (Integer
)The size in bytes transferred to a backup vault at the time that the job status was queried.
BackupOptions
— (map<String>
)Specifies the backup option for a selected resource. This option is only available for Windows Volume Shadow Copy Service (VSS) backup jobs.
Valid values: Set to
"WindowsVSS":"enabled"
to enable theWindowsVSS
backup option and create a Windows VSS backup. Set to"WindowsVSS":"disabled"
to create a regular backup. If you specify an invalid option, you get anInvalidParameterValueException
exception.BackupType
— (String
)Represents the type of backup for a backup job.
ParentJobId
— (String
)This uniquely identifies a request to Backup to back up a resource. The return will be the parent (composite) job ID.
IsParent
— (Boolean
)This is a boolean value indicating this is a parent (composite) backup job.
ResourceName
— (String
)The non-unique name of the resource that belongs to the specified backup.
InitiationDate
— (Date
)The date on which the backup job was initiated.
MessageCategory
— (String
)This parameter is the job count for the specified message category.
Example strings may include
AccessDenied
,SUCCESS
,AGGREGATE_ALL
, andINVALIDPARAMETERS
. See Monitoring for a list of MessageCategory strings.The the value ANY returns count of all message categories.
AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum.
NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.
-
(AWS.Response)
—
Returns:
listBackupJobSummaries(params = {}, callback) ⇒ AWS.Request
This is a request for a summary of backup jobs created or running within the most recent 30 days. You can include parameters AccountID, State, ResourceType, MessageCategory, AggregationPeriod, MaxResults, or NextToken to filter results.
This request returns a summary that contains Region, Account, State, ResourceType, MessageCategory, StartTime, EndTime, and Count of included jobs.
Service Reference:
Examples:
Calling the listBackupJobSummaries operation
var params = { AccountId: 'STRING_VALUE', AggregationPeriod: ONE_DAY | SEVEN_DAYS | FOURTEEN_DAYS, MaxResults: 'NUMBER_VALUE', MessageCategory: 'STRING_VALUE', NextToken: 'STRING_VALUE', ResourceType: 'STRING_VALUE', State: CREATED | PENDING | RUNNING | ABORTING | ABORTED | COMPLETED | FAILED | EXPIRED | PARTIAL | AGGREGATE_ALL | ANY }; backup.listBackupJobSummaries(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
AccountId
— (String
)Returns the job count for the specified account.
If the request is sent from a member account or an account not part of Amazon Web Services Organizations, jobs within requestor's account will be returned.
Root, admin, and delegated administrator accounts can use the value ANY to return job counts from every account in the organization.
AGGREGATE_ALL
aggregates job counts from all accounts within the authenticated organization, then returns the sum.State
— (String
)This parameter returns the job count for jobs with the specified state.
The the value ANY returns count of all states.
AGGREGATE_ALL
aggregates job counts for all states and returns the sum.Completed with issues
is a status found only in the Backup console. For API, this status refers to jobs with a state ofCOMPLETED
and aMessageCategory
with a value other thanSUCCESS
; that is, the status is completed but comes with a status message. To obtain the job count forCompleted with issues
, run two GET requests, and subtract the second, smaller number:GET /audit/backup-job-summaries?AggregationPeriod=FOURTEEN_DAYS&State=COMPLETED
GET /audit/backup-job-summaries?AggregationPeriod=FOURTEEN_DAYS&MessageCategory=SUCCESS&State=COMPLETED
Possible values include:"CREATED"
"PENDING"
"RUNNING"
"ABORTING"
"ABORTED"
"COMPLETED"
"FAILED"
"EXPIRED"
"PARTIAL"
"AGGREGATE_ALL"
"ANY"
ResourceType
— (String
)Returns the job count for the specified resource type. Use request
GetSupportedResourceTypes
to obtain strings for supported resource types.The the value ANY returns count of all resource types.
AGGREGATE_ALL
aggregates job counts for all resource types and returns the sum.The type of Amazon Web Services resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.
MessageCategory
— (String
)This parameter returns the job count for the specified message category.
Example accepted strings include
AccessDenied
,Success
, andInvalidParameters
. See Monitoring for a list of accepted MessageCategory strings.The the value ANY returns count of all message categories.
AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum.AggregationPeriod
— (String
)The period for the returned results.
-
ONE_DAY
- The daily job count for the prior 14 days. -
SEVEN_DAYS
- The aggregated job count for the prior 7 days. -
FOURTEEN_DAYS
- The aggregated job count for prior 14 days.
"ONE_DAY"
"SEVEN_DAYS"
"FOURTEEN_DAYS"
-
MaxResults
— (Integer
)The maximum number of items to be returned.
The value is an integer. Range of accepted values is from 1 to 500.
NextToken
— (String
)The next item following a partial list of returned resources. For example, if a request is made to return
MaxResults
number of resources,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:BackupJobSummaries
— (Array<map>
)The summary information.
Region
— (String
)The Amazon Web Services Regions within the job summary.
AccountId
— (String
)The account ID that owns the jobs within the summary.
State
— (String
)This value is job count for jobs with the specified state.
Possible values include:"CREATED"
"PENDING"
"RUNNING"
"ABORTING"
"ABORTED"
"COMPLETED"
"FAILED"
"EXPIRED"
"PARTIAL"
"AGGREGATE_ALL"
"ANY"
ResourceType
— (String
)This value is the job count for the specified resource type. The request
GetSupportedResourceTypes
returns strings for supported resource types.MessageCategory
— (String
)This parameter is the job count for the specified message category.
Example strings include
AccessDenied
,Success
, andInvalidParameters
. See Monitoring for a list of MessageCategory strings.The the value ANY returns count of all message categories.
AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum.Count
— (Integer
)The value as a number of jobs in a job summary.
StartTime
— (Date
)The value of time in number format of a job start time.
This value is the time in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
EndTime
— (Date
)The value of time in number format of a job end time.
This value is the time in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
AggregationPeriod
— (String
)The period for the returned results.
-
ONE_DAY
- The daily job count for the prior 14 days. -
SEVEN_DAYS
- The aggregated job count for the prior 7 days. -
FOURTEEN_DAYS
- The aggregated job count for prior 14 days.
-
NextToken
— (String
)The next item following a partial list of returned resources. For example, if a request is made to return
MaxResults
number of resources,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.
-
(AWS.Response)
—
Returns:
listBackupPlans(params = {}, callback) ⇒ AWS.Request
Lists the active backup plans for the account.
Service Reference:
Examples:
Calling the listBackupPlans operation
var params = { IncludeDeleted: true || false, MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; backup.listBackupPlans(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.MaxResults
— (Integer
)The maximum number of items to be returned.
IncludeDeleted
— (Boolean
)A Boolean value with a default value of
FALSE
that returns deleted backup plans when set toTRUE
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.BackupPlansList
— (Array<map>
)Information about the backup plans.
BackupPlanArn
— (String
)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
— (String
)Uniquely identifies a backup plan.
CreationDate
— (Date
)The date and time a resource 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.DeletionDate
— (Date
)The date and time a backup plan is deleted, in Unix format and Coordinated Universal Time (UTC). The value of
DeletionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.VersionId
— (String
)Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. Version IDs cannot be edited.
BackupPlanName
— (String
)The display name of a saved backup plan.
CreatorRequestId
— (String
)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.
LastExecutionDate
— (Date
)The last time this backup plan was run. A date and time, in Unix format and Coordinated Universal Time (UTC). The value of
LastExecutionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.AdvancedBackupSettings
— (Array<map>
)Contains a list of
BackupOptions
for a resource type.ResourceType
— (String
)Specifies an object containing resource type and backup options. The only supported resource type is Amazon EC2 instances with Windows Volume Shadow Copy Service (VSS). For a CloudFormation example, see the sample CloudFormation template to enable Windows VSS in the Backup User Guide.
Valid values:
EC2
.BackupOptions
— (map<String>
)Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs.
Valid values:
Set to
"WindowsVSS":"enabled"
to enable theWindowsVSS
backup option and create a Windows VSS backup.Set to
"WindowsVSS":"disabled"
to create a regular backup. TheWindowsVSS
option is not enabled by default.If you specify an invalid option, you get an
InvalidParameterValueException
exception.For more information about Windows VSS backups, see Creating a VSS-Enabled Windows Backup.
-
(AWS.Response)
—
Returns:
listBackupPlanTemplates(params = {}, callback) ⇒ AWS.Request
Lists the backup plan templates.
Service Reference:
Examples:
Calling the listBackupPlanTemplates operation
var params = { MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; backup.listBackupPlanTemplates(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.MaxResults
— (Integer
)The maximum number of items to return.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.BackupPlanTemplatesList
— (Array<map>
)An array of template list items containing metadata about your saved templates.
BackupPlanTemplateId
— (String
)Uniquely identifies a stored backup plan template.
BackupPlanTemplateName
— (String
)The optional display name of a backup plan template.
-
(AWS.Response)
—
Returns:
listBackupPlanVersions(params = {}, callback) ⇒ AWS.Request
Returns version metadata of your backup plans, including Amazon Resource Names (ARNs), backup plan IDs, creation and deletion dates, plan names, and version IDs.
Service Reference:
Examples:
Calling the listBackupPlanVersions operation
var params = { BackupPlanId: 'STRING_VALUE', /* required */ MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; backup.listBackupPlanVersions(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupPlanId
— (String
)Uniquely identifies a backup plan.
NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.MaxResults
— (Integer
)The maximum number of items to be returned.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.BackupPlanVersionsList
— (Array<map>
)An array of version list items containing metadata about your backup plans.
BackupPlanArn
— (String
)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
— (String
)Uniquely identifies a backup plan.
CreationDate
— (Date
)The date and time a resource 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.DeletionDate
— (Date
)The date and time a backup plan is deleted, in Unix format and Coordinated Universal Time (UTC). The value of
DeletionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.VersionId
— (String
)Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. Version IDs cannot be edited.
BackupPlanName
— (String
)The display name of a saved backup plan.
CreatorRequestId
— (String
)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.
LastExecutionDate
— (Date
)The last time this backup plan was run. A date and time, in Unix format and Coordinated Universal Time (UTC). The value of
LastExecutionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.AdvancedBackupSettings
— (Array<map>
)Contains a list of
BackupOptions
for a resource type.ResourceType
— (String
)Specifies an object containing resource type and backup options. The only supported resource type is Amazon EC2 instances with Windows Volume Shadow Copy Service (VSS). For a CloudFormation example, see the sample CloudFormation template to enable Windows VSS in the Backup User Guide.
Valid values:
EC2
.BackupOptions
— (map<String>
)Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs.
Valid values:
Set to
"WindowsVSS":"enabled"
to enable theWindowsVSS
backup option and create a Windows VSS backup.Set to
"WindowsVSS":"disabled"
to create a regular backup. TheWindowsVSS
option is not enabled by default.If you specify an invalid option, you get an
InvalidParameterValueException
exception.For more information about Windows VSS backups, see Creating a VSS-Enabled Windows Backup.
-
(AWS.Response)
—
Returns:
listBackupSelections(params = {}, callback) ⇒ AWS.Request
Returns an array containing metadata of the resources associated with the target backup plan.
Service Reference:
Examples:
Calling the listBackupSelections operation
var params = { BackupPlanId: 'STRING_VALUE', /* required */ MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; backup.listBackupSelections(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupPlanId
— (String
)Uniquely identifies a backup plan.
NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.MaxResults
— (Integer
)The maximum number of items to be returned.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.BackupSelectionsList
— (Array<map>
)An array of backup selection list items containing metadata about each resource in the list.
SelectionId
— (String
)Uniquely identifies a request to assign a set of resources to a backup plan.
SelectionName
— (String
)The display name of a resource selection document.
BackupPlanId
— (String
)Uniquely identifies a backup plan.
CreationDate
— (Date
)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.CreatorRequestId
— (String
)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.
IamRoleArn
— (String
)Specifies the IAM role Amazon Resource Name (ARN) to create the target recovery point; for example,
arn:aws:iam::123456789012:role/S3Access
.
-
(AWS.Response)
—
Returns:
listBackupVaults(params = {}, callback) ⇒ AWS.Request
Returns a list of recovery point storage containers along with information about them.
Service Reference:
Examples:
Calling the listBackupVaults operation
var params = { ByShared: true || false, ByVaultType: BACKUP_VAULT | LOGICALLY_AIR_GAPPED_BACKUP_VAULT, MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; backup.listBackupVaults(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
ByVaultType
— (String
)This parameter will sort the list of vaults by vault type.
Possible values include:"BACKUP_VAULT"
"LOGICALLY_AIR_GAPPED_BACKUP_VAULT"
ByShared
— (Boolean
)This parameter will sort the list of vaults by shared vaults.
NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.MaxResults
— (Integer
)The maximum number of items to be returned.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:BackupVaultList
— (Array<map>
)An array of backup vault list members containing vault metadata, including Amazon Resource Name (ARN), display name, creation date, number of saved recovery points, and encryption information if the resources saved in the backup vault are encrypted.
BackupVaultName
— (String
)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.
BackupVaultArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.VaultType
— (String
)The type of vault in which the described recovery point is stored.
Possible values include:"BACKUP_VAULT"
"LOGICALLY_AIR_GAPPED_BACKUP_VAULT"
VaultState
— (String
)The current state of the vault.
Possible values include:"CREATING"
"AVAILABLE"
"FAILED"
CreationDate
— (Date
)The date and time a resource backup 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.EncryptionKeyArn
— (String
)A server-side encryption key you can specify to encrypt your backups from services that support full Backup management; for example,
arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
. If you specify a key, you must specify its ARN, not its alias. If you do not specify a key, Backup creates a KMS key for you by default.To learn which Backup services support full Backup management and how Backup handles encryption for backups from services that do not yet support full Backup, see Encryption for backups in Backup
CreatorRequestId
— (String
)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.
NumberOfRecoveryPoints
— (Integer
)The number of recovery points that are stored in a backup vault.
Locked
— (Boolean
)A Boolean value that indicates whether Backup Vault Lock applies to the selected backup vault. If
true
, Vault Lock prevents delete and update operations on the recovery points in the selected vault.MinRetentionDays
— (Integer
)The Backup Vault Lock setting that specifies the minimum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock does not enforce a minimum retention period.
If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or longer than the minimum retention period. If the job's retention period is shorter than that minimum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected.
MaxRetentionDays
— (Integer
)The Backup Vault Lock setting that specifies the maximum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock does not enforce a maximum retention period on the recovery points in the vault (allowing indefinite storage).
If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or shorter than the maximum retention period. If the job's retention period is longer than that maximum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected.
LockDate
— (Date
)The date and time when Backup Vault Lock configuration becomes immutable, meaning it cannot be changed or deleted.
If you applied Vault Lock to your vault without specifying a lock date, you can change your Vault Lock settings, or delete Vault Lock from the vault entirely, at any time.
This value is in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.
-
(AWS.Response)
—
Returns:
listCopyJobs(params = {}, callback) ⇒ AWS.Request
Returns metadata about your copy jobs.
Service Reference:
Examples:
Calling the listCopyJobs operation
var params = { ByAccountId: 'STRING_VALUE', ByCompleteAfter: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, ByCompleteBefore: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, ByCreatedAfter: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, ByCreatedBefore: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, ByDestinationVaultArn: 'STRING_VALUE', ByMessageCategory: 'STRING_VALUE', ByParentJobId: 'STRING_VALUE', ByResourceArn: 'STRING_VALUE', ByResourceType: 'STRING_VALUE', ByState: CREATED | RUNNING | COMPLETED | FAILED | PARTIAL, MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; backup.listCopyJobs(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.
MaxResults
— (Integer
)The maximum number of items to be returned.
ByResourceArn
— (String
)Returns only copy jobs that match the specified resource Amazon Resource Name (ARN).
ByState
— (String
)Returns only copy jobs that are in the specified state.
Possible values include:"CREATED"
"RUNNING"
"COMPLETED"
"FAILED"
"PARTIAL"
ByCreatedBefore
— (Date
)Returns only copy jobs that were created before the specified date.
ByCreatedAfter
— (Date
)Returns only copy jobs that were created after the specified date.
ByResourceType
— (String
)Returns only backup jobs for the specified resources:
-
Aurora
for Amazon Aurora -
CloudFormation
for CloudFormation -
DocumentDB
for Amazon DocumentDB (with MongoDB compatibility) -
DynamoDB
for Amazon DynamoDB -
EBS
for Amazon Elastic Block Store -
EC2
for Amazon Elastic Compute Cloud -
EFS
for Amazon Elastic File System -
FSx
for Amazon FSx -
Neptune
for Amazon Neptune -
RDS
for Amazon Relational Database Service -
Redshift
for Amazon Redshift -
S3
for Amazon Simple Storage Service (Amazon S3) -
SAP HANA on Amazon EC2
for SAP HANA databases on Amazon Elastic Compute Cloud instances -
Storage Gateway
for Storage Gateway -
Timestream
for Amazon Timestream -
VirtualMachine
for VMware virtual machines
-
ByDestinationVaultArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a source backup vault to copy from; for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.ByAccountId
— (String
)The account ID to list the jobs from. Returns only copy jobs associated with the specified account ID.
ByCompleteBefore
— (Date
)Returns only copy jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).
ByCompleteAfter
— (Date
)Returns only copy jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).
ByParentJobId
— (String
)This is a filter to list child (nested) jobs based on parent job ID.
ByMessageCategory
— (String
)This is an optional parameter that can be used to filter out jobs with a MessageCategory which matches the value you input.
Example strings may include
AccessDenied
,SUCCESS
,AGGREGATE_ALL
, andINVALIDPARAMETERS
.View Monitoring for a list of accepted strings.
The the value ANY returns count of all message categories.
AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:CopyJobs
— (Array<map>
)An array of structures containing metadata about your copy jobs returned in JSON format.
AccountId
— (String
)The account ID that owns the copy job.
CopyJobId
— (String
)Uniquely identifies a copy job.
SourceBackupVaultArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a source copy vault; for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.SourceRecoveryPointArn
— (String
)An ARN that uniquely identifies a source recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.DestinationBackupVaultArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a destination copy vault; for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.DestinationRecoveryPointArn
— (String
)An ARN that uniquely identifies a destination recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.ResourceArn
— (String
)The Amazon Web Services resource to be copied; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.
CreationDate
— (Date
)The date and time a copy job 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.CompletionDate
— (Date
)The date and time a copy job is completed, in Unix format and Coordinated Universal Time (UTC). The value of
CompletionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.State
— (String
)The current state of a copy job.
Possible values include:"CREATED"
"RUNNING"
"COMPLETED"
"FAILED"
"PARTIAL"
StatusMessage
— (String
)A detailed message explaining the status of the job to copy a resource.
BackupSizeInBytes
— (Integer
)The size, in bytes, of a copy job.
IamRoleArn
— (String
)Specifies the IAM role ARN used to copy the target recovery point; for example,
arn:aws:iam::123456789012:role/S3Access
.CreatedBy
— (map
)Contains information about the backup plan and rule that Backup used to initiate the recovery point backup.
BackupPlanId
— (String
)Uniquely identifies a backup plan.
BackupPlanArn
— (String
)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
.BackupPlanVersion
— (String
)Version IDs are unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. They cannot be edited.
BackupRuleId
— (String
)Uniquely identifies a rule used to schedule the backup of a selection of resources.
ResourceType
— (String
)The type of Amazon Web Services resource to be copied; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.
ParentJobId
— (String
)This uniquely identifies a request to Backup to copy a resource. The return will be the parent (composite) job ID.
IsParent
— (Boolean
)This is a boolean value indicating this is a parent (composite) copy job.
CompositeMemberIdentifier
— (String
)The identifier of a resource within a composite group, such as nested (child) recovery point belonging to a composite (parent) stack. The ID is transferred from the logical ID within a stack.
NumberOfChildJobs
— (Integer
)The number of child (nested) copy jobs.
ChildJobsInState
— (map<Integer>
)This returns the statistics of the included child (nested) copy jobs.
ResourceName
— (String
)The non-unique name of the resource that belongs to the specified backup.
MessageCategory
— (String
)This parameter is the job count for the specified message category.
Example strings may include
AccessDenied
,SUCCESS
,AGGREGATE_ALL
, andInvalidParameters
. See Monitoring for a list of MessageCategory strings.The the value ANY returns count of all message categories.
AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum
NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.
-
(AWS.Response)
—
Returns:
listCopyJobSummaries(params = {}, callback) ⇒ AWS.Request
This request obtains a list of copy jobs created or running within the the most recent 30 days. You can include parameters AccountID, State, ResourceType, MessageCategory, AggregationPeriod, MaxResults, or NextToken to filter results.
This request returns a summary that contains Region, Account, State, RestourceType, MessageCategory, StartTime, EndTime, and Count of included jobs.
Service Reference:
Examples:
Calling the listCopyJobSummaries operation
var params = { AccountId: 'STRING_VALUE', AggregationPeriod: ONE_DAY | SEVEN_DAYS | FOURTEEN_DAYS, MaxResults: 'NUMBER_VALUE', MessageCategory: 'STRING_VALUE', NextToken: 'STRING_VALUE', ResourceType: 'STRING_VALUE', State: CREATED | RUNNING | ABORTING | ABORTED | COMPLETING | COMPLETED | FAILING | FAILED | PARTIAL | AGGREGATE_ALL | ANY }; backup.listCopyJobSummaries(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
AccountId
— (String
)Returns the job count for the specified account.
If the request is sent from a member account or an account not part of Amazon Web Services Organizations, jobs within requestor's account will be returned.
Root, admin, and delegated administrator accounts can use the value ANY to return job counts from every account in the organization.
AGGREGATE_ALL
aggregates job counts from all accounts within the authenticated organization, then returns the sum.State
— (String
)This parameter returns the job count for jobs with the specified state.
The the value ANY returns count of all states.
AGGREGATE_ALL
aggregates job counts for all states and returns the sum."CREATED"
"RUNNING"
"ABORTING"
"ABORTED"
"COMPLETING"
"COMPLETED"
"FAILING"
"FAILED"
"PARTIAL"
"AGGREGATE_ALL"
"ANY"
ResourceType
— (String
)Returns the job count for the specified resource type. Use request
GetSupportedResourceTypes
to obtain strings for supported resource types.The the value ANY returns count of all resource types.
AGGREGATE_ALL
aggregates job counts for all resource types and returns the sum.The type of Amazon Web Services resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.
MessageCategory
— (String
)This parameter returns the job count for the specified message category.
Example accepted strings include
AccessDenied
,Success
, andInvalidParameters
. See Monitoring for a list of accepted MessageCategory strings.The the value ANY returns count of all message categories.
AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum.AggregationPeriod
— (String
)The period for the returned results.
-
ONE_DAY
- The daily job count for the prior 14 days. -
SEVEN_DAYS
- The aggregated job count for the prior 7 days. -
FOURTEEN_DAYS
- The aggregated job count for prior 14 days.
"ONE_DAY"
"SEVEN_DAYS"
"FOURTEEN_DAYS"
-
MaxResults
— (Integer
)This parameter sets the maximum number of items to be returned.
The value is an integer. Range of accepted values is from 1 to 500.
NextToken
— (String
)The next item following a partial list of returned resources. For example, if a request is made to return
MaxResults
number of resources,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:CopyJobSummaries
— (Array<map>
)This return shows a summary that contains Region, Account, State, ResourceType, MessageCategory, StartTime, EndTime, and Count of included jobs.
Region
— (String
)The Amazon Web Services Regions within the job summary.
AccountId
— (String
)The account ID that owns the jobs within the summary.
State
— (String
)This value is job count for jobs with the specified state.
Possible values include:"CREATED"
"RUNNING"
"ABORTING"
"ABORTED"
"COMPLETING"
"COMPLETED"
"FAILING"
"FAILED"
"PARTIAL"
"AGGREGATE_ALL"
"ANY"
ResourceType
— (String
)This value is the job count for the specified resource type. The request
GetSupportedResourceTypes
returns strings for supported resource typesMessageCategory
— (String
)This parameter is the job count for the specified message category.
Example strings include
AccessDenied
,Success
, andInvalidParameters
. See Monitoring for a list of MessageCategory strings.The the value ANY returns count of all message categories.
AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum.Count
— (Integer
)The value as a number of jobs in a job summary.
StartTime
— (Date
)The value of time in number format of a job start time.
This value is the time in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
EndTime
— (Date
)The value of time in number format of a job end time.
This value is the time in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
AggregationPeriod
— (String
)The period for the returned results.
-
ONE_DAY
- The daily job count for the prior 14 days. -
SEVEN_DAYS
- The aggregated job count for the prior 7 days. -
FOURTEEN_DAYS
- The aggregated job count for prior 14 days.
-
NextToken
— (String
)The next item following a partial list of returned resources. For example, if a request is made to return
MaxResults
number of resources,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.
-
(AWS.Response)
—
Returns:
listFrameworks(params = {}, callback) ⇒ AWS.Request
Returns a list of all frameworks for an Amazon Web Services account and Amazon Web Services Region.
Service Reference:
Examples:
Calling the listFrameworks operation
var params = { MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; backup.listFrameworks(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
MaxResults
— (Integer
)The number of desired results from 1 to 1000. Optional. If unspecified, the query will return 1 MB of data.
NextToken
— (String
)An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Frameworks
— (Array<map>
)The frameworks with details for each framework, including the framework name, Amazon Resource Name (ARN), description, number of controls, creation time, and deployment status.
FrameworkName
— (String
)The unique name of a framework. This name is between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
FrameworkArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
FrameworkDescription
— (String
)An optional description of the framework with a maximum 1,024 characters.
NumberOfControls
— (Integer
)The number of controls contained by the framework.
CreationTime
— (Date
)The date and time that a framework is created, in ISO 8601 representation. The value of
CreationTime
is accurate to milliseconds. For example, 2020-07-10T15:00:00.000-08:00 represents the 10th of July 2020 at 3:00 PM 8 hours behind UTC.DeploymentStatus
— (String
)The deployment status of a framework. The statuses are:
CREATE_IN_PROGRESS | UPDATE_IN_PROGRESS | DELETE_IN_PROGRESS | COMPLETED | FAILED
NextToken
— (String
)An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
-
(AWS.Response)
—
Returns:
listLegalHolds(params = {}, callback) ⇒ AWS.Request
This action returns metadata about active and previous legal holds.
Service Reference:
Examples:
Calling the listLegalHolds operation
var params = { MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; backup.listLegalHolds(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
NextToken
— (String
)The next item following a partial list of returned resources. For example, if a request is made to return
MaxResults
number of resources,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.MaxResults
— (Integer
)The maximum number of resource list items to be returned.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:NextToken
— (String
)The next item following a partial list of returned resources. For example, if a request is made to return
MaxResults
number of resources,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.LegalHolds
— (Array<map>
)This is an array of returned legal holds, both active and previous.
Title
— (String
)The title of a legal hold.
Status
— (String
)The status of the legal hold.
Possible values include:"CREATING"
"ACTIVE"
"CANCELING"
"CANCELED"
Description
— (String
)The description of a legal hold.
LegalHoldId
— (String
)The ID of the legal hold.
LegalHoldArn
— (String
)The Amazon Resource Name (ARN) of the legal hold; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.CreationDate
— (Date
)The time when the legal hold was created.
CancellationDate
— (Date
)The time when the legal hold was cancelled.
-
(AWS.Response)
—
Returns:
listProtectedResources(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the listProtectedResources operation
var params = { MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; backup.listProtectedResources(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.MaxResults
— (Integer
)The maximum number of items to be returned.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Results
— (Array<map>
)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.
ResourceArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
ResourceType
— (String
)The type of Amazon Web Services resource; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only supported resource type is Amazon EC2.
LastBackupTime
— (Date
)The date and time a resource was last backed up, in Unix format and Coordinated Universal Time (UTC). The value of
LastBackupTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.ResourceName
— (String
)The non-unique name of the resource that belongs to the specified backup.
LastBackupVaultArn
— (String
)The ARN (Amazon Resource Name) of the backup vault that contains the most recent backup recovery point.
LastRecoveryPointArn
— (String
)The ARN (Amazon Resource Name) of the most recent recovery point.
NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.
-
(AWS.Response)
—
Returns:
listProtectedResourcesByBackupVault(params = {}, callback) ⇒ AWS.Request
This request lists the protected resources corresponding to each backup vault.
Service Reference:
Examples:
Calling the listProtectedResourcesByBackupVault operation
var params = { BackupVaultName: 'STRING_VALUE', /* required */ BackupVaultAccountId: 'STRING_VALUE', MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; backup.listProtectedResourcesByBackupVault(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupVaultName
— (String
)The list of protected resources by backup vault within the vault(s) you specify by name.
BackupVaultAccountId
— (String
)The list of protected resources by backup vault within the vault(s) you specify by account ID.
NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.MaxResults
— (Integer
)The maximum number of items to be returned.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Results
— (Array<map>
)These are the results returned for the request ListProtectedResourcesByBackupVault.
ResourceArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
ResourceType
— (String
)The type of Amazon Web Services resource; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only supported resource type is Amazon EC2.
LastBackupTime
— (Date
)The date and time a resource was last backed up, in Unix format and Coordinated Universal Time (UTC). The value of
LastBackupTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.ResourceName
— (String
)The non-unique name of the resource that belongs to the specified backup.
LastBackupVaultArn
— (String
)The ARN (Amazon Resource Name) of the backup vault that contains the most recent backup recovery point.
LastRecoveryPointArn
— (String
)The ARN (Amazon Resource Name) of the most recent recovery point.
NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.
-
(AWS.Response)
—
Returns:
listRecoveryPointsByBackupVault(params = {}, callback) ⇒ AWS.Request
Returns detailed information about the recovery points stored in a backup vault.
Service Reference:
Examples:
Calling the listRecoveryPointsByBackupVault operation
var params = { BackupVaultName: 'STRING_VALUE', /* required */ BackupVaultAccountId: 'STRING_VALUE', ByBackupPlanId: 'STRING_VALUE', ByCreatedAfter: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, ByCreatedBefore: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, ByParentRecoveryPointArn: 'STRING_VALUE', ByResourceArn: 'STRING_VALUE', ByResourceType: 'STRING_VALUE', MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; backup.listRecoveryPointsByBackupVault(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupVaultName
— (String
)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.
Note: Backup vault name might not be available when a supported service creates the backup.BackupVaultAccountId
— (String
)This parameter will sort the list of recovery points by account ID.
NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.MaxResults
— (Integer
)The maximum number of items to be returned.
ByResourceArn
— (String
)Returns only recovery points that match the specified resource Amazon Resource Name (ARN).
ByResourceType
— (String
)Returns only recovery points that match the specified resource type(s):
-
Aurora
for Amazon Aurora -
CloudFormation
for CloudFormation -
DocumentDB
for Amazon DocumentDB (with MongoDB compatibility) -
DynamoDB
for Amazon DynamoDB -
EBS
for Amazon Elastic Block Store -
EC2
for Amazon Elastic Compute Cloud -
EFS
for Amazon Elastic File System -
FSx
for Amazon FSx -
Neptune
for Amazon Neptune -
RDS
for Amazon Relational Database Service -
Redshift
for Amazon Redshift -
S3
for Amazon Simple Storage Service (Amazon S3) -
SAP HANA on Amazon EC2
for SAP HANA databases on Amazon Elastic Compute Cloud instances -
Storage Gateway
for Storage Gateway -
Timestream
for Amazon Timestream -
VirtualMachine
for VMware virtual machines
-
ByBackupPlanId
— (String
)Returns only recovery points that match the specified backup plan ID.
ByCreatedBefore
— (Date
)Returns only recovery points that were created before the specified timestamp.
ByCreatedAfter
— (Date
)Returns only recovery points that were created after the specified timestamp.
ByParentRecoveryPointArn
— (String
)This returns only recovery points that match the specified parent (composite) recovery point Amazon Resource Name (ARN).
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.RecoveryPoints
— (Array<map>
)An array of objects that contain detailed information about recovery points saved in a backup vault.
RecoveryPointArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.BackupVaultName
— (String
)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.
BackupVaultArn
— (String
)An ARN that uniquely identifies a backup vault; for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.SourceBackupVaultArn
— (String
)The backup vault where the recovery point was originally copied from. If the recovery point is restored to the same account this value will be
null
.ResourceArn
— (String
)An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.
ResourceType
— (String
)The type of Amazon Web Services resource saved as a recovery point; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only supported resource type is Amazon EC2.
CreatedBy
— (map
)Contains identifying information about the creation of a recovery point, including the
BackupPlanArn
,BackupPlanId
,BackupPlanVersion
, andBackupRuleId
of the backup plan that is used to create it.BackupPlanId
— (String
)Uniquely identifies a backup plan.
BackupPlanArn
— (String
)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
.BackupPlanVersion
— (String
)Version IDs are unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. They cannot be edited.
BackupRuleId
— (String
)Uniquely identifies a rule used to schedule the backup of a selection of resources.
IamRoleArn
— (String
)Specifies the IAM role ARN used to create the target recovery point; for example,
arn:aws:iam::123456789012:role/S3Access
.Status
— (String
)A status code specifying the state of the recovery point.
Possible values include:"COMPLETED"
"PARTIAL"
"DELETING"
"EXPIRED"
StatusMessage
— (String
)A message explaining the current status of the recovery point.
CreationDate
— (Date
)The date and time a recovery point 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.CompletionDate
— (Date
)The date and time a job to restore a recovery point is completed, in Unix format and Coordinated Universal Time (UTC). The value of
CompletionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.BackupSizeInBytes
— (Integer
)The size, in bytes, of a backup.
CalculatedLifecycle
— (map
)A
CalculatedLifecycle
object containingDeleteAt
andMoveToColdStorageAt
timestamps.MoveToColdStorageAt
— (Date
)A timestamp that specifies when to transition a recovery point to cold storage.
DeleteAt
— (Date
)A timestamp that specifies when to delete a recovery point.
Lifecycle
— (map
)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 “retention” 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.
Resource types that can transition to cold storage are listed in the Feature availability by resource table. Backup ignores this expression for other resource types.
MoveToColdStorageAfterDays
— (Integer
)The number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)The number of days after creation that a recovery point is deleted. This value must be at least 90 days after the number of days specified in
MoveToColdStorageAfterDays
.OptInToArchiveForSupportedResources
— (Boolean
)If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
EncryptionKeyArn
— (String
)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
.IsEncrypted
— (Boolean
)A Boolean value that is returned as
TRUE
if the specified recovery point is encrypted, orFALSE
if the recovery point is not encrypted.LastRestoreTime
— (Date
)The date and time a recovery point was last restored, in Unix format and Coordinated Universal Time (UTC). The value of
LastRestoreTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.ParentRecoveryPointArn
— (String
)The Amazon Resource Name (ARN) of the parent (composite) recovery point.
CompositeMemberIdentifier
— (String
)The identifier of a resource within a composite group, such as nested (child) recovery point belonging to a composite (parent) stack. The ID is transferred from the logical ID within a stack.
IsParent
— (Boolean
)This is a boolean value indicating this is a parent (composite) recovery point.
ResourceName
— (String
)The non-unique name of the resource that belongs to the specified backup.
VaultType
— (String
)The type of vault in which the described recovery point is stored.
Possible values include:"BACKUP_VAULT"
"LOGICALLY_AIR_GAPPED_BACKUP_VAULT"
-
(AWS.Response)
—
Returns:
listRecoveryPointsByLegalHold(params = {}, callback) ⇒ AWS.Request
This action returns recovery point ARNs (Amazon Resource Names) of the specified legal hold.
Service Reference:
Examples:
Calling the listRecoveryPointsByLegalHold operation
var params = { LegalHoldId: 'STRING_VALUE', /* required */ MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; backup.listRecoveryPointsByLegalHold(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
LegalHoldId
— (String
)The ID of the legal hold.
NextToken
— (String
)The next item following a partial list of returned resources. For example, if a request is made to return
MaxResults
number of resources,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.MaxResults
— (Integer
)The maximum number of resource list items to be returned.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:RecoveryPoints
— (Array<map>
)The recovery points.
RecoveryPointArn
— (String
)The Amazon Resource Name (ARN) of the parent (composite) recovery point.
ResourceArn
— (String
)The Amazon Resource Name (ARN) that uniquely identifies a saved resource.
ResourceType
— (String
)The Amazon Web Services resource type that is saved as a recovery point.
BackupVaultName
— (String
)The name of the backup vault (the logical container in which backups are stored).
NextToken
— (String
)The next item following a partial list of returned resources.
-
(AWS.Response)
—
Returns:
listRecoveryPointsByResource(params = {}, callback) ⇒ AWS.Request
The information about 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.Service Reference:
Examples:
Calling the listRecoveryPointsByResource operation
var params = { ResourceArn: 'STRING_VALUE', /* required */ ManagedByAWSBackupOnly: true || false, MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; backup.listRecoveryPointsByResource(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
ResourceArn
— (String
)An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.
NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.MaxResults
— (Integer
)The maximum number of items to be returned.
Note: Amazon RDS requires a value of at least 20.ManagedByAWSBackupOnly
— (Boolean
)This attribute filters recovery points based on ownership.
If this is set to
TRUE
, the response will contain recovery points associated with the selected resources that are managed by Backup.If this is set to
FALSE
, the response will contain all recovery points associated with the selected resource.Type: Boolean
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.RecoveryPoints
— (Array<map>
)An array of objects that contain detailed information about recovery points of the specified resource type.
Note: Only Amazon EFS and Amazon EC2 recovery points return BackupVaultName.RecoveryPointArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.CreationDate
— (Date
)The date and time a recovery point 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.Status
— (String
)A status code specifying the state of the recovery point.
Possible values include:"COMPLETED"
"PARTIAL"
"DELETING"
"EXPIRED"
StatusMessage
— (String
)A message explaining the current status of the recovery point.
EncryptionKeyArn
— (String
)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
.BackupSizeBytes
— (Integer
)The size, in bytes, of a backup.
BackupVaultName
— (String
)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.
IsParent
— (Boolean
)This is a boolean value indicating this is a parent (composite) recovery point.
ParentRecoveryPointArn
— (String
)The Amazon Resource Name (ARN) of the parent (composite) recovery point.
ResourceName
— (String
)The non-unique name of the resource that belongs to the specified backup.
VaultType
— (String
)The type of vault in which the described recovery point is stored.
Possible values include:"BACKUP_VAULT"
"LOGICALLY_AIR_GAPPED_BACKUP_VAULT"
-
(AWS.Response)
—
Returns:
listReportJobs(params = {}, callback) ⇒ AWS.Request
Returns details about your report jobs.
Service Reference:
Examples:
Calling the listReportJobs operation
var params = { ByCreationAfter: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, ByCreationBefore: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, ByReportPlanName: 'STRING_VALUE', ByStatus: 'STRING_VALUE', MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; backup.listReportJobs(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
ByReportPlanName
— (String
)Returns only report jobs with the specified report plan name.
ByCreationBefore
— (Date
)Returns only report jobs that were created before the date and time specified in Unix format and Coordinated Universal Time (UTC). For example, the value 1516925490 represents Friday, January 26, 2018 12:11:30 AM.
ByCreationAfter
— (Date
)Returns only report jobs that were created after the date and time specified in Unix format and Coordinated Universal Time (UTC). For example, the value 1516925490 represents Friday, January 26, 2018 12:11:30 AM.
ByStatus
— (String
)Returns only report jobs that are in the specified status. The statuses are:
CREATED | RUNNING | COMPLETED | FAILED
MaxResults
— (Integer
)The number of desired results from 1 to 1000. Optional. If unspecified, the query will return 1 MB of data.
NextToken
— (String
)An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ReportJobs
— (Array<map>
)Details about your report jobs in JSON format.
ReportJobId
— (String
)The identifier for a report job. A unique, randomly generated, Unicode, UTF-8 encoded string that is at most 1,024 bytes long. Report job IDs cannot be edited.
ReportPlanArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
ReportTemplate
— (String
)Identifies the report template for the report. Reports are built using a report template. The report templates are:
RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT
CreationTime
— (Date
)The date and time that a report job is created, in Unix format and Coordinated Universal Time (UTC). The value of
CreationTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.CompletionTime
— (Date
)The date and time that a report job is completed, in Unix format and Coordinated Universal Time (UTC). The value of
CompletionTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.Status
— (String
)The status of a report job. The statuses are:
CREATED | RUNNING | COMPLETED | FAILED
COMPLETED
means that the report is available for your review at your designated destination. If the status isFAILED
, review theStatusMessage
for the reason.StatusMessage
— (String
)A message explaining the status of the report job.
ReportDestination
— (map
)The S3 bucket name and S3 keys for the destination where the report job publishes the report.
S3BucketName
— (String
)The unique name of the Amazon S3 bucket that receives your reports.
S3Keys
— (Array<String>
)The object key that uniquely identifies your reports in your S3 bucket.
NextToken
— (String
)An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
-
(AWS.Response)
—
Returns:
listReportPlans(params = {}, callback) ⇒ AWS.Request
Returns a list of your report plans. For detailed information about a single report plan, use
DescribeReportPlan
.Service Reference:
Examples:
Calling the listReportPlans operation
var params = { MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; backup.listReportPlans(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
MaxResults
— (Integer
)The number of desired results from 1 to 1000. Optional. If unspecified, the query will return 1 MB of data.
NextToken
— (String
)An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ReportPlans
— (Array<map>
)The report plans with detailed information for each plan. This information includes the Amazon Resource Name (ARN), report plan name, description, settings, delivery channel, deployment status, creation time, and last times the report plan attempted to and successfully ran.
ReportPlanArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
ReportPlanName
— (String
)The unique name of the report plan. This name is between 1 and 256 characters starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
ReportPlanDescription
— (String
)An optional description of the report plan with a maximum 1,024 characters.
ReportSetting
— (map
)Identifies the report template for the report. Reports are built using a report template. The report templates are:
RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT
If the report template is
RESOURCE_COMPLIANCE_REPORT
orCONTROL_COMPLIANCE_REPORT
, this API resource also describes the report coverage by Amazon Web Services Regions and frameworks.ReportTemplate
— required — (String
)Identifies the report template for the report. Reports are built using a report template. The report templates are:
RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT
FrameworkArns
— (Array<String>
)The Amazon Resource Names (ARNs) of the frameworks a report covers.
NumberOfFrameworks
— (Integer
)The number of frameworks a report covers.
Accounts
— (Array<String>
)These are the accounts to be included in the report.
Use string value of
ROOT
to include all organizational units.OrganizationUnits
— (Array<String>
)These are the Organizational Units to be included in the report.
Regions
— (Array<String>
)These are the Regions to be included in the report.
Use the wildcard as the string value to include all Regions.
ReportDeliveryChannel
— (map
)Contains information about where and how to deliver your reports, specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your reports.
S3BucketName
— required — (String
)The unique name of the S3 bucket that receives your reports.
S3KeyPrefix
— (String
)The prefix for where Backup Audit Manager delivers your reports to Amazon S3. The prefix is this part of the following path: s3://your-bucket-name/
prefix
/Backup/us-west-2/year/month/day/report-name. If not specified, there is no prefix.Formats
— (Array<String>
)The format of your reports:
CSV
,JSON
, or both. If not specified, the default format isCSV
.
DeploymentStatus
— (String
)The deployment status of a report plan. The statuses are:
CREATE_IN_PROGRESS | UPDATE_IN_PROGRESS | DELETE_IN_PROGRESS | COMPLETED
CreationTime
— (Date
)The date and time that a report plan is created, in Unix format and Coordinated Universal Time (UTC). The value of
CreationTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.LastAttemptedExecutionTime
— (Date
)The date and time that a report job associated with this report plan last attempted to run, in Unix format and Coordinated Universal Time (UTC). The value of
LastAttemptedExecutionTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.LastSuccessfulExecutionTime
— (Date
)The date and time that a report job associated with this report plan last successfully ran, in Unix format and Coordinated Universal Time (UTC). The value of
LastSuccessfulExecutionTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
NextToken
— (String
)An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
-
(AWS.Response)
—
Returns:
listRestoreJobs(params = {}, callback) ⇒ AWS.Request
Returns a list of jobs that Backup initiated to restore a saved resource, including details about the recovery process.
Service Reference:
Examples:
Calling the listRestoreJobs operation
var params = { ByAccountId: 'STRING_VALUE', ByCompleteAfter: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, ByCompleteBefore: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, ByCreatedAfter: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, ByCreatedBefore: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, ByResourceType: 'STRING_VALUE', ByRestoreTestingPlanArn: 'STRING_VALUE', ByStatus: PENDING | RUNNING | COMPLETED | ABORTED | FAILED, MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; backup.listRestoreJobs(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.MaxResults
— (Integer
)The maximum number of items to be returned.
ByAccountId
— (String
)The account ID to list the jobs from. Returns only restore jobs associated with the specified account ID.
ByResourceType
— (String
)Include this parameter to return only restore jobs for the specified resources:
-
Aurora
for Amazon Aurora -
CloudFormation
for CloudFormation -
DocumentDB
for Amazon DocumentDB (with MongoDB compatibility) -
DynamoDB
for Amazon DynamoDB -
EBS
for Amazon Elastic Block Store -
EC2
for Amazon Elastic Compute Cloud -
EFS
for Amazon Elastic File System -
FSx
for Amazon FSx -
Neptune
for Amazon Neptune -
RDS
for Amazon Relational Database Service -
Redshift
for Amazon Redshift -
S3
for Amazon Simple Storage Service (Amazon S3) -
SAP HANA on Amazon EC2
for SAP HANA databases on Amazon Elastic Compute Cloud instances -
Storage Gateway
for Storage Gateway -
Timestream
for Amazon Timestream -
VirtualMachine
for VMware virtual machines
-
ByCreatedBefore
— (Date
)Returns only restore jobs that were created before the specified date.
ByCreatedAfter
— (Date
)Returns only restore jobs that were created after the specified date.
ByStatus
— (String
)Returns only restore jobs associated with the specified job status.
Possible values include:"PENDING"
"RUNNING"
"COMPLETED"
"ABORTED"
"FAILED"
ByCompleteBefore
— (Date
)Returns only copy jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).
ByCompleteAfter
— (Date
)Returns only copy jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).
ByRestoreTestingPlanArn
— (String
)This returns only restore testing jobs that match the specified resource Amazon Resource Name (ARN).
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:RestoreJobs
— (Array<map>
)An array of objects that contain detailed information about jobs to restore saved resources.
AccountId
— (String
)The account ID that owns the restore job.
RestoreJobId
— (String
)Uniquely identifies the job that restores a recovery point.
RecoveryPointArn
— (String
)An ARN that uniquely identifies a recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.CreationDate
— (Date
)The date and time a restore job 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.CompletionDate
— (Date
)The date and time a job to restore a recovery point is completed, in Unix format and Coordinated Universal Time (UTC). The value of
CompletionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.Status
— (String
)A status code specifying the state of the job initiated by Backup to restore a recovery point.
Possible values include:"PENDING"
"RUNNING"
"COMPLETED"
"ABORTED"
"FAILED"
StatusMessage
— (String
)A detailed message explaining the status of the job to restore a recovery point.
PercentDone
— (String
)Contains an estimated percentage complete of a job at the time the job status was queried.
BackupSizeInBytes
— (Integer
)The size, in bytes, of the restored resource.
IamRoleArn
— (String
)The IAM role ARN used to create the target recovery point; for example,
arn:aws:iam::123456789012:role/S3Access
.ExpectedCompletionTimeMinutes
— (Integer
)The amount of time in minutes that a job restoring a recovery point is expected to take.
CreatedResourceArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
ResourceType
— (String
)The resource type of the listed restore jobs; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only supported resource type is Amazon EC2.
RecoveryPointCreationDate
— (Date
)The date on which a recovery point was created.
CreatedBy
— (map
)Contains identifying information about the creation of a restore job.
RestoreTestingPlanArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a restore testing plan.
ValidationStatus
— (String
)The status of validation run on the indicated restore job.
Possible values include:"FAILED"
"SUCCESSFUL"
"TIMED_OUT"
"VALIDATING"
ValidationStatusMessage
— (String
)This describes the status of validation run on the indicated restore job.
DeletionStatus
— (String
)This notes the status of the data generated by the restore test. The status may be
Possible values include:Deleting
,Failed
, orSuccessful
."DELETING"
"FAILED"
"SUCCESSFUL"
DeletionStatusMessage
— (String
)This describes the restore job deletion status.
NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.
-
(AWS.Response)
—
Returns:
listRestoreJobsByProtectedResource(params = {}, callback) ⇒ AWS.Request
This returns restore jobs that contain the specified protected resource.
You must include
ResourceArn
. You can optionally includeNextToken
,ByStatus
,MaxResults
,ByRecoveryPointCreationDateAfter
, andByRecoveryPointCreationDateBefore
.Service Reference:
Examples:
Calling the listRestoreJobsByProtectedResource operation
var params = { ResourceArn: 'STRING_VALUE', /* required */ ByRecoveryPointCreationDateAfter: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, ByRecoveryPointCreationDateBefore: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, ByStatus: PENDING | RUNNING | COMPLETED | ABORTED | FAILED, MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; backup.listRestoreJobsByProtectedResource(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
ResourceArn
— (String
)Returns only restore jobs that match the specified resource Amazon Resource Name (ARN).
ByStatus
— (String
)Returns only restore jobs associated with the specified job status.
Possible values include:"PENDING"
"RUNNING"
"COMPLETED"
"ABORTED"
"FAILED"
ByRecoveryPointCreationDateAfter
— (Date
)Returns only restore jobs of recovery points that were created after the specified date.
ByRecoveryPointCreationDateBefore
— (Date
)Returns only restore jobs of recovery points that were created before the specified date.
NextToken
— (String
)The next item following a partial list of returned items. For example, if a request ismade to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.MaxResults
— (Integer
)The maximum number of items to be returned.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:RestoreJobs
— (Array<map>
)An array of objects that contain detailed information about jobs to restore saved resources.>
AccountId
— (String
)The account ID that owns the restore job.
RestoreJobId
— (String
)Uniquely identifies the job that restores a recovery point.
RecoveryPointArn
— (String
)An ARN that uniquely identifies a recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.CreationDate
— (Date
)The date and time a restore job 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.CompletionDate
— (Date
)The date and time a job to restore a recovery point is completed, in Unix format and Coordinated Universal Time (UTC). The value of
CompletionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.Status
— (String
)A status code specifying the state of the job initiated by Backup to restore a recovery point.
Possible values include:"PENDING"
"RUNNING"
"COMPLETED"
"ABORTED"
"FAILED"
StatusMessage
— (String
)A detailed message explaining the status of the job to restore a recovery point.
PercentDone
— (String
)Contains an estimated percentage complete of a job at the time the job status was queried.
BackupSizeInBytes
— (Integer
)The size, in bytes, of the restored resource.
IamRoleArn
— (String
)The IAM role ARN used to create the target recovery point; for example,
arn:aws:iam::123456789012:role/S3Access
.ExpectedCompletionTimeMinutes
— (Integer
)The amount of time in minutes that a job restoring a recovery point is expected to take.
CreatedResourceArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
ResourceType
— (String
)The resource type of the listed restore jobs; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only supported resource type is Amazon EC2.
RecoveryPointCreationDate
— (Date
)The date on which a recovery point was created.
CreatedBy
— (map
)Contains identifying information about the creation of a restore job.
RestoreTestingPlanArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a restore testing plan.
ValidationStatus
— (String
)The status of validation run on the indicated restore job.
Possible values include:"FAILED"
"SUCCESSFUL"
"TIMED_OUT"
"VALIDATING"
ValidationStatusMessage
— (String
)This describes the status of validation run on the indicated restore job.
DeletionStatus
— (String
)This notes the status of the data generated by the restore test. The status may be
Possible values include:Deleting
,Failed
, orSuccessful
."DELETING"
"FAILED"
"SUCCESSFUL"
DeletionStatusMessage
— (String
)This describes the restore job deletion status.
NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows youto return more items in your list starting at the location pointed to by the next token
-
(AWS.Response)
—
Returns:
listRestoreJobSummaries(params = {}, callback) ⇒ AWS.Request
This request obtains a summary of restore jobs created or running within the the most recent 30 days. You can include parameters AccountID, State, ResourceType, AggregationPeriod, MaxResults, or NextToken to filter results.
This request returns a summary that contains Region, Account, State, RestourceType, MessageCategory, StartTime, EndTime, and Count of included jobs.
Service Reference:
Examples:
Calling the listRestoreJobSummaries operation
var params = { AccountId: 'STRING_VALUE', AggregationPeriod: ONE_DAY | SEVEN_DAYS | FOURTEEN_DAYS, MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE', ResourceType: 'STRING_VALUE', State: CREATED | PENDING | RUNNING | ABORTED | COMPLETED | FAILED | AGGREGATE_ALL | ANY }; backup.listRestoreJobSummaries(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
AccountId
— (String
)Returns the job count for the specified account.
If the request is sent from a member account or an account not part of Amazon Web Services Organizations, jobs within requestor's account will be returned.
Root, admin, and delegated administrator accounts can use the value ANY to return job counts from every account in the organization.
AGGREGATE_ALL
aggregates job counts from all accounts within the authenticated organization, then returns the sum.State
— (String
)This parameter returns the job count for jobs with the specified state.
The the value ANY returns count of all states.
AGGREGATE_ALL
aggregates job counts for all states and returns the sum."CREATED"
"PENDING"
"RUNNING"
"ABORTED"
"COMPLETED"
"FAILED"
"AGGREGATE_ALL"
"ANY"
ResourceType
— (String
)Returns the job count for the specified resource type. Use request
GetSupportedResourceTypes
to obtain strings for supported resource types.The the value ANY returns count of all resource types.
AGGREGATE_ALL
aggregates job counts for all resource types and returns the sum.The type of Amazon Web Services resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.
AggregationPeriod
— (String
)The period for the returned results.
-
ONE_DAY
- The daily job count for the prior 14 days. -
SEVEN_DAYS
- The aggregated job count for the prior 7 days. -
FOURTEEN_DAYS
- The aggregated job count for prior 14 days.
"ONE_DAY"
"SEVEN_DAYS"
"FOURTEEN_DAYS"
-
MaxResults
— (Integer
)This parameter sets the maximum number of items to be returned.
The value is an integer. Range of accepted values is from 1 to 500.
NextToken
— (String
)The next item following a partial list of returned resources. For example, if a request is made to return
MaxResults
number of resources,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:RestoreJobSummaries
— (Array<map>
)This return contains a summary that contains Region, Account, State, ResourceType, MessageCategory, StartTime, EndTime, and Count of included jobs.
Region
— (String
)The Amazon Web Services Regions within the job summary.
AccountId
— (String
)The account ID that owns the jobs within the summary.
State
— (String
)This value is job count for jobs with the specified state.
Possible values include:"CREATED"
"PENDING"
"RUNNING"
"ABORTED"
"COMPLETED"
"FAILED"
"AGGREGATE_ALL"
"ANY"
ResourceType
— (String
)This value is the job count for the specified resource type. The request
GetSupportedResourceTypes
returns strings for supported resource types.Count
— (Integer
)The value as a number of jobs in a job summary.
StartTime
— (Date
)The value of time in number format of a job start time.
This value is the time in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
EndTime
— (Date
)The value of time in number format of a job end time.
This value is the time in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
AggregationPeriod
— (String
)The period for the returned results.
-
ONE_DAY
- The daily job count for the prior 14 days. -
SEVEN_DAYS
- The aggregated job count for the prior 7 days. -
FOURTEEN_DAYS
- The aggregated job count for prior 14 days.
-
NextToken
— (String
)The next item following a partial list of returned resources. For example, if a request is made to return
MaxResults
number of resources,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.
-
(AWS.Response)
—
Returns:
listRestoreTestingPlans(params = {}, callback) ⇒ AWS.Request
Returns a list of restore testing plans.
Service Reference:
Examples:
Calling the listRestoreTestingPlans operation
var params = { MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; backup.listRestoreTestingPlans(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
MaxResults
— (Integer
)The maximum number of items to be returned.
NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the nexttoken.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the nexttoken.RestoreTestingPlans
— (Array<map>
)This is a returned list of restore testing plans.
CreationTime
— required — (Date
)The date and time that a restore testing plan was created, in Unix format and Coordinated Universal Time (UTC). The value of
CreationTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.LastExecutionTime
— (Date
)The last time a restore test was run with the specified restore testing plan. A date and time, in Unix format and Coordinated Universal Time (UTC). The value of
LastExecutionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.LastUpdateTime
— (Date
)The date and time that the restore testing plan was updated. This update is in Unix format and Coordinated Universal Time (UTC). The value of
LastUpdateTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.RestoreTestingPlanArn
— required — (String
)An Amazon Resource Name (ARN) that uniquely identifiesa restore testing plan.
RestoreTestingPlanName
— required — (String
)The restore testing plan name.
ScheduleExpression
— required — (String
)A CRON expression in specified timezone when a restore testing plan is executed.
ScheduleExpressionTimezone
— (String
)Optional. This is the timezone in which the schedule expression is set. By default, ScheduleExpressions are in UTC. You can modify this to a specified timezone.
StartWindowHours
— (Integer
)Defaults to 24 hours.
A value in hours after a restore test is scheduled before a job will be canceled if it doesn't start successfully. This value is optional. If this value is included, this parameter has a maximum value of 168 hours (one week).
-
(AWS.Response)
—
Returns:
listRestoreTestingSelections(params = {}, callback) ⇒ AWS.Request
Returns a list of restore testing selections. Can be filtered by
MaxResults
andRestoreTestingPlanName
.Service Reference:
Examples:
Calling the listRestoreTestingSelections operation
var params = { RestoreTestingPlanName: 'STRING_VALUE', /* required */ MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; backup.listRestoreTestingSelections(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
MaxResults
— (Integer
)The maximum number of items to be returned.
NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the nexttoken.RestoreTestingPlanName
— (String
)Returns restore testing selections by the specified restore testing plan name.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the nexttoken.RestoreTestingSelections
— (Array<map>
)The returned restore testing selections associated with the restore testing plan.
CreationTime
— required — (Date
)The date and time that a restore testing selection was created, in Unix format and Coordinated Universal Time (UTC). The value of
CreationTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26,2018 12:11:30.087 AM.IamRoleArn
— required — (String
)The Amazon Resource Name (ARN) of the IAM role that Backup uses to create the target resource; for example:
arn:aws:iam::123456789012:role/S3Access
.ProtectedResourceType
— required — (String
)The type of Amazon Web Services resource included in a restore testing selection; for example, an Amazon EBS volume or an Amazon RDS database.
RestoreTestingPlanName
— required — (String
)Unique string that is the name of the restore testing plan.
The name cannot be changed after creation. The name must consist of only alphanumeric characters and underscores. Maximum length is 50.
RestoreTestingSelectionName
— required — (String
)Unique name of a restore testing selection.
ValidationWindowHours
— (Integer
)This value represents the time, in hours, data is retained after a restore test so that optional validation can be completed.
Accepted value is an integer between 0 and 168 (the hourly equivalent of seven days).
-
(AWS.Response)
—
Returns:
listTags(params = {}, callback) ⇒ AWS.Request
Returns the tags assigned to the resource, such as a target recovery point, backup plan, or backup vault.
Service Reference:
Examples:
Calling the listTags operation
var params = { ResourceArn: 'STRING_VALUE', /* required */ MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; backup.listTags(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
ResourceArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the type of resource. Valid targets for
ListTags
are recovery points, backup plans, and backup vaults.NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.MaxResults
— (Integer
)The maximum number of items to be returned.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:NextToken
— (String
)The next item following a partial list of returned items. For example, if a request is made to return
MaxResults
number of items,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.Tags
— (map<String>
)Information about the tags.
-
(AWS.Response)
—
Returns:
putBackupVaultAccessPolicy(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the putBackupVaultAccessPolicy operation
var params = { BackupVaultName: 'STRING_VALUE', /* required */ Policy: 'STRING_VALUE' }; backup.putBackupVaultAccessPolicy(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupVaultName
— (String
)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.
Policy
— (String
)The backup vault access policy document in JSON format.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
putBackupVaultLockConfiguration(params = {}, callback) ⇒ AWS.Request
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 been assessed by Cohasset Associates for use in environments that are subject to SEC 17a-4, CFTC, and FINRA regulations. For more information about how Backup Vault Lock relates to these regulations, see the Cohasset Associates Compliance Assessment.For more information, see Backup Vault Lock.
Service Reference:
Examples:
Calling the putBackupVaultLockConfiguration operation
var params = { BackupVaultName: 'STRING_VALUE', /* required */ ChangeableForDays: 'NUMBER_VALUE', MaxRetentionDays: 'NUMBER_VALUE', MinRetentionDays: 'NUMBER_VALUE' }; backup.putBackupVaultLockConfiguration(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupVaultName
— (String
)The Backup Vault Lock configuration that specifies the name of the backup vault it protects.
MinRetentionDays
— (Integer
)The Backup Vault Lock configuration that specifies the minimum retention period that the vault retains its recovery points. This setting can be useful if, for example, your organization's policies require you to retain certain data for at least seven years (2555 days).
This parameter is required when a vault lock is created through CloudFormation; otherwise, this parameter is optional. If this parameter is not specified, Vault Lock will not enforce a minimum retention period.
If this parameter is specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or longer than the minimum retention period. If the job's retention period is shorter than that minimum retention period, then the vault fails that backup or copy job, and you should either modify your lifecycle settings or use a different vault. The shortest minimum retention period you can specify is 1 day. Recovery points already saved in the vault prior to Vault Lock are not affected.
MaxRetentionDays
— (Integer
)The Backup Vault Lock configuration that specifies the maximum retention period that the vault retains its recovery points. This setting can be useful if, for example, your organization's policies require you to destroy certain data after retaining it for four years (1460 days).
If this parameter is not included, Vault Lock does not enforce a maximum retention period on the recovery points in the vault. If this parameter is included without a value, Vault Lock will not enforce a maximum retention period.
If this parameter is specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or shorter than the maximum retention period. If the job's retention period is longer than that maximum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. The longest maximum retention period you can specify is 36500 days (approximately 100 years). Recovery points already saved in the vault prior to Vault Lock are not affected.
ChangeableForDays
— (Integer
)The Backup Vault Lock configuration that specifies the number of days before the lock date. For example, setting
ChangeableForDays
to 30 on Jan. 1, 2022 at 8pm UTC will set the lock date to Jan. 31, 2022 at 8pm UTC.Backup enforces a 72-hour cooling-off period before Vault Lock takes effect and becomes immutable. Therefore, you must set
ChangeableForDays
to 3 or greater.Before the lock date, you can delete Vault Lock from the vault using
DeleteBackupVaultLockConfiguration
or change the Vault Lock configuration usingPutBackupVaultLockConfiguration
. On and after the lock date, the Vault Lock becomes immutable and cannot be changed or deleted.If this parameter is not specified, you can delete Vault Lock from the vault using
DeleteBackupVaultLockConfiguration
or change the Vault Lock configuration usingPutBackupVaultLockConfiguration
at any time.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
putBackupVaultNotifications(params = {}, callback) ⇒ AWS.Request
Turns on notifications on a backup vault for the specified topic and events.
Service Reference:
Examples:
Calling the putBackupVaultNotifications operation
var params = { BackupVaultEvents: [ /* required */ BACKUP_JOB_STARTED | BACKUP_JOB_COMPLETED | BACKUP_JOB_SUCCESSFUL | BACKUP_JOB_FAILED | BACKUP_JOB_EXPIRED | RESTORE_JOB_STARTED | RESTORE_JOB_COMPLETED | RESTORE_JOB_SUCCESSFUL | RESTORE_JOB_FAILED | COPY_JOB_STARTED | COPY_JOB_SUCCESSFUL | COPY_JOB_FAILED | RECOVERY_POINT_MODIFIED | BACKUP_PLAN_CREATED | BACKUP_PLAN_MODIFIED | S3_BACKUP_OBJECT_FAILED | S3_RESTORE_OBJECT_FAILED, /* more items */ ], BackupVaultName: 'STRING_VALUE', /* required */ SNSTopicArn: 'STRING_VALUE' /* required */ }; backup.putBackupVaultNotifications(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupVaultName
— (String
)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.
SNSTopicArn
— (String
)The Amazon Resource Name (ARN) that specifies the topic for a backup vault’s events; for example,
arn:aws:sns:us-west-2:111122223333:MyVaultTopic
.BackupVaultEvents
— (Array<String>
)An array of events that indicate the status of jobs to back up resources to the backup vault.
For common use cases and code samples, see Using Amazon SNS to track Backup events.
The following events are supported:
-
BACKUP_JOB_STARTED
|BACKUP_JOB_COMPLETED
-
COPY_JOB_STARTED
|COPY_JOB_SUCCESSFUL
|COPY_JOB_FAILED
-
RESTORE_JOB_STARTED
|RESTORE_JOB_COMPLETED
|RECOVERY_POINT_MODIFIED
-
S3_BACKUP_OBJECT_FAILED
|S3_RESTORE_OBJECT_FAILED
Note: The list below includes both supported events and deprecated events that are no longer in use (for reference). Deprecated events do not return statuses or notifications. Refer to the list above for the supported events.-
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
putRestoreValidationResult(params = {}, callback) ⇒ AWS.Request
This request allows you to send your independent self-run restore test validation results.
RestoreJobId
andValidationStatus
are required. Optionally, you can input aValidationStatusMessage
.Service Reference:
Examples:
Calling the putRestoreValidationResult operation
var params = { RestoreJobId: 'STRING_VALUE', /* required */ ValidationStatus: FAILED | SUCCESSFUL | TIMED_OUT | VALIDATING, /* required */ ValidationStatusMessage: 'STRING_VALUE' }; backup.putRestoreValidationResult(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
RestoreJobId
— (String
)This is a unique identifier of a restore job within Backup.
ValidationStatus
— (String
)The status of your restore validation.
Possible values include:"FAILED"
"SUCCESSFUL"
"TIMED_OUT"
"VALIDATING"
ValidationStatusMessage
— (String
)This is an optional message string you can input to describe the validation status for the restore test validation.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
startBackupJob(params = {}, callback) ⇒ AWS.Request
Starts an on-demand backup job for the specified resource.
Service Reference:
Examples:
Calling the startBackupJob operation
var params = { BackupVaultName: 'STRING_VALUE', /* required */ IamRoleArn: 'STRING_VALUE', /* required */ ResourceArn: 'STRING_VALUE', /* required */ BackupOptions: { '<BackupOptionKey>': 'STRING_VALUE', /* '<BackupOptionKey>': ... */ }, CompleteWindowMinutes: 'NUMBER_VALUE', IdempotencyToken: 'STRING_VALUE', Lifecycle: { DeleteAfterDays: 'NUMBER_VALUE', MoveToColdStorageAfterDays: 'NUMBER_VALUE', OptInToArchiveForSupportedResources: true || false }, RecoveryPointTags: { '<TagKey>': 'STRING_VALUE', /* '<TagKey>': ... */ }, StartWindowMinutes: 'NUMBER_VALUE' }; backup.startBackupJob(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupVaultName
— (String
)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.
ResourceArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
IamRoleArn
— (String
)Specifies the IAM role ARN used to create the target recovery point; for example,
arn:aws:iam::123456789012:role/S3Access
.IdempotencyToken
— (String
)A customer-chosen string that you can use to distinguish between otherwise identical calls to
StartBackupJob
. Retrying a successful request with the same idempotency token results in a success message with no action taken.StartWindowMinutes
— (Integer
)A value in minutes after a backup is scheduled before a job will be canceled if it doesn't start successfully. This value is optional, and the default is 8 hours. If this value is included, it must be at least 60 minutes to avoid errors.
This parameter has a maximum value of 100 years (52,560,000 minutes).
During the start window, the backup job status remains in
CREATED
status until it has successfully begun or until the start window time has run out. If within the start window time Backup receives an error that allows the job to be retried, Backup will automatically retry to begin the job at least every 10 minutes until the backup successfully begins (the job status changes toRUNNING
) or until the job status changes toEXPIRED
(which is expected to occur when the start window time is over).CompleteWindowMinutes
— (Integer
)A value in minutes during which a successfully started backup must complete, or else Backup will cancel the job. This value is optional. This value begins counting down from when the backup was scheduled. It does not add additional time for
StartWindowMinutes
, or if the backup started later than scheduled.Like
StartWindowMinutes
, this parameter has a maximum value of 100 years (52,560,000 minutes).Lifecycle
— (map
)The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup will transition and expire 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 “retention” 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.
Resource types that can transition to cold storage are listed in the Feature availability by resource table. Backup ignores this expression for other resource types.
This parameter has a maximum value of 100 years (36,500 days).
MoveToColdStorageAfterDays
— (Integer
)The number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)The number of days after creation that a recovery point is deleted. This value must be at least 90 days after the number of days specified in
MoveToColdStorageAfterDays
.OptInToArchiveForSupportedResources
— (Boolean
)If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
RecoveryPointTags
— (map<String>
)The tags to assign to the resources.
BackupOptions
— (map<String>
)The backup option for a selected resource. This option is only available for Windows Volume Shadow Copy Service (VSS) backup jobs.
Valid values: Set to
"WindowsVSS":"enabled"
to enable theWindowsVSS
backup option and create a Windows VSS backup. Set to"WindowsVSS""disabled"
to create a regular backup. TheWindowsVSS
option is not enabled by default.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:BackupJobId
— (String
)Uniquely identifies a request to Backup to back up a resource.
RecoveryPointArn
— (String
)Note: This field is only returned for Amazon EFS and Advanced DynamoDB resources.
An ARN that uniquely identifies a recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.CreationDate
— (Date
)The date and time that a backup job 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.IsParent
— (Boolean
)This is a returned boolean value indicating this is a parent (composite) backup job.
-
(AWS.Response)
—
Returns:
startCopyJob(params = {}, callback) ⇒ AWS.Request
Starts a job to create a one-time copy of the specified resource.
Does not support continuous backups.
Service Reference:
Examples:
Calling the startCopyJob operation
var params = { DestinationBackupVaultArn: 'STRING_VALUE', /* required */ IamRoleArn: 'STRING_VALUE', /* required */ RecoveryPointArn: 'STRING_VALUE', /* required */ SourceBackupVaultName: 'STRING_VALUE', /* required */ IdempotencyToken: 'STRING_VALUE', Lifecycle: { DeleteAfterDays: 'NUMBER_VALUE', MoveToColdStorageAfterDays: 'NUMBER_VALUE', OptInToArchiveForSupportedResources: true || false } }; backup.startCopyJob(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
RecoveryPointArn
— (String
)An ARN that uniquely identifies a recovery point to use for the copy job; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.
SourceBackupVaultName
— (String
)The name of a logical source 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.
DestinationBackupVaultArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a destination backup vault to copy to; for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.IamRoleArn
— (String
)Specifies the IAM role ARN used to copy the target recovery point; for example,
arn:aws:iam::123456789012:role/S3Access
.IdempotencyToken
— (String
)A customer-chosen string that you can use to distinguish between otherwise identical calls to
StartCopyJob
. Retrying a successful request with the same idempotency token results in a success message with no action taken.Lifecycle
— (map
)Specifies the time period, in days, before a recovery point transitions to cold storage or is deleted.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, on the console, the retention setting must be 90 days greater than the transition to cold after days setting. The transition to cold after days setting can't be changed after a backup has been transitioned to cold.
Resource types that can transition to cold storage are listed in the Feature availability by resource table. Backup ignores this expression for other resource types.
To remove the existing lifecycle and retention periods and keep your recovery points indefinitely, specify -1 for
MoveToColdStorageAfterDays
andDeleteAfterDays
.MoveToColdStorageAfterDays
— (Integer
)The number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)The number of days after creation that a recovery point is deleted. This value must be at least 90 days after the number of days specified in
MoveToColdStorageAfterDays
.OptInToArchiveForSupportedResources
— (Boolean
)If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:CopyJobId
— (String
)Uniquely identifies a copy job.
CreationDate
— (Date
)The date and time that a copy job 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.IsParent
— (Boolean
)This is a returned boolean value indicating this is a parent (composite) copy job.
-
(AWS.Response)
—
Returns:
startReportJob(params = {}, callback) ⇒ AWS.Request
Starts an on-demand report job for the specified report plan.
Service Reference:
Examples:
Calling the startReportJob operation
var params = { ReportPlanName: 'STRING_VALUE', /* required */ IdempotencyToken: 'STRING_VALUE' }; backup.startReportJob(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
ReportPlanName
— (String
)The unique name of a report plan.
IdempotencyToken
— (String
)A customer-chosen string that you can use to distinguish between otherwise identical calls to
If a token is not provided, the SDK will use a version 4 UUID.StartReportJobInput
. Retrying a successful request with the same idempotency token results in a success message with no action taken.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ReportJobId
— (String
)The identifier of the report job. A unique, randomly generated, Unicode, UTF-8 encoded string that is at most 1,024 bytes long. The report job ID cannot be edited.
-
(AWS.Response)
—
Returns:
startRestoreJob(params = {}, callback) ⇒ AWS.Request
Recovers the saved resource identified by an Amazon Resource Name (ARN).
Service Reference:
Examples:
Calling the startRestoreJob operation
var params = { Metadata: { /* required */ '<MetadataKey>': 'STRING_VALUE', /* '<MetadataKey>': ... */ }, RecoveryPointArn: 'STRING_VALUE', /* required */ CopySourceTagsToRestoredResource: true || false, IamRoleArn: 'STRING_VALUE', IdempotencyToken: 'STRING_VALUE', ResourceType: 'STRING_VALUE' }; backup.startRestoreJob(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
RecoveryPointArn
— (String
)An ARN that uniquely identifies a recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.Metadata
— (map<String>
)A set of metadata key-value pairs.
You can get configuration metadata about a resource at the time it was backed up by calling
GetRecoveryPointRestoreMetadata
. However, values in addition to those provided byGetRecoveryPointRestoreMetadata
might be required to restore a resource. For example, you might need to provide a new resource name if the original already exists.For more information about the metadata for each resource, see the following:
IamRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM role that Backup uses to create the target resource; for example:
arn:aws:iam::123456789012:role/S3Access
.IdempotencyToken
— (String
)A customer-chosen string that you can use to distinguish between otherwise identical calls to
StartRestoreJob
. Retrying a successful request with the same idempotency token results in a success message with no action taken.ResourceType
— (String
)Starts a job to restore a recovery point for one of the following resources:
-
Aurora
- Amazon Aurora -
DocumentDB
- Amazon DocumentDB -
CloudFormation
- CloudFormation -
DynamoDB
- Amazon DynamoDB -
EBS
- Amazon Elastic Block Store -
EC2
- Amazon Elastic Compute Cloud -
EFS
- Amazon Elastic File System -
FSx
- Amazon FSx -
Neptune
- Amazon Neptune -
RDS
- Amazon Relational Database Service -
Redshift
- Amazon Redshift -
Storage Gateway
- Storage Gateway -
S3
- Amazon Simple Storage Service -
Timestream
- Amazon Timestream -
VirtualMachine
- Virtual machines
-
CopySourceTagsToRestoredResource
— (Boolean
)This is an optional parameter. If this equals
True
, tags included in the backup will be copied to the restored resource.This can only be applied to backups created through Backup.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:RestoreJobId
— (String
)Uniquely identifies the job that restores a recovery point.
-
(AWS.Response)
—
Returns:
stopBackupJob(params = {}, callback) ⇒ AWS.Request
Attempts to cancel a job to create a one-time backup of a resource.
This action is not supported for the following services: Amazon FSx for Windows File Server, Amazon FSx for Lustre, Amazon FSx for NetApp ONTAP, Amazon FSx for OpenZFS, Amazon DocumentDB (with MongoDB compatibility), Amazon RDS, Amazon Aurora, and Amazon Neptune.
Service Reference:
Examples:
Calling the stopBackupJob operation
var params = { BackupJobId: 'STRING_VALUE' /* required */ }; backup.stopBackupJob(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupJobId
— (String
)Uniquely identifies a request to Backup to back up a resource.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
tagResource(params = {}, callback) ⇒ AWS.Request
Assigns a set of key-value pairs to a recovery point, backup plan, or backup vault identified by an Amazon Resource Name (ARN).
This API is supported for recovery points for resource types including Aurora, Amazon DocumentDB. Amazon EBS, Amazon FSx, Neptune, and Amazon RDS.
Service Reference:
Examples:
Calling the tagResource operation
var params = { ResourceArn: 'STRING_VALUE', /* required */ Tags: { /* required */ '<TagKey>': 'STRING_VALUE', /* '<TagKey>': ... */ } }; backup.tagResource(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
ResourceArn
— (String
)An ARN that uniquely identifies a resource. The format of the ARN depends on the type of the tagged resource.
ARNs that do not include
backup
are incompatible with tagging.TagResource
andUntagResource
with invalid ARNs will result in an error. Acceptable ARN content can includearn:aws:backup:us-east
. Invalid ARN content may look likearn:aws:ec2:us-east
.Tags
— (map<String>
)Key-value pairs that are used to help organize your resources. You can assign your own metadata to the resources you create. For clarity, this is the structure to assign tags:
[{"Key":"string","Value":"string"}]
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
untagResource(params = {}, callback) ⇒ AWS.Request
Removes a set of key-value pairs from a recovery point, backup plan, or backup vault identified by an Amazon Resource Name (ARN)
This API is not supported for recovery points for resource types including Aurora, Amazon DocumentDB. Amazon EBS, Amazon FSx, Neptune, and Amazon RDS.
Service Reference:
Examples:
Calling the untagResource operation
var params = { ResourceArn: 'STRING_VALUE', /* required */ TagKeyList: [ /* required */ 'STRING_VALUE', /* more items */ ] }; backup.untagResource(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
ResourceArn
— (String
)An ARN that uniquely identifies a resource. The format of the ARN depends on the type of the tagged resource.
ARNs that do not include
backup
are incompatible with tagging.TagResource
andUntagResource
with invalid ARNs will result in an error. Acceptable ARN content can includearn:aws:backup:us-east
. Invalid ARN content may look likearn:aws:ec2:us-east
.TagKeyList
— (Array<String>
)The keys to identify which key-value tags to remove from a resource.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
updateBackupPlan(params = {}, callback) ⇒ AWS.Request
Updates the specified backup plan. The new version is uniquely identified by its ID.
Service Reference:
Examples:
Calling the updateBackupPlan operation
var params = { BackupPlan: { /* required */ BackupPlanName: 'STRING_VALUE', /* required */ Rules: [ /* required */ { RuleName: 'STRING_VALUE', /* required */ TargetBackupVaultName: 'STRING_VALUE', /* required */ CompletionWindowMinutes: 'NUMBER_VALUE', CopyActions: [ { DestinationBackupVaultArn: 'STRING_VALUE', /* required */ Lifecycle: { DeleteAfterDays: 'NUMBER_VALUE', MoveToColdStorageAfterDays: 'NUMBER_VALUE', OptInToArchiveForSupportedResources: true || false } }, /* more items */ ], EnableContinuousBackup: true || false, Lifecycle: { DeleteAfterDays: 'NUMBER_VALUE', MoveToColdStorageAfterDays: 'NUMBER_VALUE', OptInToArchiveForSupportedResources: true || false }, RecoveryPointTags: { '<TagKey>': 'STRING_VALUE', /* '<TagKey>': ... */ }, ScheduleExpression: 'STRING_VALUE', ScheduleExpressionTimezone: 'STRING_VALUE', StartWindowMinutes: 'NUMBER_VALUE' }, /* more items */ ], AdvancedBackupSettings: [ { BackupOptions: { '<BackupOptionKey>': 'STRING_VALUE', /* '<BackupOptionKey>': ... */ }, ResourceType: 'STRING_VALUE' }, /* more items */ ] }, BackupPlanId: 'STRING_VALUE' /* required */ }; backup.updateBackupPlan(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupPlanId
— (String
)The ID of the backup plan.
BackupPlan
— (map
)The body of a backup plan. Includes a
BackupPlanName
and one or more sets ofRules
.BackupPlanName
— required — (String
)The display name of a backup plan. Must contain 1 to 50 alphanumeric or '-_.' characters.
Rules
— required — (Array<map>
)An array of
BackupRule
objects, each of which specifies a scheduled task that is used to back up a selection of resources.RuleName
— required — (String
)A display name for a backup rule. Must contain 1 to 50 alphanumeric or '-_.' characters.
TargetBackupVaultName
— required — (String
)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.
ScheduleExpression
— (String
)A CRON expression in UTC specifying when Backup initiates a backup job.
StartWindowMinutes
— (Integer
)A value in minutes after a backup is scheduled before a job will be canceled if it doesn't start successfully. This value is optional. If this value is included, it must be at least 60 minutes to avoid errors.
This parameter has a maximum value of 100 years (52,560,000 minutes).
During the start window, the backup job status remains in
CREATED
status until it has successfully begun or until the start window time has run out. If within the start window time Backup receives an error that allows the job to be retried, Backup will automatically retry to begin the job at least every 10 minutes until the backup successfully begins (the job status changes toRUNNING
) or until the job status changes toEXPIRED
(which is expected to occur when the start window time is over).CompletionWindowMinutes
— (Integer
)A value in minutes after a backup job is successfully started before it must be completed or it will be canceled by Backup. This value is optional.
Lifecycle
— (map
)The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup will transition and expire 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 “retention” 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 storage.
Resource types that can transition to cold storage are listed in the Feature availability by resource table. Backup ignores this expression for other resource types.
This parameter has a maximum value of 100 years (36,500 days).
MoveToColdStorageAfterDays
— (Integer
)The number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)The number of days after creation that a recovery point is deleted. This value must be at least 90 days after the number of days specified in
MoveToColdStorageAfterDays
.OptInToArchiveForSupportedResources
— (Boolean
)If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
RecoveryPointTags
— (map<String>
)The tags to assign to the resources.
CopyActions
— (Array<map>
)An array of
CopyAction
objects, which contains the details of the copy operation.Lifecycle
— (map
)Specifies the time period, in days, before a recovery point transitions to cold storage or is deleted.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, on the console, the retention setting must be 90 days greater than the transition to cold after days setting. The transition to cold after days setting can't be changed after a backup has been transitioned to cold.
Resource types that can transition to cold storage are listed in the Feature availability by resource table. Backup ignores this expression for other resource types.
To remove the existing lifecycle and retention periods and keep your recovery points indefinitely, specify -1 for
MoveToColdStorageAfterDays
andDeleteAfterDays
.MoveToColdStorageAfterDays
— (Integer
)The number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)The number of days after creation that a recovery point is deleted. This value must be at least 90 days after the number of days specified in
MoveToColdStorageAfterDays
.OptInToArchiveForSupportedResources
— (Boolean
)If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
DestinationBackupVaultArn
— required — (String
)An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup. For example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.
EnableContinuousBackup
— (Boolean
)Specifies whether Backup creates continuous backups. True causes Backup to create continuous backups capable of point-in-time restore (PITR). False (or not specified) causes Backup to create snapshot backups.
ScheduleExpressionTimezone
— (String
)The timezone in which the schedule expression is set. By default, ScheduleExpressions are in UTC. You can modify this to a specified timezone.
AdvancedBackupSettings
— (Array<map>
)Specifies a list of
BackupOptions
for each resource type. These settings are only available for Windows Volume Shadow Copy Service (VSS) backup jobs.ResourceType
— (String
)Specifies an object containing resource type and backup options. The only supported resource type is Amazon EC2 instances with Windows Volume Shadow Copy Service (VSS). For a CloudFormation example, see the sample CloudFormation template to enable Windows VSS in the Backup User Guide.
Valid values:
EC2
.BackupOptions
— (map<String>
)Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs.
Valid values:
Set to
"WindowsVSS":"enabled"
to enable theWindowsVSS
backup option and create a Windows VSS backup.Set to
"WindowsVSS":"disabled"
to create a regular backup. TheWindowsVSS
option is not enabled by default.If you specify an invalid option, you get an
InvalidParameterValueException
exception.For more information about Windows VSS backups, see Creating a VSS-Enabled Windows Backup.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:BackupPlanId
— (String
)Uniquely identifies a backup plan.
BackupPlanArn
— (String
)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
.CreationDate
— (Date
)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
— (String
)Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. Version Ids cannot be edited.
AdvancedBackupSettings
— (Array<map>
)Contains a list of
BackupOptions
for each resource type.ResourceType
— (String
)Specifies an object containing resource type and backup options. The only supported resource type is Amazon EC2 instances with Windows Volume Shadow Copy Service (VSS). For a CloudFormation example, see the sample CloudFormation template to enable Windows VSS in the Backup User Guide.
Valid values:
EC2
.BackupOptions
— (map<String>
)Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs.
Valid values:
Set to
"WindowsVSS":"enabled"
to enable theWindowsVSS
backup option and create a Windows VSS backup.Set to
"WindowsVSS":"disabled"
to create a regular backup. TheWindowsVSS
option is not enabled by default.If you specify an invalid option, you get an
InvalidParameterValueException
exception.For more information about Windows VSS backups, see Creating a VSS-Enabled Windows Backup.
-
(AWS.Response)
—
Returns:
updateFramework(params = {}, callback) ⇒ AWS.Request
Updates the specified framework.
Service Reference:
Examples:
Calling the updateFramework operation
var params = { FrameworkName: 'STRING_VALUE', /* required */ FrameworkControls: [ { ControlName: 'STRING_VALUE', /* required */ ControlInputParameters: [ { ParameterName: 'STRING_VALUE', ParameterValue: 'STRING_VALUE' }, /* more items */ ], ControlScope: { ComplianceResourceIds: [ 'STRING_VALUE', /* more items */ ], ComplianceResourceTypes: [ 'STRING_VALUE', /* more items */ ], Tags: { '<string>': 'STRING_VALUE', /* '<string>': ... */ } } }, /* more items */ ], FrameworkDescription: 'STRING_VALUE', IdempotencyToken: 'STRING_VALUE' }; backup.updateFramework(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
FrameworkName
— (String
)The unique name of a framework. This name is between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
FrameworkDescription
— (String
)An optional description of the framework with a maximum 1,024 characters.
FrameworkControls
— (Array<map>
)The controls that make up the framework. Each control in the list has a name, input parameters, and scope.
ControlName
— required — (String
)The name of a control. This name is between 1 and 256 characters.
ControlInputParameters
— (Array<map>
)The name/value pairs.
ParameterName
— (String
)The name of a parameter, for example,
BackupPlanFrequency
.ParameterValue
— (String
)The value of parameter, for example,
hourly
.
ControlScope
— (map
)The scope of a control. The control scope defines what the control will evaluate. Three examples of control scopes are: a specific backup plan, all backup plans with a specific tag, or all backup plans.
For more information, see
ControlScope
.ComplianceResourceIds
— (Array<String>
)The ID of the only Amazon Web Services resource that you want your control scope to contain.
ComplianceResourceTypes
— (Array<String>
)Describes whether the control scope includes one or more types of resources, such as
EFS
orRDS
.Tags
— (map<String>
)The tag key-value pair applied to those Amazon Web Services resources that you want to trigger an evaluation for a rule. A maximum of one key-value pair can be provided. The tag value is optional, but it cannot be an empty string if you are creating or editing a framework from the console (though the value can be an empty string when included in a CloudFormation template).
The structure to assign a tag is:
[{"Key":"string","Value":"string"}]
.
IdempotencyToken
— (String
)A customer-chosen string that you can use to distinguish between otherwise identical calls to
If a token is not provided, the SDK will use a version 4 UUID.UpdateFrameworkInput
. Retrying a successful request with the same idempotency token results in a success message with no action taken.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:FrameworkName
— (String
)The unique name of a framework. This name is between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
FrameworkArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
CreationTime
— (Date
)The date and time that a framework is created, in ISO 8601 representation. The value of
CreationTime
is accurate to milliseconds. For example, 2020-07-10T15:00:00.000-08:00 represents the 10th of July 2020 at 3:00 PM 8 hours behind UTC.
-
(AWS.Response)
—
Returns:
updateGlobalSettings(params = {}, callback) ⇒ AWS.Request
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.Service Reference:
Examples:
Calling the updateGlobalSettings operation
var params = { GlobalSettings: { '<GlobalSettingsName>': 'STRING_VALUE', /* '<GlobalSettingsName>': ... */ } }; backup.updateGlobalSettings(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
GlobalSettings
— (map<String>
)A value for
isCrossAccountBackupEnabled
and a Region. Example:update-global-settings --global-settings isCrossAccountBackupEnabled=false --region us-west-2
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
updateRecoveryPointLifecycle(params = {}, callback) ⇒ AWS.Request
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.
Resource types that can transition to cold storage are listed in the Feature availability by resource table. Backup ignores this expression for other resource types.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” 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.
If your lifecycle currently uses the parameters
DeleteAfterDays
andMoveToColdStorageAfterDays
, include these parameters and their values when you call this operation. Not including them may result in your plan updating with null values.This operation does not support continuous backups.
Service Reference:
Examples:
Calling the updateRecoveryPointLifecycle operation
var params = { BackupVaultName: 'STRING_VALUE', /* required */ RecoveryPointArn: 'STRING_VALUE', /* required */ Lifecycle: { DeleteAfterDays: 'NUMBER_VALUE', MoveToColdStorageAfterDays: 'NUMBER_VALUE', OptInToArchiveForSupportedResources: true || false } }; backup.updateRecoveryPointLifecycle(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
BackupVaultName
— (String
)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.
RecoveryPointArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.Lifecycle
— (map
)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 “retention” 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.
MoveToColdStorageAfterDays
— (Integer
)The number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)The number of days after creation that a recovery point is deleted. This value must be at least 90 days after the number of days specified in
MoveToColdStorageAfterDays
.OptInToArchiveForSupportedResources
— (Boolean
)If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:BackupVaultArn
— (String
)An ARN that uniquely identifies a backup vault; for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.RecoveryPointArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.Lifecycle
— (map
)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 “retention” 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.
Resource types that can transition to cold storage are listed in the Feature availability by resource table. Backup ignores this expression for other resource types.
MoveToColdStorageAfterDays
— (Integer
)The number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)The number of days after creation that a recovery point is deleted. This value must be at least 90 days after the number of days specified in
MoveToColdStorageAfterDays
.OptInToArchiveForSupportedResources
— (Boolean
)If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
CalculatedLifecycle
— (map
)A
CalculatedLifecycle
object containingDeleteAt
andMoveToColdStorageAt
timestamps.MoveToColdStorageAt
— (Date
)A timestamp that specifies when to transition a recovery point to cold storage.
DeleteAt
— (Date
)A timestamp that specifies when to delete a recovery point.
-
(AWS.Response)
—
Returns:
updateRegionSettings(params = {}, callback) ⇒ AWS.Request
Updates the current service opt-in settings for the Region.
Use the
DescribeRegionSettings
API to determine the resource types that are supported.Service Reference:
Examples:
Calling the updateRegionSettings operation
var params = { ResourceTypeManagementPreference: { '<ResourceType>': true || false, /* '<ResourceType>': ... */ }, ResourceTypeOptInPreference: { '<ResourceType>': true || false, /* '<ResourceType>': ... */ } }; backup.updateRegionSettings(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
ResourceTypeOptInPreference
— (map<Boolean>
)Updates the list of services along with the opt-in preferences for the Region.
If resource assignments are only based on tags, then service opt-in settings are applied. If a resource type is explicitly assigned to a backup plan, such as Amazon S3, Amazon EC2, or Amazon RDS, it will be included in the backup even if the opt-in is not enabled for that particular service. If both a resource type and tags are specified in a resource assignment, the resource type specified in the backup plan takes priority over the tag condition. Service opt-in settings are disregarded in this situation.
ResourceTypeManagementPreference
— (map<Boolean>
)Enables or disables full Backup management of backups for a resource type. To enable full Backup management for DynamoDB along with Backup's advanced DynamoDB backup features, follow the procedure to enable advanced DynamoDB backup programmatically.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
updateReportPlan(params = {}, callback) ⇒ AWS.Request
Updates the specified report plan.
Service Reference:
Examples:
Calling the updateReportPlan operation
var params = { ReportPlanName: 'STRING_VALUE', /* required */ IdempotencyToken: 'STRING_VALUE', ReportDeliveryChannel: { S3BucketName: 'STRING_VALUE', /* required */ Formats: [ 'STRING_VALUE', /* more items */ ], S3KeyPrefix: 'STRING_VALUE' }, ReportPlanDescription: 'STRING_VALUE', ReportSetting: { ReportTemplate: 'STRING_VALUE', /* required */ Accounts: [ 'STRING_VALUE', /* more items */ ], FrameworkArns: [ 'STRING_VALUE', /* more items */ ], NumberOfFrameworks: 'NUMBER_VALUE', OrganizationUnits: [ 'STRING_VALUE', /* more items */ ], Regions: [ 'STRING_VALUE', /* more items */ ] } }; backup.updateReportPlan(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
ReportPlanName
— (String
)The unique name of the report plan. This name is between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
ReportPlanDescription
— (String
)An optional description of the report plan with a maximum 1,024 characters.
ReportDeliveryChannel
— (map
)The information about where to deliver your reports, specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your reports.
S3BucketName
— required — (String
)The unique name of the S3 bucket that receives your reports.
S3KeyPrefix
— (String
)The prefix for where Backup Audit Manager delivers your reports to Amazon S3. The prefix is this part of the following path: s3://your-bucket-name/
prefix
/Backup/us-west-2/year/month/day/report-name. If not specified, there is no prefix.Formats
— (Array<String>
)The format of your reports:
CSV
,JSON
, or both. If not specified, the default format isCSV
.
ReportSetting
— (map
)The report template for the report. Reports are built using a report template. The report templates are:
RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT
If the report template is
RESOURCE_COMPLIANCE_REPORT
orCONTROL_COMPLIANCE_REPORT
, this API resource also describes the report coverage by Amazon Web Services Regions and frameworks.ReportTemplate
— required — (String
)Identifies the report template for the report. Reports are built using a report template. The report templates are:
RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT
FrameworkArns
— (Array<String>
)The Amazon Resource Names (ARNs) of the frameworks a report covers.
NumberOfFrameworks
— (Integer
)The number of frameworks a report covers.
Accounts
— (Array<String>
)These are the accounts to be included in the report.
Use string value of
ROOT
to include all organizational units.OrganizationUnits
— (Array<String>
)These are the Organizational Units to be included in the report.
Regions
— (Array<String>
)These are the Regions to be included in the report.
Use the wildcard as the string value to include all Regions.
IdempotencyToken
— (String
)A customer-chosen string that you can use to distinguish between otherwise identical calls to
If a token is not provided, the SDK will use a version 4 UUID.UpdateReportPlanInput
. Retrying a successful request with the same idempotency token results in a success message with no action taken.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ReportPlanName
— (String
)The unique name of the report plan.
ReportPlanArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
CreationTime
— (Date
)The date and time that a report plan is created, in Unix format and Coordinated Universal Time (UTC). The value of
CreationTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
-
(AWS.Response)
—
Returns:
updateRestoreTestingPlan(params = {}, callback) ⇒ AWS.Request
This request will send changes to your specified restore testing plan.
RestoreTestingPlanName
cannot be updated after it is created.RecoveryPointSelection
can contain:-
Algorithm
-
ExcludeVaults
-
IncludeVaults
-
RecoveryPointTypes
-
SelectionWindowDays
Service Reference:
Examples:
Calling the updateRestoreTestingPlan operation
var params = { RestoreTestingPlan: { /* required */ RecoveryPointSelection: { Algorithm: LATEST_WITHIN_WINDOW | RANDOM_WITHIN_WINDOW, ExcludeVaults: [ 'STRING_VALUE', /* more items */ ], IncludeVaults: [ 'STRING_VALUE', /* more items */ ], RecoveryPointTypes: [ CONTINUOUS | SNAPSHOT, /* more items */ ], SelectionWindowDays: 'NUMBER_VALUE' }, ScheduleExpression: 'STRING_VALUE', ScheduleExpressionTimezone: 'STRING_VALUE', StartWindowHours: 'NUMBER_VALUE' }, RestoreTestingPlanName: 'STRING_VALUE' /* required */ }; backup.updateRestoreTestingPlan(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
RestoreTestingPlan
— (map
)Specifies the body of a restore testing plan.
RecoveryPointSelection
— (map
)Required:
Algorithm
;RecoveryPointTypes
;IncludeVaults
(one or more).Optional: SelectionWindowDays ('30' if not specified);
ExcludeVaults
(defaults to empty list if not listed).Algorithm
— (String
)Acceptable values include "LATEST_WITHIN_WINDOW" or "RANDOM_WITHIN_WINDOW"
Possible values include:"LATEST_WITHIN_WINDOW"
"RANDOM_WITHIN_WINDOW"
ExcludeVaults
— (Array<String>
)Accepted values include specific ARNs or list of selectors. Defaults to empty list if not listed.
IncludeVaults
— (Array<String>
)Accepted values include wildcard [""] or by specific ARNs or ARN wilcard replacement ["arn:aws:backup:us-west-2:123456789012:backup-vault:asdf", ...] ["arn:aws:backup:::backup-vault:asdf-", ...]
RecoveryPointTypes
— (Array<String>
)These are the types of recovery points.
Include
SNAPSHOT
to restore only snapshot recovery points; includeCONTINUOUS
to restore continuous recovery points (point in time restore / PITR); use both to restore either a snapshot or a continuous recovery point. The recovery point will be determined by the value forAlgorithm
.SelectionWindowDays
— (Integer
)Accepted values are integers from 1 to 365.
ScheduleExpression
— (String
)A CRON expression in specified timezone when a restore testing plan is executed.
ScheduleExpressionTimezone
— (String
)Optional. This is the timezone in which the schedule expression is set. By default, ScheduleExpressions are in UTC. You can modify this to a specified timezone.
StartWindowHours
— (Integer
)Defaults to 24 hours.
A value in hours after a restore test is scheduled before a job will be canceled if it doesn't start successfully. This value is optional. If this value is included, this parameter has a maximum value of 168 hours (one week).
RestoreTestingPlanName
— (String
)The name of the restore testing plan name.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:CreationTime
— (Date
)The time the resource testing plan was created.
RestoreTestingPlanArn
— (String
)Unique ARN (Amazon Resource Name) of the restore testing plan.
RestoreTestingPlanName
— (String
)The name cannot be changed after creation. The name consists of only alphanumeric characters and underscores. Maximum length is 50.
UpdateTime
— (Date
)The time the update completed for the restore testing plan.
-
(AWS.Response)
—
Returns:
updateRestoreTestingSelection(params = {}, callback) ⇒ AWS.Request
Updates the specified restore testing selection.
Most elements except the
RestoreTestingSelectionName
can be updated with this request.You can use either protected resource ARNs or conditions, but not both.
Service Reference:
Examples:
Calling the updateRestoreTestingSelection operation
var params = { RestoreTestingPlanName: 'STRING_VALUE', /* required */ RestoreTestingSelection: { /* required */ IamRoleArn: 'STRING_VALUE', ProtectedResourceArns: [ 'STRING_VALUE', /* more items */ ], ProtectedResourceConditions: { StringEquals: [ { Key: 'STRING_VALUE', /* required */ Value: 'STRING_VALUE' /* required */ }, /* more items */ ], StringNotEquals: [ { Key: 'STRING_VALUE', /* required */ Value: 'STRING_VALUE' /* required */ }, /* more items */ ] }, RestoreMetadataOverrides: { '<String>': 'STRING_VALUE', /* '<String>': ... */ }, ValidationWindowHours: 'NUMBER_VALUE' }, RestoreTestingSelectionName: 'STRING_VALUE' /* required */ }; backup.updateRestoreTestingSelection(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
RestoreTestingPlanName
— (String
)The restore testing plan name is required to update the indicated testing plan.
RestoreTestingSelection
— (map
)To update your restore testing selection, you can use either protected resource ARNs or conditions, but not both. That is, if your selection has
ProtectedResourceArns
, requesting an update with the parameterProtectedResourceConditions
will be unsuccessful.IamRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM role that Backup uses to create the target resource; for example:
arn:aws:iam::123456789012:role/S3Access
.ProtectedResourceArns
— (Array<String>
)You can include a list of specific ARNs, such as
ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
or you can include a wildcard:ProtectedResourceArns: ["*"]
, but not both.ProtectedResourceConditions
— (map
)The conditions that you define for resources in your restore testing plan using tags.
StringEquals
— (Array<map>
)Filters the values of your tagged resources for only those resources that you tagged with the same value. Also called "exact matching."
Key
— required — (String
)The tag key (String). The key can't start with
aws:
.Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern:
^(?![aA]{1}[wW]{1}[sS]{1}:)([\p{L}\p{Z}\p{N}_.:/=+-@]+)$
Value
— required — (String
)The value of the key.
Length Constraints: Maximum length of 256.
Pattern:
^([\p{L}\p{Z}\p{N}_.:/=+-@]*)$
StringNotEquals
— (Array<map>
)Filters the values of your tagged resources for only those resources that you tagged that do not have the same value. Also called "negated matching."
Key
— required — (String
)The tag key (String). The key can't start with
aws:
.Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern:
^(?![aA]{1}[wW]{1}[sS]{1}:)([\p{L}\p{Z}\p{N}_.:/=+-@]+)$
Value
— required — (String
)The value of the key.
Length Constraints: Maximum length of 256.
Pattern:
^([\p{L}\p{Z}\p{N}_.:/=+-@]*)$
RestoreMetadataOverrides
— (map<String>
)You can override certain restore metadata keys by including the parameter
RestoreMetadataOverrides
in the body ofRestoreTestingSelection
. Key values are not case sensitive.See the complete list of restore testing inferred metadata.
ValidationWindowHours
— (Integer
)This value represents the time, in hours, data is retained after a restore test so that optional validation can be completed.
Accepted value is an integer between 0 and 168 (the hourly equivalent of seven days).
RestoreTestingSelectionName
— (String
)The required restore testing selection name of the restore testing selection you wish to update.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:CreationTime
— (Date
)The time the resource testing selection was updated successfully.
RestoreTestingPlanArn
— (String
)Unique string that is the name of the restore testing plan.
RestoreTestingPlanName
— (String
)The restore testing plan with which the updated restore testing selection is associated.
RestoreTestingSelectionName
— (String
)The returned restore testing selection name.
UpdateTime
— (Date
)The time the update completed for the restore testing selection.
-
(AWS.Response)
—
Returns:
Generated on Wed Nov 6 18:50:16 2024 by yard 0.9.36 (ruby-2.5.1). - createReportPlan(params = {}, callback) ⇒ AWS.Request