Interface CfnInput.AttributeProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnInput.AttributeProperty.Jsii$Proxy
Enclosing class:
CfnInput

@Stability(Stable) public static interface CfnInput.AttributeProperty extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.iotevents.*;
 AttributeProperty attributeProperty = AttributeProperty.builder()
         .jsonPath("jsonPath")
         .build();
 
  • Method Details

    • getJsonPath

      @Stability(Stable) @NotNull String getJsonPath()
      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>...

    • builder

      @Stability(Stable) static CfnInput.AttributeProperty.Builder builder()
      Returns:
      a CfnInput.AttributeProperty.Builder of CfnInput.AttributeProperty