aws_sdk_databrew/client/create_recipe.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 [`CreateRecipe`](crate::operation::create_recipe::builders::CreateRecipeFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`description(impl Into<String>)`](crate::operation::create_recipe::builders::CreateRecipeFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_recipe::builders::CreateRecipeFluentBuilder::set_description):<br>required: **false**<br><p>A description for the recipe.</p><br>
7 /// - [`name(impl Into<String>)`](crate::operation::create_recipe::builders::CreateRecipeFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_recipe::builders::CreateRecipeFluentBuilder::set_name):<br>required: **true**<br><p>A unique name for the recipe. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.</p><br>
8 /// - [`steps(RecipeStep)`](crate::operation::create_recipe::builders::CreateRecipeFluentBuilder::steps) / [`set_steps(Option<Vec::<RecipeStep>>)`](crate::operation::create_recipe::builders::CreateRecipeFluentBuilder::set_steps):<br>required: **true**<br><p>An array containing the steps to be performed by the recipe. Each recipe step consists of one recipe action and (optionally) an array of condition expressions.</p><br>
9 /// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_recipe::builders::CreateRecipeFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_recipe::builders::CreateRecipeFluentBuilder::set_tags):<br>required: **false**<br><p>Metadata tags to apply to this recipe.</p><br>
10 /// - On success, responds with [`CreateRecipeOutput`](crate::operation::create_recipe::CreateRecipeOutput) with field(s):
11 /// - [`name(String)`](crate::operation::create_recipe::CreateRecipeOutput::name): <p>The name of the recipe that you created.</p>
12 /// - On failure, responds with [`SdkError<CreateRecipeError>`](crate::operation::create_recipe::CreateRecipeError)
13 pub fn create_recipe(&self) -> crate::operation::create_recipe::builders::CreateRecipeFluentBuilder {
14 crate::operation::create_recipe::builders::CreateRecipeFluentBuilder::new(self.handle.clone())
15 }
16}