aws_sdk_databrew/client/create_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 [`CreateSchedule`](crate::operation::create_schedule::builders::CreateScheduleFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`job_names(impl Into<String>)`](crate::operation::create_schedule::builders::CreateScheduleFluentBuilder::job_names) / [`set_job_names(Option<Vec::<String>>)`](crate::operation::create_schedule::builders::CreateScheduleFluentBuilder::set_job_names):<br>required: **false**<br><p>The name or names of one or more jobs to be run.</p><br>
7 /// - [`cron_expression(impl Into<String>)`](crate::operation::create_schedule::builders::CreateScheduleFluentBuilder::cron_expression) / [`set_cron_expression(Option<String>)`](crate::operation::create_schedule::builders::CreateScheduleFluentBuilder::set_cron_expression):<br>required: **true**<br><p>The date or dates and time or times when the jobs are to be run. For more information, see <a href="https://docs.aws.amazon.com/databrew/latest/dg/jobs.cron.html">Cron expressions</a> in the <i>Glue DataBrew Developer Guide</i>.</p><br>
8 /// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_schedule::builders::CreateScheduleFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_schedule::builders::CreateScheduleFluentBuilder::set_tags):<br>required: **false**<br><p>Metadata tags to apply to this schedule.</p><br>
9 /// - [`name(impl Into<String>)`](crate::operation::create_schedule::builders::CreateScheduleFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_schedule::builders::CreateScheduleFluentBuilder::set_name):<br>required: **true**<br><p>A unique name for the schedule. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.</p><br>
10 /// - On success, responds with [`CreateScheduleOutput`](crate::operation::create_schedule::CreateScheduleOutput) with field(s):
11 /// - [`name(String)`](crate::operation::create_schedule::CreateScheduleOutput::name): <p>The name of the schedule that was created.</p>
12 /// - On failure, responds with [`SdkError<CreateScheduleError>`](crate::operation::create_schedule::CreateScheduleError)
13 pub fn create_schedule(&self) -> crate::operation::create_schedule::builders::CreateScheduleFluentBuilder {
14 crate::operation::create_schedule::builders::CreateScheduleFluentBuilder::new(self.handle.clone())
15 }
16}