@Stability(value=Experimental) public static final class DetectorModel.Builder extends Object implements software.amazon.jsii.Builder<DetectorModel>
DetectorModel.| Modifier and Type | Method and Description |
|---|---|
DetectorModel |
build() |
static DetectorModel.Builder |
create(software.constructs.Construct scope,
String id) |
DetectorModel.Builder |
description(String description)
(experimental) A brief description of the detector model.
|
DetectorModel.Builder |
detectorKey(String detectorKey)
(experimental) The value used to identify a detector instance.
|
DetectorModel.Builder |
detectorModelName(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.
|
@Stability(value=Experimental) public static DetectorModel.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.DetectorModel.Builder.@Stability(value=Experimental) public DetectorModel.Builder initialState(State initialState)
initialState - The state that is entered at the creation of each detector. This parameter is required.this@Stability(value=Experimental) public DetectorModel.Builder description(String description)
Default: none
description - A brief description of the detector model. This parameter is required.this@Stability(value=Experimental) public DetectorModel.Builder detectorKey(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@Stability(value=Experimental) public DetectorModel.Builder detectorModelName(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@Stability(value=Experimental) 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@Stability(value=Experimental) 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@Stability(value=Experimental) public DetectorModel build()
build in interface software.amazon.jsii.Builder<DetectorModel>Copyright © 2022. All rights reserved.