java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.iotevents.alpha.Input
All Implemented Interfaces:
IEnvironmentAware, IResource, IInput, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.126.0 (build 206d44b)", date="2026-02-09T14:39:22.994Z") @Stability(Experimental) public class Input extends Resource implements IInput
(experimental) Defines an AWS IoT Events input in this stack.

Example:

 import software.amazon.awscdk.services.iotevents.alpha.*;
 import software.amazon.awscdk.services.iam.*;
 IRole role;
 Input input = Input.Builder.create(this, "MyInput")
         .attributeJsonPaths(List.of("payload.temperature", "payload.transactionId"))
         .build();
 TopicRule topicRule = TopicRule.Builder.create(this, "TopicRule")
         .sql(IotSql.fromStringAsVer20160323("SELECT * FROM 'device/+/data'"))
         .actions(List.of(
             IotEventsPutMessageAction.Builder.create(input)
                     .batchMode(true) // optional property, default is 'false'
                     .messageId("${payload.transactionId}") // optional property, default is a new UUID
                     .role(role)
                     .build()))
         .build();
 
  • Field Details

    • PROPERTY_INJECTION_ID

      @Stability(Experimental) public static final String PROPERTY_INJECTION_ID
      (experimental) Uniquely identifies this class.
  • Constructor Details

    • Input

      protected Input(software.amazon.jsii.JsiiObjectRef objRef)
    • Input

      protected Input(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • Input

      @Stability(Experimental) public Input(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull InputProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • fromInputName

      @Stability(Experimental) @NotNull public static IInput fromInputName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String inputName)
      (experimental) Import an existing input.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      inputName - This parameter is required.
    • grant

      @Stability(Experimental) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull String... actions)
      (experimental) [disable-awslint:no-grants].

      Specified by:
      grant in interface IInput
      Parameters:
      grantee - This parameter is required.
      actions - This parameter is required.
    • grantWrite

      @Stability(Experimental) @NotNull public Grant grantWrite(@NotNull IGrantable grantee)
      (experimental) [disable-awslint:no-grants].

      Specified by:
      grantWrite in interface IInput
      Parameters:
      grantee - This parameter is required.
    • getInputArn

      @Stability(Experimental) @NotNull public String getInputArn()
      (experimental) The ARN of the input.
      Specified by:
      getInputArn in interface IInput
    • getInputName

      @Stability(Experimental) @NotNull public String getInputName()
      (experimental) The name of the input.
      Specified by:
      getInputName in interface IInput