Note: You are viewing the documentation for an older major version of the AWS SDK for JavaScript (v2).
The modular AWS SDK for JavaScript (v3) is now General Available. For more information see the Developer Guide or API Reference.
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
AWS Backup is a unified backup service designed to protect AWS services and their associated data. AWS 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.createBackupPlan(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
-
new AWS.Backup(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary
-
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.
-
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.
-
deleteBackupVaultNotifications(params = {}, callback) ⇒ AWS.Request
Deletes event notifications for the specified backup vault.
-
deleteRecoveryPoint(params = {}, callback) ⇒ AWS.Request
Deletes the recovery point specified by a recovery point ID.
-
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.
-
describeGlobalSettings(params = {}, callback) ⇒ AWS.Request
Describes the global settings of the AWS account, including whether it 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 AWS 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.
-
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 AWS Backup and releases control of that continuous backup to the source service, such as Amazon RDS.
-
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 specified BackupPlanId.
-
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.
-
getRecoveryPointRestoreMetadata(params = {}, callback) ⇒ AWS.Request
Returns a set of metadata key-value pairs that were used to create the backup.
-
getSupportedResourceTypes(params = {}, callback) ⇒ AWS.Request
Returns the AWS resource types supported by AWS Backup.
-
listBackupJobs(params = {}, callback) ⇒ AWS.Request
Returns a list of existing backup jobs for an authenticated account for the last 30 days.
-
listBackupPlans(params = {}, callback) ⇒ AWS.Request
Returns a list of existing backup plans for an authenticated account.
-
listBackupPlanTemplates(params = {}, callback) ⇒ AWS.Request
Returns metadata of your saved backup plan templates, including the template ID, name, and the creation and deletion dates.
-
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.
-
listProtectedResources(params = {}, callback) ⇒ AWS.Request
Returns an array of resources successfully backed up by AWS Backup, including the time the resource was saved, an Amazon Resource Name (ARN) of the resource, and a resource type.
-
listRecoveryPointsByBackupVault(params = {}, callback) ⇒ AWS.Request
Returns detailed information about the recovery points stored in a backup vault.
-
listRecoveryPointsByResource(params = {}, callback) ⇒ AWS.Request
Returns detailed information about recovery points of the type specified by a resource Amazon Resource Name (ARN).
-
listRestoreJobs(params = {}, callback) ⇒ AWS.Request
Returns a list of jobs that AWS Backup initiated to restore a saved resource, including metadata about the recovery process.
-
listTags(params = {}, callback) ⇒ AWS.Request
Returns a list of key-value pairs assigned to 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.
-
putBackupVaultNotifications(params = {}, callback) ⇒ AWS.Request
Turns on notifications on a backup vault for the specified topic and events.
-
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.
-
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.
-
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).
-
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).
-
updateBackupPlan(params = {}, callback) ⇒ AWS.Request
Updates an existing backup plan identified by its backupPlanId with the input document in JSON format.
-
updateGlobalSettings(params = {}, callback) ⇒ AWS.Request
Updates the current global settings for the AWS account.
-
updateRecoveryPointLifecycle(params = {}, callback) ⇒ AWS.Request
Sets the transition lifecycle of a recovery point.
-
updateRegionSettings(params = {}, callback) ⇒ AWS.Request
Updates the current service opt-in settings for the Region.
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'.
Property Details
Method Details
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 AWS Backup uses to schedule tasks that create recovery points for resources.
If you call CreateBackupPlan
with a plan that already exists, an AlreadyExistsException
is returned.
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'
}
},
/* more items */
],
EnableContinuousBackup: true || false,
Lifecycle: {
DeleteAfterDays: 'NUMBER_VALUE',
MoveToColdStorageAfterDays: 'NUMBER_VALUE'
},
RecoveryPointTags: {
'<TagKey>': 'STRING_VALUE',
/* '<TagKey>': ... */
},
ScheduleExpression: '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
)Specifies the body of a backup plan. Includes a
BackupPlanName
and one or more sets ofRules
.BackupPlanName
— required — (String
)The optional display name of a backup plan.
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
)An optional display name for a backup rule.
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 AWS Region where they are created. They consist of lowercase letters, numbers, and hyphens.
ScheduleExpression
— (String
)A CRON expression specifying when AWS 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.
CompletionWindowMinutes
— (Integer
)A value in minutes after a backup job is successfully started before it must be completed or it will be canceled by AWS Backup. This value is optional.
Lifecycle
— (map
)The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. AWS 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 “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Only Amazon EFS file system backups can be transitioned to cold storage.
MoveToColdStorageAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is deleted. Must be greater than 90 days plus
MoveToColdStorageAfterDays
.
RecoveryPointTags
— (map<String>
)To help organize your resources, you can assign your own metadata to the resources that you create. Each tag is a key-value pair.
CopyActions
— (Array<map>
)An array of
CopyAction
objects, which contains the details of the copy operation.Lifecycle
— (map
)Contains an array of
Transition
objects specifying how long 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 “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Only Amazon EFS file system backups can be transitioned to cold storage.
MoveToColdStorageAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is deleted. Must be greater than 90 days plus
MoveToColdStorageAfterDays
.
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:vault:aBackupVault
.
EnableContinuousBackup
— (Boolean
)Specifies whether AWS Backup creates continuous backups. True causes AWS Backup to create continuous backups capable of point-in-time restore (PITR). False (or not specified) causes AWS Backup to create snapshot backups.
AdvancedBackupSettings
— (Array<map>
)Specifies a list of
BackupOptions
for each resource type. These settings are only available for Windows 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 VSS. For an CloudFormation example, see the sample CloudFormation template to enable Windows VSS in the AWS 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 the WindowsVSS backup option and create a VSS Windows backup.Set to
"WindowsVSS":"disabled"
to create a regular backup. The WindowsVSS 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>
)To help organize your resources, you can assign your own metadata to the resources that you create. Each tag is a key-value pair. The specified tags are assigned to all backups created with this 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.
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 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>
)A list of
BackupOptions
settings for a resource type. This option is only available for Windows 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 VSS. For an CloudFormation example, see the sample CloudFormation template to enable Windows VSS in the AWS 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 the WindowsVSS backup option and create a VSS Windows backup.Set to
"WindowsVSS":"disabled"
to create a regular backup. The WindowsVSS 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. Resources can be included by specifying patterns for a ListOfTags
and selected Resources
.
For example, consider the following patterns:
-
Resources: "arn:aws:ec2:region:account-id:volume/volume-id"
-
ConditionKey:"department"
ConditionValue:"finance"
ConditionType:"StringEquals"
-
ConditionKey:"importance"
ConditionValue:"critical"
ConditionType:"StringEquals"
Using these patterns would back up all Amazon Elastic Block Store (Amazon EBS) volumes that are tagged as "department=finance"
, "importance=critical"
, in addition to an EBS volume with the specified volume ID.
Resources and conditions are additive in that all resources that match the pattern are selected. This shouldn't be confused with a logical AND, where all conditions must match. The matching patterns are logically put together using the OR operator. In other words, all patterns that match are selected for backup.
Service Reference:
Examples:
Calling the createBackupSelection operation
var params = {
BackupPlanId: 'STRING_VALUE', /* required */
BackupSelection: { /* required */
IamRoleArn: 'STRING_VALUE', /* required */
SelectionName: 'STRING_VALUE', /* required */
ListOfTags: [
{
ConditionKey: 'STRING_VALUE', /* required */
ConditionType: STRINGEQUALS, /* required */
ConditionValue: 'STRING_VALUE' /* required */
},
/* 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
)Uniquely identifies the backup plan to be associated with the selection of resources.
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.
IamRoleArn
— required — (String
)The ARN of the IAM role that AWS Backup uses to authenticate when backing up the target resource; for example,
arn:aws:iam::123456789012:role/S3Access
.Resources
— (Array<String>
)An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.
ListOfTags
— (Array<map>
)An array of conditions used to specify a set of resources to assign to a backup plan; for example,
"StringEquals": {"ec2:ResourceTag/Department": "accounting"
. Assigns the backup plan to every resource with at least one matching tag.ConditionType
— required — (String
)An operation, such as
Possible values include:StringEquals
, that is applied to a key-value pair used to filter resources in a selection."STRINGEQUALS"
ConditionKey
— required — (String
)The key in a key-value pair. For example, in
"ec2:ResourceTag/Department": "accounting"
,"ec2:ResourceTag/Department"
is the key.ConditionValue
— required — (String
)The value in a key-value pair. For example, in
"ec2:ResourceTag/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.
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
)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.
-
(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.
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 AWS Region where they are created. They consist of letters, numbers, and hyphens.
BackupVaultTags
— (map<String>
)Metadata that you can assign to help organize the resources that you create. Each tag is a key-value pair.
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.
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: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:
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 AWS 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:
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 AWS 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:
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. 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:
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.
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 AWS Region where they are created. They consist of lowercase 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.
-
(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 AWS 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 AWS 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 AWS 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: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 resource recovery point.
Possible values include:"CREATED"
"PENDING"
"RUNNING"
"ABORTING"
"ABORTED"
"COMPLETED"
"FAILED"
"EXPIRED"
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 AWS 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 WindowsVSS backup was taken,
BackupType
returns "WindowsVSS". IfBackupType
is empty, then the backup type that was is a regular backup.
-
(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 */
};
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 AWS 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. 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:vault:aBackupVault
.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.
NumberOfRecoveryPoints
— (Integer
)The number of recovery points that are stored in a backup vault.
-
(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: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: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 AWS 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"
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 AWS 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 AWS resource to be copied; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.
-
(AWS.Response)
—
Returns:
describeGlobalSettings(params = {}, callback) ⇒ AWS.Request
Describes the global settings of the AWS account, including whether it is opted in to cross-account backup.
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>
)A list of resources along with the opt-in preferences for the account.
LastUpdateTime
— (Date
)The date and time that the global settings were last 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.
-
(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 AWS 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 AWS resource saved as a recovery point; for example, an 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.
-
(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 */
};
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 AWS Region where they are created. They consist of lowercase 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: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. They consist of lowercase letters, numbers, and hyphens.
BackupVaultArn
— (String
)An ARN that uniquely identifies a backup vault; for example,
arn:aws:backup:us-east-1:123456789012: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:vault:BackupVault
. If the recovery is restored to the same AWS 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 AWS 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.
Note: A partial status indicates that the recovery point was not successfully re-created and must be retried.Possible values include:"COMPLETED"
"PARTIAL"
"DELETING"
"EXPIRED"
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. AWS 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 “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Only Amazon EFS file system backups can be transitioned to cold storage.
MoveToColdStorageAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is deleted. Must be greater than 90 days plus
MoveToColdStorageAfterDays
.
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.
-
(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, AWS 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, AWS Backup does not try to protect that service's resources in this Region, AWS 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>
)Returns a list of all services along with the opt-in preferences in the Region.
-
(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 AWS 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
)An Amazon Resource Name (ARN) that uniquely identifies a resource whose recovery point is being restored. 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.
-
(AWS.Response)
—
Returns:
disassociateRecoveryPoint(params = {}, callback) ⇒ AWS.Request
Deletes the specified continuous backup recovery point from AWS 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 AWS Backup vault. Required.
RecoveryPointArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies an AWS Backup recovery point. Required.
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 specified BackupPlanId
. 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.
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
)An optional display name for a backup rule.
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 AWS Region where they are created. They consist of lowercase letters, numbers, and hyphens.
ScheduleExpression
— (String
)A CRON expression specifying when AWS Backup initiates a backup job. For more information about cron expressions, see Schedule Expressions for Rules in the Amazon CloudWatch Events User Guide.. Prior to specifying a value for this parameter, we recommend testing your cron expression using one of the many available cron generator and testing tools.
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.
CompletionWindowMinutes
— (Integer
)A value in minutes after a backup job is successfully started before it must be completed or it will be canceled by AWS Backup. This value is optional.
Lifecycle
— (map
)The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. AWS Backup transitions and expires backups automatically according to the lifecycle that you define.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Only Amazon EFS file system backups can be transitioned to cold storage.
MoveToColdStorageAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is deleted. Must be greater than 90 days plus
MoveToColdStorageAfterDays
.
RecoveryPointTags
— (map<String>
)An array of key-value pair strings 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
)Contains an array of
Transition
objects specifying how long 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 “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Only Amazon EFS file system backups can be transitioned to cold storage.
MoveToColdStorageAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is deleted. Must be greater than 90 days plus
MoveToColdStorageAfterDays
.
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:vault:aBackupVault
.
EnableContinuousBackup
— (Boolean
)Specifies whether AWS Backup creates continuous backups. True causes AWS Backup to create continuous backups capable of point-in-time restore (PITR). False (or not specified) causes AWS Backup to create snapshot backups.
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 VSS. For an CloudFormation example, see the sample CloudFormation template to enable Windows VSS in the AWS 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 the WindowsVSS backup option and create a VSS Windows backup.Set to
"WindowsVSS":"disabled"
to create a regular backup. The WindowsVSS 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 a job to back up resources was run with this backup 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.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 VSS. For an CloudFormation example, see the sample CloudFormation template to enable Windows VSS in the AWS 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 the WindowsVSS backup option and create a VSS Windows backup.Set to
"WindowsVSS":"disabled"
to create a regular backup. The WindowsVSS 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.
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
)An optional display name for a backup rule.
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 AWS Region where they are created. They consist of lowercase letters, numbers, and hyphens.
ScheduleExpression
— (String
)A CRON expression specifying when AWS Backup initiates a backup job. For more information about cron expressions, see Schedule Expressions for Rules in the Amazon CloudWatch Events User Guide.. Prior to specifying a value for this parameter, we recommend testing your cron expression using one of the many available cron generator and testing tools.
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.
CompletionWindowMinutes
— (Integer
)A value in minutes after a backup job is successfully started before it must be completed or it will be canceled by AWS Backup. This value is optional.
Lifecycle
— (map
)The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. AWS Backup transitions and expires backups automatically according to the lifecycle that you define.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Only Amazon EFS file system backups can be transitioned to cold storage.
MoveToColdStorageAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is deleted. Must be greater than 90 days plus
MoveToColdStorageAfterDays
.
RecoveryPointTags
— (map<String>
)An array of key-value pair strings 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
)Contains an array of
Transition
objects specifying how long 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 “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Only Amazon EFS file system backups can be transitioned to cold storage.
MoveToColdStorageAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is deleted. Must be greater than 90 days plus
MoveToColdStorageAfterDays
.
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:vault:aBackupVault
.
EnableContinuousBackup
— (Boolean
)Specifies whether AWS Backup creates continuous backups. True causes AWS Backup to create continuous backups capable of point-in-time restore (PITR). False (or not specified) causes AWS Backup to create snapshot backups.
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 VSS. For an CloudFormation example, see the sample CloudFormation template to enable Windows VSS in the AWS 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 the WindowsVSS backup option and create a VSS Windows backup.Set to
"WindowsVSS":"disabled"
to create a regular backup. The WindowsVSS 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.
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
)An optional display name for a backup rule.
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 AWS Region where they are created. They consist of lowercase letters, numbers, and hyphens.
ScheduleExpression
— (String
)A CRON expression specifying when AWS Backup initiates a backup job. For more information about cron expressions, see Schedule Expressions for Rules in the Amazon CloudWatch Events User Guide.. Prior to specifying a value for this parameter, we recommend testing your cron expression using one of the many available cron generator and testing tools.
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.
CompletionWindowMinutes
— (Integer
)A value in minutes after a backup job is successfully started before it must be completed or it will be canceled by AWS Backup. This value is optional.
Lifecycle
— (map
)The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. AWS Backup transitions and expires backups automatically according to the lifecycle that you define.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Only Amazon EFS file system backups can be transitioned to cold storage.
MoveToColdStorageAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is deleted. Must be greater than 90 days plus
MoveToColdStorageAfterDays
.
RecoveryPointTags
— (map<String>
)An array of key-value pair strings 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
)Contains an array of
Transition
objects specifying how long 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 “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Only Amazon EFS file system backups can be transitioned to cold storage.
MoveToColdStorageAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is deleted. Must be greater than 90 days plus
MoveToColdStorageAfterDays
.
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:vault:aBackupVault
.
EnableContinuousBackup
— (Boolean
)Specifies whether AWS Backup creates continuous backups. True causes AWS Backup to create continuous backups capable of point-in-time restore (PITR). False (or not specified) causes AWS Backup to create snapshot backups.
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 VSS. For an CloudFormation example, see the sample CloudFormation template to enable Windows VSS in the AWS 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 the WindowsVSS backup option and create a VSS Windows backup.Set to
"WindowsVSS":"disabled"
to create a regular backup. The WindowsVSS 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.
IamRoleArn
— required — (String
)The ARN of the IAM role that AWS Backup uses to authenticate when backing up the target resource; for example,
arn:aws:iam::123456789012:role/S3Access
.Resources
— (Array<String>
)An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.
ListOfTags
— (Array<map>
)An array of conditions used to specify a set of resources to assign to a backup plan; for example,
"StringEquals": {"ec2:ResourceTag/Department": "accounting"
. Assigns the backup plan to every resource with at least one matching tag.ConditionType
— required — (String
)An operation, such as
Possible values include:StringEquals
, that is applied to a key-value pair used to filter resources in a selection."STRINGEQUALS"
ConditionKey
— required — (String
)The key in a key-value pair. For example, in
"ec2:ResourceTag/Department": "accounting"
,"ec2:ResourceTag/Department"
is the key.ConditionValue
— required — (String
)The value in a key-value pair. For example, in
"ec2:ResourceTag/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 AWS 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. 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: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 AWS 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. 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: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:
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 */
};
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 AWS Region where they are created. They consist of lowercase 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:BackupVaultArn
— (String
)An ARN that uniquely identifies a backup vault; for example,
arn:aws:backup:us-east-1:123456789012: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.
-
(AWS.Response)
—
Returns:
getSupportedResourceTypes(params = {}, callback) ⇒ AWS.Request
Returns the AWS resource types supported by AWS 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 AWS resource types:
-
DynamoDB
for Amazon DynamoDB -
EBS
for Amazon Elastic Block Store -
EC2
for Amazon Elastic Compute Cloud -
EFS
for Amazon Elastic File System -
RDS
for Amazon Relational Database Service -
Aurora
for Amazon Aurora -
Storage Gateway
for AWS Storage Gateway
-
-
(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',
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,
ByResourceArn: 'STRING_VALUE',
ByResourceType: 'STRING_VALUE',
ByState: CREATED | PENDING | RUNNING | ABORTING | ABORTED | COMPLETED | FAILED | EXPIRED,
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.
Possible values include:"CREATED"
"PENDING"
"RUNNING"
"ABORTING"
"ABORTED"
"COMPLETED"
"FAILED"
"EXPIRED"
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 AWS Region where they are created. They consist of lowercase letters, numbers, and hyphens.
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:
-
DynamoDB
for Amazon DynamoDB -
EBS
for Amazon Elastic Block Store -
EC2
for Amazon Elastic Compute Cloud -
EFS
for Amazon Elastic File System -
RDS
for Amazon Relational Database Service -
Aurora
for Amazon Aurora -
Storage Gateway
for AWS Storage Gateway
-
ByAccountId
— (String
)The account ID to list the jobs from. Returns only backup jobs associated with the specified account ID.
If used from an AWS Organizations management account, passing
*
returns all jobs across the organization.
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 AWS 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 AWS 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: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 resource recovery point.
Possible values include:"CREATED"
"PENDING"
"RUNNING"
"ABORTING"
"ABORTED"
"COMPLETED"
"FAILED"
"EXPIRED"
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 AWS 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 VSS Windows 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 VSS backup jobs.
Valid values: Set to
"WindowsVSS”:“enabled"
to enable WindowsVSS backup option and create a VSS Windows 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.
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:
listBackupPlans(params = {}, callback) ⇒ AWS.Request
Returns a list of existing backup plans for an authenticated account. The list is populated only if the advanced option is set for the backup plan. The list contains information such as Amazon Resource Names (ARNs), plan IDs, creation and deletion dates, version IDs, plan names, and creator request IDs.
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>
)An array of backup plan list items containing metadata about your saved 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.
LastExecutionDate
— (Date
)The last time a job to back up resources was run with this rule. 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 VSS. For an CloudFormation example, see the sample CloudFormation template to enable Windows VSS in the AWS 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 the WindowsVSS backup option and create a VSS Windows backup.Set to
"WindowsVSS":"disabled"
to create a regular backup. The WindowsVSS 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
Returns metadata of your saved backup plan templates, including the template ID, name, and the creation and deletion dates.
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 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.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.
LastExecutionDate
— (Date
)The last time a job to back up resources was run with this rule. 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 VSS. For an CloudFormation example, see the sample CloudFormation template to enable Windows VSS in the AWS 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 the WindowsVSS backup option and create a VSS Windows backup.Set to
"WindowsVSS":"disabled"
to create a regular backup. The WindowsVSS 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.
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 = {
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: {})
—
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 AWS 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:vault:aBackupVault
.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
)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.
NumberOfRecoveryPoints
— (Integer
)The number of recovery points that are stored in a backup vault.
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',
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',
ByResourceArn: 'STRING_VALUE',
ByResourceType: 'STRING_VALUE',
ByState: CREATED | RUNNING | COMPLETED | FAILED,
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"
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:
-
DynamoDB
for Amazon DynamoDB -
EBS
for Amazon Elastic Block Store -
EC2
for Amazon Elastic Compute Cloud -
EFS
for Amazon Elastic File System -
RDS
for Amazon Relational Database Service -
Aurora
for Amazon Aurora -
Storage Gateway
for AWS Storage Gateway
-
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:vault:aBackupVault
.ByAccountId
— (String
)The account ID to list the jobs from. Returns only copy jobs associated with the specified account ID.
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: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: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 AWS 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"
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 AWS 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 AWS resource to be copied; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.
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:
listProtectedResources(params = {}, callback) ⇒ AWS.Request
Returns an array of resources successfully backed up by AWS 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 AWS 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 AWS resource; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. For VSS Windows 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.
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 */
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,
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 AWS Region where they are created. They consist of lowercase letters, numbers, and hyphens.
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.
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.
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 AWS Region where they are created. They consist of lowercase letters, numbers, and hyphens.
BackupVaultArn
— (String
)An ARN that uniquely identifies a backup vault; for example,
arn:aws:backup:us-east-1:123456789012: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 AWS 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 VSS Windows 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"
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. AWS Backup transitions and expires backups automatically according to the lifecycle that you define.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Only Amazon EFS file system backups can be transitioned to cold storage.
MoveToColdStorageAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is deleted. Must be greater than 90 days plus
MoveToColdStorageAfterDays
.
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.
-
(AWS.Response)
—
Returns:
listRecoveryPointsByResource(params = {}, callback) ⇒ AWS.Request
Returns detailed information about recovery points of the type specified by a resource Amazon Resource Name (ARN).
Service Reference:
Examples:
Calling the listRecoveryPointsByResource operation
var params = {
ResourceArn: 'STRING_VALUE', /* required */
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.
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.
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"
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 AWS Region where they are created. They consist of lowercase letters, numbers, and hyphens.
-
(AWS.Response)
—
Returns:
listRestoreJobs(params = {}, callback) ⇒ AWS.Request
Returns a list of jobs that AWS Backup initiated to restore a saved resource, including metadata about the recovery process.
Service Reference:
Examples:
Calling the listRestoreJobs operation
var params = {
ByAccountId: '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,
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.
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"
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 AWS 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
)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
)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 VSS Windows backups, the only supported resource type is Amazon EC2.
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:
listTags(params = {}, callback) ⇒ AWS.Request
Returns a list of key-value pairs assigned to a target recovery point, backup plan, or backup vault.
ListTags
are currently only supported with Amazon EFS backups. 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>
)To help organize your resources, you can assign your own metadata to the resources you create. Each tag is a key-value pair.
-
(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 AWS Region where they are created. They consist of lowercase letters, numbers, and hyphens.
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:
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,
/* 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 AWS Region where they are created. They consist of lowercase letters, numbers, and hyphens.
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.
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'
},
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 AWS Region where they are created. They consist of lowercase letters, numbers, and hyphens.
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 can be used to distinguish between calls to
StartBackupJob
.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.
CompleteWindowMinutes
— (Integer
)A value in minutes during which a successfully started backup must complete, or else AWS 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.Lifecycle
— (map
)The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. AWS 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 “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Only Amazon EFS file system backups can be transitioned to cold storage.
MoveToColdStorageAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is deleted. Must be greater than 90 days plus
MoveToColdStorageAfterDays
.
RecoveryPointTags
— (map<String>
)To help organize your resources, you can assign your own metadata to the resources that you create. Each tag is a key-value pair.
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 WindowsVSS backup option and create a VSS Windows backup. Set to “WindowsVSS”:”disabled” to create a regular backup. The WindowsVSS 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 AWS Backup to back up a resource.
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 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.
-
(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'
}
};
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 AWS Region where they are created. They consist of lowercase letters, numbers, and hyphens.
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: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 can be used to distinguish between calls to
StartCopyJob
.Lifecycle
— (map
)Contains an array of
Transition
objects specifying how long 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 “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Only Amazon EFS file system backups can be transitioned to cold storage.
MoveToColdStorageAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is deleted. Must be greater than 90 days plus
MoveToColdStorageAfterDays
.
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.
-
(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 = {
IamRoleArn: 'STRING_VALUE', /* required */
Metadata: { /* required */
'<MetadataKey>': 'STRING_VALUE',
/* '<MetadataKey>': ... */
},
RecoveryPointArn: 'STRING_VALUE', /* required */
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. Contains information, such as a resource name, required to restore a recovery point.
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.You need to specify specific metadata to restore an Amazon Elastic File System (Amazon EFS) instance:
-
file-system-id
: The ID of the Amazon EFS file system that is backed up by AWS Backup. Returned inGetRecoveryPointRestoreMetadata
. -
Encrypted
: A Boolean value that, if true, specifies that the file system is encrypted. IfKmsKeyId
is specified,Encrypted
must be set totrue
. -
KmsKeyId
: Specifies the AWS KMS key that is used to encrypt the restored file system. You can specify a key from another AWS account provided that key it is properly shared with your account via AWS KMS. -
PerformanceMode
: Specifies the throughput mode of the file system. -
CreationToken
: A user-supplied value that ensures the uniqueness (idempotency) of the request. -
newFileSystem
: A Boolean value that, if true, specifies that the recovery point is restored to a new Amazon EFS file system. -
ItemsToRestore
: An array of one to five strings where each string is a file path. UseItemsToRestore
to restore specific files or directories rather than the entire file system. This parameter is optional. For example,"itemsToRestore":"[\"/my.test\"]"
.
-
IamRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM role that AWS Backup uses to create the target recovery point; for example,
arn:aws:iam::123456789012:role/S3Access
.IdempotencyToken
— (String
)A customer chosen string that can be used to distinguish between calls to
StartRestoreJob
.ResourceType
— (String
)Starts a job to restore a recovery point for one of the following resources:
-
DynamoDB
for Amazon DynamoDB -
EBS
for Amazon Elastic Block Store -
EC2
for Amazon Elastic Compute Cloud -
EFS
for Amazon Elastic File System -
RDS
for Amazon Relational Database Service -
Aurora
for Amazon Aurora -
Storage Gateway
for AWS Storage Gateway
-
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.
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 AWS 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).
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.
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.
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)
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.
TagKeyList
— (Array<String>
)A list of 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 an existing backup plan identified by its backupPlanId
with the input document in JSON format. The new version is uniquely identified by a VersionId
.
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'
}
},
/* more items */
],
EnableContinuousBackup: true || false,
Lifecycle: {
DeleteAfterDays: 'NUMBER_VALUE',
MoveToColdStorageAfterDays: 'NUMBER_VALUE'
},
RecoveryPointTags: {
'<TagKey>': 'STRING_VALUE',
/* '<TagKey>': ... */
},
ScheduleExpression: '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
)Uniquely identifies a backup plan.
BackupPlan
— (map
)Specifies the body of a backup plan. Includes a
BackupPlanName
and one or more sets ofRules
.BackupPlanName
— required — (String
)The optional display name of a backup plan.
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
)An optional display name for a backup rule.
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 AWS Region where they are created. They consist of lowercase letters, numbers, and hyphens.
ScheduleExpression
— (String
)A CRON expression specifying when AWS 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.
CompletionWindowMinutes
— (Integer
)A value in minutes after a backup job is successfully started before it must be completed or it will be canceled by AWS Backup. This value is optional.
Lifecycle
— (map
)The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. AWS 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 “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Only Amazon EFS file system backups can be transitioned to cold storage.
MoveToColdStorageAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is deleted. Must be greater than 90 days plus
MoveToColdStorageAfterDays
.
RecoveryPointTags
— (map<String>
)To help organize your resources, you can assign your own metadata to the resources that you create. Each tag is a key-value pair.
CopyActions
— (Array<map>
)An array of
CopyAction
objects, which contains the details of the copy operation.Lifecycle
— (map
)Contains an array of
Transition
objects specifying how long 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 “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Only Amazon EFS file system backups can be transitioned to cold storage.
MoveToColdStorageAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is deleted. Must be greater than 90 days plus
MoveToColdStorageAfterDays
.
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:vault:aBackupVault
.
EnableContinuousBackup
— (Boolean
)Specifies whether AWS Backup creates continuous backups. True causes AWS Backup to create continuous backups capable of point-in-time restore (PITR). False (or not specified) causes AWS Backup to create snapshot backups.
AdvancedBackupSettings
— (Array<map>
)Specifies a list of
BackupOptions
for each resource type. These settings are only available for Windows 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 VSS. For an CloudFormation example, see the sample CloudFormation template to enable Windows VSS in the AWS 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 the WindowsVSS backup option and create a VSS Windows backup.Set to
"WindowsVSS":"disabled"
to create a regular backup. The WindowsVSS 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 updated, 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 VSS. For an CloudFormation example, see the sample CloudFormation template to enable Windows VSS in the AWS 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 the WindowsVSS backup option and create a VSS Windows backup.Set to
"WindowsVSS":"disabled"
to create a regular backup. The WindowsVSS 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:
updateGlobalSettings(params = {}, callback) ⇒ AWS.Request
Updates the current global settings for the AWS 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 list of resources along with the opt-in preferences for the account.
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. AWS Backup transitions and expires backups automatically according to the lifecycle that you define.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Only Amazon EFS file system backups can be transitioned to cold storage.
Does not support continuous backups.
Service Reference:
Examples:
Calling the updateRecoveryPointLifecycle operation
var params = {
BackupVaultName: 'STRING_VALUE', /* required */
RecoveryPointArn: 'STRING_VALUE', /* required */
Lifecycle: {
DeleteAfterDays: 'NUMBER_VALUE',
MoveToColdStorageAfterDays: 'NUMBER_VALUE'
}
};
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 AWS Region where they are created. They consist of lowercase 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
.Lifecycle
— (map
)The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. AWS Backup transitions and expires backups automatically according to the lifecycle that you define.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
MoveToColdStorageAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is deleted. Must be greater than 90 days plus
MoveToColdStorageAfterDays
.
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: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. AWS Backup transitions and expires backups automatically according to the lifecycle that you define.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Only Amazon EFS file system backups can be transitioned to cold storage.
MoveToColdStorageAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is moved to cold storage.
DeleteAfterDays
— (Integer
)Specifies the number of days after creation that a recovery point is deleted. Must be greater than 90 days plus
MoveToColdStorageAfterDays
.
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. If service-opt-in is enabled for a service, AWS 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, AWS Backup does not try to protect that service's resources in this Region. Use the DescribeRegionSettings
API to determine the resource types that are supported.
Service Reference:
Examples:
Calling the updateRegionSettings operation
var params = {
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.
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: