AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Creates an application-level backup of a server. While the server is in the BACKING_UP
state, the server cannot be changed, and no additional backup can be created.
Backups can be created for servers in RUNNING
, HEALTHY
, and UNHEALTHY
states. By default, you can create a maximum of 50 manual backups.
This operation is asynchronous.
A LimitExceededException
is thrown when the maximum number of manual backups
is reached. An InvalidStateException
is thrown when the server is not in any
of the following states: RUNNING, HEALTHY, or UNHEALTHY. A ResourceNotFoundException
is thrown when the server is not found. A ValidationException
is thrown when
parameters of the request are not valid.
For .NET Core this operation is only available in asynchronous form. Please refer to CreateBackupAsync.
Namespace: Amazon.OpsWorksCM
Assembly: AWSSDK.OpsWorksCM.dll
Version: 3.x.y.z
public virtual CreateBackupResponse CreateBackup( CreateBackupRequest request )
Container for the necessary parameters to execute the CreateBackup service method.
Exception | Condition |
---|---|
InvalidStateException | The resource is in a state that does not allow you to perform a specified action. |
LimitExceededException | The limit of servers or backups has been reached. |
ResourceNotFoundException | The requested resource does not exist, or access was denied. |
ValidationException | One or more of the provided request parameters are not valid. |
.NET Framework:
Supported in: 4.5, 4.0, 3.5