public static final class DetectorModel.Builder
extends java.lang.Object
DetectorModel
.Modifier and Type | Method and Description |
---|---|
DetectorModel |
build() |
static DetectorModel.Builder |
create(software.constructs.Construct scope,
java.lang.String id) |
DetectorModel.Builder |
description(java.lang.String description)
(experimental) A brief description of the detector model.
|
DetectorModel.Builder |
detectorKey(java.lang.String detectorKey)
(experimental) The value used to identify a detector instance.
|
DetectorModel.Builder |
detectorModelName(java.lang.String detectorModelName)
(experimental) The name of the detector model.
|
DetectorModel.Builder |
evaluationMethod(EventEvaluation evaluationMethod)
(experimental) Information about the order in which events are evaluated and how actions are executed.
|
DetectorModel.Builder |
initialState(State initialState)
(experimental) The state that is entered at the creation of each detector.
|
DetectorModel.Builder |
role(IRole role)
(experimental) The role that grants permission to AWS IoT Events to perform its operations.
|
public static DetectorModel.Builder create(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.DetectorModel.Builder
.public DetectorModel.Builder initialState(State initialState)
initialState
- The state that is entered at the creation of each detector. This parameter is required.this
public DetectorModel.Builder description(java.lang.String description)
Default: none
description
- A brief description of the detector model. This parameter is required.this
public DetectorModel.Builder detectorKey(java.lang.String detectorKey)
When a device or system sends input, a new detector instance with a unique key value is created. AWS IoT Events can continue to route input to its corresponding detector instance based on this identifying information.
This parameter uses a JSON-path expression to select the attribute-value pair in the message payload that is used for identification. To route the message to the correct detector instance, the device must send a message payload that contains the same attribute-value.
Default: - none (single detector instance will be created and all inputs will be routed to it)
detectorKey
- The value used to identify a detector instance. This parameter is required.this
public DetectorModel.Builder detectorModelName(java.lang.String detectorModelName)
Default: - CloudFormation will generate a unique name of the detector model
detectorModelName
- The name of the detector model. This parameter is required.this
public DetectorModel.Builder evaluationMethod(EventEvaluation evaluationMethod)
When setting to SERIAL, variables are updated and event conditions are evaluated in the order that the events are defined. When setting to BATCH, variables within a state are updated and events within a state are performed only after all event conditions are evaluated.
Default: EventEvaluation.BATCH
evaluationMethod
- Information about the order in which events are evaluated and how actions are executed. This parameter is required.this
public DetectorModel.Builder role(IRole role)
Default: - a role will be created with default permissions
role
- The role that grants permission to AWS IoT Events to perform its operations. This parameter is required.this
public DetectorModel build()