| 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.CreateDetectorModel
Description
Creates a detector model.
Synopsis
- data CreateDetectorModel = CreateDetectorModel' {}
- newCreateDetectorModel :: Text -> DetectorModelDefinition -> Text -> CreateDetectorModel
- createDetectorModel_detectorModelDescription :: Lens' CreateDetectorModel (Maybe Text)
- createDetectorModel_evaluationMethod :: Lens' CreateDetectorModel (Maybe EvaluationMethod)
- createDetectorModel_key :: Lens' CreateDetectorModel (Maybe Text)
- createDetectorModel_tags :: Lens' CreateDetectorModel (Maybe [Tag])
- createDetectorModel_detectorModelName :: Lens' CreateDetectorModel Text
- createDetectorModel_detectorModelDefinition :: Lens' CreateDetectorModel DetectorModelDefinition
- createDetectorModel_roleArn :: Lens' CreateDetectorModel Text
- data CreateDetectorModelResponse = CreateDetectorModelResponse' {}
- newCreateDetectorModelResponse :: Int -> CreateDetectorModelResponse
- createDetectorModelResponse_detectorModelConfiguration :: Lens' CreateDetectorModelResponse (Maybe DetectorModelConfiguration)
- createDetectorModelResponse_httpStatus :: Lens' CreateDetectorModelResponse Int
Creating a Request
data CreateDetectorModel Source #
See: newCreateDetectorModel smart constructor.
Constructors
| CreateDetectorModel' | |
Fields
| |
Instances
newCreateDetectorModel Source #
Arguments
| :: Text | |
| -> DetectorModelDefinition | |
| -> Text | |
| -> CreateDetectorModel |
Create a value of CreateDetectorModel 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:
CreateDetectorModel, createDetectorModel_detectorModelDescription - A brief description of the detector model.
CreateDetectorModel, createDetectorModel_evaluationMethod - Information about the order in which events are evaluated and how
actions are executed.
CreateDetectorModel, createDetectorModel_key - The input attribute key used to identify a device or system to create a
detector (an instance of the detector model) and then to route each
input received to the appropriate detector (instance). This parameter
uses a JSON-path expression in the message payload of each input to
specify the attribute-value pair that is used to identify the device
associated with the input.
$sel:tags:CreateDetectorModel', createDetectorModel_tags - Metadata that can be used to manage the detector model.
CreateDetectorModel, createDetectorModel_detectorModelName - The name of the detector model.
CreateDetectorModel, createDetectorModel_detectorModelDefinition - Information that defines how the detectors operate.
CreateDetectorModel, createDetectorModel_roleArn - The ARN of the role that grants permission to AWS IoT Events to perform
its operations.
Request Lenses
createDetectorModel_detectorModelDescription :: Lens' CreateDetectorModel (Maybe Text) Source #
A brief description of the detector model.
createDetectorModel_evaluationMethod :: Lens' CreateDetectorModel (Maybe EvaluationMethod) Source #
Information about the order in which events are evaluated and how actions are executed.
createDetectorModel_key :: Lens' CreateDetectorModel (Maybe Text) Source #
The input attribute key used to identify a device or system to create a detector (an instance of the detector model) and then to route each input received to the appropriate detector (instance). This parameter uses a JSON-path expression in the message payload of each input to specify the attribute-value pair that is used to identify the device associated with the input.
createDetectorModel_tags :: Lens' CreateDetectorModel (Maybe [Tag]) Source #
Metadata that can be used to manage the detector model.
createDetectorModel_detectorModelName :: Lens' CreateDetectorModel Text Source #
The name of the detector model.
createDetectorModel_detectorModelDefinition :: Lens' CreateDetectorModel DetectorModelDefinition Source #
Information that defines how the detectors operate.
createDetectorModel_roleArn :: Lens' CreateDetectorModel Text Source #
The ARN of the role that grants permission to AWS IoT Events to perform its operations.
Destructuring the Response
data CreateDetectorModelResponse Source #
See: newCreateDetectorModelResponse smart constructor.
Constructors
| CreateDetectorModelResponse' | |
Fields
| |
Instances
newCreateDetectorModelResponse Source #
Create a value of CreateDetectorModelResponse 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:
CreateDetectorModelResponse, createDetectorModelResponse_detectorModelConfiguration - Information about how the detector model is configured.
$sel:httpStatus:CreateDetectorModelResponse', createDetectorModelResponse_httpStatus - The response's http status code.
Response Lenses
createDetectorModelResponse_detectorModelConfiguration :: Lens' CreateDetectorModelResponse (Maybe DetectorModelConfiguration) Source #
Information about how the detector model is configured.
createDetectorModelResponse_httpStatus :: Lens' CreateDetectorModelResponse Int Source #
The response's http status code.