Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a new DataBrew recipe.
Synopsis
- data CreateRecipe = CreateRecipe' {}
- newCreateRecipe :: Text -> CreateRecipe
- createRecipe_description :: Lens' CreateRecipe (Maybe Text)
- createRecipe_tags :: Lens' CreateRecipe (Maybe (HashMap Text Text))
- createRecipe_name :: Lens' CreateRecipe Text
- createRecipe_steps :: Lens' CreateRecipe [RecipeStep]
- data CreateRecipeResponse = CreateRecipeResponse' {
- httpStatus :: Int
- name :: Text
- newCreateRecipeResponse :: Int -> Text -> CreateRecipeResponse
- createRecipeResponse_httpStatus :: Lens' CreateRecipeResponse Int
- createRecipeResponse_name :: Lens' CreateRecipeResponse Text
Creating a Request
data CreateRecipe Source #
See: newCreateRecipe
smart constructor.
CreateRecipe' | |
|
Instances
Create a value of CreateRecipe
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:description:CreateRecipe'
, createRecipe_description
- A description for the recipe.
$sel:tags:CreateRecipe'
, createRecipe_tags
- Metadata tags to apply to this recipe.
$sel:name:CreateRecipe'
, createRecipe_name
- A unique name for the recipe. Valid characters are alphanumeric (A-Z,
a-z, 0-9), hyphen (-), period (.), and space.
$sel:steps:CreateRecipe'
, createRecipe_steps
- 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.
Request Lenses
createRecipe_description :: Lens' CreateRecipe (Maybe Text) Source #
A description for the recipe.
createRecipe_tags :: Lens' CreateRecipe (Maybe (HashMap Text Text)) Source #
Metadata tags to apply to this recipe.
createRecipe_name :: Lens' CreateRecipe Text Source #
A unique name for the recipe. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.
createRecipe_steps :: Lens' CreateRecipe [RecipeStep] Source #
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.
Destructuring the Response
data CreateRecipeResponse Source #
See: newCreateRecipeResponse
smart constructor.
CreateRecipeResponse' | |
|
Instances
newCreateRecipeResponse Source #
Create a value of CreateRecipeResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:CreateRecipeResponse'
, createRecipeResponse_httpStatus
- The response's http status code.
$sel:name:CreateRecipe'
, createRecipeResponse_name
- The name of the recipe that you created.
Response Lenses
createRecipeResponse_httpStatus :: Lens' CreateRecipeResponse Int Source #
The response's http status code.
createRecipeResponse_name :: Lens' CreateRecipeResponse Text Source #
The name of the recipe that you created.