AWS Fundamentals Logo
AWS Fundamentals
AWS::IoTEvents::DetectorModel

IoTEvents DetectorModel

The AWS::IoTEvents::DetectorModel resource creates a detector model. You create a *detector model* (a model of your equipment or process) using *states*. For each state, you define conditional (Boolean) logic that evaluates the incoming inputs to detect significant events. When an event is detected, it can change the state or trigger custom-built or predefined actions using other AWS services. You can define additional events that trigger actions when entering or exiting a state and, optional...

Properties

7 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
DetectorModelDefinition
DetectorModelDefinition
Required
RoleArn
string
Required
DetectorModelDescription
string
DetectorModelName
string
Create-only
EvaluationMethod
string
Key
string
Create-only
Tags
Array<Tag>

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::IoTEvents::DetectorModel

Resources:
  MyResource:
    Type: AWS::IoTEvents::DetectorModel
    Properties:
      DetectorModelDefinition: "value"
      RoleArn: "arn:aws:service:region:account:resource"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

iotevents:CreateDetectorModeliotevents:UpdateInputRoutingiotevents:DescribeDetectorModeliotevents:ListTagsForResourceiotevents:TagResourceiam:PassRole

read

iotevents:DescribeDetectorModeliotevents:ListTagsForResource

update

iotevents:UpdateDetectorModeliotevents:UpdateInputRoutingiotevents:DescribeDetectorModeliotevents:ListTagsForResourceiotevents:UntagResourceiotevents:TagResourceiam:PassRole

delete

iotevents:DeleteDetectorModeliotevents:DescribeDetectorModel

list

iotevents:ListDetectorModels

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceIoTEvents
Properties7
Required2
TaggingSupported
Primary IDDetectorModelName

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

DetectorModelNameKey

Related Resources

External Links