Class Input
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.118.0 (build 02eec31)",
date="2025-11-10T13:40:18.233Z")
@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();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.iotevents.alpha.IInput
IInput.Jsii$Default, IInput.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInput(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedInput(software.amazon.jsii.JsiiObjectRef objRef) Input(software.constructs.Construct scope, String id, InputProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IInputfromInputName(software.constructs.Construct scope, String id, String inputName) (experimental) Import an existing input.(experimental) The ARN of the input.(experimental) The name of the input.grant(IGrantable grantee, String... actions) (experimental) Grant the indicated permissions on this input to the given IAM principal (Role/Group/User).grantWrite(IGrantable grantee) (experimental) Grant write permissions on this input and its contents to an IAM principal (Role/Group/User).Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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) Grant the indicated permissions on this input to the given IAM principal (Role/Group/User). -
grantWrite
(experimental) Grant write permissions on this input and its contents to an IAM principal (Role/Group/User).- Specified by:
grantWritein interfaceIInput- Parameters:
grantee- This parameter is required.
-
getInputArn
(experimental) The ARN of the input.- Specified by:
getInputArnin interfaceIInput
-
getInputName
(experimental) The name of the input.- Specified by:
getInputNamein interfaceIInput
-