aws_sdk_databrew/client/
create_schedule.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateSchedule`](crate::operation::create_schedule::builders::CreateScheduleFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`CreateScheduleOutput`](crate::operation::create_schedule::CreateScheduleOutput) with field(s):
    ///   - [`name(String)`](crate::operation::create_schedule::CreateScheduleOutput::name): <p>The name of the schedule that was created.</p>
    /// - On failure, responds with [`SdkError<CreateScheduleError>`](crate::operation::create_schedule::CreateScheduleError)
    pub fn create_schedule(&self) -> crate::operation::create_schedule::builders::CreateScheduleFluentBuilder {
        crate::operation::create_schedule::builders::CreateScheduleFluentBuilder::new(self.handle.clone())
    }
}