create_backup_plan
async
¶
create_backup_plan(
backup_plan: BackupPlanInput,
*,
config_overrides: Optional[AsyncBackupClientConfig] = None,
backup_plan_tags: Optional[Tags] = None,
creator_request_id: Optional[string] = None,
) -> CreateBackupPlanOutput
Creates a backup plan using a backup plan name and backup rules. A backup plan is a document that contains information that Backup uses to schedule tasks that create recovery points for resources.
If you call CreateBackupPlan with a plan that already exists, you receive an AlreadyExistsException exception.
Parameters:
-
backup_plan(BackupPlanInput) –The body of a backup plan. Includes a
BackupPlanNameand one or more sets ofRules. -
backup_plan_tags(Optional[Tags], default:None) –The tags to assign to the backup plan.
-
creator_request_id(Optional[string], default:None) –Identifies the request and allows failed requests to be retried without the risk of running the operation twice. If the request includes a
CreatorRequestIdthat matches an existing backup plan, that plan is returned. This parameter is optional.If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
Raises:
-
AlreadyExistsException–The required resource already exists.
-
InvalidParameterValueException–Indicates that something is wrong with a parameter's value. For example, the value is out of range.
-
LimitExceededException–A limit in the request has been exceeded; for example, a maximum number of items allowed in a request.
-
MissingParameterValueException–Indicates that a required parameter is missing.
-
ServiceUnavailableException–The request failed due to a temporary failure of the server.
-
UnknownServiceError–The service returned an error code this client does not model.