create_backup_selection
¶
create_backup_selection(
backup_plan_id: string,
backup_selection: BackupSelection,
*,
config_overrides: Optional[BackupClientConfig] = None,
creator_request_id: Optional[string] = None,
) -> CreateBackupSelectionOutput
Creates a JSON document that specifies a set of resources to assign to a backup plan. For examples, see Assigning resources programmatically.
Parameters:
-
backup_plan_id(string) –The ID of the backup plan.
-
backup_selection(BackupSelection) –The body of a request to assign a set of resources to a backup plan.
-
creator_request_id(Optional[string], default:None) –A unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. This parameter is optional.
If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
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.