| 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.IoTEvents.CreateInput
Description
Creates an input.
Synopsis
- data CreateInput = CreateInput' {
- inputDescription :: Maybe Text
- tags :: Maybe [Tag]
- inputName :: Text
- inputDefinition :: InputDefinition
- newCreateInput :: Text -> InputDefinition -> CreateInput
- createInput_inputDescription :: Lens' CreateInput (Maybe Text)
- createInput_tags :: Lens' CreateInput (Maybe [Tag])
- createInput_inputName :: Lens' CreateInput Text
- createInput_inputDefinition :: Lens' CreateInput InputDefinition
- data CreateInputResponse = CreateInputResponse' {}
- newCreateInputResponse :: Int -> CreateInputResponse
- createInputResponse_inputConfiguration :: Lens' CreateInputResponse (Maybe InputConfiguration)
- createInputResponse_httpStatus :: Lens' CreateInputResponse Int
Creating a Request
data CreateInput Source #
See: newCreateInput smart constructor.
Constructors
| CreateInput' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> InputDefinition | |
| -> CreateInput |
Create a value of CreateInput 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:
CreateInput, createInput_inputDescription - A brief description of the input.
$sel:tags:CreateInput', createInput_tags - Metadata that can be used to manage the input.
CreateInput, createInput_inputName - The name you want to give to the input.
CreateInput, createInput_inputDefinition - The definition of the input.
Request Lenses
createInput_inputDescription :: Lens' CreateInput (Maybe Text) Source #
A brief description of the input.
createInput_tags :: Lens' CreateInput (Maybe [Tag]) Source #
Metadata that can be used to manage the input.
createInput_inputName :: Lens' CreateInput Text Source #
The name you want to give to the input.
createInput_inputDefinition :: Lens' CreateInput InputDefinition Source #
The definition of the input.
Destructuring the Response
data CreateInputResponse Source #
See: newCreateInputResponse smart constructor.
Constructors
| CreateInputResponse' | |
Fields
| |
Instances
newCreateInputResponse Source #
Arguments
| :: Int | |
| -> CreateInputResponse |
Create a value of CreateInputResponse 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:
CreateInputResponse, createInputResponse_inputConfiguration - Information about the configuration of the input.
$sel:httpStatus:CreateInputResponse', createInputResponse_httpStatus - The response's http status code.
Response Lenses
createInputResponse_inputConfiguration :: Lens' CreateInputResponse (Maybe InputConfiguration) Source #
Information about the configuration of the input.
createInputResponse_httpStatus :: Lens' CreateInputResponse Int Source #
The response's http status code.