aws-cdk-lib.aws_iotevents.CfnInput.AttributeProperty

interface AttributeProperty

LanguageType name
.NETAmazon.CDK.AWS.IoTEvents.CfnInput.AttributeProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsiotevents#CfnInput_AttributeProperty
Javasoftware.amazon.awscdk.services.iotevents.CfnInput.AttributeProperty
Pythonaws_cdk.aws_iotevents.CfnInput.AttributeProperty
TypeScript aws-cdk-lib » aws_iotevents » CfnInput » AttributeProperty

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.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotevents as iotevents } from 'aws-cdk-lib';
const attributeProperty: iotevents.CfnInput.AttributeProperty = {
  jsonPath: 'jsonPath',
};

Properties

NameTypeDescription
jsonPathstringAn expression that specifies an attribute-value pair in a JSON structure.

jsonPath

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 the condition expressions used by detectors.

Syntax: <field-name>.<field-name>...