@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.025Z") @Stability(value=Stable) public class CfnInput extends CfnResource implements IInspectable
The AWS::IoTEvents::Input resource creates an input. To monitor your devices and processes, they must have a way to get telemetry data into AWS IoT Events . This is done by sending messages as inputs to AWS IoT Events . For more information, see How to Use AWS IoT Events in the AWS IoT Events Developer Guide .
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.*;
CfnInput cfnInput = CfnInput.Builder.create(this, "MyCfnInput")
.inputDefinition(InputDefinitionProperty.builder()
.attributes(List.of(AttributeProperty.builder()
.jsonPath("jsonPath")
.build()))
.build())
// the properties below are optional
.inputDescription("inputDescription")
.inputName("inputName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnInput.AttributeProperty
The attributes from the JSON payload that are made available by the input.
|
static class |
CfnInput.Builder
A fluent builder for
CfnInput. |
static interface |
CfnInput.InputDefinitionProperty
The definition of the input.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnInput(software.constructs.Construct scope,
String id,
CfnInputProps props)
Create a new `AWS::IoTEvents::Input`.
|
protected |
CfnInput(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnInput(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
Object |
getInputDefinition()
The definition of the input.
|
String |
getInputDescription()
A brief description of the input.
|
String |
getInputName()
The name of the input.
|
TagManager |
getTags()
An array of key-value pairs to apply to this resource.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setInputDefinition(CfnInput.InputDefinitionProperty value)
The definition of the input.
|
void |
setInputDefinition(IResolvable value)
The definition of the input.
|
void |
setInputDescription(String value)
A brief description of the input.
|
void |
setInputName(String value)
The name of the input.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnInput(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnInput(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnInput(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnInputProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
For more information, see Tag .
@Stability(value=Stable) @NotNull public Object getInputDefinition()
@Stability(value=Stable)
public void setInputDefinition(@NotNull
CfnInput.InputDefinitionProperty value)
@Stability(value=Stable)
public void setInputDefinition(@NotNull
IResolvable value)
@Stability(value=Stable) @Nullable public String getInputDescription()
@Stability(value=Stable)
public void setInputDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getInputName()
@Stability(value=Stable)
public void setInputName(@Nullable
String value)
Copyright © 2022. All rights reserved.