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 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.
tagsarray
An array of key-value pairs to apply to this resource.For more information, see Tag.
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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.iotevents.inputs
WHERE
Identifier = '{{ input_name }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

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