aws_sdk_redshift/client/
create_snapshot_schedule.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`CreateSnapshotSchedule`](crate::operation::create_snapshot_schedule::builders::CreateSnapshotScheduleFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`schedule_definitions(impl Into<String>)`](crate::operation::create_snapshot_schedule::builders::CreateSnapshotScheduleFluentBuilder::schedule_definitions) / [`set_schedule_definitions(Option<Vec::<String>>)`](crate::operation::create_snapshot_schedule::builders::CreateSnapshotScheduleFluentBuilder::set_schedule_definitions):<br>required: **false**<br><p>The definition of the snapshot schedule. The definition is made up of schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)".</p><br>
7    ///   - [`schedule_identifier(impl Into<String>)`](crate::operation::create_snapshot_schedule::builders::CreateSnapshotScheduleFluentBuilder::schedule_identifier) / [`set_schedule_identifier(Option<String>)`](crate::operation::create_snapshot_schedule::builders::CreateSnapshotScheduleFluentBuilder::set_schedule_identifier):<br>required: **false**<br><p>A unique identifier for a snapshot schedule. Only alphanumeric characters are allowed for the identifier.</p><br>
8    ///   - [`schedule_description(impl Into<String>)`](crate::operation::create_snapshot_schedule::builders::CreateSnapshotScheduleFluentBuilder::schedule_description) / [`set_schedule_description(Option<String>)`](crate::operation::create_snapshot_schedule::builders::CreateSnapshotScheduleFluentBuilder::set_schedule_description):<br>required: **false**<br><p>The description of the snapshot schedule.</p><br>
9    ///   - [`tags(Tag)`](crate::operation::create_snapshot_schedule::builders::CreateSnapshotScheduleFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_snapshot_schedule::builders::CreateSnapshotScheduleFluentBuilder::set_tags):<br>required: **false**<br><p>An optional set of tags you can use to search for the schedule.</p><br>
10    ///   - [`dry_run(bool)`](crate::operation::create_snapshot_schedule::builders::CreateSnapshotScheduleFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::create_snapshot_schedule::builders::CreateSnapshotScheduleFluentBuilder::set_dry_run):<br>required: **false**<br><p></p><br>
11    ///   - [`next_invocations(i32)`](crate::operation::create_snapshot_schedule::builders::CreateSnapshotScheduleFluentBuilder::next_invocations) / [`set_next_invocations(Option<i32>)`](crate::operation::create_snapshot_schedule::builders::CreateSnapshotScheduleFluentBuilder::set_next_invocations):<br>required: **false**<br><p></p><br>
12    /// - On success, responds with [`CreateSnapshotScheduleOutput`](crate::operation::create_snapshot_schedule::CreateSnapshotScheduleOutput) with field(s):
13    ///   - [`schedule_definitions(Option<Vec::<String>>)`](crate::operation::create_snapshot_schedule::CreateSnapshotScheduleOutput::schedule_definitions): <p>A list of ScheduleDefinitions.</p>
14    ///   - [`schedule_identifier(Option<String>)`](crate::operation::create_snapshot_schedule::CreateSnapshotScheduleOutput::schedule_identifier): <p>A unique identifier for the schedule.</p>
15    ///   - [`schedule_description(Option<String>)`](crate::operation::create_snapshot_schedule::CreateSnapshotScheduleOutput::schedule_description): <p>The description of the schedule.</p>
16    ///   - [`tags(Option<Vec::<Tag>>)`](crate::operation::create_snapshot_schedule::CreateSnapshotScheduleOutput::tags): <p>An optional set of tags describing the schedule.</p>
17    ///   - [`next_invocations(Option<Vec::<DateTime>>)`](crate::operation::create_snapshot_schedule::CreateSnapshotScheduleOutput::next_invocations): <p></p>
18    ///   - [`associated_cluster_count(Option<i32>)`](crate::operation::create_snapshot_schedule::CreateSnapshotScheduleOutput::associated_cluster_count): <p>The number of clusters associated with the schedule.</p>
19    ///   - [`associated_clusters(Option<Vec::<ClusterAssociatedToSchedule>>)`](crate::operation::create_snapshot_schedule::CreateSnapshotScheduleOutput::associated_clusters): <p>A list of clusters associated with the schedule. A maximum of 100 clusters is returned.</p>
20    /// - On failure, responds with [`SdkError<CreateSnapshotScheduleError>`](crate::operation::create_snapshot_schedule::CreateSnapshotScheduleError)
21    pub fn create_snapshot_schedule(&self) -> crate::operation::create_snapshot_schedule::builders::CreateSnapshotScheduleFluentBuilder {
22        crate::operation::create_snapshot_schedule::builders::CreateSnapshotScheduleFluentBuilder::new(self.handle.clone())
23    }
24}