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 ITE. This is done by sending messages as *inputs* to ITE. For more information, see [How to Use](https://docs.aws.amazon.com/iotevents/latest/developerguide/how-to-use-iotevents.html) in the *Developer Guide*.
Idawscc.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.<br />For more information, see &#91;Tag&#93;(https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html).
regionstringAWS region.

For more information, see AWS::IoTEvents::Input.

Methods

NameResourceAccessible byRequired Params
create_resourceinputsINSERTInputDefinition, region
delete_resourceinputsDELETEIdentifier, region
update_resourceinputsUPDATEIdentifier, PatchDocument, region
list_resourcesinputs_list_onlySELECTregion
get_resourceinputsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual input.

SELECT
region,
input_definition,
input_description,
input_name,
tags
FROM awscc.iotevents.inputs
WHERE
region = 'us-east-1' AND
Identifier = '{{ input_name }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.iotevents.inputs
SET PatchDocument = string('{{ {
"InputDefinition": input_definition,
"InputDescription": input_description,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ input_name }}';

DELETE example

/*+ delete */
DELETE FROM awscc.iotevents.inputs
WHERE
Identifier = '{{ input_name }}' AND
region = 'us-east-1';

Permissions

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

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