| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.AmplifyUiBuilder.CreateForm
Description
Creates a new form for an Amplify app.
Synopsis
- data CreateForm = CreateForm' {}
- newCreateForm :: Text -> Text -> CreateFormData -> CreateForm
- createForm_clientToken :: Lens' CreateForm (Maybe Text)
- createForm_appId :: Lens' CreateForm Text
- createForm_environmentName :: Lens' CreateForm Text
- createForm_formToCreate :: Lens' CreateForm CreateFormData
- data CreateFormResponse = CreateFormResponse' {
- entity :: Maybe Form
- httpStatus :: Int
- newCreateFormResponse :: Int -> CreateFormResponse
- createFormResponse_entity :: Lens' CreateFormResponse (Maybe Form)
- createFormResponse_httpStatus :: Lens' CreateFormResponse Int
Creating a Request
data CreateForm Source #
See: newCreateForm smart constructor.
Constructors
| CreateForm' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> CreateFormData | |
| -> CreateForm |
Create a value of CreateForm 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:clientToken:CreateForm', createForm_clientToken - The unique client token.
CreateForm, createForm_appId - The unique ID of the Amplify app to associate with the form.
CreateForm, createForm_environmentName - The name of the backend environment that is a part of the Amplify app.
$sel:formToCreate:CreateForm', createForm_formToCreate - Represents the configuration of the form to create.
Request Lenses
createForm_clientToken :: Lens' CreateForm (Maybe Text) Source #
The unique client token.
createForm_appId :: Lens' CreateForm Text Source #
The unique ID of the Amplify app to associate with the form.
createForm_environmentName :: Lens' CreateForm Text Source #
The name of the backend environment that is a part of the Amplify app.
createForm_formToCreate :: Lens' CreateForm CreateFormData Source #
Represents the configuration of the form to create.
Destructuring the Response
data CreateFormResponse Source #
See: newCreateFormResponse smart constructor.
Constructors
| CreateFormResponse' | |
Fields
| |
Instances
newCreateFormResponse Source #
Arguments
| :: Int | |
| -> CreateFormResponse |
Create a value of CreateFormResponse 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:entity:CreateFormResponse', createFormResponse_entity - Describes the configuration of the new form.
$sel:httpStatus:CreateFormResponse', createFormResponse_httpStatus - The response's http status code.
Response Lenses
createFormResponse_entity :: Lens' CreateFormResponse (Maybe Form) Source #
Describes the configuration of the new form.
createFormResponse_httpStatus :: Lens' CreateFormResponse Int Source #
The response's http status code.