AWS IoT Events 2018-07-27
- Client: Aws\IoTEvents\IoTEventsClient
- Service ID: iotevents
- Version: 2018-07-27
This page describes the parameters and results for the operations of the AWS IoT Events (2018-07-27), and shows how to use the Aws\IoTEvents\IoTEventsClient object to call the described operations. This documentation is specific to the 2018-07-27 API version of the service.
Operation Summary
Each of the following operations can be created from a client using
$client->getCommand('CommandName')
, where "CommandName" is the
name of one of the following operations. Note: a command is a value that
encapsulates an operation and the parameters used to create an HTTP request.
You can also create and send a command immediately using the magic methods
available on a client object: $client->commandName(/* parameters */)
.
You can send the command asynchronously (returning a promise) by appending the
word "Async" to the operation name: $client->commandNameAsync(/* parameters */)
.
- CreateDetectorModel ( array $params = [] )
Creates a detector model.
- CreateInput ( array $params = [] )
Creates an input.
- DeleteDetectorModel ( array $params = [] )
Deletes a detector model.
- DeleteInput ( array $params = [] )
Deletes an input.
- DescribeDetectorModel ( array $params = [] )
Describes a detector model.
- DescribeDetectorModelAnalysis ( array $params = [] )
Retrieves execution information about a detector model analysis
- DescribeInput ( array $params = [] )
Describes an input.
- DescribeLoggingOptions ( array $params = [] )
Retrieves the current settings of the AWS IoT Events logging options.
- GetDetectorModelAnalysisResults ( array $params = [] )
Retrieves one or more analysis results of the detector model.
- ListDetectorModelVersions ( array $params = [] )
Lists all the versions of a detector model.
- ListDetectorModels ( array $params = [] )
Lists the detector models you have created.
- ListInputs ( array $params = [] )
Lists the inputs you have created.
- ListTagsForResource ( array $params = [] )
Lists the tags (metadata) you have assigned to the resource.
- PutLoggingOptions ( array $params = [] )
Sets or updates the AWS IoT Events logging options.
- StartDetectorModelAnalysis ( array $params = [] )
Performs an analysis of your detector model.
- TagResource ( array $params = [] )
Adds to or modifies the tags of the given resource.
- UntagResource ( array $params = [] )
Removes the given tags (metadata) from the resource.
- UpdateDetectorModel ( array $params = [] )
Updates a detector model.
- UpdateInput ( array $params = [] )
Updates an input.
Operations
CreateDetectorModel
$result = $client->createDetectorModel
([/* ... */]); $promise = $client->createDetectorModelAsync
([/* ... */]);
Creates a detector model.
Parameter Syntax
$result = $client->createDetectorModel([ 'detectorModelDefinition' => [ // REQUIRED 'initialStateName' => '<string>', // REQUIRED 'states' => [ // REQUIRED [ 'onEnter' => [ 'events' => [ [ 'actions' => [ [ 'clearTimer' => [ 'timerName' => '<string>', // REQUIRED ], 'dynamoDB' => [ 'hashKeyField' => '<string>', // REQUIRED 'hashKeyType' => '<string>', 'hashKeyValue' => '<string>', // REQUIRED 'operation' => '<string>', 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'payloadField' => '<string>', 'rangeKeyField' => '<string>', 'rangeKeyType' => '<string>', 'rangeKeyValue' => '<string>', 'tableName' => '<string>', // REQUIRED ], 'dynamoDBv2' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'tableName' => '<string>', // REQUIRED ], 'firehose' => [ 'deliveryStreamName' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'separator' => '<string>', ], 'iotEvents' => [ 'inputName' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'iotSiteWise' => [ 'assetId' => '<string>', 'entryId' => '<string>', 'propertyAlias' => '<string>', 'propertyId' => '<string>', 'propertyValue' => [ // REQUIRED 'quality' => '<string>', 'timestamp' => [ 'offsetInNanos' => '<string>', 'timeInSeconds' => '<string>', // REQUIRED ], 'value' => [ // REQUIRED 'booleanValue' => '<string>', 'doubleValue' => '<string>', 'integerValue' => '<string>', 'stringValue' => '<string>', ], ], ], 'iotTopicPublish' => [ 'mqttTopic' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'lambda' => [ 'functionArn' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'resetTimer' => [ 'timerName' => '<string>', // REQUIRED ], 'setTimer' => [ 'durationExpression' => '<string>', 'seconds' => <integer>, 'timerName' => '<string>', // REQUIRED ], 'setVariable' => [ 'value' => '<string>', // REQUIRED 'variableName' => '<string>', // REQUIRED ], 'sns' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'targetArn' => '<string>', // REQUIRED ], 'sqs' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'queueUrl' => '<string>', // REQUIRED 'useBase64' => true || false, ], ], // ... ], 'condition' => '<string>', 'eventName' => '<string>', // REQUIRED ], // ... ], ], 'onExit' => [ 'events' => [ [ 'actions' => [ [ 'clearTimer' => [ 'timerName' => '<string>', // REQUIRED ], 'dynamoDB' => [ 'hashKeyField' => '<string>', // REQUIRED 'hashKeyType' => '<string>', 'hashKeyValue' => '<string>', // REQUIRED 'operation' => '<string>', 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'payloadField' => '<string>', 'rangeKeyField' => '<string>', 'rangeKeyType' => '<string>', 'rangeKeyValue' => '<string>', 'tableName' => '<string>', // REQUIRED ], 'dynamoDBv2' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'tableName' => '<string>', // REQUIRED ], 'firehose' => [ 'deliveryStreamName' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'separator' => '<string>', ], 'iotEvents' => [ 'inputName' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'iotSiteWise' => [ 'assetId' => '<string>', 'entryId' => '<string>', 'propertyAlias' => '<string>', 'propertyId' => '<string>', 'propertyValue' => [ // REQUIRED 'quality' => '<string>', 'timestamp' => [ 'offsetInNanos' => '<string>', 'timeInSeconds' => '<string>', // REQUIRED ], 'value' => [ // REQUIRED 'booleanValue' => '<string>', 'doubleValue' => '<string>', 'integerValue' => '<string>', 'stringValue' => '<string>', ], ], ], 'iotTopicPublish' => [ 'mqttTopic' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'lambda' => [ 'functionArn' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'resetTimer' => [ 'timerName' => '<string>', // REQUIRED ], 'setTimer' => [ 'durationExpression' => '<string>', 'seconds' => <integer>, 'timerName' => '<string>', // REQUIRED ], 'setVariable' => [ 'value' => '<string>', // REQUIRED 'variableName' => '<string>', // REQUIRED ], 'sns' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'targetArn' => '<string>', // REQUIRED ], 'sqs' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'queueUrl' => '<string>', // REQUIRED 'useBase64' => true || false, ], ], // ... ], 'condition' => '<string>', 'eventName' => '<string>', // REQUIRED ], // ... ], ], 'onInput' => [ 'events' => [ [ 'actions' => [ [ 'clearTimer' => [ 'timerName' => '<string>', // REQUIRED ], 'dynamoDB' => [ 'hashKeyField' => '<string>', // REQUIRED 'hashKeyType' => '<string>', 'hashKeyValue' => '<string>', // REQUIRED 'operation' => '<string>', 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'payloadField' => '<string>', 'rangeKeyField' => '<string>', 'rangeKeyType' => '<string>', 'rangeKeyValue' => '<string>', 'tableName' => '<string>', // REQUIRED ], 'dynamoDBv2' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'tableName' => '<string>', // REQUIRED ], 'firehose' => [ 'deliveryStreamName' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'separator' => '<string>', ], 'iotEvents' => [ 'inputName' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'iotSiteWise' => [ 'assetId' => '<string>', 'entryId' => '<string>', 'propertyAlias' => '<string>', 'propertyId' => '<string>', 'propertyValue' => [ // REQUIRED 'quality' => '<string>', 'timestamp' => [ 'offsetInNanos' => '<string>', 'timeInSeconds' => '<string>', // REQUIRED ], 'value' => [ // REQUIRED 'booleanValue' => '<string>', 'doubleValue' => '<string>', 'integerValue' => '<string>', 'stringValue' => '<string>', ], ], ], 'iotTopicPublish' => [ 'mqttTopic' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'lambda' => [ 'functionArn' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'resetTimer' => [ 'timerName' => '<string>', // REQUIRED ], 'setTimer' => [ 'durationExpression' => '<string>', 'seconds' => <integer>, 'timerName' => '<string>', // REQUIRED ], 'setVariable' => [ 'value' => '<string>', // REQUIRED 'variableName' => '<string>', // REQUIRED ], 'sns' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'targetArn' => '<string>', // REQUIRED ], 'sqs' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'queueUrl' => '<string>', // REQUIRED 'useBase64' => true || false, ], ], // ... ], 'condition' => '<string>', 'eventName' => '<string>', // REQUIRED ], // ... ], 'transitionEvents' => [ [ 'actions' => [ [ 'clearTimer' => [ 'timerName' => '<string>', // REQUIRED ], 'dynamoDB' => [ 'hashKeyField' => '<string>', // REQUIRED 'hashKeyType' => '<string>', 'hashKeyValue' => '<string>', // REQUIRED 'operation' => '<string>', 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'payloadField' => '<string>', 'rangeKeyField' => '<string>', 'rangeKeyType' => '<string>', 'rangeKeyValue' => '<string>', 'tableName' => '<string>', // REQUIRED ], 'dynamoDBv2' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'tableName' => '<string>', // REQUIRED ], 'firehose' => [ 'deliveryStreamName' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'separator' => '<string>', ], 'iotEvents' => [ 'inputName' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'iotSiteWise' => [ 'assetId' => '<string>', 'entryId' => '<string>', 'propertyAlias' => '<string>', 'propertyId' => '<string>', 'propertyValue' => [ // REQUIRED 'quality' => '<string>', 'timestamp' => [ 'offsetInNanos' => '<string>', 'timeInSeconds' => '<string>', // REQUIRED ], 'value' => [ // REQUIRED 'booleanValue' => '<string>', 'doubleValue' => '<string>', 'integerValue' => '<string>', 'stringValue' => '<string>', ], ], ], 'iotTopicPublish' => [ 'mqttTopic' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'lambda' => [ 'functionArn' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'resetTimer' => [ 'timerName' => '<string>', // REQUIRED ], 'setTimer' => [ 'durationExpression' => '<string>', 'seconds' => <integer>, 'timerName' => '<string>', // REQUIRED ], 'setVariable' => [ 'value' => '<string>', // REQUIRED 'variableName' => '<string>', // REQUIRED ], 'sns' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'targetArn' => '<string>', // REQUIRED ], 'sqs' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'queueUrl' => '<string>', // REQUIRED 'useBase64' => true || false, ], ], // ... ], 'condition' => '<string>', // REQUIRED 'eventName' => '<string>', // REQUIRED 'nextState' => '<string>', // REQUIRED ], // ... ], ], 'stateName' => '<string>', // REQUIRED ], // ... ], ], 'detectorModelDescription' => '<string>', 'detectorModelName' => '<string>', // REQUIRED 'evaluationMethod' => 'BATCH|SERIAL', 'key' => '<string>', 'roleArn' => '<string>', // REQUIRED 'tags' => [ [ 'key' => '<string>', // REQUIRED 'value' => '<string>', // REQUIRED ], // ... ], ]);
Parameter Details
Members
- detectorModelDefinition
-
- Required: Yes
- Type: DetectorModelDefinition structure
Information that defines how the detectors operate.
- detectorModelDescription
-
- Type: string
A brief description of the detector model.
- detectorModelName
-
- Required: Yes
- Type: string
The name of the detector model.
- evaluationMethod
-
- Type: string
Information about the order in which events are evaluated and how actions are executed.
- key
-
- Type: string
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.
- roleArn
-
- Required: Yes
- Type: string
The ARN of the role that grants permission to AWS IoT Events to perform its operations.
- tags
-
- Type: Array of Tag structures
Metadata that can be used to manage the detector model.
Result Syntax
[ 'detectorModelConfiguration' => [ 'creationTime' => <DateTime>, 'detectorModelArn' => '<string>', 'detectorModelDescription' => '<string>', 'detectorModelName' => '<string>', 'detectorModelVersion' => '<string>', 'evaluationMethod' => 'BATCH|SERIAL', 'key' => '<string>', 'lastUpdateTime' => <DateTime>, 'roleArn' => '<string>', 'status' => 'ACTIVE|ACTIVATING|INACTIVE|DEPRECATED|DRAFT|PAUSED|FAILED', ], ]
Result Details
Members
- detectorModelConfiguration
-
- Type: DetectorModelConfiguration structure
Information about how the detector model is configured.
Errors
-
The request was invalid.
-
The resource is in use.
-
ResourceAlreadyExistsException:
The resource already exists.
-
A limit was exceeded.
-
The request could not be completed due to throttling.
-
An internal failure occurred.
-
The service is currently unavailable.
CreateInput
$result = $client->createInput
([/* ... */]); $promise = $client->createInputAsync
([/* ... */]);
Creates an input.
Parameter Syntax
$result = $client->createInput([ 'inputDefinition' => [ // REQUIRED 'attributes' => [ // REQUIRED [ 'jsonPath' => '<string>', // REQUIRED ], // ... ], ], 'inputDescription' => '<string>', 'inputName' => '<string>', // REQUIRED 'tags' => [ [ 'key' => '<string>', // REQUIRED 'value' => '<string>', // REQUIRED ], // ... ], ]);
Parameter Details
Members
- inputDefinition
-
- Required: Yes
- Type: InputDefinition structure
The definition of the input.
- inputDescription
-
- Type: string
A brief description of the input.
- inputName
-
- Required: Yes
- Type: string
The name you want to give to the input.
- tags
-
- Type: Array of Tag structures
Metadata that can be used to manage the input.
Result Syntax
[ 'inputConfiguration' => [ 'creationTime' => <DateTime>, 'inputArn' => '<string>', 'inputDescription' => '<string>', 'inputName' => '<string>', 'lastUpdateTime' => <DateTime>, 'status' => 'CREATING|UPDATING|ACTIVE|DELETING', ], ]
Result Details
Members
- inputConfiguration
-
- Type: InputConfiguration structure
Information about the configuration of the input.
Errors
-
The request was invalid.
-
The request could not be completed due to throttling.
-
An internal failure occurred.
-
The service is currently unavailable.
-
ResourceAlreadyExistsException:
The resource already exists.
DeleteDetectorModel
$result = $client->deleteDetectorModel
([/* ... */]); $promise = $client->deleteDetectorModelAsync
([/* ... */]);
Deletes a detector model. Any active instances of the detector model are also deleted.
Parameter Syntax
$result = $client->deleteDetectorModel([ 'detectorModelName' => '<string>', // REQUIRED ]);
Parameter Details
Result Syntax
[]
Result Details
Errors
-
The request was invalid.
-
The resource is in use.
-
The resource was not found.
-
The request could not be completed due to throttling.
-
An internal failure occurred.
-
The service is currently unavailable.
DeleteInput
$result = $client->deleteInput
([/* ... */]); $promise = $client->deleteInputAsync
([/* ... */]);
Deletes an input.
Parameter Syntax
$result = $client->deleteInput([ 'inputName' => '<string>', // REQUIRED ]);
Parameter Details
Result Syntax
[]
Result Details
Errors
-
The request was invalid.
-
The resource was not found.
-
The request could not be completed due to throttling.
-
An internal failure occurred.
-
The service is currently unavailable.
-
The resource is in use.
DescribeDetectorModel
$result = $client->describeDetectorModel
([/* ... */]); $promise = $client->describeDetectorModelAsync
([/* ... */]);
Describes a detector model. If the version
parameter is not specified, information about the latest version is returned.
Parameter Syntax
$result = $client->describeDetectorModel([ 'detectorModelName' => '<string>', // REQUIRED 'detectorModelVersion' => '<string>', ]);
Parameter Details
Members
Result Syntax
[ 'detectorModel' => [ 'detectorModelConfiguration' => [ 'creationTime' => <DateTime>, 'detectorModelArn' => '<string>', 'detectorModelDescription' => '<string>', 'detectorModelName' => '<string>', 'detectorModelVersion' => '<string>', 'evaluationMethod' => 'BATCH|SERIAL', 'key' => '<string>', 'lastUpdateTime' => <DateTime>, 'roleArn' => '<string>', 'status' => 'ACTIVE|ACTIVATING|INACTIVE|DEPRECATED|DRAFT|PAUSED|FAILED', ], 'detectorModelDefinition' => [ 'initialStateName' => '<string>', 'states' => [ [ 'onEnter' => [ 'events' => [ [ 'actions' => [ [ 'clearTimer' => [ 'timerName' => '<string>', ], 'dynamoDB' => [ 'hashKeyField' => '<string>', 'hashKeyType' => '<string>', 'hashKeyValue' => '<string>', 'operation' => '<string>', 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], 'payloadField' => '<string>', 'rangeKeyField' => '<string>', 'rangeKeyType' => '<string>', 'rangeKeyValue' => '<string>', 'tableName' => '<string>', ], 'dynamoDBv2' => [ 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], 'tableName' => '<string>', ], 'firehose' => [ 'deliveryStreamName' => '<string>', 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], 'separator' => '<string>', ], 'iotEvents' => [ 'inputName' => '<string>', 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], ], 'iotSiteWise' => [ 'assetId' => '<string>', 'entryId' => '<string>', 'propertyAlias' => '<string>', 'propertyId' => '<string>', 'propertyValue' => [ 'quality' => '<string>', 'timestamp' => [ 'offsetInNanos' => '<string>', 'timeInSeconds' => '<string>', ], 'value' => [ 'booleanValue' => '<string>', 'doubleValue' => '<string>', 'integerValue' => '<string>', 'stringValue' => '<string>', ], ], ], 'iotTopicPublish' => [ 'mqttTopic' => '<string>', 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], ], 'lambda' => [ 'functionArn' => '<string>', 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], ], 'resetTimer' => [ 'timerName' => '<string>', ], 'setTimer' => [ 'durationExpression' => '<string>', 'seconds' => <integer>, 'timerName' => '<string>', ], 'setVariable' => [ 'value' => '<string>', 'variableName' => '<string>', ], 'sns' => [ 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], 'targetArn' => '<string>', ], 'sqs' => [ 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], 'queueUrl' => '<string>', 'useBase64' => true || false, ], ], // ... ], 'condition' => '<string>', 'eventName' => '<string>', ], // ... ], ], 'onExit' => [ 'events' => [ [ 'actions' => [ [ 'clearTimer' => [ 'timerName' => '<string>', ], 'dynamoDB' => [ 'hashKeyField' => '<string>', 'hashKeyType' => '<string>', 'hashKeyValue' => '<string>', 'operation' => '<string>', 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], 'payloadField' => '<string>', 'rangeKeyField' => '<string>', 'rangeKeyType' => '<string>', 'rangeKeyValue' => '<string>', 'tableName' => '<string>', ], 'dynamoDBv2' => [ 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], 'tableName' => '<string>', ], 'firehose' => [ 'deliveryStreamName' => '<string>', 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], 'separator' => '<string>', ], 'iotEvents' => [ 'inputName' => '<string>', 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], ], 'iotSiteWise' => [ 'assetId' => '<string>', 'entryId' => '<string>', 'propertyAlias' => '<string>', 'propertyId' => '<string>', 'propertyValue' => [ 'quality' => '<string>', 'timestamp' => [ 'offsetInNanos' => '<string>', 'timeInSeconds' => '<string>', ], 'value' => [ 'booleanValue' => '<string>', 'doubleValue' => '<string>', 'integerValue' => '<string>', 'stringValue' => '<string>', ], ], ], 'iotTopicPublish' => [ 'mqttTopic' => '<string>', 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], ], 'lambda' => [ 'functionArn' => '<string>', 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], ], 'resetTimer' => [ 'timerName' => '<string>', ], 'setTimer' => [ 'durationExpression' => '<string>', 'seconds' => <integer>, 'timerName' => '<string>', ], 'setVariable' => [ 'value' => '<string>', 'variableName' => '<string>', ], 'sns' => [ 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], 'targetArn' => '<string>', ], 'sqs' => [ 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], 'queueUrl' => '<string>', 'useBase64' => true || false, ], ], // ... ], 'condition' => '<string>', 'eventName' => '<string>', ], // ... ], ], 'onInput' => [ 'events' => [ [ 'actions' => [ [ 'clearTimer' => [ 'timerName' => '<string>', ], 'dynamoDB' => [ 'hashKeyField' => '<string>', 'hashKeyType' => '<string>', 'hashKeyValue' => '<string>', 'operation' => '<string>', 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], 'payloadField' => '<string>', 'rangeKeyField' => '<string>', 'rangeKeyType' => '<string>', 'rangeKeyValue' => '<string>', 'tableName' => '<string>', ], 'dynamoDBv2' => [ 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], 'tableName' => '<string>', ], 'firehose' => [ 'deliveryStreamName' => '<string>', 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], 'separator' => '<string>', ], 'iotEvents' => [ 'inputName' => '<string>', 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], ], 'iotSiteWise' => [ 'assetId' => '<string>', 'entryId' => '<string>', 'propertyAlias' => '<string>', 'propertyId' => '<string>', 'propertyValue' => [ 'quality' => '<string>', 'timestamp' => [ 'offsetInNanos' => '<string>', 'timeInSeconds' => '<string>', ], 'value' => [ 'booleanValue' => '<string>', 'doubleValue' => '<string>', 'integerValue' => '<string>', 'stringValue' => '<string>', ], ], ], 'iotTopicPublish' => [ 'mqttTopic' => '<string>', 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], ], 'lambda' => [ 'functionArn' => '<string>', 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], ], 'resetTimer' => [ 'timerName' => '<string>', ], 'setTimer' => [ 'durationExpression' => '<string>', 'seconds' => <integer>, 'timerName' => '<string>', ], 'setVariable' => [ 'value' => '<string>', 'variableName' => '<string>', ], 'sns' => [ 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], 'targetArn' => '<string>', ], 'sqs' => [ 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], 'queueUrl' => '<string>', 'useBase64' => true || false, ], ], // ... ], 'condition' => '<string>', 'eventName' => '<string>', ], // ... ], 'transitionEvents' => [ [ 'actions' => [ [ 'clearTimer' => [ 'timerName' => '<string>', ], 'dynamoDB' => [ 'hashKeyField' => '<string>', 'hashKeyType' => '<string>', 'hashKeyValue' => '<string>', 'operation' => '<string>', 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], 'payloadField' => '<string>', 'rangeKeyField' => '<string>', 'rangeKeyType' => '<string>', 'rangeKeyValue' => '<string>', 'tableName' => '<string>', ], 'dynamoDBv2' => [ 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], 'tableName' => '<string>', ], 'firehose' => [ 'deliveryStreamName' => '<string>', 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], 'separator' => '<string>', ], 'iotEvents' => [ 'inputName' => '<string>', 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], ], 'iotSiteWise' => [ 'assetId' => '<string>', 'entryId' => '<string>', 'propertyAlias' => '<string>', 'propertyId' => '<string>', 'propertyValue' => [ 'quality' => '<string>', 'timestamp' => [ 'offsetInNanos' => '<string>', 'timeInSeconds' => '<string>', ], 'value' => [ 'booleanValue' => '<string>', 'doubleValue' => '<string>', 'integerValue' => '<string>', 'stringValue' => '<string>', ], ], ], 'iotTopicPublish' => [ 'mqttTopic' => '<string>', 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], ], 'lambda' => [ 'functionArn' => '<string>', 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], ], 'resetTimer' => [ 'timerName' => '<string>', ], 'setTimer' => [ 'durationExpression' => '<string>', 'seconds' => <integer>, 'timerName' => '<string>', ], 'setVariable' => [ 'value' => '<string>', 'variableName' => '<string>', ], 'sns' => [ 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], 'targetArn' => '<string>', ], 'sqs' => [ 'payload' => [ 'contentExpression' => '<string>', 'type' => 'STRING|JSON', ], 'queueUrl' => '<string>', 'useBase64' => true || false, ], ], // ... ], 'condition' => '<string>', 'eventName' => '<string>', 'nextState' => '<string>', ], // ... ], ], 'stateName' => '<string>', ], // ... ], ], ], ]
Result Details
Members
- detectorModel
-
- Type: DetectorModel structure
Information about the detector model.
Errors
-
The request was invalid.
-
The resource was not found.
-
The request could not be completed due to throttling.
-
An internal failure occurred.
-
The service is currently unavailable.
DescribeDetectorModelAnalysis
$result = $client->describeDetectorModelAnalysis
([/* ... */]); $promise = $client->describeDetectorModelAnalysisAsync
([/* ... */]);
Retrieves execution information about a detector model analysis
Parameter Syntax
$result = $client->describeDetectorModelAnalysis([ 'analysisId' => '<string>', // REQUIRED ]);
Parameter Details
Members
Result Syntax
[ 'status' => 'RUNNING|COMPLETE|FAILED', ]
Result Details
Members
- status
-
- Type: string
The status of the analysis activity. The status can be one of the following values:
-
RUNNING
- AWS IoT Events is analyzing your detector model. This process can take several minutes to complete. -
COMPLETE
- AWS IoT Events finished analyzing your detector model . -
FAILED
- AWS IoT Events couldn't analyze your detector model. Try again later.
Errors
-
The request was invalid.
-
The resource was not found.
-
The request could not be completed due to throttling.
-
An internal failure occurred.
-
The service is currently unavailable.
DescribeInput
$result = $client->describeInput
([/* ... */]); $promise = $client->describeInputAsync
([/* ... */]);
Describes an input.
Parameter Syntax
$result = $client->describeInput([ 'inputName' => '<string>', // REQUIRED ]);
Parameter Details
Result Syntax
[ 'input' => [ 'inputConfiguration' => [ 'creationTime' => <DateTime>, 'inputArn' => '<string>', 'inputDescription' => '<string>', 'inputName' => '<string>', 'lastUpdateTime' => <DateTime>, 'status' => 'CREATING|UPDATING|ACTIVE|DELETING', ], 'inputDefinition' => [ 'attributes' => [ [ 'jsonPath' => '<string>', ], // ... ], ], ], ]
Result Details
Members
- input
-
- Type: Input structure
Information about the input.
Errors
-
The request was invalid.
-
The resource was not found.
-
The request could not be completed due to throttling.
-
An internal failure occurred.
-
The service is currently unavailable.
DescribeLoggingOptions
$result = $client->describeLoggingOptions
([/* ... */]); $promise = $client->describeLoggingOptionsAsync
([/* ... */]);
Retrieves the current settings of the AWS IoT Events logging options.
Parameter Syntax
$result = $client->describeLoggingOptions([ ]);
Parameter Details
Members
Result Syntax
[ 'loggingOptions' => [ 'detectorDebugOptions' => [ [ 'detectorModelName' => '<string>', 'keyValue' => '<string>', ], // ... ], 'enabled' => true || false, 'level' => 'ERROR|INFO|DEBUG', 'roleArn' => '<string>', ], ]
Result Details
Members
- loggingOptions
-
- Type: LoggingOptions structure
The current settings of the AWS IoT Events logging options.
Errors
-
The request was invalid.
-
The request could not be completed due to throttling.
-
An internal failure occurred.
-
The resource was not found.
-
The service is currently unavailable.
-
UnsupportedOperationException:
The requested operation is not supported.
GetDetectorModelAnalysisResults
$result = $client->getDetectorModelAnalysisResults
([/* ... */]); $promise = $client->getDetectorModelAnalysisResultsAsync
([/* ... */]);
Retrieves one or more analysis results of the detector model.
Parameter Syntax
$result = $client->getDetectorModelAnalysisResults([ 'analysisId' => '<string>', // REQUIRED 'maxResults' => <integer>, 'nextToken' => '<string>', ]);
Parameter Details
Members
Result Syntax
[ 'analysisResults' => [ [ 'level' => 'INFO|WARNING|ERROR', 'locations' => [ [ 'path' => '<string>', ], // ... ], 'message' => '<string>', 'type' => '<string>', ], // ... ], 'nextToken' => '<string>', ]
Result Details
Members
- analysisResults
-
- Type: Array of AnalysisResult structures
Contains information about one or more analysis results.
- nextToken
-
- Type: string
The token that you can use to return the next set of results, or
null
if there are no more results.
Errors
-
The request was invalid.
-
The resource was not found.
-
The request could not be completed due to throttling.
-
An internal failure occurred.
-
The service is currently unavailable.
ListDetectorModelVersions
$result = $client->listDetectorModelVersions
([/* ... */]); $promise = $client->listDetectorModelVersionsAsync
([/* ... */]);
Lists all the versions of a detector model. Only the metadata associated with each detector model version is returned.
Parameter Syntax
$result = $client->listDetectorModelVersions([ 'detectorModelName' => '<string>', // REQUIRED 'maxResults' => <integer>, 'nextToken' => '<string>', ]);
Parameter Details
Members
Result Syntax
[ 'detectorModelVersionSummaries' => [ [ 'creationTime' => <DateTime>, 'detectorModelArn' => '<string>', 'detectorModelName' => '<string>', 'detectorModelVersion' => '<string>', 'evaluationMethod' => 'BATCH|SERIAL', 'lastUpdateTime' => <DateTime>, 'roleArn' => '<string>', 'status' => 'ACTIVE|ACTIVATING|INACTIVE|DEPRECATED|DRAFT|PAUSED|FAILED', ], // ... ], 'nextToken' => '<string>', ]
Result Details
Members
- detectorModelVersionSummaries
-
- Type: Array of DetectorModelVersionSummary structures
Summary information about the detector model versions.
- nextToken
-
- Type: string
The token that you can use to return the next set of results, or
null
if there are no more results.
Errors
-
The request was invalid.
-
The resource was not found.
-
The request could not be completed due to throttling.
-
An internal failure occurred.
-
The service is currently unavailable.
ListDetectorModels
$result = $client->listDetectorModels
([/* ... */]); $promise = $client->listDetectorModelsAsync
([/* ... */]);
Lists the detector models you have created. Only the metadata associated with each detector model is returned.
Parameter Syntax
$result = $client->listDetectorModels([ 'maxResults' => <integer>, 'nextToken' => '<string>', ]);
Parameter Details
Members
Result Syntax
[ 'detectorModelSummaries' => [ [ 'creationTime' => <DateTime>, 'detectorModelDescription' => '<string>', 'detectorModelName' => '<string>', ], // ... ], 'nextToken' => '<string>', ]
Result Details
Members
- detectorModelSummaries
-
- Type: Array of DetectorModelSummary structures
Summary information about the detector models.
- nextToken
-
- Type: string
The token that you can use to return the next set of results, or
null
if there are no more results.
Errors
-
The request was invalid.
-
The request could not be completed due to throttling.
-
An internal failure occurred.
-
The service is currently unavailable.
ListInputs
$result = $client->listInputs
([/* ... */]); $promise = $client->listInputsAsync
([/* ... */]);
Lists the inputs you have created.
Parameter Syntax
$result = $client->listInputs([ 'maxResults' => <integer>, 'nextToken' => '<string>', ]);
Parameter Details
Members
Result Syntax
[ 'inputSummaries' => [ [ 'creationTime' => <DateTime>, 'inputArn' => '<string>', 'inputDescription' => '<string>', 'inputName' => '<string>', 'lastUpdateTime' => <DateTime>, 'status' => 'CREATING|UPDATING|ACTIVE|DELETING', ], // ... ], 'nextToken' => '<string>', ]
Result Details
Members
- inputSummaries
-
- Type: Array of InputSummary structures
Summary information about the inputs.
- nextToken
-
- Type: string
The token that you can use to return the next set of results, or
null
if there are no more results.
Errors
-
The request was invalid.
-
The request could not be completed due to throttling.
-
An internal failure occurred.
-
The service is currently unavailable.
ListTagsForResource
$result = $client->listTagsForResource
([/* ... */]); $promise = $client->listTagsForResourceAsync
([/* ... */]);
Lists the tags (metadata) you have assigned to the resource.
Parameter Syntax
$result = $client->listTagsForResource([ 'resourceArn' => '<string>', // REQUIRED ]);
Parameter Details
Result Syntax
[ 'tags' => [ [ 'key' => '<string>', 'value' => '<string>', ], // ... ], ]
Result Details
Members
- tags
-
- Type: Array of Tag structures
The list of tags assigned to the resource.
Errors
-
The request was invalid.
-
The resource was not found.
-
The resource is in use.
-
The request could not be completed due to throttling.
-
An internal failure occurred.
PutLoggingOptions
$result = $client->putLoggingOptions
([/* ... */]); $promise = $client->putLoggingOptionsAsync
([/* ... */]);
Sets or updates the AWS IoT Events logging options.
If you update the value of any loggingOptions
field, it takes up to one minute for the change to take effect. If you change the policy attached to the role you specified in the roleArn
field (for example, to correct an invalid policy), it takes up to five minutes for that change to take effect.
Parameter Syntax
$result = $client->putLoggingOptions([ 'loggingOptions' => [ // REQUIRED 'detectorDebugOptions' => [ [ 'detectorModelName' => '<string>', // REQUIRED 'keyValue' => '<string>', ], // ... ], 'enabled' => true || false, // REQUIRED 'level' => 'ERROR|INFO|DEBUG', // REQUIRED 'roleArn' => '<string>', // REQUIRED ], ]);
Parameter Details
Members
- loggingOptions
-
- Required: Yes
- Type: LoggingOptions structure
The new values of the AWS IoT Events logging options.
Result Syntax
[]
Result Details
Errors
-
The request was invalid.
-
The request could not be completed due to throttling.
-
An internal failure occurred.
-
The service is currently unavailable.
-
UnsupportedOperationException:
The requested operation is not supported.
-
The resource is in use.
StartDetectorModelAnalysis
$result = $client->startDetectorModelAnalysis
([/* ... */]); $promise = $client->startDetectorModelAnalysisAsync
([/* ... */]);
Performs an analysis of your detector model. For more information, see Running detector model analyses in the AWS IoT Events Developer Guide.
Parameter Syntax
$result = $client->startDetectorModelAnalysis([ 'detectorModelDefinition' => [ // REQUIRED 'initialStateName' => '<string>', // REQUIRED 'states' => [ // REQUIRED [ 'onEnter' => [ 'events' => [ [ 'actions' => [ [ 'clearTimer' => [ 'timerName' => '<string>', // REQUIRED ], 'dynamoDB' => [ 'hashKeyField' => '<string>', // REQUIRED 'hashKeyType' => '<string>', 'hashKeyValue' => '<string>', // REQUIRED 'operation' => '<string>', 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'payloadField' => '<string>', 'rangeKeyField' => '<string>', 'rangeKeyType' => '<string>', 'rangeKeyValue' => '<string>', 'tableName' => '<string>', // REQUIRED ], 'dynamoDBv2' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'tableName' => '<string>', // REQUIRED ], 'firehose' => [ 'deliveryStreamName' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'separator' => '<string>', ], 'iotEvents' => [ 'inputName' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'iotSiteWise' => [ 'assetId' => '<string>', 'entryId' => '<string>', 'propertyAlias' => '<string>', 'propertyId' => '<string>', 'propertyValue' => [ // REQUIRED 'quality' => '<string>', 'timestamp' => [ 'offsetInNanos' => '<string>', 'timeInSeconds' => '<string>', // REQUIRED ], 'value' => [ // REQUIRED 'booleanValue' => '<string>', 'doubleValue' => '<string>', 'integerValue' => '<string>', 'stringValue' => '<string>', ], ], ], 'iotTopicPublish' => [ 'mqttTopic' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'lambda' => [ 'functionArn' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'resetTimer' => [ 'timerName' => '<string>', // REQUIRED ], 'setTimer' => [ 'durationExpression' => '<string>', 'seconds' => <integer>, 'timerName' => '<string>', // REQUIRED ], 'setVariable' => [ 'value' => '<string>', // REQUIRED 'variableName' => '<string>', // REQUIRED ], 'sns' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'targetArn' => '<string>', // REQUIRED ], 'sqs' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'queueUrl' => '<string>', // REQUIRED 'useBase64' => true || false, ], ], // ... ], 'condition' => '<string>', 'eventName' => '<string>', // REQUIRED ], // ... ], ], 'onExit' => [ 'events' => [ [ 'actions' => [ [ 'clearTimer' => [ 'timerName' => '<string>', // REQUIRED ], 'dynamoDB' => [ 'hashKeyField' => '<string>', // REQUIRED 'hashKeyType' => '<string>', 'hashKeyValue' => '<string>', // REQUIRED 'operation' => '<string>', 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'payloadField' => '<string>', 'rangeKeyField' => '<string>', 'rangeKeyType' => '<string>', 'rangeKeyValue' => '<string>', 'tableName' => '<string>', // REQUIRED ], 'dynamoDBv2' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'tableName' => '<string>', // REQUIRED ], 'firehose' => [ 'deliveryStreamName' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'separator' => '<string>', ], 'iotEvents' => [ 'inputName' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'iotSiteWise' => [ 'assetId' => '<string>', 'entryId' => '<string>', 'propertyAlias' => '<string>', 'propertyId' => '<string>', 'propertyValue' => [ // REQUIRED 'quality' => '<string>', 'timestamp' => [ 'offsetInNanos' => '<string>', 'timeInSeconds' => '<string>', // REQUIRED ], 'value' => [ // REQUIRED 'booleanValue' => '<string>', 'doubleValue' => '<string>', 'integerValue' => '<string>', 'stringValue' => '<string>', ], ], ], 'iotTopicPublish' => [ 'mqttTopic' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'lambda' => [ 'functionArn' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'resetTimer' => [ 'timerName' => '<string>', // REQUIRED ], 'setTimer' => [ 'durationExpression' => '<string>', 'seconds' => <integer>, 'timerName' => '<string>', // REQUIRED ], 'setVariable' => [ 'value' => '<string>', // REQUIRED 'variableName' => '<string>', // REQUIRED ], 'sns' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'targetArn' => '<string>', // REQUIRED ], 'sqs' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'queueUrl' => '<string>', // REQUIRED 'useBase64' => true || false, ], ], // ... ], 'condition' => '<string>', 'eventName' => '<string>', // REQUIRED ], // ... ], ], 'onInput' => [ 'events' => [ [ 'actions' => [ [ 'clearTimer' => [ 'timerName' => '<string>', // REQUIRED ], 'dynamoDB' => [ 'hashKeyField' => '<string>', // REQUIRED 'hashKeyType' => '<string>', 'hashKeyValue' => '<string>', // REQUIRED 'operation' => '<string>', 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'payloadField' => '<string>', 'rangeKeyField' => '<string>', 'rangeKeyType' => '<string>', 'rangeKeyValue' => '<string>', 'tableName' => '<string>', // REQUIRED ], 'dynamoDBv2' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'tableName' => '<string>', // REQUIRED ], 'firehose' => [ 'deliveryStreamName' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'separator' => '<string>', ], 'iotEvents' => [ 'inputName' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'iotSiteWise' => [ 'assetId' => '<string>', 'entryId' => '<string>', 'propertyAlias' => '<string>', 'propertyId' => '<string>', 'propertyValue' => [ // REQUIRED 'quality' => '<string>', 'timestamp' => [ 'offsetInNanos' => '<string>', 'timeInSeconds' => '<string>', // REQUIRED ], 'value' => [ // REQUIRED 'booleanValue' => '<string>', 'doubleValue' => '<string>', 'integerValue' => '<string>', 'stringValue' => '<string>', ], ], ], 'iotTopicPublish' => [ 'mqttTopic' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'lambda' => [ 'functionArn' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'resetTimer' => [ 'timerName' => '<string>', // REQUIRED ], 'setTimer' => [ 'durationExpression' => '<string>', 'seconds' => <integer>, 'timerName' => '<string>', // REQUIRED ], 'setVariable' => [ 'value' => '<string>', // REQUIRED 'variableName' => '<string>', // REQUIRED ], 'sns' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'targetArn' => '<string>', // REQUIRED ], 'sqs' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'queueUrl' => '<string>', // REQUIRED 'useBase64' => true || false, ], ], // ... ], 'condition' => '<string>', 'eventName' => '<string>', // REQUIRED ], // ... ], 'transitionEvents' => [ [ 'actions' => [ [ 'clearTimer' => [ 'timerName' => '<string>', // REQUIRED ], 'dynamoDB' => [ 'hashKeyField' => '<string>', // REQUIRED 'hashKeyType' => '<string>', 'hashKeyValue' => '<string>', // REQUIRED 'operation' => '<string>', 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'payloadField' => '<string>', 'rangeKeyField' => '<string>', 'rangeKeyType' => '<string>', 'rangeKeyValue' => '<string>', 'tableName' => '<string>', // REQUIRED ], 'dynamoDBv2' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'tableName' => '<string>', // REQUIRED ], 'firehose' => [ 'deliveryStreamName' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'separator' => '<string>', ], 'iotEvents' => [ 'inputName' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'iotSiteWise' => [ 'assetId' => '<string>', 'entryId' => '<string>', 'propertyAlias' => '<string>', 'propertyId' => '<string>', 'propertyValue' => [ // REQUIRED 'quality' => '<string>', 'timestamp' => [ 'offsetInNanos' => '<string>', 'timeInSeconds' => '<string>', // REQUIRED ], 'value' => [ // REQUIRED 'booleanValue' => '<string>', 'doubleValue' => '<string>', 'integerValue' => '<string>', 'stringValue' => '<string>', ], ], ], 'iotTopicPublish' => [ 'mqttTopic' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'lambda' => [ 'functionArn' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'resetTimer' => [ 'timerName' => '<string>', // REQUIRED ], 'setTimer' => [ 'durationExpression' => '<string>', 'seconds' => <integer>, 'timerName' => '<string>', // REQUIRED ], 'setVariable' => [ 'value' => '<string>', // REQUIRED 'variableName' => '<string>', // REQUIRED ], 'sns' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'targetArn' => '<string>', // REQUIRED ], 'sqs' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'queueUrl' => '<string>', // REQUIRED 'useBase64' => true || false, ], ], // ... ], 'condition' => '<string>', // REQUIRED 'eventName' => '<string>', // REQUIRED 'nextState' => '<string>', // REQUIRED ], // ... ], ], 'stateName' => '<string>', // REQUIRED ], // ... ], ], ]);
Parameter Details
Members
- detectorModelDefinition
-
- Required: Yes
- Type: DetectorModelDefinition structure
Information that defines how a detector operates.
Result Syntax
[ 'analysisId' => '<string>', ]
Result Details
Errors
-
The request was invalid.
-
A limit was exceeded.
-
The request could not be completed due to throttling.
-
An internal failure occurred.
-
The service is currently unavailable.
TagResource
$result = $client->tagResource
([/* ... */]); $promise = $client->tagResourceAsync
([/* ... */]);
Adds to or modifies the tags of the given resource. Tags are metadata that can be used to manage a resource.
Parameter Syntax
$result = $client->tagResource([ 'resourceArn' => '<string>', // REQUIRED 'tags' => [ // REQUIRED [ 'key' => '<string>', // REQUIRED 'value' => '<string>', // REQUIRED ], // ... ], ]);
Parameter Details
Members
- resourceArn
-
- Required: Yes
- Type: string
The ARN of the resource.
- tags
-
- Required: Yes
- Type: Array of Tag structures
The new or modified tags for the resource.
Result Syntax
[]
Result Details
Errors
-
The request was invalid.
-
The resource was not found.
-
The resource is in use.
-
The request could not be completed due to throttling.
-
A limit was exceeded.
-
An internal failure occurred.
UntagResource
$result = $client->untagResource
([/* ... */]); $promise = $client->untagResourceAsync
([/* ... */]);
Removes the given tags (metadata) from the resource.
Parameter Syntax
$result = $client->untagResource([ 'resourceArn' => '<string>', // REQUIRED 'tagKeys' => ['<string>', ...], // REQUIRED ]);
Parameter Details
Members
Result Syntax
[]
Result Details
Errors
-
The request was invalid.
-
The resource was not found.
-
The resource is in use.
-
The request could not be completed due to throttling.
-
An internal failure occurred.
UpdateDetectorModel
$result = $client->updateDetectorModel
([/* ... */]); $promise = $client->updateDetectorModelAsync
([/* ... */]);
Updates a detector model. Detectors (instances) spawned by the previous version are deleted and then re-created as new inputs arrive.
Parameter Syntax
$result = $client->updateDetectorModel([ 'detectorModelDefinition' => [ // REQUIRED 'initialStateName' => '<string>', // REQUIRED 'states' => [ // REQUIRED [ 'onEnter' => [ 'events' => [ [ 'actions' => [ [ 'clearTimer' => [ 'timerName' => '<string>', // REQUIRED ], 'dynamoDB' => [ 'hashKeyField' => '<string>', // REQUIRED 'hashKeyType' => '<string>', 'hashKeyValue' => '<string>', // REQUIRED 'operation' => '<string>', 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'payloadField' => '<string>', 'rangeKeyField' => '<string>', 'rangeKeyType' => '<string>', 'rangeKeyValue' => '<string>', 'tableName' => '<string>', // REQUIRED ], 'dynamoDBv2' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'tableName' => '<string>', // REQUIRED ], 'firehose' => [ 'deliveryStreamName' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'separator' => '<string>', ], 'iotEvents' => [ 'inputName' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'iotSiteWise' => [ 'assetId' => '<string>', 'entryId' => '<string>', 'propertyAlias' => '<string>', 'propertyId' => '<string>', 'propertyValue' => [ // REQUIRED 'quality' => '<string>', 'timestamp' => [ 'offsetInNanos' => '<string>', 'timeInSeconds' => '<string>', // REQUIRED ], 'value' => [ // REQUIRED 'booleanValue' => '<string>', 'doubleValue' => '<string>', 'integerValue' => '<string>', 'stringValue' => '<string>', ], ], ], 'iotTopicPublish' => [ 'mqttTopic' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'lambda' => [ 'functionArn' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'resetTimer' => [ 'timerName' => '<string>', // REQUIRED ], 'setTimer' => [ 'durationExpression' => '<string>', 'seconds' => <integer>, 'timerName' => '<string>', // REQUIRED ], 'setVariable' => [ 'value' => '<string>', // REQUIRED 'variableName' => '<string>', // REQUIRED ], 'sns' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'targetArn' => '<string>', // REQUIRED ], 'sqs' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'queueUrl' => '<string>', // REQUIRED 'useBase64' => true || false, ], ], // ... ], 'condition' => '<string>', 'eventName' => '<string>', // REQUIRED ], // ... ], ], 'onExit' => [ 'events' => [ [ 'actions' => [ [ 'clearTimer' => [ 'timerName' => '<string>', // REQUIRED ], 'dynamoDB' => [ 'hashKeyField' => '<string>', // REQUIRED 'hashKeyType' => '<string>', 'hashKeyValue' => '<string>', // REQUIRED 'operation' => '<string>', 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'payloadField' => '<string>', 'rangeKeyField' => '<string>', 'rangeKeyType' => '<string>', 'rangeKeyValue' => '<string>', 'tableName' => '<string>', // REQUIRED ], 'dynamoDBv2' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'tableName' => '<string>', // REQUIRED ], 'firehose' => [ 'deliveryStreamName' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'separator' => '<string>', ], 'iotEvents' => [ 'inputName' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'iotSiteWise' => [ 'assetId' => '<string>', 'entryId' => '<string>', 'propertyAlias' => '<string>', 'propertyId' => '<string>', 'propertyValue' => [ // REQUIRED 'quality' => '<string>', 'timestamp' => [ 'offsetInNanos' => '<string>', 'timeInSeconds' => '<string>', // REQUIRED ], 'value' => [ // REQUIRED 'booleanValue' => '<string>', 'doubleValue' => '<string>', 'integerValue' => '<string>', 'stringValue' => '<string>', ], ], ], 'iotTopicPublish' => [ 'mqttTopic' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'lambda' => [ 'functionArn' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'resetTimer' => [ 'timerName' => '<string>', // REQUIRED ], 'setTimer' => [ 'durationExpression' => '<string>', 'seconds' => <integer>, 'timerName' => '<string>', // REQUIRED ], 'setVariable' => [ 'value' => '<string>', // REQUIRED 'variableName' => '<string>', // REQUIRED ], 'sns' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'targetArn' => '<string>', // REQUIRED ], 'sqs' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'queueUrl' => '<string>', // REQUIRED 'useBase64' => true || false, ], ], // ... ], 'condition' => '<string>', 'eventName' => '<string>', // REQUIRED ], // ... ], ], 'onInput' => [ 'events' => [ [ 'actions' => [ [ 'clearTimer' => [ 'timerName' => '<string>', // REQUIRED ], 'dynamoDB' => [ 'hashKeyField' => '<string>', // REQUIRED 'hashKeyType' => '<string>', 'hashKeyValue' => '<string>', // REQUIRED 'operation' => '<string>', 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'payloadField' => '<string>', 'rangeKeyField' => '<string>', 'rangeKeyType' => '<string>', 'rangeKeyValue' => '<string>', 'tableName' => '<string>', // REQUIRED ], 'dynamoDBv2' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'tableName' => '<string>', // REQUIRED ], 'firehose' => [ 'deliveryStreamName' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'separator' => '<string>', ], 'iotEvents' => [ 'inputName' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'iotSiteWise' => [ 'assetId' => '<string>', 'entryId' => '<string>', 'propertyAlias' => '<string>', 'propertyId' => '<string>', 'propertyValue' => [ // REQUIRED 'quality' => '<string>', 'timestamp' => [ 'offsetInNanos' => '<string>', 'timeInSeconds' => '<string>', // REQUIRED ], 'value' => [ // REQUIRED 'booleanValue' => '<string>', 'doubleValue' => '<string>', 'integerValue' => '<string>', 'stringValue' => '<string>', ], ], ], 'iotTopicPublish' => [ 'mqttTopic' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'lambda' => [ 'functionArn' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'resetTimer' => [ 'timerName' => '<string>', // REQUIRED ], 'setTimer' => [ 'durationExpression' => '<string>', 'seconds' => <integer>, 'timerName' => '<string>', // REQUIRED ], 'setVariable' => [ 'value' => '<string>', // REQUIRED 'variableName' => '<string>', // REQUIRED ], 'sns' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'targetArn' => '<string>', // REQUIRED ], 'sqs' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'queueUrl' => '<string>', // REQUIRED 'useBase64' => true || false, ], ], // ... ], 'condition' => '<string>', 'eventName' => '<string>', // REQUIRED ], // ... ], 'transitionEvents' => [ [ 'actions' => [ [ 'clearTimer' => [ 'timerName' => '<string>', // REQUIRED ], 'dynamoDB' => [ 'hashKeyField' => '<string>', // REQUIRED 'hashKeyType' => '<string>', 'hashKeyValue' => '<string>', // REQUIRED 'operation' => '<string>', 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'payloadField' => '<string>', 'rangeKeyField' => '<string>', 'rangeKeyType' => '<string>', 'rangeKeyValue' => '<string>', 'tableName' => '<string>', // REQUIRED ], 'dynamoDBv2' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'tableName' => '<string>', // REQUIRED ], 'firehose' => [ 'deliveryStreamName' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'separator' => '<string>', ], 'iotEvents' => [ 'inputName' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'iotSiteWise' => [ 'assetId' => '<string>', 'entryId' => '<string>', 'propertyAlias' => '<string>', 'propertyId' => '<string>', 'propertyValue' => [ // REQUIRED 'quality' => '<string>', 'timestamp' => [ 'offsetInNanos' => '<string>', 'timeInSeconds' => '<string>', // REQUIRED ], 'value' => [ // REQUIRED 'booleanValue' => '<string>', 'doubleValue' => '<string>', 'integerValue' => '<string>', 'stringValue' => '<string>', ], ], ], 'iotTopicPublish' => [ 'mqttTopic' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'lambda' => [ 'functionArn' => '<string>', // REQUIRED 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], ], 'resetTimer' => [ 'timerName' => '<string>', // REQUIRED ], 'setTimer' => [ 'durationExpression' => '<string>', 'seconds' => <integer>, 'timerName' => '<string>', // REQUIRED ], 'setVariable' => [ 'value' => '<string>', // REQUIRED 'variableName' => '<string>', // REQUIRED ], 'sns' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'targetArn' => '<string>', // REQUIRED ], 'sqs' => [ 'payload' => [ 'contentExpression' => '<string>', // REQUIRED 'type' => 'STRING|JSON', // REQUIRED ], 'queueUrl' => '<string>', // REQUIRED 'useBase64' => true || false, ], ], // ... ], 'condition' => '<string>', // REQUIRED 'eventName' => '<string>', // REQUIRED 'nextState' => '<string>', // REQUIRED ], // ... ], ], 'stateName' => '<string>', // REQUIRED ], // ... ], ], 'detectorModelDescription' => '<string>', 'detectorModelName' => '<string>', // REQUIRED 'evaluationMethod' => 'BATCH|SERIAL', 'roleArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- detectorModelDefinition
-
- Required: Yes
- Type: DetectorModelDefinition structure
Information that defines how a detector operates.
- detectorModelDescription
-
- Type: string
A brief description of the detector model.
- detectorModelName
-
- Required: Yes
- Type: string
The name of the detector model that is updated.
- evaluationMethod
-
- Type: string
Information about the order in which events are evaluated and how actions are executed.
- roleArn
-
- Required: Yes
- Type: string
The ARN of the role that grants permission to AWS IoT Events to perform its operations.
Result Syntax
[ 'detectorModelConfiguration' => [ 'creationTime' => <DateTime>, 'detectorModelArn' => '<string>', 'detectorModelDescription' => '<string>', 'detectorModelName' => '<string>', 'detectorModelVersion' => '<string>', 'evaluationMethod' => 'BATCH|SERIAL', 'key' => '<string>', 'lastUpdateTime' => <DateTime>, 'roleArn' => '<string>', 'status' => 'ACTIVE|ACTIVATING|INACTIVE|DEPRECATED|DRAFT|PAUSED|FAILED', ], ]
Result Details
Members
- detectorModelConfiguration
-
- Type: DetectorModelConfiguration structure
Information about how the detector model is configured.
Errors
-
The request was invalid.
-
The resource is in use.
-
The resource was not found.
-
The request could not be completed due to throttling.
-
An internal failure occurred.
-
The service is currently unavailable.
UpdateInput
$result = $client->updateInput
([/* ... */]); $promise = $client->updateInputAsync
([/* ... */]);
Updates an input.
Parameter Syntax
$result = $client->updateInput([ 'inputDefinition' => [ // REQUIRED 'attributes' => [ // REQUIRED [ 'jsonPath' => '<string>', // REQUIRED ], // ... ], ], 'inputDescription' => '<string>', 'inputName' => '<string>', // REQUIRED ]);
Parameter Details
Members
- inputDefinition
-
- Required: Yes
- Type: InputDefinition structure
The definition of the input.
- inputDescription
-
- Type: string
A brief description of the input.
- inputName
-
- Required: Yes
- Type: string
The name of the input you want to update.
Result Syntax
[ 'inputConfiguration' => [ 'creationTime' => <DateTime>, 'inputArn' => '<string>', 'inputDescription' => '<string>', 'inputName' => '<string>', 'lastUpdateTime' => <DateTime>, 'status' => 'CREATING|UPDATING|ACTIVE|DELETING', ], ]
Result Details
Members
- inputConfiguration
-
- Type: InputConfiguration structure
Information about the configuration of the input.
Errors
-
The request was invalid.
-
The request could not be completed due to throttling.
-
The resource was not found.
-
An internal failure occurred.
-
The service is currently unavailable.
-
The resource is in use.
Shapes
Action
Description
An action to be performed when the condition
is TRUE.
Members
- clearTimer
-
- Type: ClearTimerAction structure
Information needed to clear the timer.
- dynamoDB
-
- Type: DynamoDBAction structure
Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the payload. One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide.
- dynamoDBv2
-
- Type: DynamoDBv2Action structure
Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the payload. A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide.
- firehose
-
- Type: FirehoseAction structure
Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.
- iotEvents
-
- Type: IotEventsAction structure
Sends AWS IoT Events input, which passes information about the detector model instance and the event that triggered the action.
- iotSiteWise
-
- Type: IotSiteWiseAction structure
Sends information about the detector model instance and the event that triggered the action to an asset property in AWS IoT SiteWise .
- iotTopicPublish
-
- Type: IotTopicPublishAction structure
Publishes an MQTT message with the given topic to the AWS IoT message broker.
- lambda
-
- Type: LambdaAction structure
Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.
- resetTimer
-
- Type: ResetTimerAction structure
Information needed to reset the timer.
- setTimer
-
- Type: SetTimerAction structure
Information needed to set the timer.
- setVariable
-
- Type: SetVariableAction structure
Sets a variable to a specified value.
- sns
-
- Type: SNSTopicPublishAction structure
Sends an Amazon SNS message.
- sqs
-
- Type: SqsAction structure
Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.
AnalysisResult
Description
Contains the result of the analysis.
Members
- level
-
- Type: string
The severity level of the analysis result. Analysis results fall into three general categories based on the severity level:
-
INFO
- An information result informs you about a significant field in your detector model. This type of result usually doesn't require immediate action. -
WARNING
- A warning result draws special attention to fields that are potentially damaging to your detector model. We recommend that you review warnings and take necessary actions before you use your detetor model in production environments. Otherwise, the detector model may not fully function as expected. -
ERROR
- An error result notifies you about a problem found in your detector model. You must fix all errors before you can publish your detector model.
- locations
-
- Type: Array of AnalysisResultLocation structures
Contains one or more locations that you can use to locate the fields in your detector model that the analysis result references.
- message
-
- Type: string
Contains additional information about the analysis result.
- type
-
- Type: string
The type of the analysis result. Analyses fall into the following types based on the validators used to generate the analysis result:
-
supported-actions
- You must specify AWS IoT Events supported actions that work with other AWS services in a supported AWS Region. -
service-limits
- Resources or operations can't exceed service limits. Update your detector model or request a limit adjust. -
structure
- The detector model must follow a structure that AWS IoT Events supports. -
expression-syntax
- Your expression must follow the required syntax. -
data-type
- Data types referenced in the detector model must be compatible. -
referenced-data
- You must define the data referenced in your detector model before you can use the data. -
referenced-resource
- Resources that the detector model uses must be available.
For more information, see Running detector model analyses in the AWS IoT Events Developer Guide.
AnalysisResultLocation
Description
Contains information that you can use to locate the field in your detector model that the analysis result references.
Members
- path
-
- Type: string
A JsonPath expression that identifies the error field in your detector model.
AssetPropertyTimestamp
Description
A structure that contains timestamp information. For more information, see TimeInNanos in the AWS IoT SiteWise API Reference.
You must use expressions for all parameters in AssetPropertyTimestamp
. The expressions accept literals, operators, functions, references, and substitution templates.
Examples
-
For literal values, the expressions must contain single quotes. For example, the value for the
timeInSeconds
parameter can be'1586400675'
. -
For references, you must specify either variables or input values. For example, the value for the
offsetInNanos
parameter can be$variable.time
. -
For a substitution template, you must use
${}
, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.In the following example, the value for the
timeInSeconds
parameter uses a substitution template.'${$input.TemperatureInput.sensorData.timestamp / 1000}'
For more information, see Expressions in the AWS IoT Events Developer Guide.
Members
AssetPropertyValue
Description
A structure that contains value information. For more information, see AssetPropertyValue in the AWS IoT SiteWise API Reference.
You must use expressions for all parameters in AssetPropertyValue
. The expressions accept literals, operators, functions, references, and substitution templates.
Examples
-
For literal values, the expressions must contain single quotes. For example, the value for the
quality
parameter can be'GOOD'
. -
For references, you must specify either variables or input values. For example, the value for the
quality
parameter can be$input.TemperatureInput.sensorData.quality
.
For more information, see Expressions in the AWS IoT Events Developer Guide.
Members
- quality
-
- Type: string
The quality of the asset property value. The value must be
'GOOD'
,'BAD'
, or'UNCERTAIN'
. - timestamp
-
- Type: AssetPropertyTimestamp structure
The timestamp associated with the asset property value. The default is the current event time.
- value
-
- Required: Yes
- Type: AssetPropertyVariant structure
The value to send to an asset property.
AssetPropertyVariant
Description
A structure that contains an asset property value. For more information, see Variant in the AWS IoT SiteWise API Reference.
You must use expressions for all parameters in AssetPropertyVariant
. The expressions accept literals, operators, functions, references, and substitution templates.
Examples
-
For literal values, the expressions must contain single quotes. For example, the value for the
integerValue
parameter can be'100'
. -
For references, you must specify either variables or parameters. For example, the value for the
booleanValue
parameter can be$variable.offline
. -
For a substitution template, you must use
${}
, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.In the following example, the value for the
doubleValue
parameter uses a substitution template.'${$input.TemperatureInput.sensorData.temperature * 6 / 5 + 32}'
For more information, see Expressions in the AWS IoT Events Developer Guide.
You must specify one of the following value types, depending on the dataType
of the specified asset property. For more information, see AssetProperty in the AWS IoT SiteWise API Reference.
Members
- booleanValue
-
- Type: string
The asset property value is a Boolean value that must be
'TRUE'
or'FALSE'
. You must use an expression, and the evaluated result should be a Boolean value. - doubleValue
-
- Type: string
The asset property value is a double. You must use an expression, and the evaluated result should be a double.
- integerValue
-
- Type: string
The asset property value is an integer. You must use an expression, and the evaluated result should be an integer.
- stringValue
-
- Type: string
The asset property value is a string. You must use an expression, and the evaluated result should be a string.
Attribute
Description
The attributes from the JSON payload that are made available by the input. Inputs are derived from messages sent to the AWS IoT Events system using BatchPutMessage
. Each such message contains a JSON payload. Those attributes (and their paired values) specified here are available for use in the condition
expressions used by detectors.
Members
- jsonPath
-
- Required: Yes
- Type: string
An expression that specifies an attribute-value pair in a JSON structure. Use this to specify an attribute from the JSON payload that is made available by the input. Inputs are derived from messages sent to AWS IoT Events (
BatchPutMessage
). Each such message contains a JSON payload. The attribute (and its paired value) specified here are available for use in thecondition
expressions used by detectors.Syntax:
<field-name>.<field-name>...
ClearTimerAction
Description
Information needed to clear the timer.
Members
DetectorDebugOption
Description
The detector model and the specific detectors (instances) for which the logging level is given.
Members
DetectorModel
Description
Information about the detector model.
Members
- detectorModelConfiguration
-
- Type: DetectorModelConfiguration structure
Information about how the detector is configured.
- detectorModelDefinition
-
- Type: DetectorModelDefinition structure
Information that defines how a detector operates.
DetectorModelConfiguration
Description
Information about how the detector model is configured.
Members
- creationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time the detector model was created.
- detectorModelArn
-
- Type: string
The ARN of the detector model.
- detectorModelDescription
-
- Type: string
A brief description of the detector model.
- detectorModelName
-
- Type: string
The name of the detector model.
- detectorModelVersion
-
- Type: string
The version of the detector model.
- evaluationMethod
-
- Type: string
Information about the order in which events are evaluated and how actions are executed.
- key
-
- Type: string
The value used to identify a detector instance. 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.
- lastUpdateTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time the detector model was last updated.
- roleArn
-
- Type: string
The ARN of the role that grants permission to AWS IoT Events to perform its operations.
- status
-
- Type: string
The status of the detector model.
DetectorModelDefinition
Description
Information that defines how a detector operates.
Members
- initialStateName
-
- Required: Yes
- Type: string
The state that is entered at the creation of each detector (instance).
- states
-
- Required: Yes
- Type: Array of State structures
Information about the states of the detector.
DetectorModelSummary
Description
Information about the detector model.
Members
DetectorModelVersionSummary
Description
Information about the detector model version.
Members
- creationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time the detector model version was created.
- detectorModelArn
-
- Type: string
The ARN of the detector model version.
- detectorModelName
-
- Type: string
The name of the detector model.
- detectorModelVersion
-
- Type: string
The ID of the detector model version.
- evaluationMethod
-
- Type: string
Information about the order in which events are evaluated and how actions are executed.
- lastUpdateTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The last time the detector model version was updated.
- roleArn
-
- Type: string
The ARN of the role that grants the detector model permission to perform its tasks.
- status
-
- Type: string
The status of the detector model version.
DynamoDBAction
Description
Defines an action to write to the Amazon DynamoDB table that you created. The standard action payload contains all the information about the detector model instance and the event that triggered the action. You can customize the payload. One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify.
You must use expressions for all parameters in DynamoDBAction
. The expressions accept literals, operators, functions, references, and substitution templates.
Examples
-
For literal values, the expressions must contain single quotes. For example, the value for the
hashKeyType
parameter can be'STRING'
. -
For references, you must specify either variables or input values. For example, the value for the
hashKeyField
parameter can be$input.GreenhouseInput.name
. -
For a substitution template, you must use
${}
, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.In the following example, the value for the
hashKeyValue
parameter uses a substitution template.'${$input.GreenhouseInput.temperature * 6 / 5 + 32} in Fahrenheit'
-
For a string concatenation, you must use
+
. A string concatenation can also contain a combination of literals, operators, functions, references, and substitution templates.In the following example, the value for the
tableName
parameter uses a string concatenation.'GreenhouseTemperatureTable ' + $input.GreenhouseInput.date
For more information, see Expressions in the AWS IoT Events Developer Guide.
If the defined payload type is a string, DynamoDBAction
writes non-JSON data to the DynamoDB table as binary data. The DynamoDB console displays the data as Base64-encoded text. The value for the payloadField
parameter is <payload-field>_raw
.
Members
- hashKeyField
-
- Required: Yes
- Type: string
The name of the hash key (also called the partition key). The
hashKeyField
value must match the partition key of the target DynamoDB table. - hashKeyType
-
- Type: string
The data type for the hash key (also called the partition key). You can specify the following values:
-
'STRING'
- The hash key is a string. -
'NUMBER'
- The hash key is a number.
If you don't specify
hashKeyType
, the default value is'STRING'
. - hashKeyValue
-
- Required: Yes
- Type: string
The value of the hash key (also called the partition key).
- operation
-
- Type: string
The type of operation to perform. You can specify the following values:
-
'INSERT'
- Insert data as a new item into the DynamoDB table. This item uses the specified hash key as a partition key. If you specified a range key, the item uses the range key as a sort key. -
'UPDATE'
- Update an existing item of the DynamoDB table with new data. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key. -
'DELETE'
- Delete an existing item of the DynamoDB table. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key.
If you don't specify this parameter, AWS IoT Events triggers the
'INSERT'
operation. - payload
-
- Type: Payload structure
Information needed to configure the payload.
By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use
contentExpression
. - payloadField
-
- Type: string
The name of the DynamoDB column that receives the action payload.
If you don't specify this parameter, the name of the DynamoDB column is
payload
. - rangeKeyField
-
- Type: string
The name of the range key (also called the sort key). The
rangeKeyField
value must match the sort key of the target DynamoDB table. - rangeKeyType
-
- Type: string
The data type for the range key (also called the sort key), You can specify the following values:
-
'STRING'
- The range key is a string. -
'NUMBER'
- The range key is number.
If you don't specify
rangeKeyField
, the default value is'STRING'
. - rangeKeyValue
-
- Type: string
The value of the range key (also called the sort key).
- tableName
-
- Required: Yes
- Type: string
The name of the DynamoDB table. The
tableName
value must match the table name of the target DynamoDB table.
DynamoDBv2Action
Description
Defines an action to write to the Amazon DynamoDB table that you created. The default action payload contains all the information about the detector model instance and the event that triggered the action. You can customize the payload. A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify.
You must use expressions for all parameters in DynamoDBv2Action
. The expressions accept literals, operators, functions, references, and substitution templates.
Examples
-
For literal values, the expressions must contain single quotes. For example, the value for the
tableName
parameter can be'GreenhouseTemperatureTable'
. -
For references, you must specify either variables or input values. For example, the value for the
tableName
parameter can be$variable.ddbtableName
. -
For a substitution template, you must use
${}
, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.In the following example, the value for the
contentExpression
parameter inPayload
uses a substitution template.'{\"sensorID\": \"${$input.GreenhouseInput.sensor_id}\", \"temperature\": \"${$input.GreenhouseInput.temperature * 9 / 5 + 32}\"}'
-
For a string concatenation, you must use
+
. A string concatenation can also contain a combination of literals, operators, functions, references, and substitution templates.In the following example, the value for the
tableName
parameter uses a string concatenation.'GreenhouseTemperatureTable ' + $input.GreenhouseInput.date
For more information, see Expressions in the AWS IoT Events Developer Guide.
The value for the type
parameter in Payload
must be JSON
.
Members
- payload
-
- Type: Payload structure
Information needed to configure the payload.
By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use
contentExpression
. - tableName
-
- Required: Yes
- Type: string
The name of the DynamoDB table.
Event
Description
Specifies the actions
to be performed when the condition
evaluates to TRUE.
Members
- actions
-
- Type: Array of Action structures
The actions to be performed.
- condition
-
- Type: string
Optional. The Boolean expression that, when TRUE, causes the
actions
to be performed. If not present, the actions are performed (=TRUE). If the expression result is not a Boolean value, the actions are not performed (=FALSE). - eventName
-
- Required: Yes
- Type: string
The name of the event.
FirehoseAction
Description
Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.
Members
- deliveryStreamName
-
- Required: Yes
- Type: string
The name of the Kinesis Data Firehose delivery stream where the data is written.
- payload
-
- Type: Payload structure
You can configure the action payload when you send a message to an Amazon Kinesis Data Firehose delivery stream.
- separator
-
- Type: string
A character separator that is used to separate records written to the Kinesis Data Firehose delivery stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).
Input
Description
Information about the input.
Members
- inputConfiguration
-
- Type: InputConfiguration structure
Information about the configuration of an input.
- inputDefinition
-
- Type: InputDefinition structure
The definition of the input.
InputConfiguration
Description
Information about the configuration of an input.
Members
- creationTime
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time the input was created.
- inputArn
-
- Required: Yes
- Type: string
The ARN of the input.
- inputDescription
-
- Type: string
A brief description of the input.
- inputName
-
- Required: Yes
- Type: string
The name of the input.
- lastUpdateTime
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The last time the input was updated.
- status
-
- Required: Yes
- Type: string
The status of the input.
InputDefinition
Description
The definition of the input.
Members
- attributes
-
- Required: Yes
- Type: Array of Attribute structures
The attributes from the JSON payload that are made available by the input. Inputs are derived from messages sent to the AWS IoT Events system using
BatchPutMessage
. Each such message contains a JSON payload, and those attributes (and their paired values) specified here are available for use in thecondition
expressions used by detectors that monitor this input.
InputSummary
Description
Information about the input.
Members
- creationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time the input was created.
- inputArn
-
- Type: string
The ARN of the input.
- inputDescription
-
- Type: string
A brief description of the input.
- inputName
-
- Type: string
The name of the input.
- lastUpdateTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The last time the input was updated.
- status
-
- Type: string
The status of the input.
InternalFailureException
Description
An internal failure occurred.
Members
InvalidRequestException
IotEventsAction
Description
Sends an AWS IoT Events input, passing in information about the detector model instance and the event that triggered the action.
Members
- inputName
-
- Required: Yes
- Type: string
The name of the AWS IoT Events input where the data is sent.
- payload
-
- Type: Payload structure
You can configure the action payload when you send a message to an AWS IoT Events input.
IotSiteWiseAction
Description
Sends information about the detector model instance and the event that triggered the action to a specified asset property in AWS IoT SiteWise.
You must use expressions for all parameters in IotSiteWiseAction
. The expressions accept literals, operators, functions, references, and substitutions templates.
Examples
-
For literal values, the expressions must contain single quotes. For example, the value for the
propertyAlias
parameter can be'/company/windfarm/3/turbine/7/temperature'
. -
For references, you must specify either variables or input values. For example, the value for the
assetId
parameter can be$input.TurbineInput.assetId1
. -
For a substitution template, you must use
${}
, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.In the following example, the value for the
propertyAlias
parameter uses a substitution template.'company/windfarm/${$input.TemperatureInput.sensorData.windfarmID}/turbine/ ${$input.TemperatureInput.sensorData.turbineID}/temperature'
You must specify either propertyAlias
or both assetId
and propertyId
to identify the target asset property in AWS IoT SiteWise.
For more information, see Expressions in the AWS IoT Events Developer Guide.
Members
- assetId
-
- Type: string
The ID of the asset that has the specified property.
- entryId
-
- Type: string
A unique identifier for this entry. You can use the entry ID to track which data entry causes an error in case of failure. The default is a new unique identifier.
- propertyAlias
-
- Type: string
The alias of the asset property.
- propertyId
-
- Type: string
The ID of the asset property.
- propertyValue
-
- Required: Yes
- Type: AssetPropertyValue structure
The value to send to the asset property. This value contains timestamp, quality, and value (TQV) information.
IotTopicPublishAction
Description
Information required to publish the MQTT message through the AWS IoT message broker.
Members
- mqttTopic
-
- Required: Yes
- Type: string
The MQTT topic of the message. You can use a string expression that includes variables (
$variable.<variable-name>
) and input values ($input.<input-name>.<path-to-datum>
) as the topic string. - payload
-
- Type: Payload structure
You can configure the action payload when you publish a message to an AWS IoT Core topic.
LambdaAction
Description
Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.
Members
- functionArn
-
- Required: Yes
- Type: string
The ARN of the Lambda function that is executed.
- payload
-
- Type: Payload structure
You can configure the action payload when you send a message to a Lambda function.
LimitExceededException
LoggingOptions
Description
The values of the AWS IoT Events logging options.
Members
- detectorDebugOptions
-
- Type: Array of DetectorDebugOption structures
Information that identifies those detector models and their detectors (instances) for which the logging level is given.
- enabled
-
- Required: Yes
- Type: boolean
If TRUE, logging is enabled for AWS IoT Events.
- level
-
- Required: Yes
- Type: string
The logging level.
- roleArn
-
- Required: Yes
- Type: string
The ARN of the role that grants permission to AWS IoT Events to perform logging.
OnEnterLifecycle
Description
When entering this state, perform these actions
if the condition
is TRUE.
Members
- events
-
- Type: Array of Event structures
Specifies the actions that are performed when the state is entered and the
condition
isTRUE
.
OnExitLifecycle
Description
When exiting this state, perform these actions
if the specified condition
is TRUE
.
Members
- events
-
- Type: Array of Event structures
Specifies the
actions
that are performed when the state is exited and thecondition
isTRUE
.
OnInputLifecycle
Description
Specifies the actions performed when the condition
evaluates to TRUE.
Members
- events
-
- Type: Array of Event structures
Specifies the actions performed when the
condition
evaluates to TRUE. - transitionEvents
-
- Type: Array of TransitionEvent structures
Specifies the actions performed, and the next state entered, when a
condition
evaluates to TRUE.
Payload
Description
Information needed to configure the payload.
By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression
.
Members
- contentExpression
-
- Required: Yes
- Type: string
The content of the payload. You can use a string expression that includes quoted strings (
'<string>'
), variables ($variable.<variable-name>
), input values ($input.<input-name>.<path-to-datum>
), string concatenations, and quoted strings that contain${}
as the content. The recommended maximum size of a content expression is 1 KB. - type
-
- Required: Yes
- Type: string
The value of the payload type can be either
STRING
orJSON
.
ResetTimerAction
Description
Information required to reset the timer. The timer is reset to the previously evaluated result of the duration. The duration expression isn't reevaluated when you reset the timer.
Members
ResourceAlreadyExistsException
Description
The resource already exists.
Members
ResourceInUseException
ResourceNotFoundException
SNSTopicPublishAction
Description
Information required to publish the Amazon SNS message.
Members
- payload
-
- Type: Payload structure
You can configure the action payload when you send a message as an Amazon SNS push notification.
- targetArn
-
- Required: Yes
- Type: string
The ARN of the Amazon SNS target where the message is sent.
ServiceUnavailableException
Description
The service is currently unavailable.
Members
SetTimerAction
Description
Information needed to set the timer.
Members
- durationExpression
-
- Type: string
The duration of the timer, in seconds. You can use a string expression that includes numbers, variables (
$variable.<variable-name>
), and input values ($input.<input-name>.<path-to-datum>
) as the duration. The range of the duration is 1-31622400 seconds. To ensure accuracy, the minimum duration is 60 seconds. The evaluated result of the duration is rounded down to the nearest whole number. - seconds
-
- Type: int
The number of seconds until the timer expires. The minimum value is 60 seconds to ensure accuracy. The maximum value is 31622400 seconds.
- timerName
-
- Required: Yes
- Type: string
The name of the timer.
SetVariableAction
Description
Information about the variable and its new value.
Members
SqsAction
Description
Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.
Members
- payload
-
- Type: Payload structure
You can configure the action payload when you send a message to an Amazon SQS queue.
- queueUrl
-
- Required: Yes
- Type: string
The URL of the SQS queue where the data is written.
- useBase64
-
- Type: boolean
Set this to TRUE if you want the data to be base-64 encoded before it is written to the queue. Otherwise, set this to FALSE.
State
Description
Information that defines a state of a detector.
Members
- onEnter
-
- Type: OnEnterLifecycle structure
When entering this state, perform these
actions
if thecondition
is TRUE. - onExit
-
- Type: OnExitLifecycle structure
When exiting this state, perform these
actions
if the specifiedcondition
isTRUE
. - onInput
-
- Type: OnInputLifecycle structure
When an input is received and the
condition
is TRUE, perform the specifiedactions
. - stateName
-
- Required: Yes
- Type: string
The name of the state.
Tag
Description
Metadata that can be used to manage the resource.
Members
ThrottlingException
Description
The request could not be completed due to throttling.
Members
TransitionEvent
Description
Specifies the actions performed and the next state entered when a condition
evaluates to TRUE.
Members
- actions
-
- Type: Array of Action structures
The actions to be performed.
- condition
-
- Required: Yes
- Type: string
Required. A Boolean expression that when TRUE causes the actions to be performed and the
nextState
to be entered. - eventName
-
- Required: Yes
- Type: string
The name of the transition event.
- nextState
-
- Required: Yes
- Type: string
The next state to enter.