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 detector model.
Synopsis
- data CreateDetectorModel = CreateDetectorModel' {}
- newCreateDetectorModel :: Text -> DetectorModelDefinition -> Text -> CreateDetectorModel
- createDetectorModel_detectorModelDescription :: Lens' CreateDetectorModel (Maybe Text)
- createDetectorModel_key :: Lens' CreateDetectorModel (Maybe Text)
- createDetectorModel_evaluationMethod :: Lens' CreateDetectorModel (Maybe EvaluationMethod)
- 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.
CreateDetectorModel' | |
|
Instances
newCreateDetectorModel Source #
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:
$sel:detectorModelDescription:CreateDetectorModel'
, createDetectorModel_detectorModelDescription
- A brief description of the detector model.
$sel:key: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:evaluationMethod:CreateDetectorModel'
, createDetectorModel_evaluationMethod
- Information about the order in which events are evaluated and how
actions are executed.
$sel:tags:CreateDetectorModel'
, createDetectorModel_tags
- Metadata that can be used to manage the detector model.
$sel:detectorModelName:CreateDetectorModel'
, createDetectorModel_detectorModelName
- The name of the detector model.
$sel:detectorModelDefinition:CreateDetectorModel'
, createDetectorModel_detectorModelDefinition
- Information that defines how the detectors operate.
$sel:roleArn: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_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_evaluationMethod :: Lens' CreateDetectorModel (Maybe EvaluationMethod) Source #
Information about the order in which events are evaluated and how actions are executed.
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.
CreateDetectorModelResponse' | |
|
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:
$sel:detectorModelConfiguration: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.