create_snapshot_schedule
async
¶
create_snapshot_schedule(
*,
config_overrides: Optional[AsyncRedshiftClientConfig] = None,
schedule_definitions: Optional[ScheduleDefinitionList] = None,
schedule_identifier: Optional[String] = None,
schedule_description: Optional[String] = None,
tags: Optional[TagList] = None,
dry_run: Optional[BooleanOptional] = None,
next_invocations: Optional[IntegerOptional] = None,
) -> SnapshotSchedule
Create a snapshot schedule that can be associated to a cluster and which overrides the default system backup schedule.
Parameters:
-
schedule_definitions(Optional[ScheduleDefinitionList], default:None) –The definition of the snapshot schedule. The definition is made up of schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)".
-
schedule_identifier(Optional[String], default:None) –A unique identifier for a snapshot schedule. Only alphanumeric characters are allowed for the identifier.
-
schedule_description(Optional[String], default:None) –The description of the snapshot schedule.
-
tags(Optional[TagList], default:None) –An optional set of tags you can use to search for the schedule.
-
dry_run(Optional[BooleanOptional], default:None) – -
next_invocations(Optional[IntegerOptional], default:None) –
Raises:
-
InvalidScheduleFault–The schedule you submitted isn't valid.
-
InvalidTagFault–The tag is invalid.
-
ScheduleDefinitionTypeUnsupportedFault–The definition you submitted is not supported.
-
SnapshotScheduleAlreadyExistsFault–The specified snapshot schedule already exists.
-
SnapshotScheduleQuotaExceededFault–You have exceeded the quota of snapshot schedules.
-
TagLimitExceededFault–You have exceeded the number of tags allowed.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_redshift/_services/async_redshift.py
2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 | |