Skip to main content

inputs

Creates, updates, deletes or gets an input resource or lists inputs in a region

Overview

Nameinputs
TypeResource
DescriptionThe AWS::IoTEvents::Input resource creates an input. To monitor your devices and processes, they must have a way to get telemetry data into AWS IoT Events. This is done by sending messages as *inputs* to AWS IoT Events. For more information, see [How to Use AWS IoT Events](https://docs.aws.amazon.com/iotevents/latest/developerguide/how-to-use-iotevents.html) in the *AWS IoT Events Developer Guide*.
Idaws.iotevents.inputs

Fields

NameDatatypeDescription
input_definitionobjectThe definition of the input.
input_descriptionstringA brief description of the input.
input_namestringThe name of the input.
tagsarrayAn array of key-value pairs to apply to this resource.
For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html).
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTInputDefinition, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all inputs in a region.

SELECT
region,
input_definition,
input_description,
input_name,
tags
FROM aws.iotevents.inputs
WHERE region = 'us-east-1';

Gets all properties from an individual input.

SELECT
region,
input_definition,
input_description,
input_name,
tags
FROM aws.iotevents.inputs
WHERE region = 'us-east-1' AND data__Identifier = '<InputName>';

INSERT example

Use the following StackQL query and manifest file to create a new input resource, using stack-deploy.

/*+ create */
INSERT INTO aws.iotevents.inputs (
InputDefinition,
region
)
SELECT
'{{ InputDefinition }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.iotevents.inputs
WHERE data__Identifier = '<InputName>'
AND region = 'us-east-1';

Permissions

To operate on the inputs resource, the following permissions are required:

Create

iotevents:CreateInput,
iotevents:TagResource,
iotevents:DescribeInput,
iotevents:ListTagsForResource

Read

iotevents:DescribeInput,
iotevents:ListTagsForResource

Update

iotevents:UpdateInput,
iotevents:DescribeInput,
iotevents:ListTagsForResource,
iotevents:UntagResource,
iotevents:TagResource

Delete

iotevents:DeleteInput,
iotevents:DescribeInput

List

iotevents:ListInputs