awsiotevents

package
v1.168.0-devpreview Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

README

AWS::IoTEvents Construct Library

AWS IoT Events enables you to monitor your equipment or device fleets for failures or changes in operation, and to trigger actions when such events occur.

Installation

Install the module:

$ npm i @aws-cdk/aws-iotevents

Import it into your code:

import iotevents "github.com/aws/aws-cdk-go/awscdk"

DetectorModel

The following example creates an AWS IoT Events detector model to your stack. The detector model need a reference to at least one AWS IoT Events input. AWS IoT Events inputs enable the detector to get MQTT payload values from IoT Core rules.

You can define built-in actions to use a timer or set a variable, or send data to other AWS resources. See also @aws-cdk/aws-iotevents-actions for other actions.

import iotevents "github.com/aws/aws-cdk-go/awscdk"
import actions "github.com/aws/aws-cdk-go/awscdk"
import lambda "github.com/aws/aws-cdk-go/awscdk"

var func iFunction


input := iotevents.NewInput(this, jsii.String("MyInput"), &inputProps{
	inputName: jsii.String("my_input"),
	 // optional
	attributeJsonPaths: []*string{
		jsii.String("payload.deviceId"),
		jsii.String("payload.temperature"),
	},
})

warmState := iotevents.NewState(&stateProps{
	stateName: jsii.String("warm"),
	onEnter: []event{
		&event{
			eventName: jsii.String("test-enter-event"),
			condition: iotevents.expression.currentInput(input),
			actions: []iAction{
				actions.NewLambdaInvokeAction(func),
			},
		},
	},
	onInput: []*event{
		&event{
			 // optional
			eventName: jsii.String("test-input-event"),
			actions: []*iAction{
				actions.NewLambdaInvokeAction(func),
			},
		},
	},
	onExit: []*event{
		&event{
			 // optional
			eventName: jsii.String("test-exit-event"),
			actions: []*iAction{
				actions.NewLambdaInvokeAction(func),
			},
		},
	},
})
coldState := iotevents.NewState(&stateProps{
	stateName: jsii.String("cold"),
})

// transit to coldState when temperature is less than 15
warmState.transitionTo(coldState, &transitionOptions{
	eventName: jsii.String("to_coldState"),
	 // optional property, default by combining the names of the States
	when: iotevents.*expression.lt(iotevents.*expression.inputAttribute(input, jsii.String("payload.temperature")), iotevents.*expression.fromString(jsii.String("15"))),
	executing: []*iAction{
		actions.NewLambdaInvokeAction(func),
	},
})
// transit to warmState when temperature is greater than or equal to 15
coldState.transitionTo(warmState, &transitionOptions{
	when: iotevents.*expression.gte(iotevents.*expression.inputAttribute(input, jsii.String("payload.temperature")), iotevents.*expression.fromString(jsii.String("15"))),
})

iotevents.NewDetectorModel(this, jsii.String("MyDetectorModel"), &detectorModelProps{
	detectorModelName: jsii.String("test-detector-model"),
	 // optional
	description: jsii.String("test-detector-model-description"),
	 // optional property, default is none
	evaluationMethod: iotevents.eventEvaluation_SERIAL,
	 // optional property, default is iotevents.EventEvaluation.BATCH
	detectorKey: jsii.String("payload.deviceId"),
	 // optional property, default is none and single detector instance will be created and all inputs will be routed to it
	initialState: warmState,
})

To grant permissions to put messages in the input, you can use the grantWrite() method:

import iam "github.com/aws/aws-cdk-go/awscdk"
import iotevents "github.com/aws/aws-cdk-go/awscdk"

var grantable iGrantable

input := iotevents.input.fromInputName(this, jsii.String("MyInput"), jsii.String("my_input"))

input.grantWrite(grantable)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CfnAlarmModel_CFN_RESOURCE_TYPE_NAME

func CfnAlarmModel_CFN_RESOURCE_TYPE_NAME() *string

func CfnAlarmModel_IsCfnElement

func CfnAlarmModel_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnAlarmModel_IsCfnResource

func CfnAlarmModel_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnAlarmModel_IsConstruct

func CfnAlarmModel_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func CfnDetectorModel_CFN_RESOURCE_TYPE_NAME

func CfnDetectorModel_CFN_RESOURCE_TYPE_NAME() *string

func CfnDetectorModel_IsCfnElement

func CfnDetectorModel_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnDetectorModel_IsCfnResource

func CfnDetectorModel_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnDetectorModel_IsConstruct

func CfnDetectorModel_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func CfnInput_CFN_RESOURCE_TYPE_NAME

func CfnInput_CFN_RESOURCE_TYPE_NAME() *string

func CfnInput_IsCfnElement

func CfnInput_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnInput_IsCfnResource

func CfnInput_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnInput_IsConstruct

func CfnInput_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func DetectorModel_IsConstruct

func DetectorModel_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func DetectorModel_IsResource

func DetectorModel_IsResource(construct awscdk.IConstruct) *bool

Check whether the given construct is a Resource. Experimental.

func Input_IsConstruct

func Input_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func Input_IsResource

func Input_IsResource(construct awscdk.IConstruct) *bool

Check whether the given construct is a Resource. Experimental.

func NewCfnAlarmModel_Override

func NewCfnAlarmModel_Override(c CfnAlarmModel, scope awscdk.Construct, id *string, props *CfnAlarmModelProps)

Create a new `AWS::IoTEvents::AlarmModel`.

func NewCfnDetectorModel_Override

func NewCfnDetectorModel_Override(c CfnDetectorModel, scope awscdk.Construct, id *string, props *CfnDetectorModelProps)

Create a new `AWS::IoTEvents::DetectorModel`.

func NewCfnInput_Override

func NewCfnInput_Override(c CfnInput, scope awscdk.Construct, id *string, props *CfnInputProps)

Create a new `AWS::IoTEvents::Input`.

func NewDetectorModel_Override

func NewDetectorModel_Override(d DetectorModel, scope constructs.Construct, id *string, props *DetectorModelProps)

Experimental.

func NewExpression_Override

func NewExpression_Override(e Expression)

Experimental.

func NewInput_Override

func NewInput_Override(i Input, scope constructs.Construct, id *string, props *InputProps)

Experimental.

func NewState_Override

func NewState_Override(s State, props *StateProps)

Experimental.

Types

type ActionBindOptions

type ActionBindOptions struct {
	// The IAM role assumed by IoT Events to perform the action.
	// Experimental.
	Role awsiam.IRole `field:"required" json:"role" yaml:"role"`
}

Options when binding a Action to a detector model.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var role role

actionBindOptions := &actionBindOptions{
	role: role,
}

Experimental.

type ActionConfig

type ActionConfig struct {
	// The configuration for this action.
	// Experimental.
	Configuration *CfnDetectorModel_ActionProperty `field:"required" json:"configuration" yaml:"configuration"`
}

Properties for a AWS IoT Events action.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

actionConfig := &actionConfig{
	configuration: &actionProperty{
		clearTimer: &clearTimerProperty{
			timerName: jsii.String("timerName"),
		},
		dynamoDb: &dynamoDBProperty{
			hashKeyField: jsii.String("hashKeyField"),
			hashKeyValue: jsii.String("hashKeyValue"),
			tableName: jsii.String("tableName"),

			// the properties below are optional
			hashKeyType: jsii.String("hashKeyType"),
			operation: jsii.String("operation"),
			payload: &payloadProperty{
				contentExpression: jsii.String("contentExpression"),
				type: jsii.String("type"),
			},
			payloadField: jsii.String("payloadField"),
			rangeKeyField: jsii.String("rangeKeyField"),
			rangeKeyType: jsii.String("rangeKeyType"),
			rangeKeyValue: jsii.String("rangeKeyValue"),
		},
		dynamoDBv2: &dynamoDBv2Property{
			tableName: jsii.String("tableName"),

			// the properties below are optional
			payload: &payloadProperty{
				contentExpression: jsii.String("contentExpression"),
				type: jsii.String("type"),
			},
		},
		firehose: &firehoseProperty{
			deliveryStreamName: jsii.String("deliveryStreamName"),

			// the properties below are optional
			payload: &payloadProperty{
				contentExpression: jsii.String("contentExpression"),
				type: jsii.String("type"),
			},
			separator: jsii.String("separator"),
		},
		iotEvents: &iotEventsProperty{
			inputName: jsii.String("inputName"),

			// the properties below are optional
			payload: &payloadProperty{
				contentExpression: jsii.String("contentExpression"),
				type: jsii.String("type"),
			},
		},
		iotSiteWise: &iotSiteWiseProperty{
			propertyValue: &assetPropertyValueProperty{
				value: &assetPropertyVariantProperty{
					booleanValue: jsii.String("booleanValue"),
					doubleValue: jsii.String("doubleValue"),
					integerValue: jsii.String("integerValue"),
					stringValue: jsii.String("stringValue"),
				},

				// the properties below are optional
				quality: jsii.String("quality"),
				timestamp: &assetPropertyTimestampProperty{
					timeInSeconds: jsii.String("timeInSeconds"),

					// the properties below are optional
					offsetInNanos: jsii.String("offsetInNanos"),
				},
			},

			// the properties below are optional
			assetId: jsii.String("assetId"),
			entryId: jsii.String("entryId"),
			propertyAlias: jsii.String("propertyAlias"),
			propertyId: jsii.String("propertyId"),
		},
		iotTopicPublish: &iotTopicPublishProperty{
			mqttTopic: jsii.String("mqttTopic"),

			// the properties below are optional
			payload: &payloadProperty{
				contentExpression: jsii.String("contentExpression"),
				type: jsii.String("type"),
			},
		},
		lambda: &lambdaProperty{
			functionArn: jsii.String("functionArn"),

			// the properties below are optional
			payload: &payloadProperty{
				contentExpression: jsii.String("contentExpression"),
				type: jsii.String("type"),
			},
		},
		resetTimer: &resetTimerProperty{
			timerName: jsii.String("timerName"),
		},
		setTimer: &setTimerProperty{
			timerName: jsii.String("timerName"),

			// the properties below are optional
			durationExpression: jsii.String("durationExpression"),
			seconds: jsii.Number(123),
		},
		setVariable: &setVariableProperty{
			value: jsii.String("value"),
			variableName: jsii.String("variableName"),
		},
		sns: &snsProperty{
			targetArn: jsii.String("targetArn"),

			// the properties below are optional
			payload: &payloadProperty{
				contentExpression: jsii.String("contentExpression"),
				type: jsii.String("type"),
			},
		},
		sqs: &sqsProperty{
			queueUrl: jsii.String("queueUrl"),

			// the properties below are optional
			payload: &payloadProperty{
				contentExpression: jsii.String("contentExpression"),
				type: jsii.String("type"),
			},
			useBase64: jsii.Boolean(false),
		},
	},
}

Experimental.

type CfnAlarmModel

type CfnAlarmModel interface {
	awscdk.CfnResource
	awscdk.IInspectable
	// Contains the configuration information of alarm state changes.
	AlarmCapabilities() interface{}
	SetAlarmCapabilities(val interface{})
	// Contains information about one or more alarm actions.
	AlarmEventActions() interface{}
	SetAlarmEventActions(val interface{})
	// The description of the alarm model.
	AlarmModelDescription() *string
	SetAlarmModelDescription(val *string)
	// The name of the alarm model.
	AlarmModelName() *string
	SetAlarmModelName(val *string)
	// Defines when your alarm is invoked.
	AlarmRule() interface{}
	SetAlarmRule(val interface{})
	// Options for this resource, such as condition, update policy etc.
	// Experimental.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	// Experimental.
	CfnResourceType() *string
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	// Experimental.
	CreationStack() *[]*string
	// An input attribute used as a key to create an alarm.
	//
	// AWS IoT Events routes [inputs](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Input.html) associated with this key to the alarm.
	Key() *string
	SetKey(val *string)
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	// Experimental.
	LogicalId() *string
	// The construct tree node associated with this construct.
	// Experimental.
	Node() awscdk.ConstructNode
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	// Experimental.
	Ref() *string
	// The ARN of the IAM role that allows the alarm to perform actions and access AWS resources.
	//
	// For more information, see [Amazon Resource Names (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in the *AWS General Reference* .
	RoleArn() *string
	SetRoleArn(val *string)
	// A non-negative integer that reflects the severity level of the alarm.
	Severity() *float64
	SetSeverity(val *float64)
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	// Experimental.
	Stack() awscdk.Stack
	// A list of key-value pairs that contain metadata for the alarm model.
	//
	// The tags help you manage the alarm model. For more information, see [Tagging your AWS IoT Events resources](https://docs.aws.amazon.com/iotevents/latest/developerguide/tagging-iotevents.html) in the *AWS IoT Events Developer Guide* .
	//
	// You can create up to 50 tags for one alarm model.
	Tags() awscdk.TagManager
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	// Experimental.
	UpdatedProperites() *map[string]interface{}
	// Syntactic sugar for `addOverride(path, undefined)`.
	// Experimental.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	// Experimental.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//    "GlobalSecondaryIndexes": [
	//      {
	//        "Projection": {
	//          "NonKeyAttributes": [ "myattribute" ]
	//          ...
	//        }
	//        ...
	//      },
	//      {
	//        "ProjectionType": "INCLUDE"
	//        ...
	//      },
	//    ]
	//    ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	// Experimental.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	// Experimental.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	// Experimental.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).
	// Experimental.
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	// Experimental.
	GetAtt(attributeName *string) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	OnPrepare()
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	OnSynthesize(session constructs.ISynthesisSession)
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	OnValidate() *[]*string
	// Overrides the auto-generated logical ID with a specific ID.
	// Experimental.
	OverrideLogicalId(newLogicalId *string)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	// Experimental.
	ShouldSynthesize() *bool
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	Synthesize(session awscdk.ISynthesisSession)
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	// Experimental.
	ToString() *string
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	Validate() *[]*string
	// Experimental.
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::IoTEvents::AlarmModel`.

Represents an alarm model to monitor an AWS IoT Events input attribute. You can use the alarm to get notified when the value is outside a specified range. For more information, see [Create an alarm model](https://docs.aws.amazon.com/iotevents/latest/developerguide/create-alarms.html) 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 "github.com/aws/aws-cdk-go/awscdk"

cfnAlarmModel := awscdk.Aws_iotevents.NewCfnAlarmModel(this, jsii.String("MyCfnAlarmModel"), &cfnAlarmModelProps{
	alarmRule: &alarmRuleProperty{
		simpleRule: &simpleRuleProperty{
			comparisonOperator: jsii.String("comparisonOperator"),
			inputProperty: jsii.String("inputProperty"),
			threshold: jsii.String("threshold"),
		},
	},
	roleArn: jsii.String("roleArn"),

	// the properties below are optional
	alarmCapabilities: &alarmCapabilitiesProperty{
		acknowledgeFlow: &acknowledgeFlowProperty{
			enabled: jsii.Boolean(false),
		},
		initializationConfiguration: &initializationConfigurationProperty{
			disabledOnInitialization: jsii.Boolean(false),
		},
	},
	alarmEventActions: &alarmEventActionsProperty{
		alarmActions: []interface{}{
			&alarmActionProperty{
				dynamoDb: &dynamoDBProperty{
					hashKeyField: jsii.String("hashKeyField"),
					hashKeyValue: jsii.String("hashKeyValue"),
					tableName: jsii.String("tableName"),

					// the properties below are optional
					hashKeyType: jsii.String("hashKeyType"),
					operation: jsii.String("operation"),
					payload: &payloadProperty{
						contentExpression: jsii.String("contentExpression"),
						type: jsii.String("type"),
					},
					payloadField: jsii.String("payloadField"),
					rangeKeyField: jsii.String("rangeKeyField"),
					rangeKeyType: jsii.String("rangeKeyType"),
					rangeKeyValue: jsii.String("rangeKeyValue"),
				},
				dynamoDBv2: &dynamoDBv2Property{
					tableName: jsii.String("tableName"),

					// the properties below are optional
					payload: &payloadProperty{
						contentExpression: jsii.String("contentExpression"),
						type: jsii.String("type"),
					},
				},
				firehose: &firehoseProperty{
					deliveryStreamName: jsii.String("deliveryStreamName"),

					// the properties below are optional
					payload: &payloadProperty{
						contentExpression: jsii.String("contentExpression"),
						type: jsii.String("type"),
					},
					separator: jsii.String("separator"),
				},
				iotEvents: &iotEventsProperty{
					inputName: jsii.String("inputName"),

					// the properties below are optional
					payload: &payloadProperty{
						contentExpression: jsii.String("contentExpression"),
						type: jsii.String("type"),
					},
				},
				iotSiteWise: &iotSiteWiseProperty{
					assetId: jsii.String("assetId"),
					entryId: jsii.String("entryId"),
					propertyAlias: jsii.String("propertyAlias"),
					propertyId: jsii.String("propertyId"),
					propertyValue: &assetPropertyValueProperty{
						value: &assetPropertyVariantProperty{
							booleanValue: jsii.String("booleanValue"),
							doubleValue: jsii.String("doubleValue"),
							integerValue: jsii.String("integerValue"),
							stringValue: jsii.String("stringValue"),
						},

						// the properties below are optional
						quality: jsii.String("quality"),
						timestamp: &assetPropertyTimestampProperty{
							timeInSeconds: jsii.String("timeInSeconds"),

							// the properties below are optional
							offsetInNanos: jsii.String("offsetInNanos"),
						},
					},
				},
				iotTopicPublish: &iotTopicPublishProperty{
					mqttTopic: jsii.String("mqttTopic"),

					// the properties below are optional
					payload: &payloadProperty{
						contentExpression: jsii.String("contentExpression"),
						type: jsii.String("type"),
					},
				},
				lambda: &lambdaProperty{
					functionArn: jsii.String("functionArn"),

					// the properties below are optional
					payload: &payloadProperty{
						contentExpression: jsii.String("contentExpression"),
						type: jsii.String("type"),
					},
				},
				sns: &snsProperty{
					targetArn: jsii.String("targetArn"),

					// the properties below are optional
					payload: &payloadProperty{
						contentExpression: jsii.String("contentExpression"),
						type: jsii.String("type"),
					},
				},
				sqs: &sqsProperty{
					queueUrl: jsii.String("queueUrl"),

					// the properties below are optional
					payload: &payloadProperty{
						contentExpression: jsii.String("contentExpression"),
						type: jsii.String("type"),
					},
					useBase64: jsii.Boolean(false),
				},
			},
		},
	},
	alarmModelDescription: jsii.String("alarmModelDescription"),
	alarmModelName: jsii.String("alarmModelName"),
	key: jsii.String("key"),
	severity: jsii.Number(123),
	tags: []cfnTag{
		&cfnTag{
			key: jsii.String("key"),
			value: jsii.String("value"),
		},
	},
})

func NewCfnAlarmModel

func NewCfnAlarmModel(scope awscdk.Construct, id *string, props *CfnAlarmModelProps) CfnAlarmModel

Create a new `AWS::IoTEvents::AlarmModel`.

type CfnAlarmModelProps

type CfnAlarmModelProps struct {
	// Defines when your alarm is invoked.
	AlarmRule interface{} `field:"required" json:"alarmRule" yaml:"alarmRule"`
	// The ARN of the IAM role that allows the alarm to perform actions and access AWS resources.
	//
	// For more information, see [Amazon Resource Names (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in the *AWS General Reference* .
	RoleArn *string `field:"required" json:"roleArn" yaml:"roleArn"`
	// Contains the configuration information of alarm state changes.
	AlarmCapabilities interface{} `field:"optional" json:"alarmCapabilities" yaml:"alarmCapabilities"`
	// Contains information about one or more alarm actions.
	AlarmEventActions interface{} `field:"optional" json:"alarmEventActions" yaml:"alarmEventActions"`
	// The description of the alarm model.
	AlarmModelDescription *string `field:"optional" json:"alarmModelDescription" yaml:"alarmModelDescription"`
	// The name of the alarm model.
	AlarmModelName *string `field:"optional" json:"alarmModelName" yaml:"alarmModelName"`
	// An input attribute used as a key to create an alarm.
	//
	// AWS IoT Events routes [inputs](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Input.html) associated with this key to the alarm.
	Key *string `field:"optional" json:"key" yaml:"key"`
	// A non-negative integer that reflects the severity level of the alarm.
	Severity *float64 `field:"optional" json:"severity" yaml:"severity"`
	// A list of key-value pairs that contain metadata for the alarm model.
	//
	// The tags help you manage the alarm model. For more information, see [Tagging your AWS IoT Events resources](https://docs.aws.amazon.com/iotevents/latest/developerguide/tagging-iotevents.html) in the *AWS IoT Events Developer Guide* .
	//
	// You can create up to 50 tags for one alarm model.
	Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
}

Properties for defining a `CfnAlarmModel`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnAlarmModelProps := &cfnAlarmModelProps{
	alarmRule: &alarmRuleProperty{
		simpleRule: &simpleRuleProperty{
			comparisonOperator: jsii.String("comparisonOperator"),
			inputProperty: jsii.String("inputProperty"),
			threshold: jsii.String("threshold"),
		},
	},
	roleArn: jsii.String("roleArn"),

	// the properties below are optional
	alarmCapabilities: &alarmCapabilitiesProperty{
		acknowledgeFlow: &acknowledgeFlowProperty{
			enabled: jsii.Boolean(false),
		},
		initializationConfiguration: &initializationConfigurationProperty{
			disabledOnInitialization: jsii.Boolean(false),
		},
	},
	alarmEventActions: &alarmEventActionsProperty{
		alarmActions: []interface{}{
			&alarmActionProperty{
				dynamoDb: &dynamoDBProperty{
					hashKeyField: jsii.String("hashKeyField"),
					hashKeyValue: jsii.String("hashKeyValue"),
					tableName: jsii.String("tableName"),

					// the properties below are optional
					hashKeyType: jsii.String("hashKeyType"),
					operation: jsii.String("operation"),
					payload: &payloadProperty{
						contentExpression: jsii.String("contentExpression"),
						type: jsii.String("type"),
					},
					payloadField: jsii.String("payloadField"),
					rangeKeyField: jsii.String("rangeKeyField"),
					rangeKeyType: jsii.String("rangeKeyType"),
					rangeKeyValue: jsii.String("rangeKeyValue"),
				},
				dynamoDBv2: &dynamoDBv2Property{
					tableName: jsii.String("tableName"),

					// the properties below are optional
					payload: &payloadProperty{
						contentExpression: jsii.String("contentExpression"),
						type: jsii.String("type"),
					},
				},
				firehose: &firehoseProperty{
					deliveryStreamName: jsii.String("deliveryStreamName"),

					// the properties below are optional
					payload: &payloadProperty{
						contentExpression: jsii.String("contentExpression"),
						type: jsii.String("type"),
					},
					separator: jsii.String("separator"),
				},
				iotEvents: &iotEventsProperty{
					inputName: jsii.String("inputName"),

					// the properties below are optional
					payload: &payloadProperty{
						contentExpression: jsii.String("contentExpression"),
						type: jsii.String("type"),
					},
				},
				iotSiteWise: &iotSiteWiseProperty{
					assetId: jsii.String("assetId"),
					entryId: jsii.String("entryId"),
					propertyAlias: jsii.String("propertyAlias"),
					propertyId: jsii.String("propertyId"),
					propertyValue: &assetPropertyValueProperty{
						value: &assetPropertyVariantProperty{
							booleanValue: jsii.String("booleanValue"),
							doubleValue: jsii.String("doubleValue"),
							integerValue: jsii.String("integerValue"),
							stringValue: jsii.String("stringValue"),
						},

						// the properties below are optional
						quality: jsii.String("quality"),
						timestamp: &assetPropertyTimestampProperty{
							timeInSeconds: jsii.String("timeInSeconds"),

							// the properties below are optional
							offsetInNanos: jsii.String("offsetInNanos"),
						},
					},
				},
				iotTopicPublish: &iotTopicPublishProperty{
					mqttTopic: jsii.String("mqttTopic"),

					// the properties below are optional
					payload: &payloadProperty{
						contentExpression: jsii.String("contentExpression"),
						type: jsii.String("type"),
					},
				},
				lambda: &lambdaProperty{
					functionArn: jsii.String("functionArn"),

					// the properties below are optional
					payload: &payloadProperty{
						contentExpression: jsii.String("contentExpression"),
						type: jsii.String("type"),
					},
				},
				sns: &snsProperty{
					targetArn: jsii.String("targetArn"),

					// the properties below are optional
					payload: &payloadProperty{
						contentExpression: jsii.String("contentExpression"),
						type: jsii.String("type"),
					},
				},
				sqs: &sqsProperty{
					queueUrl: jsii.String("queueUrl"),

					// the properties below are optional
					payload: &payloadProperty{
						contentExpression: jsii.String("contentExpression"),
						type: jsii.String("type"),
					},
					useBase64: jsii.Boolean(false),
				},
			},
		},
	},
	alarmModelDescription: jsii.String("alarmModelDescription"),
	alarmModelName: jsii.String("alarmModelName"),
	key: jsii.String("key"),
	severity: jsii.Number(123),
	tags: []cfnTag{
		&cfnTag{
			key: jsii.String("key"),
			value: jsii.String("value"),
		},
	},
}

type CfnAlarmModel_AcknowledgeFlowProperty

type CfnAlarmModel_AcknowledgeFlowProperty struct {
	// The value must be `TRUE` or `FALSE` .
	//
	// If `TRUE` , you receive a notification when the alarm state changes. You must choose to acknowledge the notification before the alarm state can return to `NORMAL` . If `FALSE` , you won't receive notifications. The alarm automatically changes to the `NORMAL` state when the input property value returns to the specified range.
	Enabled interface{} `field:"optional" json:"enabled" yaml:"enabled"`
}

Specifies whether to get notified for alarm state changes.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

acknowledgeFlowProperty := &acknowledgeFlowProperty{
	enabled: jsii.Boolean(false),
}

type CfnAlarmModel_AlarmActionProperty

type CfnAlarmModel_AlarmActionProperty struct {
	// Defines an action to write to the Amazon DynamoDB table that you created.
	//
	// The standard action payload contains all the information about the detector model instance and the event that triggered the action. You can customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html) . One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify.
	//
	// You must use expressions for all parameters in `DynamoDBAction` . The expressions accept literals, operators, functions, references, and substitution templates.
	//
	// **Examples** - For literal values, the expressions must contain single quotes. For example, the value for the `hashKeyType` parameter can be `'STRING'` .
	// - For references, you must specify either variables or input values. For example, the value for the `hashKeyField` parameter can be `$input.GreenhouseInput.name` .
	// - For a substitution template, you must use `${}` , and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.
	//
	// In the following example, the value for the `hashKeyValue` parameter uses a substitution template.
	//
	// `'${$input.GreenhouseInput.temperature * 6 / 5 + 32} in Fahrenheit'`
	// - For a string concatenation, you must use `+` . A string concatenation can also contain a combination of literals, operators, functions, references, and substitution templates.
	//
	// In the following example, the value for the `tableName` parameter uses a string concatenation.
	//
	// `'GreenhouseTemperatureTable ' + $input.GreenhouseInput.date`
	//
	// For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *AWS IoT Events Developer Guide* .
	//
	// If the defined payload type is a string, `DynamoDBAction` writes non-JSON data to the DynamoDB table as binary data. The DynamoDB console displays the data as Base64-encoded text. The value for the `payloadField` parameter is `<payload-field>_raw` .
	DynamoDb interface{} `field:"optional" json:"dynamoDb" yaml:"dynamoDb"`
	// Defines an action to write to the Amazon DynamoDB table that you created.
	//
	// The default action payload contains all the information about the detector model instance and the event that triggered the action. You can customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html) . A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify.
	//
	// You must use expressions for all parameters in `DynamoDBv2Action` . The expressions accept literals, operators, functions, references, and substitution templates.
	//
	// **Examples** - For literal values, the expressions must contain single quotes. For example, the value for the `tableName` parameter can be `'GreenhouseTemperatureTable'` .
	// - For references, you must specify either variables or input values. For example, the value for the `tableName` parameter can be `$variable.ddbtableName` .
	// - For a substitution template, you must use `${}` , and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.
	//
	// In the following example, the value for the `contentExpression` parameter in `Payload` uses a substitution template.
	//
	// `'{\"sensorID\": \"${$input.GreenhouseInput.sensor_id}\", \"temperature\": \"${$input.GreenhouseInput.temperature * 9 / 5 + 32}\"}'`
	// - For a string concatenation, you must use `+` . A string concatenation can also contain a combination of literals, operators, functions, references, and substitution templates.
	//
	// In the following example, the value for the `tableName` parameter uses a string concatenation.
	//
	// `'GreenhouseTemperatureTable ' + $input.GreenhouseInput.date`
	//
	// For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *AWS IoT Events Developer Guide* .
	//
	// The value for the `type` parameter in `Payload` must be `JSON` .
	DynamoDBv2 interface{} `field:"optional" json:"dynamoDBv2" yaml:"dynamoDBv2"`
	// Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.
	Firehose interface{} `field:"optional" json:"firehose" yaml:"firehose"`
	// Sends an AWS IoT Events input, passing in information about the detector model instance and the event that triggered the action.
	IotEvents interface{} `field:"optional" json:"iotEvents" yaml:"iotEvents"`
	// Sends information about the detector model instance and the event that triggered the action to a specified asset property in AWS IoT SiteWise .
	//
	// You must use expressions for all parameters in `IotSiteWiseAction` . The expressions accept literals, operators, functions, references, and substitutions templates.
	//
	// **Examples** - For literal values, the expressions must contain single quotes. For example, the value for the `propertyAlias` parameter can be `'/company/windfarm/3/turbine/7/temperature'` .
	// - For references, you must specify either variables or input values. For example, the value for the `assetId` parameter can be `$input.TurbineInput.assetId1` .
	// - For a substitution template, you must use `${}` , and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.
	//
	// In the following example, the value for the `propertyAlias` parameter uses a substitution template.
	//
	// `'company/windfarm/${$input.TemperatureInput.sensorData.windfarmID}/turbine/ ${$input.TemperatureInput.sensorData.turbineID}/temperature'`
	//
	// You must specify either `propertyAlias` or both `assetId` and `propertyId` to identify the target asset property in AWS IoT SiteWise .
	//
	// For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *AWS IoT Events Developer Guide* .
	IotSiteWise interface{} `field:"optional" json:"iotSiteWise" yaml:"iotSiteWise"`
	// Information required to publish the MQTT message through the AWS IoT message broker.
	IotTopicPublish interface{} `field:"optional" json:"iotTopicPublish" yaml:"iotTopicPublish"`
	// Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.
	Lambda interface{} `field:"optional" json:"lambda" yaml:"lambda"`
	// `CfnAlarmModel.AlarmActionProperty.Sns`.
	Sns interface{} `field:"optional" json:"sns" yaml:"sns"`
	// Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.
	Sqs interface{} `field:"optional" json:"sqs" yaml:"sqs"`
}

Specifies one of the following actions to receive notifications when the alarm state changes.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

alarmActionProperty := &alarmActionProperty{
	dynamoDb: &dynamoDBProperty{
		hashKeyField: jsii.String("hashKeyField"),
		hashKeyValue: jsii.String("hashKeyValue"),
		tableName: jsii.String("tableName"),

		// the properties below are optional
		hashKeyType: jsii.String("hashKeyType"),
		operation: jsii.String("operation"),
		payload: &payloadProperty{
			contentExpression: jsii.String("contentExpression"),
			type: jsii.String("type"),
		},
		payloadField: jsii.String("payloadField"),
		rangeKeyField: jsii.String("rangeKeyField"),
		rangeKeyType: jsii.String("rangeKeyType"),
		rangeKeyValue: jsii.String("rangeKeyValue"),
	},
	dynamoDBv2: &dynamoDBv2Property{
		tableName: jsii.String("tableName"),

		// the properties below are optional
		payload: &payloadProperty{
			contentExpression: jsii.String("contentExpression"),
			type: jsii.String("type"),
		},
	},
	firehose: &firehoseProperty{
		deliveryStreamName: jsii.String("deliveryStreamName"),

		// the properties below are optional
		payload: &payloadProperty{
			contentExpression: jsii.String("contentExpression"),
			type: jsii.String("type"),
		},
		separator: jsii.String("separator"),
	},
	iotEvents: &iotEventsProperty{
		inputName: jsii.String("inputName"),

		// the properties below are optional
		payload: &payloadProperty{
			contentExpression: jsii.String("contentExpression"),
			type: jsii.String("type"),
		},
	},
	iotSiteWise: &iotSiteWiseProperty{
		assetId: jsii.String("assetId"),
		entryId: jsii.String("entryId"),
		propertyAlias: jsii.String("propertyAlias"),
		propertyId: jsii.String("propertyId"),
		propertyValue: &assetPropertyValueProperty{
			value: &assetPropertyVariantProperty{
				booleanValue: jsii.String("booleanValue"),
				doubleValue: jsii.String("doubleValue"),
				integerValue: jsii.String("integerValue"),
				stringValue: jsii.String("stringValue"),
			},

			// the properties below are optional
			quality: jsii.String("quality"),
			timestamp: &assetPropertyTimestampProperty{
				timeInSeconds: jsii.String("timeInSeconds"),

				// the properties below are optional
				offsetInNanos: jsii.String("offsetInNanos"),
			},
		},
	},
	iotTopicPublish: &iotTopicPublishProperty{
		mqttTopic: jsii.String("mqttTopic"),

		// the properties below are optional
		payload: &payloadProperty{
			contentExpression: jsii.String("contentExpression"),
			type: jsii.String("type"),
		},
	},
	lambda: &lambdaProperty{
		functionArn: jsii.String("functionArn"),

		// the properties below are optional
		payload: &payloadProperty{
			contentExpression: jsii.String("contentExpression"),
			type: jsii.String("type"),
		},
	},
	sns: &snsProperty{
		targetArn: jsii.String("targetArn"),

		// the properties below are optional
		payload: &payloadProperty{
			contentExpression: jsii.String("contentExpression"),
			type: jsii.String("type"),
		},
	},
	sqs: &sqsProperty{
		queueUrl: jsii.String("queueUrl"),

		// the properties below are optional
		payload: &payloadProperty{
			contentExpression: jsii.String("contentExpression"),
			type: jsii.String("type"),
		},
		useBase64: jsii.Boolean(false),
	},
}

type CfnAlarmModel_AlarmCapabilitiesProperty

type CfnAlarmModel_AlarmCapabilitiesProperty struct {
	// Specifies whether to get notified for alarm state changes.
	AcknowledgeFlow interface{} `field:"optional" json:"acknowledgeFlow" yaml:"acknowledgeFlow"`
	// Specifies the default alarm state.
	//
	// The configuration applies to all alarms that were created based on this alarm model.
	InitializationConfiguration interface{} `field:"optional" json:"initializationConfiguration" yaml:"initializationConfiguration"`
}

Contains the configuration information of alarm state changes.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

alarmCapabilitiesProperty := &alarmCapabilitiesProperty{
	acknowledgeFlow: &acknowledgeFlowProperty{
		enabled: jsii.Boolean(false),
	},
	initializationConfiguration: &initializationConfigurationProperty{
		disabledOnInitialization: jsii.Boolean(false),
	},
}

type CfnAlarmModel_AlarmEventActionsProperty

type CfnAlarmModel_AlarmEventActionsProperty struct {
	// Specifies one or more supported actions to receive notifications when the alarm state changes.
	AlarmActions interface{} `field:"optional" json:"alarmActions" yaml:"alarmActions"`
}

Contains information about one or more alarm actions.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

alarmEventActionsProperty := &alarmEventActionsProperty{
	alarmActions: []interface{}{
		&alarmActionProperty{
			dynamoDb: &dynamoDBProperty{
				hashKeyField: jsii.String("hashKeyField"),
				hashKeyValue: jsii.String("hashKeyValue"),
				tableName: jsii.String("tableName"),

				// the properties below are optional
				hashKeyType: jsii.String("hashKeyType"),
				operation: jsii.String("operation"),
				payload: &payloadProperty{
					contentExpression: jsii.String("contentExpression"),
					type: jsii.String("type"),
				},
				payloadField: jsii.String("payloadField"),
				rangeKeyField: jsii.String("rangeKeyField"),
				rangeKeyType: jsii.String("rangeKeyType"),
				rangeKeyValue: jsii.String("rangeKeyValue"),
			},
			dynamoDBv2: &dynamoDBv2Property{
				tableName: jsii.String("tableName"),

				// the properties below are optional
				payload: &payloadProperty{
					contentExpression: jsii.String("contentExpression"),
					type: jsii.String("type"),
				},
			},
			firehose: &firehoseProperty{
				deliveryStreamName: jsii.String("deliveryStreamName"),

				// the properties below are optional
				payload: &payloadProperty{
					contentExpression: jsii.String("contentExpression"),
					type: jsii.String("type"),
				},
				separator: jsii.String("separator"),
			},
			iotEvents: &iotEventsProperty{
				inputName: jsii.String("inputName"),

				// the properties below are optional
				payload: &payloadProperty{
					contentExpression: jsii.String("contentExpression"),
					type: jsii.String("type"),
				},
			},
			iotSiteWise: &iotSiteWiseProperty{
				assetId: jsii.String("assetId"),
				entryId: jsii.String("entryId"),
				propertyAlias: jsii.String("propertyAlias"),
				propertyId: jsii.String("propertyId"),
				propertyValue: &assetPropertyValueProperty{
					value: &assetPropertyVariantProperty{
						booleanValue: jsii.String("booleanValue"),
						doubleValue: jsii.String("doubleValue"),
						integerValue: jsii.String("integerValue"),
						stringValue: jsii.String("stringValue"),
					},

					// the properties below are optional
					quality: jsii.String("quality"),
					timestamp: &assetPropertyTimestampProperty{
						timeInSeconds: jsii.String("timeInSeconds"),

						// the properties below are optional
						offsetInNanos: jsii.String("offsetInNanos"),
					},
				},
			},
			iotTopicPublish: &iotTopicPublishProperty{
				mqttTopic: jsii.String("mqttTopic"),

				// the properties below are optional
				payload: &payloadProperty{
					contentExpression: jsii.String("contentExpression"),
					type: jsii.String("type"),
				},
			},
			lambda: &lambdaProperty{
				functionArn: jsii.String("functionArn"),

				// the properties below are optional
				payload: &payloadProperty{
					contentExpression: jsii.String("contentExpression"),
					type: jsii.String("type"),
				},
			},
			sns: &snsProperty{
				targetArn: jsii.String("targetArn"),

				// the properties below are optional
				payload: &payloadProperty{
					contentExpression: jsii.String("contentExpression"),
					type: jsii.String("type"),
				},
			},
			sqs: &sqsProperty{
				queueUrl: jsii.String("queueUrl"),

				// the properties below are optional
				payload: &payloadProperty{
					contentExpression: jsii.String("contentExpression"),
					type: jsii.String("type"),
				},
				useBase64: jsii.Boolean(false),
			},
		},
	},
}

type CfnAlarmModel_AlarmRuleProperty

type CfnAlarmModel_AlarmRuleProperty struct {
	// A rule that compares an input property value to a threshold value with a comparison operator.
	SimpleRule interface{} `field:"optional" json:"simpleRule" yaml:"simpleRule"`
}

Defines when your alarm is invoked.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

alarmRuleProperty := &alarmRuleProperty{
	simpleRule: &simpleRuleProperty{
		comparisonOperator: jsii.String("comparisonOperator"),
		inputProperty: jsii.String("inputProperty"),
		threshold: jsii.String("threshold"),
	},
}

type CfnAlarmModel_AssetPropertyTimestampProperty

type CfnAlarmModel_AssetPropertyTimestampProperty struct {
	// The timestamp, in seconds, in the Unix epoch format.
	//
	// The valid range is between 1-31556889864403199.
	TimeInSeconds *string `field:"required" json:"timeInSeconds" yaml:"timeInSeconds"`
	// The nanosecond offset converted from `timeInSeconds` .
	//
	// The valid range is between 0-999999999.
	OffsetInNanos *string `field:"optional" json:"offsetInNanos" yaml:"offsetInNanos"`
}

A structure that contains timestamp information. For more information, see [TimeInNanos](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_TimeInNanos.html) in the *AWS IoT SiteWise API Reference* .

You must use expressions for all parameters in `AssetPropertyTimestamp` . The expressions accept literals, operators, functions, references, and substitution templates.

**Examples** - For literal values, the expressions must contain single quotes. For example, the value for the `timeInSeconds` parameter can be `'1586400675'` . - For references, you must specify either variables or input values. For example, the value for the `offsetInNanos` parameter can be `$variable.time` . - For a substitution template, you must use `${}` , and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.

In the following example, the value for the `timeInSeconds` parameter uses a substitution template.

`'${$input.TemperatureInput.sensorData.timestamp / 1000}'`

For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) 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 "github.com/aws/aws-cdk-go/awscdk"

assetPropertyTimestampProperty := &assetPropertyTimestampProperty{
	timeInSeconds: jsii.String("timeInSeconds"),

	// the properties below are optional
	offsetInNanos: jsii.String("offsetInNanos"),
}

type CfnAlarmModel_AssetPropertyValueProperty

type CfnAlarmModel_AssetPropertyValueProperty struct {
	// The value to send to an asset property.
	Value interface{} `field:"required" json:"value" yaml:"value"`
	// The quality of the asset property value.
	//
	// The value must be `'GOOD'` , `'BAD'` , or `'UNCERTAIN'` .
	Quality *string `field:"optional" json:"quality" yaml:"quality"`
	// The timestamp associated with the asset property value.
	//
	// The default is the current event time.
	Timestamp interface{} `field:"optional" json:"timestamp" yaml:"timestamp"`
}

A structure that contains value information. For more information, see [AssetPropertyValue](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssetPropertyValue.html) in the *AWS IoT SiteWise API Reference* .

You must use expressions for all parameters in `AssetPropertyValue` . The expressions accept literals, operators, functions, references, and substitution templates.

**Examples** - For literal values, the expressions must contain single quotes. For example, the value for the `quality` parameter can be `'GOOD'` . - For references, you must specify either variables or input values. For example, the value for the `quality` parameter can be `$input.TemperatureInput.sensorData.quality` .

For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) 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 "github.com/aws/aws-cdk-go/awscdk"

assetPropertyValueProperty := &assetPropertyValueProperty{
	value: &assetPropertyVariantProperty{
		booleanValue: jsii.String("booleanValue"),
		doubleValue: jsii.String("doubleValue"),
		integerValue: jsii.String("integerValue"),
		stringValue: jsii.String("stringValue"),
	},

	// the properties below are optional
	quality: jsii.String("quality"),
	timestamp: &assetPropertyTimestampProperty{
		timeInSeconds: jsii.String("timeInSeconds"),

		// the properties below are optional
		offsetInNanos: jsii.String("offsetInNanos"),
	},
}

type CfnAlarmModel_AssetPropertyVariantProperty

type CfnAlarmModel_AssetPropertyVariantProperty struct {
	// The asset property value is a Boolean value that must be `'TRUE'` or `'FALSE'` .
	//
	// You must use an expression, and the evaluated result should be a Boolean value.
	BooleanValue *string `field:"optional" json:"booleanValue" yaml:"booleanValue"`
	// The asset property value is a double.
	//
	// You must use an expression, and the evaluated result should be a double.
	DoubleValue *string `field:"optional" json:"doubleValue" yaml:"doubleValue"`
	// The asset property value is an integer.
	//
	// You must use an expression, and the evaluated result should be an integer.
	IntegerValue *string `field:"optional" json:"integerValue" yaml:"integerValue"`
	// The asset property value is a string.
	//
	// You must use an expression, and the evaluated result should be a string.
	StringValue *string `field:"optional" json:"stringValue" yaml:"stringValue"`
}

A structure that contains an asset property value.

For more information, see [Variant](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_Variant.html) in the *AWS IoT SiteWise API Reference* .

You must use expressions for all parameters in `AssetPropertyVariant` . The expressions accept literals, operators, functions, references, and substitution templates.

**Examples** - For literal values, the expressions must contain single quotes. For example, the value for the `integerValue` parameter can be `'100'` . - For references, you must specify either variables or parameters. For example, the value for the `booleanValue` parameter can be `$variable.offline` . - For a substitution template, you must use `${}` , and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.

In the following example, the value for the `doubleValue` parameter uses a substitution template.

`'${$input.TemperatureInput.sensorData.temperature * 6 / 5 + 32}'`

For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *AWS IoT Events Developer Guide* .

You must specify one of the following value types, depending on the `dataType` of the specified asset property. For more information, see [AssetProperty](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssetProperty.html) in the *AWS IoT SiteWise API Reference* .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

assetPropertyVariantProperty := &assetPropertyVariantProperty{
	booleanValue: jsii.String("booleanValue"),
	doubleValue: jsii.String("doubleValue"),
	integerValue: jsii.String("integerValue"),
	stringValue: jsii.String("stringValue"),
}

type CfnAlarmModel_DynamoDBProperty

type CfnAlarmModel_DynamoDBProperty struct {
	// The name of the hash key (also called the partition key).
	//
	// The `hashKeyField` value must match the partition key of the target DynamoDB table.
	HashKeyField *string `field:"required" json:"hashKeyField" yaml:"hashKeyField"`
	// The value of the hash key (also called the partition key).
	HashKeyValue *string `field:"required" json:"hashKeyValue" yaml:"hashKeyValue"`
	// The name of the DynamoDB table.
	//
	// The `tableName` value must match the table name of the target DynamoDB table.
	TableName *string `field:"required" json:"tableName" yaml:"tableName"`
	// The data type for the hash key (also called the partition key). You can specify the following values:.
	//
	// - `'STRING'` - The hash key is a string.
	// - `'NUMBER'` - The hash key is a number.
	//
	// If you don't specify `hashKeyType` , the default value is `'STRING'` .
	HashKeyType *string `field:"optional" json:"hashKeyType" yaml:"hashKeyType"`
	// The type of operation to perform. You can specify the following values:.
	//
	// - `'INSERT'` - Insert data as a new item into the DynamoDB table. This item uses the specified hash key as a partition key. If you specified a range key, the item uses the range key as a sort key.
	// - `'UPDATE'` - Update an existing item of the DynamoDB table with new data. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key.
	// - `'DELETE'` - Delete an existing item of the DynamoDB table. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key.
	//
	// If you don't specify this parameter, AWS IoT Events triggers the `'INSERT'` operation.
	Operation *string `field:"optional" json:"operation" yaml:"operation"`
	// Information needed to configure the payload.
	//
	// By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression` .
	Payload interface{} `field:"optional" json:"payload" yaml:"payload"`
	// The name of the DynamoDB column that receives the action payload.
	//
	// If you don't specify this parameter, the name of the DynamoDB column is `payload` .
	PayloadField *string `field:"optional" json:"payloadField" yaml:"payloadField"`
	// The name of the range key (also called the sort key).
	//
	// The `rangeKeyField` value must match the sort key of the target DynamoDB table.
	RangeKeyField *string `field:"optional" json:"rangeKeyField" yaml:"rangeKeyField"`
	// The data type for the range key (also called the sort key), You can specify the following values:.
	//
	// - `'STRING'` - The range key is a string.
	// - `'NUMBER'` - The range key is number.
	//
	// If you don't specify `rangeKeyField` , the default value is `'STRING'` .
	RangeKeyType *string `field:"optional" json:"rangeKeyType" yaml:"rangeKeyType"`
	// The value of the range key (also called the sort key).
	RangeKeyValue *string `field:"optional" json:"rangeKeyValue" yaml:"rangeKeyValue"`
}

Defines an action to write to the Amazon DynamoDB table that you created.

The standard action payload contains all the information about the detector model instance and the event that triggered the action. You can customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html) . One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify.

You must use expressions for all parameters in `DynamoDBAction` . The expressions accept literals, operators, functions, references, and substitution templates.

**Examples** - For literal values, the expressions must contain single quotes. For example, the value for the `hashKeyType` parameter can be `'STRING'` . - For references, you must specify either variables or input values. For example, the value for the `hashKeyField` parameter can be `$input.GreenhouseInput.name` . - For a substitution template, you must use `${}` , and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.

In the following example, the value for the `hashKeyValue` parameter uses a substitution template.

`'${$input.GreenhouseInput.temperature * 6 / 5 + 32} in Fahrenheit'` - For a string concatenation, you must use `+` . A string concatenation can also contain a combination of literals, operators, functions, references, and substitution templates.

In the following example, the value for the `tableName` parameter uses a string concatenation.

`'GreenhouseTemperatureTable ' + $input.GreenhouseInput.date`

For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *AWS IoT Events Developer Guide* .

If the defined payload type is a string, `DynamoDBAction` writes non-JSON data to the DynamoDB table as binary data. The DynamoDB console displays the data as Base64-encoded text. The value for the `payloadField` parameter is `<payload-field>_raw` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

dynamoDBProperty := &dynamoDBProperty{
	hashKeyField: jsii.String("hashKeyField"),
	hashKeyValue: jsii.String("hashKeyValue"),
	tableName: jsii.String("tableName"),

	// the properties below are optional
	hashKeyType: jsii.String("hashKeyType"),
	operation: jsii.String("operation"),
	payload: &payloadProperty{
		contentExpression: jsii.String("contentExpression"),
		type: jsii.String("type"),
	},
	payloadField: jsii.String("payloadField"),
	rangeKeyField: jsii.String("rangeKeyField"),
	rangeKeyType: jsii.String("rangeKeyType"),
	rangeKeyValue: jsii.String("rangeKeyValue"),
}

type CfnAlarmModel_DynamoDBv2Property

type CfnAlarmModel_DynamoDBv2Property struct {
	// The name of the DynamoDB table.
	TableName *string `field:"required" json:"tableName" yaml:"tableName"`
	// `CfnAlarmModel.DynamoDBv2Property.Payload`.
	Payload interface{} `field:"optional" json:"payload" yaml:"payload"`
}

Defines an action to write to the Amazon DynamoDB table that you created.

The default action payload contains all the information about the detector model instance and the event that triggered the action. You can customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html) . A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify.

You must use expressions for all parameters in `DynamoDBv2Action` . The expressions accept literals, operators, functions, references, and substitution templates.

**Examples** - For literal values, the expressions must contain single quotes. For example, the value for the `tableName` parameter can be `'GreenhouseTemperatureTable'` . - For references, you must specify either variables or input values. For example, the value for the `tableName` parameter can be `$variable.ddbtableName` . - For a substitution template, you must use `${}` , and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.

In the following example, the value for the `contentExpression` parameter in `Payload` uses a substitution template.

`'{\"sensorID\": \"${$input.GreenhouseInput.sensor_id}\", \"temperature\": \"${$input.GreenhouseInput.temperature * 9 / 5 + 32}\"}'` - For a string concatenation, you must use `+` . A string concatenation can also contain a combination of literals, operators, functions, references, and substitution templates.

In the following example, the value for the `tableName` parameter uses a string concatenation.

`'GreenhouseTemperatureTable ' + $input.GreenhouseInput.date`

For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *AWS IoT Events Developer Guide* .

The value for the `type` parameter in `Payload` must be `JSON` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

dynamoDBv2Property := &dynamoDBv2Property{
	tableName: jsii.String("tableName"),

	// the properties below are optional
	payload: &payloadProperty{
		contentExpression: jsii.String("contentExpression"),
		type: jsii.String("type"),
	},
}

type CfnAlarmModel_FirehoseProperty

type CfnAlarmModel_FirehoseProperty struct {
	// The name of the Kinesis Data Firehose delivery stream where the data is written.
	DeliveryStreamName *string `field:"required" json:"deliveryStreamName" yaml:"deliveryStreamName"`
	// You can configure the action payload when you send a message to an Amazon Kinesis Data Firehose delivery stream.
	Payload interface{} `field:"optional" json:"payload" yaml:"payload"`
	// A character separator that is used to separate records written to the Kinesis Data Firehose delivery stream.
	//
	// Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).
	Separator *string `field:"optional" json:"separator" yaml:"separator"`
}

Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

firehoseProperty := &firehoseProperty{
	deliveryStreamName: jsii.String("deliveryStreamName"),

	// the properties below are optional
	payload: &payloadProperty{
		contentExpression: jsii.String("contentExpression"),
		type: jsii.String("type"),
	},
	separator: jsii.String("separator"),
}

type CfnAlarmModel_InitializationConfigurationProperty

type CfnAlarmModel_InitializationConfigurationProperty struct {
	// The value must be `TRUE` or `FALSE` .
	//
	// If `FALSE` , all alarm instances created based on the alarm model are activated. The default value is `TRUE` .
	DisabledOnInitialization interface{} `field:"required" json:"disabledOnInitialization" yaml:"disabledOnInitialization"`
}

Specifies the default alarm state.

The configuration applies to all alarms that were created based on this alarm model.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

initializationConfigurationProperty := &initializationConfigurationProperty{
	disabledOnInitialization: jsii.Boolean(false),
}

type CfnAlarmModel_IotEventsProperty

type CfnAlarmModel_IotEventsProperty struct {
	// The name of the AWS IoT Events input where the data is sent.
	InputName *string `field:"required" json:"inputName" yaml:"inputName"`
	// You can configure the action payload when you send a message to an AWS IoT Events input.
	Payload interface{} `field:"optional" json:"payload" yaml:"payload"`
}

Sends an AWS IoT Events input, passing in information about the detector model instance and the event that triggered the action.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

iotEventsProperty := &iotEventsProperty{
	inputName: jsii.String("inputName"),

	// the properties below are optional
	payload: &payloadProperty{
		contentExpression: jsii.String("contentExpression"),
		type: jsii.String("type"),
	},
}

type CfnAlarmModel_IotSiteWiseProperty

type CfnAlarmModel_IotSiteWiseProperty struct {
	// The ID of the asset that has the specified property.
	AssetId *string `field:"optional" json:"assetId" yaml:"assetId"`
	// A unique identifier for this entry.
	//
	// You can use the entry ID to track which data entry causes an error in case of failure. The default is a new unique identifier.
	EntryId *string `field:"optional" json:"entryId" yaml:"entryId"`
	// The alias of the asset property.
	PropertyAlias *string `field:"optional" json:"propertyAlias" yaml:"propertyAlias"`
	// The ID of the asset property.
	PropertyId *string `field:"optional" json:"propertyId" yaml:"propertyId"`
	// The value to send to the asset property.
	//
	// This value contains timestamp, quality, and value (TQV) information.
	PropertyValue interface{} `field:"optional" json:"propertyValue" yaml:"propertyValue"`
}

Sends information about the detector model instance and the event that triggered the action to a specified asset property in AWS IoT SiteWise .

You must use expressions for all parameters in `IotSiteWiseAction` . The expressions accept literals, operators, functions, references, and substitutions templates.

**Examples** - For literal values, the expressions must contain single quotes. For example, the value for the `propertyAlias` parameter can be `'/company/windfarm/3/turbine/7/temperature'` . - For references, you must specify either variables or input values. For example, the value for the `assetId` parameter can be `$input.TurbineInput.assetId1` . - For a substitution template, you must use `${}` , and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.

In the following example, the value for the `propertyAlias` parameter uses a substitution template.

`'company/windfarm/${$input.TemperatureInput.sensorData.windfarmID}/turbine/ ${$input.TemperatureInput.sensorData.turbineID}/temperature'`

You must specify either `propertyAlias` or both `assetId` and `propertyId` to identify the target asset property in AWS IoT SiteWise .

For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) 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 "github.com/aws/aws-cdk-go/awscdk"

iotSiteWiseProperty := &iotSiteWiseProperty{
	assetId: jsii.String("assetId"),
	entryId: jsii.String("entryId"),
	propertyAlias: jsii.String("propertyAlias"),
	propertyId: jsii.String("propertyId"),
	propertyValue: &assetPropertyValueProperty{
		value: &assetPropertyVariantProperty{
			booleanValue: jsii.String("booleanValue"),
			doubleValue: jsii.String("doubleValue"),
			integerValue: jsii.String("integerValue"),
			stringValue: jsii.String("stringValue"),
		},

		// the properties below are optional
		quality: jsii.String("quality"),
		timestamp: &assetPropertyTimestampProperty{
			timeInSeconds: jsii.String("timeInSeconds"),

			// the properties below are optional
			offsetInNanos: jsii.String("offsetInNanos"),
		},
	},
}

type CfnAlarmModel_IotTopicPublishProperty

type CfnAlarmModel_IotTopicPublishProperty struct {
	// The MQTT topic of the message.
	//
	// You can use a string expression that includes variables ( `$variable.<variable-name>` ) and input values ( `$input.<input-name>.<path-to-datum>` ) as the topic string.
	MqttTopic *string `field:"required" json:"mqttTopic" yaml:"mqttTopic"`
	// You can configure the action payload when you publish a message to an AWS IoT Core topic.
	Payload interface{} `field:"optional" json:"payload" yaml:"payload"`
}

Information required to publish the MQTT message through the AWS IoT message broker.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

iotTopicPublishProperty := &iotTopicPublishProperty{
	mqttTopic: jsii.String("mqttTopic"),

	// the properties below are optional
	payload: &payloadProperty{
		contentExpression: jsii.String("contentExpression"),
		type: jsii.String("type"),
	},
}

type CfnAlarmModel_LambdaProperty

type CfnAlarmModel_LambdaProperty struct {
	// The ARN of the Lambda function that is executed.
	FunctionArn *string `field:"required" json:"functionArn" yaml:"functionArn"`
	// You can configure the action payload when you send a message to a Lambda function.
	Payload interface{} `field:"optional" json:"payload" yaml:"payload"`
}

Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

lambdaProperty := &lambdaProperty{
	functionArn: jsii.String("functionArn"),

	// the properties below are optional
	payload: &payloadProperty{
		contentExpression: jsii.String("contentExpression"),
		type: jsii.String("type"),
	},
}

type CfnAlarmModel_PayloadProperty

type CfnAlarmModel_PayloadProperty struct {
	// The content of the payload.
	//
	// You can use a string expression that includes quoted strings ( `'<string>'` ), variables ( `$variable.<variable-name>` ), input values ( `$input.<input-name>.<path-to-datum>` ), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.
	ContentExpression *string `field:"required" json:"contentExpression" yaml:"contentExpression"`
	// The value of the payload type can be either `STRING` or `JSON` .
	Type *string `field:"required" json:"type" yaml:"type"`
}

Information needed to configure the payload.

By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

payloadProperty := &payloadProperty{
	contentExpression: jsii.String("contentExpression"),
	type: jsii.String("type"),
}

type CfnAlarmModel_SimpleRuleProperty

type CfnAlarmModel_SimpleRuleProperty struct {
	// The comparison operator.
	ComparisonOperator *string `field:"required" json:"comparisonOperator" yaml:"comparisonOperator"`
	// The value on the left side of the comparison operator.
	//
	// You can specify an AWS IoT Events input attribute as an input property.
	InputProperty *string `field:"required" json:"inputProperty" yaml:"inputProperty"`
	// The value on the right side of the comparison operator.
	//
	// You can enter a number or specify an AWS IoT Events input attribute.
	Threshold *string `field:"required" json:"threshold" yaml:"threshold"`
}

A rule that compares an input property value to a threshold value with a comparison operator.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

simpleRuleProperty := &simpleRuleProperty{
	comparisonOperator: jsii.String("comparisonOperator"),
	inputProperty: jsii.String("inputProperty"),
	threshold: jsii.String("threshold"),
}

type CfnAlarmModel_SnsProperty

type CfnAlarmModel_SnsProperty struct {
	// The ARN of the Amazon SNS target where the message is sent.
	TargetArn *string `field:"required" json:"targetArn" yaml:"targetArn"`
	// You can configure the action payload when you send a message as an Amazon SNS push notification.
	Payload interface{} `field:"optional" json:"payload" yaml:"payload"`
}

Information required to publish the Amazon SNS message.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

snsProperty := &snsProperty{
	targetArn: jsii.String("targetArn"),

	// the properties below are optional
	payload: &payloadProperty{
		contentExpression: jsii.String("contentExpression"),
		type: jsii.String("type"),
	},
}

type CfnAlarmModel_SqsProperty

type CfnAlarmModel_SqsProperty struct {
	// The URL of the SQS queue where the data is written.
	QueueUrl *string `field:"required" json:"queueUrl" yaml:"queueUrl"`
	// You can configure the action payload when you send a message to an Amazon SQS queue.
	Payload interface{} `field:"optional" json:"payload" yaml:"payload"`
	// Set this to TRUE if you want the data to be base-64 encoded before it is written to the queue.
	//
	// Otherwise, set this to FALSE.
	UseBase64 interface{} `field:"optional" json:"useBase64" yaml:"useBase64"`
}

Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

sqsProperty := &sqsProperty{
	queueUrl: jsii.String("queueUrl"),

	// the properties below are optional
	payload: &payloadProperty{
		contentExpression: jsii.String("contentExpression"),
		type: jsii.String("type"),
	},
	useBase64: jsii.Boolean(false),
}

type CfnDetectorModel

type CfnDetectorModel interface {
	awscdk.CfnResource
	awscdk.IInspectable
	// Options for this resource, such as condition, update policy etc.
	// Experimental.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	// Experimental.
	CfnResourceType() *string
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	// Experimental.
	CreationStack() *[]*string
	// Information that defines how a detector operates.
	DetectorModelDefinition() interface{}
	SetDetectorModelDefinition(val interface{})
	// A brief description of the detector model.
	DetectorModelDescription() *string
	SetDetectorModelDescription(val *string)
	// The name of the detector model.
	DetectorModelName() *string
	SetDetectorModelName(val *string)
	// Information about the order in which events are evaluated and how actions are executed.
	EvaluationMethod() *string
	SetEvaluationMethod(val *string)
	// The value used to identify a detector instance.
	//
	// When a device or system sends input, a new detector instance with a unique key value is created. AWS IoT Events can continue to route input to its corresponding detector instance based on this identifying information.
	//
	// This parameter uses a JSON-path expression to select the attribute-value pair in the message payload that is used for identification. To route the message to the correct detector instance, the device must send a message payload that contains the same attribute-value.
	Key() *string
	SetKey(val *string)
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	// Experimental.
	LogicalId() *string
	// The construct tree node associated with this construct.
	// Experimental.
	Node() awscdk.ConstructNode
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	// Experimental.
	Ref() *string
	// The ARN of the role that grants permission to AWS IoT Events to perform its operations.
	RoleArn() *string
	SetRoleArn(val *string)
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	// Experimental.
	Stack() awscdk.Stack
	// An array of key-value pairs to apply to this resource.
	//
	// For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
	Tags() awscdk.TagManager
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	// Experimental.
	UpdatedProperites() *map[string]interface{}
	// Syntactic sugar for `addOverride(path, undefined)`.
	// Experimental.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	// Experimental.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//    "GlobalSecondaryIndexes": [
	//      {
	//        "Projection": {
	//          "NonKeyAttributes": [ "myattribute" ]
	//          ...
	//        }
	//        ...
	//      },
	//      {
	//        "ProjectionType": "INCLUDE"
	//        ...
	//      },
	//    ]
	//    ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	// Experimental.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	// Experimental.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	// Experimental.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).
	// Experimental.
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	// Experimental.
	GetAtt(attributeName *string) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	OnPrepare()
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	OnSynthesize(session constructs.ISynthesisSession)
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	OnValidate() *[]*string
	// Overrides the auto-generated logical ID with a specific ID.
	// Experimental.
	OverrideLogicalId(newLogicalId *string)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	// Experimental.
	ShouldSynthesize() *bool
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	Synthesize(session awscdk.ISynthesisSession)
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	// Experimental.
	ToString() *string
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	Validate() *[]*string
	// Experimental.
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::IoTEvents::DetectorModel`.

The AWS::IoTEvents::DetectorModel resource creates a detector model. You create a *detector model* (a model of your equipment or process) using *states* . For each state, you define conditional (Boolean) logic that evaluates the incoming inputs to detect significant events. When an event is detected, it can change the state or trigger custom-built or predefined actions using other AWS services. You can define additional events that trigger actions when entering or exiting a state and, optionally, when a condition is met. For more information, see [How to Use AWS IoT Events](https://docs.aws.amazon.com/iotevents/latest/developerguide/how-to-use-iotevents.html) in the *AWS IoT Events Developer Guide* .

> When you successfully update a detector model (using the AWS IoT Events console, AWS IoT Events API or CLI commands, or AWS CloudFormation ) all detector instances created by the model are reset to their initial states. (The detector's `state` , and the values of any variables and timers are reset.) > > When you successfully update a detector model (using the AWS IoT Events console, AWS IoT Events API or CLI commands, or AWS CloudFormation ) the version number of the detector model is incremented. (A detector model with version number 1 before the update has version number 2 after the update succeeds.) > > If you attempt to update a detector model using AWS CloudFormation and the update does not succeed, the system may, in some cases, restore the original detector model. When this occurs, the detector model's version is incremented twice (for example, from version 1 to version 3) and the detector instances are reset. > > Also, be aware that if you attempt to update several detector models at once using AWS CloudFormation , some updates may succeed and others fail. In this case, the effects on each detector model's detector instances and version number depend on whether the update succeeded or failed, with the results as stated.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnDetectorModel := awscdk.Aws_iotevents.NewCfnDetectorModel(this, jsii.String("MyCfnDetectorModel"), &cfnDetectorModelProps{
	detectorModelDefinition: &detectorModelDefinitionProperty{
		initialStateName: jsii.String("initialStateName"),
		states: []interface{}{
			&stateProperty{
				stateName: jsii.String("stateName"),

				// the properties below are optional
				onEnter: &onEnterProperty{
					events: []interface{}{
						&eventProperty{
							eventName: jsii.String("eventName"),

							// the properties below are optional
							actions: []interface{}{
								&actionProperty{
									clearTimer: &clearTimerProperty{
										timerName: jsii.String("timerName"),
									},
									dynamoDb: &dynamoDBProperty{
										hashKeyField: jsii.String("hashKeyField"),
										hashKeyValue: jsii.String("hashKeyValue"),
										tableName: jsii.String("tableName"),

										// the properties below are optional
										hashKeyType: jsii.String("hashKeyType"),
										operation: jsii.String("operation"),
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
										payloadField: jsii.String("payloadField"),
										rangeKeyField: jsii.String("rangeKeyField"),
										rangeKeyType: jsii.String("rangeKeyType"),
										rangeKeyValue: jsii.String("rangeKeyValue"),
									},
									dynamoDBv2: &dynamoDBv2Property{
										tableName: jsii.String("tableName"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									firehose: &firehoseProperty{
										deliveryStreamName: jsii.String("deliveryStreamName"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
										separator: jsii.String("separator"),
									},
									iotEvents: &iotEventsProperty{
										inputName: jsii.String("inputName"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									iotSiteWise: &iotSiteWiseProperty{
										propertyValue: &assetPropertyValueProperty{
											value: &assetPropertyVariantProperty{
												booleanValue: jsii.String("booleanValue"),
												doubleValue: jsii.String("doubleValue"),
												integerValue: jsii.String("integerValue"),
												stringValue: jsii.String("stringValue"),
											},

											// the properties below are optional
											quality: jsii.String("quality"),
											timestamp: &assetPropertyTimestampProperty{
												timeInSeconds: jsii.String("timeInSeconds"),

												// the properties below are optional
												offsetInNanos: jsii.String("offsetInNanos"),
											},
										},

										// the properties below are optional
										assetId: jsii.String("assetId"),
										entryId: jsii.String("entryId"),
										propertyAlias: jsii.String("propertyAlias"),
										propertyId: jsii.String("propertyId"),
									},
									iotTopicPublish: &iotTopicPublishProperty{
										mqttTopic: jsii.String("mqttTopic"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									lambda: &lambdaProperty{
										functionArn: jsii.String("functionArn"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									resetTimer: &resetTimerProperty{
										timerName: jsii.String("timerName"),
									},
									setTimer: &setTimerProperty{
										timerName: jsii.String("timerName"),

										// the properties below are optional
										durationExpression: jsii.String("durationExpression"),
										seconds: jsii.Number(123),
									},
									setVariable: &setVariableProperty{
										value: jsii.String("value"),
										variableName: jsii.String("variableName"),
									},
									sns: &snsProperty{
										targetArn: jsii.String("targetArn"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									sqs: &sqsProperty{
										queueUrl: jsii.String("queueUrl"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
										useBase64: jsii.Boolean(false),
									},
								},
							},
							condition: jsii.String("condition"),
						},
					},
				},
				onExit: &onExitProperty{
					events: []interface{}{
						&eventProperty{
							eventName: jsii.String("eventName"),

							// the properties below are optional
							actions: []interface{}{
								&actionProperty{
									clearTimer: &clearTimerProperty{
										timerName: jsii.String("timerName"),
									},
									dynamoDb: &dynamoDBProperty{
										hashKeyField: jsii.String("hashKeyField"),
										hashKeyValue: jsii.String("hashKeyValue"),
										tableName: jsii.String("tableName"),

										// the properties below are optional
										hashKeyType: jsii.String("hashKeyType"),
										operation: jsii.String("operation"),
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
										payloadField: jsii.String("payloadField"),
										rangeKeyField: jsii.String("rangeKeyField"),
										rangeKeyType: jsii.String("rangeKeyType"),
										rangeKeyValue: jsii.String("rangeKeyValue"),
									},
									dynamoDBv2: &dynamoDBv2Property{
										tableName: jsii.String("tableName"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									firehose: &firehoseProperty{
										deliveryStreamName: jsii.String("deliveryStreamName"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
										separator: jsii.String("separator"),
									},
									iotEvents: &iotEventsProperty{
										inputName: jsii.String("inputName"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									iotSiteWise: &iotSiteWiseProperty{
										propertyValue: &assetPropertyValueProperty{
											value: &assetPropertyVariantProperty{
												booleanValue: jsii.String("booleanValue"),
												doubleValue: jsii.String("doubleValue"),
												integerValue: jsii.String("integerValue"),
												stringValue: jsii.String("stringValue"),
											},

											// the properties below are optional
											quality: jsii.String("quality"),
											timestamp: &assetPropertyTimestampProperty{
												timeInSeconds: jsii.String("timeInSeconds"),

												// the properties below are optional
												offsetInNanos: jsii.String("offsetInNanos"),
											},
										},

										// the properties below are optional
										assetId: jsii.String("assetId"),
										entryId: jsii.String("entryId"),
										propertyAlias: jsii.String("propertyAlias"),
										propertyId: jsii.String("propertyId"),
									},
									iotTopicPublish: &iotTopicPublishProperty{
										mqttTopic: jsii.String("mqttTopic"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									lambda: &lambdaProperty{
										functionArn: jsii.String("functionArn"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									resetTimer: &resetTimerProperty{
										timerName: jsii.String("timerName"),
									},
									setTimer: &setTimerProperty{
										timerName: jsii.String("timerName"),

										// the properties below are optional
										durationExpression: jsii.String("durationExpression"),
										seconds: jsii.Number(123),
									},
									setVariable: &setVariableProperty{
										value: jsii.String("value"),
										variableName: jsii.String("variableName"),
									},
									sns: &snsProperty{
										targetArn: jsii.String("targetArn"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									sqs: &sqsProperty{
										queueUrl: jsii.String("queueUrl"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
										useBase64: jsii.Boolean(false),
									},
								},
							},
							condition: jsii.String("condition"),
						},
					},
				},
				onInput: &onInputProperty{
					events: []interface{}{
						&eventProperty{
							eventName: jsii.String("eventName"),

							// the properties below are optional
							actions: []interface{}{
								&actionProperty{
									clearTimer: &clearTimerProperty{
										timerName: jsii.String("timerName"),
									},
									dynamoDb: &dynamoDBProperty{
										hashKeyField: jsii.String("hashKeyField"),
										hashKeyValue: jsii.String("hashKeyValue"),
										tableName: jsii.String("tableName"),

										// the properties below are optional
										hashKeyType: jsii.String("hashKeyType"),
										operation: jsii.String("operation"),
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
										payloadField: jsii.String("payloadField"),
										rangeKeyField: jsii.String("rangeKeyField"),
										rangeKeyType: jsii.String("rangeKeyType"),
										rangeKeyValue: jsii.String("rangeKeyValue"),
									},
									dynamoDBv2: &dynamoDBv2Property{
										tableName: jsii.String("tableName"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									firehose: &firehoseProperty{
										deliveryStreamName: jsii.String("deliveryStreamName"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
										separator: jsii.String("separator"),
									},
									iotEvents: &iotEventsProperty{
										inputName: jsii.String("inputName"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									iotSiteWise: &iotSiteWiseProperty{
										propertyValue: &assetPropertyValueProperty{
											value: &assetPropertyVariantProperty{
												booleanValue: jsii.String("booleanValue"),
												doubleValue: jsii.String("doubleValue"),
												integerValue: jsii.String("integerValue"),
												stringValue: jsii.String("stringValue"),
											},

											// the properties below are optional
											quality: jsii.String("quality"),
											timestamp: &assetPropertyTimestampProperty{
												timeInSeconds: jsii.String("timeInSeconds"),

												// the properties below are optional
												offsetInNanos: jsii.String("offsetInNanos"),
											},
										},

										// the properties below are optional
										assetId: jsii.String("assetId"),
										entryId: jsii.String("entryId"),
										propertyAlias: jsii.String("propertyAlias"),
										propertyId: jsii.String("propertyId"),
									},
									iotTopicPublish: &iotTopicPublishProperty{
										mqttTopic: jsii.String("mqttTopic"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									lambda: &lambdaProperty{
										functionArn: jsii.String("functionArn"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									resetTimer: &resetTimerProperty{
										timerName: jsii.String("timerName"),
									},
									setTimer: &setTimerProperty{
										timerName: jsii.String("timerName"),

										// the properties below are optional
										durationExpression: jsii.String("durationExpression"),
										seconds: jsii.Number(123),
									},
									setVariable: &setVariableProperty{
										value: jsii.String("value"),
										variableName: jsii.String("variableName"),
									},
									sns: &snsProperty{
										targetArn: jsii.String("targetArn"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									sqs: &sqsProperty{
										queueUrl: jsii.String("queueUrl"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
										useBase64: jsii.Boolean(false),
									},
								},
							},
							condition: jsii.String("condition"),
						},
					},
					transitionEvents: []interface{}{
						&transitionEventProperty{
							condition: jsii.String("condition"),
							eventName: jsii.String("eventName"),
							nextState: jsii.String("nextState"),

							// the properties below are optional
							actions: []interface{}{
								&actionProperty{
									clearTimer: &clearTimerProperty{
										timerName: jsii.String("timerName"),
									},
									dynamoDb: &dynamoDBProperty{
										hashKeyField: jsii.String("hashKeyField"),
										hashKeyValue: jsii.String("hashKeyValue"),
										tableName: jsii.String("tableName"),

										// the properties below are optional
										hashKeyType: jsii.String("hashKeyType"),
										operation: jsii.String("operation"),
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
										payloadField: jsii.String("payloadField"),
										rangeKeyField: jsii.String("rangeKeyField"),
										rangeKeyType: jsii.String("rangeKeyType"),
										rangeKeyValue: jsii.String("rangeKeyValue"),
									},
									dynamoDBv2: &dynamoDBv2Property{
										tableName: jsii.String("tableName"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									firehose: &firehoseProperty{
										deliveryStreamName: jsii.String("deliveryStreamName"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
										separator: jsii.String("separator"),
									},
									iotEvents: &iotEventsProperty{
										inputName: jsii.String("inputName"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									iotSiteWise: &iotSiteWiseProperty{
										propertyValue: &assetPropertyValueProperty{
											value: &assetPropertyVariantProperty{
												booleanValue: jsii.String("booleanValue"),
												doubleValue: jsii.String("doubleValue"),
												integerValue: jsii.String("integerValue"),
												stringValue: jsii.String("stringValue"),
											},

											// the properties below are optional
											quality: jsii.String("quality"),
											timestamp: &assetPropertyTimestampProperty{
												timeInSeconds: jsii.String("timeInSeconds"),

												// the properties below are optional
												offsetInNanos: jsii.String("offsetInNanos"),
											},
										},

										// the properties below are optional
										assetId: jsii.String("assetId"),
										entryId: jsii.String("entryId"),
										propertyAlias: jsii.String("propertyAlias"),
										propertyId: jsii.String("propertyId"),
									},
									iotTopicPublish: &iotTopicPublishProperty{
										mqttTopic: jsii.String("mqttTopic"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									lambda: &lambdaProperty{
										functionArn: jsii.String("functionArn"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									resetTimer: &resetTimerProperty{
										timerName: jsii.String("timerName"),
									},
									setTimer: &setTimerProperty{
										timerName: jsii.String("timerName"),

										// the properties below are optional
										durationExpression: jsii.String("durationExpression"),
										seconds: jsii.Number(123),
									},
									setVariable: &setVariableProperty{
										value: jsii.String("value"),
										variableName: jsii.String("variableName"),
									},
									sns: &snsProperty{
										targetArn: jsii.String("targetArn"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									sqs: &sqsProperty{
										queueUrl: jsii.String("queueUrl"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
										useBase64: jsii.Boolean(false),
									},
								},
							},
						},
					},
				},
			},
		},
	},
	roleArn: jsii.String("roleArn"),

	// the properties below are optional
	detectorModelDescription: jsii.String("detectorModelDescription"),
	detectorModelName: jsii.String("detectorModelName"),
	evaluationMethod: jsii.String("evaluationMethod"),
	key: jsii.String("key"),
	tags: []cfnTag{
		&cfnTag{
			key: jsii.String("key"),
			value: jsii.String("value"),
		},
	},
})

func NewCfnDetectorModel

func NewCfnDetectorModel(scope awscdk.Construct, id *string, props *CfnDetectorModelProps) CfnDetectorModel

Create a new `AWS::IoTEvents::DetectorModel`.

type CfnDetectorModelProps

type CfnDetectorModelProps struct {
	// Information that defines how a detector operates.
	DetectorModelDefinition interface{} `field:"required" json:"detectorModelDefinition" yaml:"detectorModelDefinition"`
	// The ARN of the role that grants permission to AWS IoT Events to perform its operations.
	RoleArn *string `field:"required" json:"roleArn" yaml:"roleArn"`
	// A brief description of the detector model.
	DetectorModelDescription *string `field:"optional" json:"detectorModelDescription" yaml:"detectorModelDescription"`
	// The name of the detector model.
	DetectorModelName *string `field:"optional" json:"detectorModelName" yaml:"detectorModelName"`
	// Information about the order in which events are evaluated and how actions are executed.
	EvaluationMethod *string `field:"optional" json:"evaluationMethod" yaml:"evaluationMethod"`
	// The value used to identify a detector instance.
	//
	// When a device or system sends input, a new detector instance with a unique key value is created. AWS IoT Events can continue to route input to its corresponding detector instance based on this identifying information.
	//
	// This parameter uses a JSON-path expression to select the attribute-value pair in the message payload that is used for identification. To route the message to the correct detector instance, the device must send a message payload that contains the same attribute-value.
	Key *string `field:"optional" json:"key" yaml:"key"`
	// An array of key-value pairs to apply to this resource.
	//
	// For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
	Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
}

Properties for defining a `CfnDetectorModel`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnDetectorModelProps := &cfnDetectorModelProps{
	detectorModelDefinition: &detectorModelDefinitionProperty{
		initialStateName: jsii.String("initialStateName"),
		states: []interface{}{
			&stateProperty{
				stateName: jsii.String("stateName"),

				// the properties below are optional
				onEnter: &onEnterProperty{
					events: []interface{}{
						&eventProperty{
							eventName: jsii.String("eventName"),

							// the properties below are optional
							actions: []interface{}{
								&actionProperty{
									clearTimer: &clearTimerProperty{
										timerName: jsii.String("timerName"),
									},
									dynamoDb: &dynamoDBProperty{
										hashKeyField: jsii.String("hashKeyField"),
										hashKeyValue: jsii.String("hashKeyValue"),
										tableName: jsii.String("tableName"),

										// the properties below are optional
										hashKeyType: jsii.String("hashKeyType"),
										operation: jsii.String("operation"),
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
										payloadField: jsii.String("payloadField"),
										rangeKeyField: jsii.String("rangeKeyField"),
										rangeKeyType: jsii.String("rangeKeyType"),
										rangeKeyValue: jsii.String("rangeKeyValue"),
									},
									dynamoDBv2: &dynamoDBv2Property{
										tableName: jsii.String("tableName"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									firehose: &firehoseProperty{
										deliveryStreamName: jsii.String("deliveryStreamName"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
										separator: jsii.String("separator"),
									},
									iotEvents: &iotEventsProperty{
										inputName: jsii.String("inputName"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									iotSiteWise: &iotSiteWiseProperty{
										propertyValue: &assetPropertyValueProperty{
											value: &assetPropertyVariantProperty{
												booleanValue: jsii.String("booleanValue"),
												doubleValue: jsii.String("doubleValue"),
												integerValue: jsii.String("integerValue"),
												stringValue: jsii.String("stringValue"),
											},

											// the properties below are optional
											quality: jsii.String("quality"),
											timestamp: &assetPropertyTimestampProperty{
												timeInSeconds: jsii.String("timeInSeconds"),

												// the properties below are optional
												offsetInNanos: jsii.String("offsetInNanos"),
											},
										},

										// the properties below are optional
										assetId: jsii.String("assetId"),
										entryId: jsii.String("entryId"),
										propertyAlias: jsii.String("propertyAlias"),
										propertyId: jsii.String("propertyId"),
									},
									iotTopicPublish: &iotTopicPublishProperty{
										mqttTopic: jsii.String("mqttTopic"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									lambda: &lambdaProperty{
										functionArn: jsii.String("functionArn"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									resetTimer: &resetTimerProperty{
										timerName: jsii.String("timerName"),
									},
									setTimer: &setTimerProperty{
										timerName: jsii.String("timerName"),

										// the properties below are optional
										durationExpression: jsii.String("durationExpression"),
										seconds: jsii.Number(123),
									},
									setVariable: &setVariableProperty{
										value: jsii.String("value"),
										variableName: jsii.String("variableName"),
									},
									sns: &snsProperty{
										targetArn: jsii.String("targetArn"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									sqs: &sqsProperty{
										queueUrl: jsii.String("queueUrl"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
										useBase64: jsii.Boolean(false),
									},
								},
							},
							condition: jsii.String("condition"),
						},
					},
				},
				onExit: &onExitProperty{
					events: []interface{}{
						&eventProperty{
							eventName: jsii.String("eventName"),

							// the properties below are optional
							actions: []interface{}{
								&actionProperty{
									clearTimer: &clearTimerProperty{
										timerName: jsii.String("timerName"),
									},
									dynamoDb: &dynamoDBProperty{
										hashKeyField: jsii.String("hashKeyField"),
										hashKeyValue: jsii.String("hashKeyValue"),
										tableName: jsii.String("tableName"),

										// the properties below are optional
										hashKeyType: jsii.String("hashKeyType"),
										operation: jsii.String("operation"),
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
										payloadField: jsii.String("payloadField"),
										rangeKeyField: jsii.String("rangeKeyField"),
										rangeKeyType: jsii.String("rangeKeyType"),
										rangeKeyValue: jsii.String("rangeKeyValue"),
									},
									dynamoDBv2: &dynamoDBv2Property{
										tableName: jsii.String("tableName"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									firehose: &firehoseProperty{
										deliveryStreamName: jsii.String("deliveryStreamName"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
										separator: jsii.String("separator"),
									},
									iotEvents: &iotEventsProperty{
										inputName: jsii.String("inputName"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									iotSiteWise: &iotSiteWiseProperty{
										propertyValue: &assetPropertyValueProperty{
											value: &assetPropertyVariantProperty{
												booleanValue: jsii.String("booleanValue"),
												doubleValue: jsii.String("doubleValue"),
												integerValue: jsii.String("integerValue"),
												stringValue: jsii.String("stringValue"),
											},

											// the properties below are optional
											quality: jsii.String("quality"),
											timestamp: &assetPropertyTimestampProperty{
												timeInSeconds: jsii.String("timeInSeconds"),

												// the properties below are optional
												offsetInNanos: jsii.String("offsetInNanos"),
											},
										},

										// the properties below are optional
										assetId: jsii.String("assetId"),
										entryId: jsii.String("entryId"),
										propertyAlias: jsii.String("propertyAlias"),
										propertyId: jsii.String("propertyId"),
									},
									iotTopicPublish: &iotTopicPublishProperty{
										mqttTopic: jsii.String("mqttTopic"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									lambda: &lambdaProperty{
										functionArn: jsii.String("functionArn"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									resetTimer: &resetTimerProperty{
										timerName: jsii.String("timerName"),
									},
									setTimer: &setTimerProperty{
										timerName: jsii.String("timerName"),

										// the properties below are optional
										durationExpression: jsii.String("durationExpression"),
										seconds: jsii.Number(123),
									},
									setVariable: &setVariableProperty{
										value: jsii.String("value"),
										variableName: jsii.String("variableName"),
									},
									sns: &snsProperty{
										targetArn: jsii.String("targetArn"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									sqs: &sqsProperty{
										queueUrl: jsii.String("queueUrl"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
										useBase64: jsii.Boolean(false),
									},
								},
							},
							condition: jsii.String("condition"),
						},
					},
				},
				onInput: &onInputProperty{
					events: []interface{}{
						&eventProperty{
							eventName: jsii.String("eventName"),

							// the properties below are optional
							actions: []interface{}{
								&actionProperty{
									clearTimer: &clearTimerProperty{
										timerName: jsii.String("timerName"),
									},
									dynamoDb: &dynamoDBProperty{
										hashKeyField: jsii.String("hashKeyField"),
										hashKeyValue: jsii.String("hashKeyValue"),
										tableName: jsii.String("tableName"),

										// the properties below are optional
										hashKeyType: jsii.String("hashKeyType"),
										operation: jsii.String("operation"),
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
										payloadField: jsii.String("payloadField"),
										rangeKeyField: jsii.String("rangeKeyField"),
										rangeKeyType: jsii.String("rangeKeyType"),
										rangeKeyValue: jsii.String("rangeKeyValue"),
									},
									dynamoDBv2: &dynamoDBv2Property{
										tableName: jsii.String("tableName"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									firehose: &firehoseProperty{
										deliveryStreamName: jsii.String("deliveryStreamName"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
										separator: jsii.String("separator"),
									},
									iotEvents: &iotEventsProperty{
										inputName: jsii.String("inputName"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									iotSiteWise: &iotSiteWiseProperty{
										propertyValue: &assetPropertyValueProperty{
											value: &assetPropertyVariantProperty{
												booleanValue: jsii.String("booleanValue"),
												doubleValue: jsii.String("doubleValue"),
												integerValue: jsii.String("integerValue"),
												stringValue: jsii.String("stringValue"),
											},

											// the properties below are optional
											quality: jsii.String("quality"),
											timestamp: &assetPropertyTimestampProperty{
												timeInSeconds: jsii.String("timeInSeconds"),

												// the properties below are optional
												offsetInNanos: jsii.String("offsetInNanos"),
											},
										},

										// the properties below are optional
										assetId: jsii.String("assetId"),
										entryId: jsii.String("entryId"),
										propertyAlias: jsii.String("propertyAlias"),
										propertyId: jsii.String("propertyId"),
									},
									iotTopicPublish: &iotTopicPublishProperty{
										mqttTopic: jsii.String("mqttTopic"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									lambda: &lambdaProperty{
										functionArn: jsii.String("functionArn"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									resetTimer: &resetTimerProperty{
										timerName: jsii.String("timerName"),
									},
									setTimer: &setTimerProperty{
										timerName: jsii.String("timerName"),

										// the properties below are optional
										durationExpression: jsii.String("durationExpression"),
										seconds: jsii.Number(123),
									},
									setVariable: &setVariableProperty{
										value: jsii.String("value"),
										variableName: jsii.String("variableName"),
									},
									sns: &snsProperty{
										targetArn: jsii.String("targetArn"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									sqs: &sqsProperty{
										queueUrl: jsii.String("queueUrl"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
										useBase64: jsii.Boolean(false),
									},
								},
							},
							condition: jsii.String("condition"),
						},
					},
					transitionEvents: []interface{}{
						&transitionEventProperty{
							condition: jsii.String("condition"),
							eventName: jsii.String("eventName"),
							nextState: jsii.String("nextState"),

							// the properties below are optional
							actions: []interface{}{
								&actionProperty{
									clearTimer: &clearTimerProperty{
										timerName: jsii.String("timerName"),
									},
									dynamoDb: &dynamoDBProperty{
										hashKeyField: jsii.String("hashKeyField"),
										hashKeyValue: jsii.String("hashKeyValue"),
										tableName: jsii.String("tableName"),

										// the properties below are optional
										hashKeyType: jsii.String("hashKeyType"),
										operation: jsii.String("operation"),
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
										payloadField: jsii.String("payloadField"),
										rangeKeyField: jsii.String("rangeKeyField"),
										rangeKeyType: jsii.String("rangeKeyType"),
										rangeKeyValue: jsii.String("rangeKeyValue"),
									},
									dynamoDBv2: &dynamoDBv2Property{
										tableName: jsii.String("tableName"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									firehose: &firehoseProperty{
										deliveryStreamName: jsii.String("deliveryStreamName"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
										separator: jsii.String("separator"),
									},
									iotEvents: &iotEventsProperty{
										inputName: jsii.String("inputName"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									iotSiteWise: &iotSiteWiseProperty{
										propertyValue: &assetPropertyValueProperty{
											value: &assetPropertyVariantProperty{
												booleanValue: jsii.String("booleanValue"),
												doubleValue: jsii.String("doubleValue"),
												integerValue: jsii.String("integerValue"),
												stringValue: jsii.String("stringValue"),
											},

											// the properties below are optional
											quality: jsii.String("quality"),
											timestamp: &assetPropertyTimestampProperty{
												timeInSeconds: jsii.String("timeInSeconds"),

												// the properties below are optional
												offsetInNanos: jsii.String("offsetInNanos"),
											},
										},

										// the properties below are optional
										assetId: jsii.String("assetId"),
										entryId: jsii.String("entryId"),
										propertyAlias: jsii.String("propertyAlias"),
										propertyId: jsii.String("propertyId"),
									},
									iotTopicPublish: &iotTopicPublishProperty{
										mqttTopic: jsii.String("mqttTopic"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									lambda: &lambdaProperty{
										functionArn: jsii.String("functionArn"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									resetTimer: &resetTimerProperty{
										timerName: jsii.String("timerName"),
									},
									setTimer: &setTimerProperty{
										timerName: jsii.String("timerName"),

										// the properties below are optional
										durationExpression: jsii.String("durationExpression"),
										seconds: jsii.Number(123),
									},
									setVariable: &setVariableProperty{
										value: jsii.String("value"),
										variableName: jsii.String("variableName"),
									},
									sns: &snsProperty{
										targetArn: jsii.String("targetArn"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
									},
									sqs: &sqsProperty{
										queueUrl: jsii.String("queueUrl"),

										// the properties below are optional
										payload: &payloadProperty{
											contentExpression: jsii.String("contentExpression"),
											type: jsii.String("type"),
										},
										useBase64: jsii.Boolean(false),
									},
								},
							},
						},
					},
				},
			},
		},
	},
	roleArn: jsii.String("roleArn"),

	// the properties below are optional
	detectorModelDescription: jsii.String("detectorModelDescription"),
	detectorModelName: jsii.String("detectorModelName"),
	evaluationMethod: jsii.String("evaluationMethod"),
	key: jsii.String("key"),
	tags: []cfnTag{
		&cfnTag{
			key: jsii.String("key"),
			value: jsii.String("value"),
		},
	},
}

type CfnDetectorModel_ActionProperty

type CfnDetectorModel_ActionProperty struct {
	// Information needed to clear the timer.
	ClearTimer interface{} `field:"optional" json:"clearTimer" yaml:"clearTimer"`
	// Writes to the DynamoDB table that you created.
	//
	// The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html) . One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify. For more information, see [Actions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-event-actions.html) in *AWS IoT Events Developer Guide* .
	DynamoDb interface{} `field:"optional" json:"dynamoDb" yaml:"dynamoDb"`
	// Writes to the DynamoDB table that you created.
	//
	// The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html) . A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify. For more information, see [Actions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-event-actions.html) in *AWS IoT Events Developer Guide* .
	DynamoDBv2 interface{} `field:"optional" json:"dynamoDBv2" yaml:"dynamoDBv2"`
	// Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.
	Firehose interface{} `field:"optional" json:"firehose" yaml:"firehose"`
	// Sends AWS IoT Events input, which passes information about the detector model instance and the event that triggered the action.
	IotEvents interface{} `field:"optional" json:"iotEvents" yaml:"iotEvents"`
	// Sends information about the detector model instance and the event that triggered the action to an asset property in AWS IoT SiteWise .
	IotSiteWise interface{} `field:"optional" json:"iotSiteWise" yaml:"iotSiteWise"`
	// Publishes an MQTT message with the given topic to the AWS IoT message broker.
	IotTopicPublish interface{} `field:"optional" json:"iotTopicPublish" yaml:"iotTopicPublish"`
	// Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.
	Lambda interface{} `field:"optional" json:"lambda" yaml:"lambda"`
	// Information needed to reset the timer.
	ResetTimer interface{} `field:"optional" json:"resetTimer" yaml:"resetTimer"`
	// Information needed to set the timer.
	SetTimer interface{} `field:"optional" json:"setTimer" yaml:"setTimer"`
	// Sets a variable to a specified value.
	SetVariable interface{} `field:"optional" json:"setVariable" yaml:"setVariable"`
	// Sends an Amazon SNS message.
	Sns interface{} `field:"optional" json:"sns" yaml:"sns"`
	// Sends an Amazon SNS message.
	Sqs interface{} `field:"optional" json:"sqs" yaml:"sqs"`
}

An action to be performed when the `condition` is TRUE.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

actionProperty := &actionProperty{
	clearTimer: &clearTimerProperty{
		timerName: jsii.String("timerName"),
	},
	dynamoDb: &dynamoDBProperty{
		hashKeyField: jsii.String("hashKeyField"),
		hashKeyValue: jsii.String("hashKeyValue"),
		tableName: jsii.String("tableName"),

		// the properties below are optional
		hashKeyType: jsii.String("hashKeyType"),
		operation: jsii.String("operation"),
		payload: &payloadProperty{
			contentExpression: jsii.String("contentExpression"),
			type: jsii.String("type"),
		},
		payloadField: jsii.String("payloadField"),
		rangeKeyField: jsii.String("rangeKeyField"),
		rangeKeyType: jsii.String("rangeKeyType"),
		rangeKeyValue: jsii.String("rangeKeyValue"),
	},
	dynamoDBv2: &dynamoDBv2Property{
		tableName: jsii.String("tableName"),

		// the properties below are optional
		payload: &payloadProperty{
			contentExpression: jsii.String("contentExpression"),
			type: jsii.String("type"),
		},
	},
	firehose: &firehoseProperty{
		deliveryStreamName: jsii.String("deliveryStreamName"),

		// the properties below are optional
		payload: &payloadProperty{
			contentExpression: jsii.String("contentExpression"),
			type: jsii.String("type"),
		},
		separator: jsii.String("separator"),
	},
	iotEvents: &iotEventsProperty{
		inputName: jsii.String("inputName"),

		// the properties below are optional
		payload: &payloadProperty{
			contentExpression: jsii.String("contentExpression"),
			type: jsii.String("type"),
		},
	},
	iotSiteWise: &iotSiteWiseProperty{
		propertyValue: &assetPropertyValueProperty{
			value: &assetPropertyVariantProperty{
				booleanValue: jsii.String("booleanValue"),
				doubleValue: jsii.String("doubleValue"),
				integerValue: jsii.String("integerValue"),
				stringValue: jsii.String("stringValue"),
			},

			// the properties below are optional
			quality: jsii.String("quality"),
			timestamp: &assetPropertyTimestampProperty{
				timeInSeconds: jsii.String("timeInSeconds"),

				// the properties below are optional
				offsetInNanos: jsii.String("offsetInNanos"),
			},
		},

		// the properties below are optional
		assetId: jsii.String("assetId"),
		entryId: jsii.String("entryId"),
		propertyAlias: jsii.String("propertyAlias"),
		propertyId: jsii.String("propertyId"),
	},
	iotTopicPublish: &iotTopicPublishProperty{
		mqttTopic: jsii.String("mqttTopic"),

		// the properties below are optional
		payload: &payloadProperty{
			contentExpression: jsii.String("contentExpression"),
			type: jsii.String("type"),
		},
	},
	lambda: &lambdaProperty{
		functionArn: jsii.String("functionArn"),

		// the properties below are optional
		payload: &payloadProperty{
			contentExpression: jsii.String("contentExpression"),
			type: jsii.String("type"),
		},
	},
	resetTimer: &resetTimerProperty{
		timerName: jsii.String("timerName"),
	},
	setTimer: &setTimerProperty{
		timerName: jsii.String("timerName"),

		// the properties below are optional
		durationExpression: jsii.String("durationExpression"),
		seconds: jsii.Number(123),
	},
	setVariable: &setVariableProperty{
		value: jsii.String("value"),
		variableName: jsii.String("variableName"),
	},
	sns: &snsProperty{
		targetArn: jsii.String("targetArn"),

		// the properties below are optional
		payload: &payloadProperty{
			contentExpression: jsii.String("contentExpression"),
			type: jsii.String("type"),
		},
	},
	sqs: &sqsProperty{
		queueUrl: jsii.String("queueUrl"),

		// the properties below are optional
		payload: &payloadProperty{
			contentExpression: jsii.String("contentExpression"),
			type: jsii.String("type"),
		},
		useBase64: jsii.Boolean(false),
	},
}

type CfnDetectorModel_AssetPropertyTimestampProperty

type CfnDetectorModel_AssetPropertyTimestampProperty struct {
	// The timestamp, in seconds, in the Unix epoch format.
	//
	// The valid range is between 1-31556889864403199.
	TimeInSeconds *string `field:"required" json:"timeInSeconds" yaml:"timeInSeconds"`
	// The nanosecond offset converted from `timeInSeconds` .
	//
	// The valid range is between 0-999999999.
	OffsetInNanos *string `field:"optional" json:"offsetInNanos" yaml:"offsetInNanos"`
}

A structure that contains timestamp information. For more information, see [TimeInNanos](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_TimeInNanos.html) in the *AWS IoT SiteWise API Reference* .

You must use expressions for all parameters in `AssetPropertyTimestamp` . The expressions accept literals, operators, functions, references, and substitution templates.

**Examples** - For literal values, the expressions must contain single quotes. For example, the value for the `timeInSeconds` parameter can be `'1586400675'` . - For references, you must specify either variables or input values. For example, the value for the `offsetInNanos` parameter can be `$variable.time` . - For a substitution template, you must use `${}` , and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.

In the following example, the value for the `timeInSeconds` parameter uses a substitution template.

`'${$input.TemperatureInput.sensorData.timestamp / 1000}'`

For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) 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 "github.com/aws/aws-cdk-go/awscdk"

assetPropertyTimestampProperty := &assetPropertyTimestampProperty{
	timeInSeconds: jsii.String("timeInSeconds"),

	// the properties below are optional
	offsetInNanos: jsii.String("offsetInNanos"),
}

type CfnDetectorModel_AssetPropertyValueProperty

type CfnDetectorModel_AssetPropertyValueProperty struct {
	// The value to send to an asset property.
	Value interface{} `field:"required" json:"value" yaml:"value"`
	// The quality of the asset property value.
	//
	// The value must be `'GOOD'` , `'BAD'` , or `'UNCERTAIN'` .
	Quality *string `field:"optional" json:"quality" yaml:"quality"`
	// The timestamp associated with the asset property value.
	//
	// The default is the current event time.
	Timestamp interface{} `field:"optional" json:"timestamp" yaml:"timestamp"`
}

A structure that contains value information. For more information, see [AssetPropertyValue](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssetPropertyValue.html) in the *AWS IoT SiteWise API Reference* .

You must use expressions for all parameters in `AssetPropertyValue` . The expressions accept literals, operators, functions, references, and substitution templates.

**Examples** - For literal values, the expressions must contain single quotes. For example, the value for the `quality` parameter can be `'GOOD'` . - For references, you must specify either variables or input values. For example, the value for the `quality` parameter can be `$input.TemperatureInput.sensorData.quality` .

For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) 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 "github.com/aws/aws-cdk-go/awscdk"

assetPropertyValueProperty := &assetPropertyValueProperty{
	value: &assetPropertyVariantProperty{
		booleanValue: jsii.String("booleanValue"),
		doubleValue: jsii.String("doubleValue"),
		integerValue: jsii.String("integerValue"),
		stringValue: jsii.String("stringValue"),
	},

	// the properties below are optional
	quality: jsii.String("quality"),
	timestamp: &assetPropertyTimestampProperty{
		timeInSeconds: jsii.String("timeInSeconds"),

		// the properties below are optional
		offsetInNanos: jsii.String("offsetInNanos"),
	},
}

type CfnDetectorModel_AssetPropertyVariantProperty

type CfnDetectorModel_AssetPropertyVariantProperty struct {
	// The asset property value is a Boolean value that must be `'TRUE'` or `'FALSE'` .
	//
	// You must use an expression, and the evaluated result should be a Boolean value.
	BooleanValue *string `field:"optional" json:"booleanValue" yaml:"booleanValue"`
	// The asset property value is a double.
	//
	// You must use an expression, and the evaluated result should be a double.
	DoubleValue *string `field:"optional" json:"doubleValue" yaml:"doubleValue"`
	// The asset property value is an integer.
	//
	// You must use an expression, and the evaluated result should be an integer.
	IntegerValue *string `field:"optional" json:"integerValue" yaml:"integerValue"`
	// The asset property value is a string.
	//
	// You must use an expression, and the evaluated result should be a string.
	StringValue *string `field:"optional" json:"stringValue" yaml:"stringValue"`
}

A structure that contains an asset property value.

For more information, see [Variant](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_Variant.html) in the *AWS IoT SiteWise API Reference* .

You must use expressions for all parameters in `AssetPropertyVariant` . The expressions accept literals, operators, functions, references, and substitution templates.

**Examples** - For literal values, the expressions must contain single quotes. For example, the value for the `integerValue` parameter can be `'100'` . - For references, you must specify either variables or parameters. For example, the value for the `booleanValue` parameter can be `$variable.offline` . - For a substitution template, you must use `${}` , and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.

In the following example, the value for the `doubleValue` parameter uses a substitution template.

`'${$input.TemperatureInput.sensorData.temperature * 6 / 5 + 32}'`

For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *AWS IoT Events Developer Guide* .

You must specify one of the following value types, depending on the `dataType` of the specified asset property. For more information, see [AssetProperty](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssetProperty.html) in the *AWS IoT SiteWise API Reference* .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

assetPropertyVariantProperty := &assetPropertyVariantProperty{
	booleanValue: jsii.String("booleanValue"),
	doubleValue: jsii.String("doubleValue"),
	integerValue: jsii.String("integerValue"),
	stringValue: jsii.String("stringValue"),
}

type CfnDetectorModel_ClearTimerProperty

type CfnDetectorModel_ClearTimerProperty struct {
	// The name of the timer to clear.
	TimerName *string `field:"required" json:"timerName" yaml:"timerName"`
}

Information needed to clear the timer.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

clearTimerProperty := &clearTimerProperty{
	timerName: jsii.String("timerName"),
}

type CfnDetectorModel_DetectorModelDefinitionProperty

type CfnDetectorModel_DetectorModelDefinitionProperty struct {
	// The state that is entered at the creation of each detector (instance).
	InitialStateName *string `field:"required" json:"initialStateName" yaml:"initialStateName"`
	// Information about the states of the detector.
	States interface{} `field:"required" json:"states" yaml:"states"`
}

Information that defines how a detector operates.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

detectorModelDefinitionProperty := &detectorModelDefinitionProperty{
	initialStateName: jsii.String("initialStateName"),
	states: []interface{}{
		&stateProperty{
			stateName: jsii.String("stateName"),

			// the properties below are optional
			onEnter: &onEnterProperty{
				events: []interface{}{
					&eventProperty{
						eventName: jsii.String("eventName"),

						// the properties below are optional
						actions: []interface{}{
							&actionProperty{
								clearTimer: &clearTimerProperty{
									timerName: jsii.String("timerName"),
								},
								dynamoDb: &dynamoDBProperty{
									hashKeyField: jsii.String("hashKeyField"),
									hashKeyValue: jsii.String("hashKeyValue"),
									tableName: jsii.String("tableName"),

									// the properties below are optional
									hashKeyType: jsii.String("hashKeyType"),
									operation: jsii.String("operation"),
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
									payloadField: jsii.String("payloadField"),
									rangeKeyField: jsii.String("rangeKeyField"),
									rangeKeyType: jsii.String("rangeKeyType"),
									rangeKeyValue: jsii.String("rangeKeyValue"),
								},
								dynamoDBv2: &dynamoDBv2Property{
									tableName: jsii.String("tableName"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
								},
								firehose: &firehoseProperty{
									deliveryStreamName: jsii.String("deliveryStreamName"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
									separator: jsii.String("separator"),
								},
								iotEvents: &iotEventsProperty{
									inputName: jsii.String("inputName"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
								},
								iotSiteWise: &iotSiteWiseProperty{
									propertyValue: &assetPropertyValueProperty{
										value: &assetPropertyVariantProperty{
											booleanValue: jsii.String("booleanValue"),
											doubleValue: jsii.String("doubleValue"),
											integerValue: jsii.String("integerValue"),
											stringValue: jsii.String("stringValue"),
										},

										// the properties below are optional
										quality: jsii.String("quality"),
										timestamp: &assetPropertyTimestampProperty{
											timeInSeconds: jsii.String("timeInSeconds"),

											// the properties below are optional
											offsetInNanos: jsii.String("offsetInNanos"),
										},
									},

									// the properties below are optional
									assetId: jsii.String("assetId"),
									entryId: jsii.String("entryId"),
									propertyAlias: jsii.String("propertyAlias"),
									propertyId: jsii.String("propertyId"),
								},
								iotTopicPublish: &iotTopicPublishProperty{
									mqttTopic: jsii.String("mqttTopic"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
								},
								lambda: &lambdaProperty{
									functionArn: jsii.String("functionArn"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
								},
								resetTimer: &resetTimerProperty{
									timerName: jsii.String("timerName"),
								},
								setTimer: &setTimerProperty{
									timerName: jsii.String("timerName"),

									// the properties below are optional
									durationExpression: jsii.String("durationExpression"),
									seconds: jsii.Number(123),
								},
								setVariable: &setVariableProperty{
									value: jsii.String("value"),
									variableName: jsii.String("variableName"),
								},
								sns: &snsProperty{
									targetArn: jsii.String("targetArn"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
								},
								sqs: &sqsProperty{
									queueUrl: jsii.String("queueUrl"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
									useBase64: jsii.Boolean(false),
								},
							},
						},
						condition: jsii.String("condition"),
					},
				},
			},
			onExit: &onExitProperty{
				events: []interface{}{
					&eventProperty{
						eventName: jsii.String("eventName"),

						// the properties below are optional
						actions: []interface{}{
							&actionProperty{
								clearTimer: &clearTimerProperty{
									timerName: jsii.String("timerName"),
								},
								dynamoDb: &dynamoDBProperty{
									hashKeyField: jsii.String("hashKeyField"),
									hashKeyValue: jsii.String("hashKeyValue"),
									tableName: jsii.String("tableName"),

									// the properties below are optional
									hashKeyType: jsii.String("hashKeyType"),
									operation: jsii.String("operation"),
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
									payloadField: jsii.String("payloadField"),
									rangeKeyField: jsii.String("rangeKeyField"),
									rangeKeyType: jsii.String("rangeKeyType"),
									rangeKeyValue: jsii.String("rangeKeyValue"),
								},
								dynamoDBv2: &dynamoDBv2Property{
									tableName: jsii.String("tableName"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
								},
								firehose: &firehoseProperty{
									deliveryStreamName: jsii.String("deliveryStreamName"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
									separator: jsii.String("separator"),
								},
								iotEvents: &iotEventsProperty{
									inputName: jsii.String("inputName"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
								},
								iotSiteWise: &iotSiteWiseProperty{
									propertyValue: &assetPropertyValueProperty{
										value: &assetPropertyVariantProperty{
											booleanValue: jsii.String("booleanValue"),
											doubleValue: jsii.String("doubleValue"),
											integerValue: jsii.String("integerValue"),
											stringValue: jsii.String("stringValue"),
										},

										// the properties below are optional
										quality: jsii.String("quality"),
										timestamp: &assetPropertyTimestampProperty{
											timeInSeconds: jsii.String("timeInSeconds"),

											// the properties below are optional
											offsetInNanos: jsii.String("offsetInNanos"),
										},
									},

									// the properties below are optional
									assetId: jsii.String("assetId"),
									entryId: jsii.String("entryId"),
									propertyAlias: jsii.String("propertyAlias"),
									propertyId: jsii.String("propertyId"),
								},
								iotTopicPublish: &iotTopicPublishProperty{
									mqttTopic: jsii.String("mqttTopic"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
								},
								lambda: &lambdaProperty{
									functionArn: jsii.String("functionArn"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
								},
								resetTimer: &resetTimerProperty{
									timerName: jsii.String("timerName"),
								},
								setTimer: &setTimerProperty{
									timerName: jsii.String("timerName"),

									// the properties below are optional
									durationExpression: jsii.String("durationExpression"),
									seconds: jsii.Number(123),
								},
								setVariable: &setVariableProperty{
									value: jsii.String("value"),
									variableName: jsii.String("variableName"),
								},
								sns: &snsProperty{
									targetArn: jsii.String("targetArn"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
								},
								sqs: &sqsProperty{
									queueUrl: jsii.String("queueUrl"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
									useBase64: jsii.Boolean(false),
								},
							},
						},
						condition: jsii.String("condition"),
					},
				},
			},
			onInput: &onInputProperty{
				events: []interface{}{
					&eventProperty{
						eventName: jsii.String("eventName"),

						// the properties below are optional
						actions: []interface{}{
							&actionProperty{
								clearTimer: &clearTimerProperty{
									timerName: jsii.String("timerName"),
								},
								dynamoDb: &dynamoDBProperty{
									hashKeyField: jsii.String("hashKeyField"),
									hashKeyValue: jsii.String("hashKeyValue"),
									tableName: jsii.String("tableName"),

									// the properties below are optional
									hashKeyType: jsii.String("hashKeyType"),
									operation: jsii.String("operation"),
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
									payloadField: jsii.String("payloadField"),
									rangeKeyField: jsii.String("rangeKeyField"),
									rangeKeyType: jsii.String("rangeKeyType"),
									rangeKeyValue: jsii.String("rangeKeyValue"),
								},
								dynamoDBv2: &dynamoDBv2Property{
									tableName: jsii.String("tableName"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
								},
								firehose: &firehoseProperty{
									deliveryStreamName: jsii.String("deliveryStreamName"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
									separator: jsii.String("separator"),
								},
								iotEvents: &iotEventsProperty{
									inputName: jsii.String("inputName"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
								},
								iotSiteWise: &iotSiteWiseProperty{
									propertyValue: &assetPropertyValueProperty{
										value: &assetPropertyVariantProperty{
											booleanValue: jsii.String("booleanValue"),
											doubleValue: jsii.String("doubleValue"),
											integerValue: jsii.String("integerValue"),
											stringValue: jsii.String("stringValue"),
										},

										// the properties below are optional
										quality: jsii.String("quality"),
										timestamp: &assetPropertyTimestampProperty{
											timeInSeconds: jsii.String("timeInSeconds"),

											// the properties below are optional
											offsetInNanos: jsii.String("offsetInNanos"),
										},
									},

									// the properties below are optional
									assetId: jsii.String("assetId"),
									entryId: jsii.String("entryId"),
									propertyAlias: jsii.String("propertyAlias"),
									propertyId: jsii.String("propertyId"),
								},
								iotTopicPublish: &iotTopicPublishProperty{
									mqttTopic: jsii.String("mqttTopic"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
								},
								lambda: &lambdaProperty{
									functionArn: jsii.String("functionArn"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
								},
								resetTimer: &resetTimerProperty{
									timerName: jsii.String("timerName"),
								},
								setTimer: &setTimerProperty{
									timerName: jsii.String("timerName"),

									// the properties below are optional
									durationExpression: jsii.String("durationExpression"),
									seconds: jsii.Number(123),
								},
								setVariable: &setVariableProperty{
									value: jsii.String("value"),
									variableName: jsii.String("variableName"),
								},
								sns: &snsProperty{
									targetArn: jsii.String("targetArn"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
								},
								sqs: &sqsProperty{
									queueUrl: jsii.String("queueUrl"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
									useBase64: jsii.Boolean(false),
								},
							},
						},
						condition: jsii.String("condition"),
					},
				},
				transitionEvents: []interface{}{
					&transitionEventProperty{
						condition: jsii.String("condition"),
						eventName: jsii.String("eventName"),
						nextState: jsii.String("nextState"),

						// the properties below are optional
						actions: []interface{}{
							&actionProperty{
								clearTimer: &clearTimerProperty{
									timerName: jsii.String("timerName"),
								},
								dynamoDb: &dynamoDBProperty{
									hashKeyField: jsii.String("hashKeyField"),
									hashKeyValue: jsii.String("hashKeyValue"),
									tableName: jsii.String("tableName"),

									// the properties below are optional
									hashKeyType: jsii.String("hashKeyType"),
									operation: jsii.String("operation"),
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
									payloadField: jsii.String("payloadField"),
									rangeKeyField: jsii.String("rangeKeyField"),
									rangeKeyType: jsii.String("rangeKeyType"),
									rangeKeyValue: jsii.String("rangeKeyValue"),
								},
								dynamoDBv2: &dynamoDBv2Property{
									tableName: jsii.String("tableName"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
								},
								firehose: &firehoseProperty{
									deliveryStreamName: jsii.String("deliveryStreamName"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
									separator: jsii.String("separator"),
								},
								iotEvents: &iotEventsProperty{
									inputName: jsii.String("inputName"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
								},
								iotSiteWise: &iotSiteWiseProperty{
									propertyValue: &assetPropertyValueProperty{
										value: &assetPropertyVariantProperty{
											booleanValue: jsii.String("booleanValue"),
											doubleValue: jsii.String("doubleValue"),
											integerValue: jsii.String("integerValue"),
											stringValue: jsii.String("stringValue"),
										},

										// the properties below are optional
										quality: jsii.String("quality"),
										timestamp: &assetPropertyTimestampProperty{
											timeInSeconds: jsii.String("timeInSeconds"),

											// the properties below are optional
											offsetInNanos: jsii.String("offsetInNanos"),
										},
									},

									// the properties below are optional
									assetId: jsii.String("assetId"),
									entryId: jsii.String("entryId"),
									propertyAlias: jsii.String("propertyAlias"),
									propertyId: jsii.String("propertyId"),
								},
								iotTopicPublish: &iotTopicPublishProperty{
									mqttTopic: jsii.String("mqttTopic"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
								},
								lambda: &lambdaProperty{
									functionArn: jsii.String("functionArn"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
								},
								resetTimer: &resetTimerProperty{
									timerName: jsii.String("timerName"),
								},
								setTimer: &setTimerProperty{
									timerName: jsii.String("timerName"),

									// the properties below are optional
									durationExpression: jsii.String("durationExpression"),
									seconds: jsii.Number(123),
								},
								setVariable: &setVariableProperty{
									value: jsii.String("value"),
									variableName: jsii.String("variableName"),
								},
								sns: &snsProperty{
									targetArn: jsii.String("targetArn"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
								},
								sqs: &sqsProperty{
									queueUrl: jsii.String("queueUrl"),

									// the properties below are optional
									payload: &payloadProperty{
										contentExpression: jsii.String("contentExpression"),
										type: jsii.String("type"),
									},
									useBase64: jsii.Boolean(false),
								},
							},
						},
					},
				},
			},
		},
	},
}

type CfnDetectorModel_DynamoDBProperty

type CfnDetectorModel_DynamoDBProperty struct {
	// The name of the hash key (also called the partition key).
	//
	// The `hashKeyField` value must match the partition key of the target DynamoDB table.
	HashKeyField *string `field:"required" json:"hashKeyField" yaml:"hashKeyField"`
	// The value of the hash key (also called the partition key).
	HashKeyValue *string `field:"required" json:"hashKeyValue" yaml:"hashKeyValue"`
	// The name of the DynamoDB table.
	//
	// The `tableName` value must match the table name of the target DynamoDB table.
	TableName *string `field:"required" json:"tableName" yaml:"tableName"`
	// The data type for the hash key (also called the partition key). You can specify the following values:.
	//
	// - `'STRING'` - The hash key is a string.
	// - `'NUMBER'` - The hash key is a number.
	//
	// If you don't specify `hashKeyType` , the default value is `'STRING'` .
	HashKeyType *string `field:"optional" json:"hashKeyType" yaml:"hashKeyType"`
	// The type of operation to perform. You can specify the following values:.
	//
	// - `'INSERT'` - Insert data as a new item into the DynamoDB table. This item uses the specified hash key as a partition key. If you specified a range key, the item uses the range key as a sort key.
	// - `'UPDATE'` - Update an existing item of the DynamoDB table with new data. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key.
	// - `'DELETE'` - Delete an existing item of the DynamoDB table. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key.
	//
	// If you don't specify this parameter, AWS IoT Events triggers the `'INSERT'` operation.
	Operation *string `field:"optional" json:"operation" yaml:"operation"`
	// Information needed to configure the payload.
	//
	// By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression` .
	Payload interface{} `field:"optional" json:"payload" yaml:"payload"`
	// The name of the DynamoDB column that receives the action payload.
	//
	// If you don't specify this parameter, the name of the DynamoDB column is `payload` .
	PayloadField *string `field:"optional" json:"payloadField" yaml:"payloadField"`
	// The name of the range key (also called the sort key).
	//
	// The `rangeKeyField` value must match the sort key of the target DynamoDB table.
	RangeKeyField *string `field:"optional" json:"rangeKeyField" yaml:"rangeKeyField"`
	// The data type for the range key (also called the sort key), You can specify the following values:.
	//
	// - `'STRING'` - The range key is a string.
	// - `'NUMBER'` - The range key is number.
	//
	// If you don't specify `rangeKeyField` , the default value is `'STRING'` .
	RangeKeyType *string `field:"optional" json:"rangeKeyType" yaml:"rangeKeyType"`
	// The value of the range key (also called the sort key).
	RangeKeyValue *string `field:"optional" json:"rangeKeyValue" yaml:"rangeKeyValue"`
}

Defines an action to write to the Amazon DynamoDB table that you created.

The standard action payload contains all the information about the detector model instance and the event that triggered the action. You can customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html) . One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify.

You must use expressions for all parameters in `DynamoDBAction` . The expressions accept literals, operators, functions, references, and substitution templates.

**Examples** - For literal values, the expressions must contain single quotes. For example, the value for the `hashKeyType` parameter can be `'STRING'` . - For references, you must specify either variables or input values. For example, the value for the `hashKeyField` parameter can be `$input.GreenhouseInput.name` . - For a substitution template, you must use `${}` , and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.

In the following example, the value for the `hashKeyValue` parameter uses a substitution template.

`'${$input.GreenhouseInput.temperature * 6 / 5 + 32} in Fahrenheit'` - For a string concatenation, you must use `+` . A string concatenation can also contain a combination of literals, operators, functions, references, and substitution templates.

In the following example, the value for the `tableName` parameter uses a string concatenation.

`'GreenhouseTemperatureTable ' + $input.GreenhouseInput.date`

For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *AWS IoT Events Developer Guide* .

If the defined payload type is a string, `DynamoDBAction` writes non-JSON data to the DynamoDB table as binary data. The DynamoDB console displays the data as Base64-encoded text. The value for the `payloadField` parameter is `<payload-field>_raw` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

dynamoDBProperty := &dynamoDBProperty{
	hashKeyField: jsii.String("hashKeyField"),
	hashKeyValue: jsii.String("hashKeyValue"),
	tableName: jsii.String("tableName"),

	// the properties below are optional
	hashKeyType: jsii.String("hashKeyType"),
	operation: jsii.String("operation"),
	payload: &payloadProperty{
		contentExpression: jsii.String("contentExpression"),
		type: jsii.String("type"),
	},
	payloadField: jsii.String("payloadField"),
	rangeKeyField: jsii.String("rangeKeyField"),
	rangeKeyType: jsii.String("rangeKeyType"),
	rangeKeyValue: jsii.String("rangeKeyValue"),
}

type CfnDetectorModel_DynamoDBv2Property

type CfnDetectorModel_DynamoDBv2Property struct {
	// The name of the DynamoDB table.
	TableName *string `field:"required" json:"tableName" yaml:"tableName"`
	// Information needed to configure the payload.
	//
	// By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression` .
	Payload interface{} `field:"optional" json:"payload" yaml:"payload"`
}

Defines an action to write to the Amazon DynamoDB table that you created.

The default action payload contains all the information about the detector model instance and the event that triggered the action. You can customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html) . A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify.

You must use expressions for all parameters in `DynamoDBv2Action` . The expressions accept literals, operators, functions, references, and substitution templates.

**Examples** - For literal values, the expressions must contain single quotes. For example, the value for the `tableName` parameter can be `'GreenhouseTemperatureTable'` . - For references, you must specify either variables or input values. For example, the value for the `tableName` parameter can be `$variable.ddbtableName` . - For a substitution template, you must use `${}` , and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.

In the following example, the value for the `contentExpression` parameter in `Payload` uses a substitution template.

`'{\"sensorID\": \"${$input.GreenhouseInput.sensor_id}\", \"temperature\": \"${$input.GreenhouseInput.temperature * 9 / 5 + 32}\"}'` - For a string concatenation, you must use `+` . A string concatenation can also contain a combination of literals, operators, functions, references, and substitution templates.

In the following example, the value for the `tableName` parameter uses a string concatenation.

`'GreenhouseTemperatureTable ' + $input.GreenhouseInput.date`

For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *AWS IoT Events Developer Guide* .

The value for the `type` parameter in `Payload` must be `JSON` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

dynamoDBv2Property := &dynamoDBv2Property{
	tableName: jsii.String("tableName"),

	// the properties below are optional
	payload: &payloadProperty{
		contentExpression: jsii.String("contentExpression"),
		type: jsii.String("type"),
	},
}

type CfnDetectorModel_EventProperty

type CfnDetectorModel_EventProperty struct {
	// The name of the event.
	EventName *string `field:"required" json:"eventName" yaml:"eventName"`
	// The actions to be performed.
	Actions interface{} `field:"optional" json:"actions" yaml:"actions"`
	// Optional.
	//
	// The Boolean expression that, when TRUE, causes the `actions` to be performed. If not present, the actions are performed (=TRUE). If the expression result is not a Boolean value, the actions are not performed (=FALSE).
	Condition *string `field:"optional" json:"condition" yaml:"condition"`
}

Specifies the `actions` to be performed when the `condition` evaluates to TRUE.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

eventProperty := &eventProperty{
	eventName: jsii.String("eventName"),

	// the properties below are optional
	actions: []interface{}{
		&actionProperty{
			clearTimer: &clearTimerProperty{
				timerName: jsii.String("timerName"),
			},
			dynamoDb: &dynamoDBProperty{
				hashKeyField: jsii.String("hashKeyField"),
				hashKeyValue: jsii.String("hashKeyValue"),
				tableName: jsii.String("tableName"),

				// the properties below are optional
				hashKeyType: jsii.String("hashKeyType"),
				operation: jsii.String("operation"),
				payload: &payloadProperty{
					contentExpression: jsii.String("contentExpression"),
					type: jsii.String("type"),
				},
				payloadField: jsii.String("payloadField"),
				rangeKeyField: jsii.String("rangeKeyField"),
				rangeKeyType: jsii.String("rangeKeyType"),
				rangeKeyValue: jsii.String("rangeKeyValue"),
			},
			dynamoDBv2: &dynamoDBv2Property{
				tableName: jsii.String("tableName"),

				// the properties below are optional
				payload: &payloadProperty{
					contentExpression: jsii.String("contentExpression"),
					type: jsii.String("type"),
				},
			},
			firehose: &firehoseProperty{
				deliveryStreamName: jsii.String("deliveryStreamName"),

				// the properties below are optional
				payload: &payloadProperty{
					contentExpression: jsii.String("contentExpression"),
					type: jsii.String("type"),
				},
				separator: jsii.String("separator"),
			},
			iotEvents: &iotEventsProperty{
				inputName: jsii.String("inputName"),

				// the properties below are optional
				payload: &payloadProperty{
					contentExpression: jsii.String("contentExpression"),
					type: jsii.String("type"),
				},
			},
			iotSiteWise: &iotSiteWiseProperty{
				propertyValue: &assetPropertyValueProperty{
					value: &assetPropertyVariantProperty{
						booleanValue: jsii.String("booleanValue"),
						doubleValue: jsii.String("doubleValue"),
						integerValue: jsii.String("integerValue"),
						stringValue: jsii.String("stringValue"),
					},

					// the properties below are optional
					quality: jsii.String("quality"),
					timestamp: &assetPropertyTimestampProperty{
						timeInSeconds: jsii.String("timeInSeconds"),

						// the properties below are optional
						offsetInNanos: jsii.String("offsetInNanos"),
					},
				},

				// the properties below are optional
				assetId: jsii.String("assetId"),
				entryId: jsii.String("entryId"),
				propertyAlias: jsii.String("propertyAlias"),
				propertyId: jsii.String("propertyId"),
			},
			iotTopicPublish: &iotTopicPublishProperty{
				mqttTopic: jsii.String("mqttTopic"),

				// the properties below are optional
				payload: &payloadProperty{
					contentExpression: jsii.String("contentExpression"),
					type: jsii.String("type"),
				},
			},
			lambda: &lambdaProperty{
				functionArn: jsii.String("functionArn"),

				// the properties below are optional
				payload: &payloadProperty{
					contentExpression: jsii.String("contentExpression"),
					type: jsii.String("type"),
				},
			},
			resetTimer: &resetTimerProperty{
				timerName: jsii.String("timerName"),
			},
			setTimer: &setTimerProperty{
				timerName: jsii.String("timerName"),

				// the properties below are optional
				durationExpression: jsii.String("durationExpression"),
				seconds: jsii.Number(123),
			},
			setVariable: &setVariableProperty{
				value: jsii.String("value"),
				variableName: jsii.String("variableName"),
			},
			sns: &snsProperty{
				targetArn: jsii.String("targetArn"),

				// the properties below are optional
				payload: &payloadProperty{
					contentExpression: jsii.String("contentExpression"),
					type: jsii.String("type"),
				},
			},
			sqs: &sqsProperty{
				queueUrl: jsii.String("queueUrl"),

				// the properties below are optional
				payload: &payloadProperty{
					contentExpression: jsii.String("contentExpression"),
					type: jsii.String("type"),
				},
				useBase64: jsii.Boolean(false),
			},
		},
	},
	condition: jsii.String("condition"),
}

type CfnDetectorModel_FirehoseProperty

type CfnDetectorModel_FirehoseProperty struct {
	// The name of the Kinesis Data Firehose delivery stream where the data is written.
	DeliveryStreamName *string `field:"required" json:"deliveryStreamName" yaml:"deliveryStreamName"`
	// You can configure the action payload when you send a message to an Amazon Kinesis Data Firehose delivery stream.
	Payload interface{} `field:"optional" json:"payload" yaml:"payload"`
	// A character separator that is used to separate records written to the Kinesis Data Firehose delivery stream.
	//
	// Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).
	Separator *string `field:"optional" json:"separator" yaml:"separator"`
}

Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

firehoseProperty := &firehoseProperty{
	deliveryStreamName: jsii.String("deliveryStreamName"),

	// the properties below are optional
	payload: &payloadProperty{
		contentExpression: jsii.String("contentExpression"),
		type: jsii.String("type"),
	},
	separator: jsii.String("separator"),
}

type CfnDetectorModel_IotEventsProperty

type CfnDetectorModel_IotEventsProperty struct {
	// The name of the AWS IoT Events input where the data is sent.
	InputName *string `field:"required" json:"inputName" yaml:"inputName"`
	// You can configure the action payload when you send a message to an AWS IoT Events input.
	Payload interface{} `field:"optional" json:"payload" yaml:"payload"`
}

Sends an AWS IoT Events input, passing in information about the detector model instance and the event that triggered the action.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

iotEventsProperty := &iotEventsProperty{
	inputName: jsii.String("inputName"),

	// the properties below are optional
	payload: &payloadProperty{
		contentExpression: jsii.String("contentExpression"),
		type: jsii.String("type"),
	},
}

type CfnDetectorModel_IotSiteWiseProperty

type CfnDetectorModel_IotSiteWiseProperty struct {
	// The value to send to the asset property.
	//
	// This value contains timestamp, quality, and value (TQV) information.
	PropertyValue interface{} `field:"required" json:"propertyValue" yaml:"propertyValue"`
	// The ID of the asset that has the specified property.
	AssetId *string `field:"optional" json:"assetId" yaml:"assetId"`
	// A unique identifier for this entry.
	//
	// You can use the entry ID to track which data entry causes an error in case of failure. The default is a new unique identifier.
	EntryId *string `field:"optional" json:"entryId" yaml:"entryId"`
	// The alias of the asset property.
	PropertyAlias *string `field:"optional" json:"propertyAlias" yaml:"propertyAlias"`
	// The ID of the asset property.
	PropertyId *string `field:"optional" json:"propertyId" yaml:"propertyId"`
}

Sends information about the detector model instance and the event that triggered the action to a specified asset property in AWS IoT SiteWise .

You must use expressions for all parameters in `IotSiteWiseAction` . The expressions accept literals, operators, functions, references, and substitutions templates.

**Examples** - For literal values, the expressions must contain single quotes. For example, the value for the `propertyAlias` parameter can be `'/company/windfarm/3/turbine/7/temperature'` . - For references, you must specify either variables or input values. For example, the value for the `assetId` parameter can be `$input.TurbineInput.assetId1` . - For a substitution template, you must use `${}` , and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.

In the following example, the value for the `propertyAlias` parameter uses a substitution template.

`'company/windfarm/${$input.TemperatureInput.sensorData.windfarmID}/turbine/ ${$input.TemperatureInput.sensorData.turbineID}/temperature'`

You must specify either `propertyAlias` or both `assetId` and `propertyId` to identify the target asset property in AWS IoT SiteWise .

For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) 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 "github.com/aws/aws-cdk-go/awscdk"

iotSiteWiseProperty := &iotSiteWiseProperty{
	propertyValue: &assetPropertyValueProperty{
		value: &assetPropertyVariantProperty{
			booleanValue: jsii.String("booleanValue"),
			doubleValue: jsii.String("doubleValue"),
			integerValue: jsii.String("integerValue"),
			stringValue: jsii.String("stringValue"),
		},

		// the properties below are optional
		quality: jsii.String("quality"),
		timestamp: &assetPropertyTimestampProperty{
			timeInSeconds: jsii.String("timeInSeconds"),

			// the properties below are optional
			offsetInNanos: jsii.String("offsetInNanos"),
		},
	},

	// the properties below are optional
	assetId: jsii.String("assetId"),
	entryId: jsii.String("entryId"),
	propertyAlias: jsii.String("propertyAlias"),
	propertyId: jsii.String("propertyId"),
}

type CfnDetectorModel_IotTopicPublishProperty

type CfnDetectorModel_IotTopicPublishProperty struct {
	// The MQTT topic of the message.
	//
	// You can use a string expression that includes variables ( `$variable.<variable-name>` ) and input values ( `$input.<input-name>.<path-to-datum>` ) as the topic string.
	MqttTopic *string `field:"required" json:"mqttTopic" yaml:"mqttTopic"`
	// You can configure the action payload when you publish a message to an AWS IoT Core topic.
	Payload interface{} `field:"optional" json:"payload" yaml:"payload"`
}

Information required to publish the MQTT message through the AWS IoT message broker.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

iotTopicPublishProperty := &iotTopicPublishProperty{
	mqttTopic: jsii.String("mqttTopic"),

	// the properties below are optional
	payload: &payloadProperty{
		contentExpression: jsii.String("contentExpression"),
		type: jsii.String("type"),
	},
}

type CfnDetectorModel_LambdaProperty

type CfnDetectorModel_LambdaProperty struct {
	// The ARN of the Lambda function that is executed.
	FunctionArn *string `field:"required" json:"functionArn" yaml:"functionArn"`
	// You can configure the action payload when you send a message to a Lambda function.
	Payload interface{} `field:"optional" json:"payload" yaml:"payload"`
}

Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

lambdaProperty := &lambdaProperty{
	functionArn: jsii.String("functionArn"),

	// the properties below are optional
	payload: &payloadProperty{
		contentExpression: jsii.String("contentExpression"),
		type: jsii.String("type"),
	},
}

type CfnDetectorModel_OnEnterProperty

type CfnDetectorModel_OnEnterProperty struct {
	// Specifies the actions that are performed when the state is entered and the `condition` is `TRUE` .
	Events interface{} `field:"optional" json:"events" yaml:"events"`
}

When entering this state, perform these `actions` if the `condition` is TRUE.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

onEnterProperty := &onEnterProperty{
	events: []interface{}{
		&eventProperty{
			eventName: jsii.String("eventName"),

			// the properties below are optional
			actions: []interface{}{
				&actionProperty{
					clearTimer: &clearTimerProperty{
						timerName: jsii.String("timerName"),
					},
					dynamoDb: &dynamoDBProperty{
						hashKeyField: jsii.String("hashKeyField"),
						hashKeyValue: jsii.String("hashKeyValue"),
						tableName: jsii.String("tableName"),

						// the properties below are optional
						hashKeyType: jsii.String("hashKeyType"),
						operation: jsii.String("operation"),
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
						payloadField: jsii.String("payloadField"),
						rangeKeyField: jsii.String("rangeKeyField"),
						rangeKeyType: jsii.String("rangeKeyType"),
						rangeKeyValue: jsii.String("rangeKeyValue"),
					},
					dynamoDBv2: &dynamoDBv2Property{
						tableName: jsii.String("tableName"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
					},
					firehose: &firehoseProperty{
						deliveryStreamName: jsii.String("deliveryStreamName"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
						separator: jsii.String("separator"),
					},
					iotEvents: &iotEventsProperty{
						inputName: jsii.String("inputName"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
					},
					iotSiteWise: &iotSiteWiseProperty{
						propertyValue: &assetPropertyValueProperty{
							value: &assetPropertyVariantProperty{
								booleanValue: jsii.String("booleanValue"),
								doubleValue: jsii.String("doubleValue"),
								integerValue: jsii.String("integerValue"),
								stringValue: jsii.String("stringValue"),
							},

							// the properties below are optional
							quality: jsii.String("quality"),
							timestamp: &assetPropertyTimestampProperty{
								timeInSeconds: jsii.String("timeInSeconds"),

								// the properties below are optional
								offsetInNanos: jsii.String("offsetInNanos"),
							},
						},

						// the properties below are optional
						assetId: jsii.String("assetId"),
						entryId: jsii.String("entryId"),
						propertyAlias: jsii.String("propertyAlias"),
						propertyId: jsii.String("propertyId"),
					},
					iotTopicPublish: &iotTopicPublishProperty{
						mqttTopic: jsii.String("mqttTopic"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
					},
					lambda: &lambdaProperty{
						functionArn: jsii.String("functionArn"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
					},
					resetTimer: &resetTimerProperty{
						timerName: jsii.String("timerName"),
					},
					setTimer: &setTimerProperty{
						timerName: jsii.String("timerName"),

						// the properties below are optional
						durationExpression: jsii.String("durationExpression"),
						seconds: jsii.Number(123),
					},
					setVariable: &setVariableProperty{
						value: jsii.String("value"),
						variableName: jsii.String("variableName"),
					},
					sns: &snsProperty{
						targetArn: jsii.String("targetArn"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
					},
					sqs: &sqsProperty{
						queueUrl: jsii.String("queueUrl"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
						useBase64: jsii.Boolean(false),
					},
				},
			},
			condition: jsii.String("condition"),
		},
	},
}

type CfnDetectorModel_OnExitProperty

type CfnDetectorModel_OnExitProperty struct {
	// Specifies the `actions` that are performed when the state is exited and the `condition` is `TRUE` .
	Events interface{} `field:"optional" json:"events" yaml:"events"`
}

When exiting this state, perform these `actions` if the specified `condition` is `TRUE` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

onExitProperty := &onExitProperty{
	events: []interface{}{
		&eventProperty{
			eventName: jsii.String("eventName"),

			// the properties below are optional
			actions: []interface{}{
				&actionProperty{
					clearTimer: &clearTimerProperty{
						timerName: jsii.String("timerName"),
					},
					dynamoDb: &dynamoDBProperty{
						hashKeyField: jsii.String("hashKeyField"),
						hashKeyValue: jsii.String("hashKeyValue"),
						tableName: jsii.String("tableName"),

						// the properties below are optional
						hashKeyType: jsii.String("hashKeyType"),
						operation: jsii.String("operation"),
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
						payloadField: jsii.String("payloadField"),
						rangeKeyField: jsii.String("rangeKeyField"),
						rangeKeyType: jsii.String("rangeKeyType"),
						rangeKeyValue: jsii.String("rangeKeyValue"),
					},
					dynamoDBv2: &dynamoDBv2Property{
						tableName: jsii.String("tableName"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
					},
					firehose: &firehoseProperty{
						deliveryStreamName: jsii.String("deliveryStreamName"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
						separator: jsii.String("separator"),
					},
					iotEvents: &iotEventsProperty{
						inputName: jsii.String("inputName"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
					},
					iotSiteWise: &iotSiteWiseProperty{
						propertyValue: &assetPropertyValueProperty{
							value: &assetPropertyVariantProperty{
								booleanValue: jsii.String("booleanValue"),
								doubleValue: jsii.String("doubleValue"),
								integerValue: jsii.String("integerValue"),
								stringValue: jsii.String("stringValue"),
							},

							// the properties below are optional
							quality: jsii.String("quality"),
							timestamp: &assetPropertyTimestampProperty{
								timeInSeconds: jsii.String("timeInSeconds"),

								// the properties below are optional
								offsetInNanos: jsii.String("offsetInNanos"),
							},
						},

						// the properties below are optional
						assetId: jsii.String("assetId"),
						entryId: jsii.String("entryId"),
						propertyAlias: jsii.String("propertyAlias"),
						propertyId: jsii.String("propertyId"),
					},
					iotTopicPublish: &iotTopicPublishProperty{
						mqttTopic: jsii.String("mqttTopic"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
					},
					lambda: &lambdaProperty{
						functionArn: jsii.String("functionArn"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
					},
					resetTimer: &resetTimerProperty{
						timerName: jsii.String("timerName"),
					},
					setTimer: &setTimerProperty{
						timerName: jsii.String("timerName"),

						// the properties below are optional
						durationExpression: jsii.String("durationExpression"),
						seconds: jsii.Number(123),
					},
					setVariable: &setVariableProperty{
						value: jsii.String("value"),
						variableName: jsii.String("variableName"),
					},
					sns: &snsProperty{
						targetArn: jsii.String("targetArn"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
					},
					sqs: &sqsProperty{
						queueUrl: jsii.String("queueUrl"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
						useBase64: jsii.Boolean(false),
					},
				},
			},
			condition: jsii.String("condition"),
		},
	},
}

type CfnDetectorModel_OnInputProperty

type CfnDetectorModel_OnInputProperty struct {
	// Specifies the actions performed when the `condition` evaluates to TRUE.
	Events interface{} `field:"optional" json:"events" yaml:"events"`
	// Specifies the actions performed, and the next state entered, when a `condition` evaluates to TRUE.
	TransitionEvents interface{} `field:"optional" json:"transitionEvents" yaml:"transitionEvents"`
}

Specifies the actions performed when the `condition` evaluates to TRUE.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

onInputProperty := &onInputProperty{
	events: []interface{}{
		&eventProperty{
			eventName: jsii.String("eventName"),

			// the properties below are optional
			actions: []interface{}{
				&actionProperty{
					clearTimer: &clearTimerProperty{
						timerName: jsii.String("timerName"),
					},
					dynamoDb: &dynamoDBProperty{
						hashKeyField: jsii.String("hashKeyField"),
						hashKeyValue: jsii.String("hashKeyValue"),
						tableName: jsii.String("tableName"),

						// the properties below are optional
						hashKeyType: jsii.String("hashKeyType"),
						operation: jsii.String("operation"),
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
						payloadField: jsii.String("payloadField"),
						rangeKeyField: jsii.String("rangeKeyField"),
						rangeKeyType: jsii.String("rangeKeyType"),
						rangeKeyValue: jsii.String("rangeKeyValue"),
					},
					dynamoDBv2: &dynamoDBv2Property{
						tableName: jsii.String("tableName"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
					},
					firehose: &firehoseProperty{
						deliveryStreamName: jsii.String("deliveryStreamName"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
						separator: jsii.String("separator"),
					},
					iotEvents: &iotEventsProperty{
						inputName: jsii.String("inputName"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
					},
					iotSiteWise: &iotSiteWiseProperty{
						propertyValue: &assetPropertyValueProperty{
							value: &assetPropertyVariantProperty{
								booleanValue: jsii.String("booleanValue"),
								doubleValue: jsii.String("doubleValue"),
								integerValue: jsii.String("integerValue"),
								stringValue: jsii.String("stringValue"),
							},

							// the properties below are optional
							quality: jsii.String("quality"),
							timestamp: &assetPropertyTimestampProperty{
								timeInSeconds: jsii.String("timeInSeconds"),

								// the properties below are optional
								offsetInNanos: jsii.String("offsetInNanos"),
							},
						},

						// the properties below are optional
						assetId: jsii.String("assetId"),
						entryId: jsii.String("entryId"),
						propertyAlias: jsii.String("propertyAlias"),
						propertyId: jsii.String("propertyId"),
					},
					iotTopicPublish: &iotTopicPublishProperty{
						mqttTopic: jsii.String("mqttTopic"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
					},
					lambda: &lambdaProperty{
						functionArn: jsii.String("functionArn"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
					},
					resetTimer: &resetTimerProperty{
						timerName: jsii.String("timerName"),
					},
					setTimer: &setTimerProperty{
						timerName: jsii.String("timerName"),

						// the properties below are optional
						durationExpression: jsii.String("durationExpression"),
						seconds: jsii.Number(123),
					},
					setVariable: &setVariableProperty{
						value: jsii.String("value"),
						variableName: jsii.String("variableName"),
					},
					sns: &snsProperty{
						targetArn: jsii.String("targetArn"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
					},
					sqs: &sqsProperty{
						queueUrl: jsii.String("queueUrl"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
						useBase64: jsii.Boolean(false),
					},
				},
			},
			condition: jsii.String("condition"),
		},
	},
	transitionEvents: []interface{}{
		&transitionEventProperty{
			condition: jsii.String("condition"),
			eventName: jsii.String("eventName"),
			nextState: jsii.String("nextState"),

			// the properties below are optional
			actions: []interface{}{
				&actionProperty{
					clearTimer: &clearTimerProperty{
						timerName: jsii.String("timerName"),
					},
					dynamoDb: &dynamoDBProperty{
						hashKeyField: jsii.String("hashKeyField"),
						hashKeyValue: jsii.String("hashKeyValue"),
						tableName: jsii.String("tableName"),

						// the properties below are optional
						hashKeyType: jsii.String("hashKeyType"),
						operation: jsii.String("operation"),
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
						payloadField: jsii.String("payloadField"),
						rangeKeyField: jsii.String("rangeKeyField"),
						rangeKeyType: jsii.String("rangeKeyType"),
						rangeKeyValue: jsii.String("rangeKeyValue"),
					},
					dynamoDBv2: &dynamoDBv2Property{
						tableName: jsii.String("tableName"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
					},
					firehose: &firehoseProperty{
						deliveryStreamName: jsii.String("deliveryStreamName"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
						separator: jsii.String("separator"),
					},
					iotEvents: &iotEventsProperty{
						inputName: jsii.String("inputName"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
					},
					iotSiteWise: &iotSiteWiseProperty{
						propertyValue: &assetPropertyValueProperty{
							value: &assetPropertyVariantProperty{
								booleanValue: jsii.String("booleanValue"),
								doubleValue: jsii.String("doubleValue"),
								integerValue: jsii.String("integerValue"),
								stringValue: jsii.String("stringValue"),
							},

							// the properties below are optional
							quality: jsii.String("quality"),
							timestamp: &assetPropertyTimestampProperty{
								timeInSeconds: jsii.String("timeInSeconds"),

								// the properties below are optional
								offsetInNanos: jsii.String("offsetInNanos"),
							},
						},

						// the properties below are optional
						assetId: jsii.String("assetId"),
						entryId: jsii.String("entryId"),
						propertyAlias: jsii.String("propertyAlias"),
						propertyId: jsii.String("propertyId"),
					},
					iotTopicPublish: &iotTopicPublishProperty{
						mqttTopic: jsii.String("mqttTopic"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
					},
					lambda: &lambdaProperty{
						functionArn: jsii.String("functionArn"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
					},
					resetTimer: &resetTimerProperty{
						timerName: jsii.String("timerName"),
					},
					setTimer: &setTimerProperty{
						timerName: jsii.String("timerName"),

						// the properties below are optional
						durationExpression: jsii.String("durationExpression"),
						seconds: jsii.Number(123),
					},
					setVariable: &setVariableProperty{
						value: jsii.String("value"),
						variableName: jsii.String("variableName"),
					},
					sns: &snsProperty{
						targetArn: jsii.String("targetArn"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
					},
					sqs: &sqsProperty{
						queueUrl: jsii.String("queueUrl"),

						// the properties below are optional
						payload: &payloadProperty{
							contentExpression: jsii.String("contentExpression"),
							type: jsii.String("type"),
						},
						useBase64: jsii.Boolean(false),
					},
				},
			},
		},
	},
}

type CfnDetectorModel_PayloadProperty

type CfnDetectorModel_PayloadProperty struct {
	// The content of the payload.
	//
	// You can use a string expression that includes quoted strings ( `'<string>'` ), variables ( `$variable.<variable-name>` ), input values ( `$input.<input-name>.<path-to-datum>` ), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.
	ContentExpression *string `field:"required" json:"contentExpression" yaml:"contentExpression"`
	// The value of the payload type can be either `STRING` or `JSON` .
	Type *string `field:"required" json:"type" yaml:"type"`
}

Information needed to configure the payload.

By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

payloadProperty := &payloadProperty{
	contentExpression: jsii.String("contentExpression"),
	type: jsii.String("type"),
}

type CfnDetectorModel_ResetTimerProperty

type CfnDetectorModel_ResetTimerProperty struct {
	// The name of the timer to reset.
	TimerName *string `field:"required" json:"timerName" yaml:"timerName"`
}

Information required to reset the timer.

The timer is reset to the previously evaluated result of the duration. The duration expression isn't reevaluated when you reset the timer.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

resetTimerProperty := &resetTimerProperty{
	timerName: jsii.String("timerName"),
}

type CfnDetectorModel_SetTimerProperty

type CfnDetectorModel_SetTimerProperty struct {
	// The name of the timer.
	TimerName *string `field:"required" json:"timerName" yaml:"timerName"`
	// The duration of the timer, in seconds.
	//
	// You can use a string expression that includes numbers, variables ( `$variable.<variable-name>` ), and input values ( `$input.<input-name>.<path-to-datum>` ) as the duration. The range of the duration is 1-31622400 seconds. To ensure accuracy, the minimum duration is 60 seconds. The evaluated result of the duration is rounded down to the nearest whole number.
	DurationExpression *string `field:"optional" json:"durationExpression" yaml:"durationExpression"`
	// The number of seconds until the timer expires.
	//
	// The minimum value is 60 seconds to ensure accuracy. The maximum value is 31622400 seconds.
	Seconds *float64 `field:"optional" json:"seconds" yaml:"seconds"`
}

Information needed to set the timer.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

setTimerProperty := &setTimerProperty{
	timerName: jsii.String("timerName"),

	// the properties below are optional
	durationExpression: jsii.String("durationExpression"),
	seconds: jsii.Number(123),
}

type CfnDetectorModel_SetVariableProperty

type CfnDetectorModel_SetVariableProperty struct {
	// The new value of the variable.
	Value *string `field:"required" json:"value" yaml:"value"`
	// The name of the variable.
	VariableName *string `field:"required" json:"variableName" yaml:"variableName"`
}

Information about the variable and its new value.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

setVariableProperty := &setVariableProperty{
	value: jsii.String("value"),
	variableName: jsii.String("variableName"),
}

type CfnDetectorModel_SnsProperty

type CfnDetectorModel_SnsProperty struct {
	// The ARN of the Amazon SNS target where the message is sent.
	TargetArn *string `field:"required" json:"targetArn" yaml:"targetArn"`
	// You can configure the action payload when you send a message as an Amazon SNS push notification.
	Payload interface{} `field:"optional" json:"payload" yaml:"payload"`
}

Information required to publish the Amazon SNS message.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

snsProperty := &snsProperty{
	targetArn: jsii.String("targetArn"),

	// the properties below are optional
	payload: &payloadProperty{
		contentExpression: jsii.String("contentExpression"),
		type: jsii.String("type"),
	},
}

type CfnDetectorModel_SqsProperty

type CfnDetectorModel_SqsProperty struct {
	// The URL of the SQS queue where the data is written.
	QueueUrl *string `field:"required" json:"queueUrl" yaml:"queueUrl"`
	// You can configure the action payload when you send a message to an Amazon SQS queue.
	Payload interface{} `field:"optional" json:"payload" yaml:"payload"`
	// Set this to TRUE if you want the data to be base-64 encoded before it is written to the queue.
	//
	// Otherwise, set this to FALSE.
	UseBase64 interface{} `field:"optional" json:"useBase64" yaml:"useBase64"`
}

Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

sqsProperty := &sqsProperty{
	queueUrl: jsii.String("queueUrl"),

	// the properties below are optional
	payload: &payloadProperty{
		contentExpression: jsii.String("contentExpression"),
		type: jsii.String("type"),
	},
	useBase64: jsii.Boolean(false),
}

type CfnDetectorModel_StateProperty

type CfnDetectorModel_StateProperty struct {
	// The name of the state.
	StateName *string `field:"required" json:"stateName" yaml:"stateName"`
	// When entering this state, perform these `actions` if the `condition` is TRUE.
	OnEnter interface{} `field:"optional" json:"onEnter" yaml:"onEnter"`
	// When exiting this state, perform these `actions` if the specified `condition` is `TRUE` .
	OnExit interface{} `field:"optional" json:"onExit" yaml:"onExit"`
	// When an input is received and the `condition` is TRUE, perform the specified `actions` .
	OnInput interface{} `field:"optional" json:"onInput" yaml:"onInput"`
}

Information that defines a state of a detector.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

stateProperty := &stateProperty{
	stateName: jsii.String("stateName"),

	// the properties below are optional
	onEnter: &onEnterProperty{
		events: []interface{}{
			&eventProperty{
				eventName: jsii.String("eventName"),

				// the properties below are optional
				actions: []interface{}{
					&actionProperty{
						clearTimer: &clearTimerProperty{
							timerName: jsii.String("timerName"),
						},
						dynamoDb: &dynamoDBProperty{
							hashKeyField: jsii.String("hashKeyField"),
							hashKeyValue: jsii.String("hashKeyValue"),
							tableName: jsii.String("tableName"),

							// the properties below are optional
							hashKeyType: jsii.String("hashKeyType"),
							operation: jsii.String("operation"),
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
							payloadField: jsii.String("payloadField"),
							rangeKeyField: jsii.String("rangeKeyField"),
							rangeKeyType: jsii.String("rangeKeyType"),
							rangeKeyValue: jsii.String("rangeKeyValue"),
						},
						dynamoDBv2: &dynamoDBv2Property{
							tableName: jsii.String("tableName"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
						},
						firehose: &firehoseProperty{
							deliveryStreamName: jsii.String("deliveryStreamName"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
							separator: jsii.String("separator"),
						},
						iotEvents: &iotEventsProperty{
							inputName: jsii.String("inputName"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
						},
						iotSiteWise: &iotSiteWiseProperty{
							propertyValue: &assetPropertyValueProperty{
								value: &assetPropertyVariantProperty{
									booleanValue: jsii.String("booleanValue"),
									doubleValue: jsii.String("doubleValue"),
									integerValue: jsii.String("integerValue"),
									stringValue: jsii.String("stringValue"),
								},

								// the properties below are optional
								quality: jsii.String("quality"),
								timestamp: &assetPropertyTimestampProperty{
									timeInSeconds: jsii.String("timeInSeconds"),

									// the properties below are optional
									offsetInNanos: jsii.String("offsetInNanos"),
								},
							},

							// the properties below are optional
							assetId: jsii.String("assetId"),
							entryId: jsii.String("entryId"),
							propertyAlias: jsii.String("propertyAlias"),
							propertyId: jsii.String("propertyId"),
						},
						iotTopicPublish: &iotTopicPublishProperty{
							mqttTopic: jsii.String("mqttTopic"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
						},
						lambda: &lambdaProperty{
							functionArn: jsii.String("functionArn"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
						},
						resetTimer: &resetTimerProperty{
							timerName: jsii.String("timerName"),
						},
						setTimer: &setTimerProperty{
							timerName: jsii.String("timerName"),

							// the properties below are optional
							durationExpression: jsii.String("durationExpression"),
							seconds: jsii.Number(123),
						},
						setVariable: &setVariableProperty{
							value: jsii.String("value"),
							variableName: jsii.String("variableName"),
						},
						sns: &snsProperty{
							targetArn: jsii.String("targetArn"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
						},
						sqs: &sqsProperty{
							queueUrl: jsii.String("queueUrl"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
							useBase64: jsii.Boolean(false),
						},
					},
				},
				condition: jsii.String("condition"),
			},
		},
	},
	onExit: &onExitProperty{
		events: []interface{}{
			&eventProperty{
				eventName: jsii.String("eventName"),

				// the properties below are optional
				actions: []interface{}{
					&actionProperty{
						clearTimer: &clearTimerProperty{
							timerName: jsii.String("timerName"),
						},
						dynamoDb: &dynamoDBProperty{
							hashKeyField: jsii.String("hashKeyField"),
							hashKeyValue: jsii.String("hashKeyValue"),
							tableName: jsii.String("tableName"),

							// the properties below are optional
							hashKeyType: jsii.String("hashKeyType"),
							operation: jsii.String("operation"),
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
							payloadField: jsii.String("payloadField"),
							rangeKeyField: jsii.String("rangeKeyField"),
							rangeKeyType: jsii.String("rangeKeyType"),
							rangeKeyValue: jsii.String("rangeKeyValue"),
						},
						dynamoDBv2: &dynamoDBv2Property{
							tableName: jsii.String("tableName"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
						},
						firehose: &firehoseProperty{
							deliveryStreamName: jsii.String("deliveryStreamName"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
							separator: jsii.String("separator"),
						},
						iotEvents: &iotEventsProperty{
							inputName: jsii.String("inputName"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
						},
						iotSiteWise: &iotSiteWiseProperty{
							propertyValue: &assetPropertyValueProperty{
								value: &assetPropertyVariantProperty{
									booleanValue: jsii.String("booleanValue"),
									doubleValue: jsii.String("doubleValue"),
									integerValue: jsii.String("integerValue"),
									stringValue: jsii.String("stringValue"),
								},

								// the properties below are optional
								quality: jsii.String("quality"),
								timestamp: &assetPropertyTimestampProperty{
									timeInSeconds: jsii.String("timeInSeconds"),

									// the properties below are optional
									offsetInNanos: jsii.String("offsetInNanos"),
								},
							},

							// the properties below are optional
							assetId: jsii.String("assetId"),
							entryId: jsii.String("entryId"),
							propertyAlias: jsii.String("propertyAlias"),
							propertyId: jsii.String("propertyId"),
						},
						iotTopicPublish: &iotTopicPublishProperty{
							mqttTopic: jsii.String("mqttTopic"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
						},
						lambda: &lambdaProperty{
							functionArn: jsii.String("functionArn"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
						},
						resetTimer: &resetTimerProperty{
							timerName: jsii.String("timerName"),
						},
						setTimer: &setTimerProperty{
							timerName: jsii.String("timerName"),

							// the properties below are optional
							durationExpression: jsii.String("durationExpression"),
							seconds: jsii.Number(123),
						},
						setVariable: &setVariableProperty{
							value: jsii.String("value"),
							variableName: jsii.String("variableName"),
						},
						sns: &snsProperty{
							targetArn: jsii.String("targetArn"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
						},
						sqs: &sqsProperty{
							queueUrl: jsii.String("queueUrl"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
							useBase64: jsii.Boolean(false),
						},
					},
				},
				condition: jsii.String("condition"),
			},
		},
	},
	onInput: &onInputProperty{
		events: []interface{}{
			&eventProperty{
				eventName: jsii.String("eventName"),

				// the properties below are optional
				actions: []interface{}{
					&actionProperty{
						clearTimer: &clearTimerProperty{
							timerName: jsii.String("timerName"),
						},
						dynamoDb: &dynamoDBProperty{
							hashKeyField: jsii.String("hashKeyField"),
							hashKeyValue: jsii.String("hashKeyValue"),
							tableName: jsii.String("tableName"),

							// the properties below are optional
							hashKeyType: jsii.String("hashKeyType"),
							operation: jsii.String("operation"),
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
							payloadField: jsii.String("payloadField"),
							rangeKeyField: jsii.String("rangeKeyField"),
							rangeKeyType: jsii.String("rangeKeyType"),
							rangeKeyValue: jsii.String("rangeKeyValue"),
						},
						dynamoDBv2: &dynamoDBv2Property{
							tableName: jsii.String("tableName"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
						},
						firehose: &firehoseProperty{
							deliveryStreamName: jsii.String("deliveryStreamName"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
							separator: jsii.String("separator"),
						},
						iotEvents: &iotEventsProperty{
							inputName: jsii.String("inputName"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
						},
						iotSiteWise: &iotSiteWiseProperty{
							propertyValue: &assetPropertyValueProperty{
								value: &assetPropertyVariantProperty{
									booleanValue: jsii.String("booleanValue"),
									doubleValue: jsii.String("doubleValue"),
									integerValue: jsii.String("integerValue"),
									stringValue: jsii.String("stringValue"),
								},

								// the properties below are optional
								quality: jsii.String("quality"),
								timestamp: &assetPropertyTimestampProperty{
									timeInSeconds: jsii.String("timeInSeconds"),

									// the properties below are optional
									offsetInNanos: jsii.String("offsetInNanos"),
								},
							},

							// the properties below are optional
							assetId: jsii.String("assetId"),
							entryId: jsii.String("entryId"),
							propertyAlias: jsii.String("propertyAlias"),
							propertyId: jsii.String("propertyId"),
						},
						iotTopicPublish: &iotTopicPublishProperty{
							mqttTopic: jsii.String("mqttTopic"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
						},
						lambda: &lambdaProperty{
							functionArn: jsii.String("functionArn"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
						},
						resetTimer: &resetTimerProperty{
							timerName: jsii.String("timerName"),
						},
						setTimer: &setTimerProperty{
							timerName: jsii.String("timerName"),

							// the properties below are optional
							durationExpression: jsii.String("durationExpression"),
							seconds: jsii.Number(123),
						},
						setVariable: &setVariableProperty{
							value: jsii.String("value"),
							variableName: jsii.String("variableName"),
						},
						sns: &snsProperty{
							targetArn: jsii.String("targetArn"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
						},
						sqs: &sqsProperty{
							queueUrl: jsii.String("queueUrl"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
							useBase64: jsii.Boolean(false),
						},
					},
				},
				condition: jsii.String("condition"),
			},
		},
		transitionEvents: []interface{}{
			&transitionEventProperty{
				condition: jsii.String("condition"),
				eventName: jsii.String("eventName"),
				nextState: jsii.String("nextState"),

				// the properties below are optional
				actions: []interface{}{
					&actionProperty{
						clearTimer: &clearTimerProperty{
							timerName: jsii.String("timerName"),
						},
						dynamoDb: &dynamoDBProperty{
							hashKeyField: jsii.String("hashKeyField"),
							hashKeyValue: jsii.String("hashKeyValue"),
							tableName: jsii.String("tableName"),

							// the properties below are optional
							hashKeyType: jsii.String("hashKeyType"),
							operation: jsii.String("operation"),
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
							payloadField: jsii.String("payloadField"),
							rangeKeyField: jsii.String("rangeKeyField"),
							rangeKeyType: jsii.String("rangeKeyType"),
							rangeKeyValue: jsii.String("rangeKeyValue"),
						},
						dynamoDBv2: &dynamoDBv2Property{
							tableName: jsii.String("tableName"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
						},
						firehose: &firehoseProperty{
							deliveryStreamName: jsii.String("deliveryStreamName"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
							separator: jsii.String("separator"),
						},
						iotEvents: &iotEventsProperty{
							inputName: jsii.String("inputName"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
						},
						iotSiteWise: &iotSiteWiseProperty{
							propertyValue: &assetPropertyValueProperty{
								value: &assetPropertyVariantProperty{
									booleanValue: jsii.String("booleanValue"),
									doubleValue: jsii.String("doubleValue"),
									integerValue: jsii.String("integerValue"),
									stringValue: jsii.String("stringValue"),
								},

								// the properties below are optional
								quality: jsii.String("quality"),
								timestamp: &assetPropertyTimestampProperty{
									timeInSeconds: jsii.String("timeInSeconds"),

									// the properties below are optional
									offsetInNanos: jsii.String("offsetInNanos"),
								},
							},

							// the properties below are optional
							assetId: jsii.String("assetId"),
							entryId: jsii.String("entryId"),
							propertyAlias: jsii.String("propertyAlias"),
							propertyId: jsii.String("propertyId"),
						},
						iotTopicPublish: &iotTopicPublishProperty{
							mqttTopic: jsii.String("mqttTopic"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
						},
						lambda: &lambdaProperty{
							functionArn: jsii.String("functionArn"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
						},
						resetTimer: &resetTimerProperty{
							timerName: jsii.String("timerName"),
						},
						setTimer: &setTimerProperty{
							timerName: jsii.String("timerName"),

							// the properties below are optional
							durationExpression: jsii.String("durationExpression"),
							seconds: jsii.Number(123),
						},
						setVariable: &setVariableProperty{
							value: jsii.String("value"),
							variableName: jsii.String("variableName"),
						},
						sns: &snsProperty{
							targetArn: jsii.String("targetArn"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
						},
						sqs: &sqsProperty{
							queueUrl: jsii.String("queueUrl"),

							// the properties below are optional
							payload: &payloadProperty{
								contentExpression: jsii.String("contentExpression"),
								type: jsii.String("type"),
							},
							useBase64: jsii.Boolean(false),
						},
					},
				},
			},
		},
	},
}

type CfnDetectorModel_TransitionEventProperty

type CfnDetectorModel_TransitionEventProperty struct {
	// Required.
	//
	// A Boolean expression that when TRUE causes the actions to be performed and the `nextState` to be entered.
	Condition *string `field:"required" json:"condition" yaml:"condition"`
	// The name of the transition event.
	EventName *string `field:"required" json:"eventName" yaml:"eventName"`
	// The next state to enter.
	NextState *string `field:"required" json:"nextState" yaml:"nextState"`
	// The actions to be performed.
	Actions interface{} `field:"optional" json:"actions" yaml:"actions"`
}

Specifies the actions performed and the next state entered when a `condition` evaluates to TRUE.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

transitionEventProperty := &transitionEventProperty{
	condition: jsii.String("condition"),
	eventName: jsii.String("eventName"),
	nextState: jsii.String("nextState"),

	// the properties below are optional
	actions: []interface{}{
		&actionProperty{
			clearTimer: &clearTimerProperty{
				timerName: jsii.String("timerName"),
			},
			dynamoDb: &dynamoDBProperty{
				hashKeyField: jsii.String("hashKeyField"),
				hashKeyValue: jsii.String("hashKeyValue"),
				tableName: jsii.String("tableName"),

				// the properties below are optional
				hashKeyType: jsii.String("hashKeyType"),
				operation: jsii.String("operation"),
				payload: &payloadProperty{
					contentExpression: jsii.String("contentExpression"),
					type: jsii.String("type"),
				},
				payloadField: jsii.String("payloadField"),
				rangeKeyField: jsii.String("rangeKeyField"),
				rangeKeyType: jsii.String("rangeKeyType"),
				rangeKeyValue: jsii.String("rangeKeyValue"),
			},
			dynamoDBv2: &dynamoDBv2Property{
				tableName: jsii.String("tableName"),

				// the properties below are optional
				payload: &payloadProperty{
					contentExpression: jsii.String("contentExpression"),
					type: jsii.String("type"),
				},
			},
			firehose: &firehoseProperty{
				deliveryStreamName: jsii.String("deliveryStreamName"),

				// the properties below are optional
				payload: &payloadProperty{
					contentExpression: jsii.String("contentExpression"),
					type: jsii.String("type"),
				},
				separator: jsii.String("separator"),
			},
			iotEvents: &iotEventsProperty{
				inputName: jsii.String("inputName"),

				// the properties below are optional
				payload: &payloadProperty{
					contentExpression: jsii.String("contentExpression"),
					type: jsii.String("type"),
				},
			},
			iotSiteWise: &iotSiteWiseProperty{
				propertyValue: &assetPropertyValueProperty{
					value: &assetPropertyVariantProperty{
						booleanValue: jsii.String("booleanValue"),
						doubleValue: jsii.String("doubleValue"),
						integerValue: jsii.String("integerValue"),
						stringValue: jsii.String("stringValue"),
					},

					// the properties below are optional
					quality: jsii.String("quality"),
					timestamp: &assetPropertyTimestampProperty{
						timeInSeconds: jsii.String("timeInSeconds"),

						// the properties below are optional
						offsetInNanos: jsii.String("offsetInNanos"),
					},
				},

				// the properties below are optional
				assetId: jsii.String("assetId"),
				entryId: jsii.String("entryId"),
				propertyAlias: jsii.String("propertyAlias"),
				propertyId: jsii.String("propertyId"),
			},
			iotTopicPublish: &iotTopicPublishProperty{
				mqttTopic: jsii.String("mqttTopic"),

				// the properties below are optional
				payload: &payloadProperty{
					contentExpression: jsii.String("contentExpression"),
					type: jsii.String("type"),
				},
			},
			lambda: &lambdaProperty{
				functionArn: jsii.String("functionArn"),

				// the properties below are optional
				payload: &payloadProperty{
					contentExpression: jsii.String("contentExpression"),
					type: jsii.String("type"),
				},
			},
			resetTimer: &resetTimerProperty{
				timerName: jsii.String("timerName"),
			},
			setTimer: &setTimerProperty{
				timerName: jsii.String("timerName"),

				// the properties below are optional
				durationExpression: jsii.String("durationExpression"),
				seconds: jsii.Number(123),
			},
			setVariable: &setVariableProperty{
				value: jsii.String("value"),
				variableName: jsii.String("variableName"),
			},
			sns: &snsProperty{
				targetArn: jsii.String("targetArn"),

				// the properties below are optional
				payload: &payloadProperty{
					contentExpression: jsii.String("contentExpression"),
					type: jsii.String("type"),
				},
			},
			sqs: &sqsProperty{
				queueUrl: jsii.String("queueUrl"),

				// the properties below are optional
				payload: &payloadProperty{
					contentExpression: jsii.String("contentExpression"),
					type: jsii.String("type"),
				},
				useBase64: jsii.Boolean(false),
			},
		},
	},
}

type CfnInput

type CfnInput interface {
	awscdk.CfnResource
	awscdk.IInspectable
	// Options for this resource, such as condition, update policy etc.
	// Experimental.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	// Experimental.
	CfnResourceType() *string
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	// Experimental.
	CreationStack() *[]*string
	// The definition of the input.
	InputDefinition() interface{}
	SetInputDefinition(val interface{})
	// A brief description of the input.
	InputDescription() *string
	SetInputDescription(val *string)
	// The name of the input.
	InputName() *string
	SetInputName(val *string)
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	// Experimental.
	LogicalId() *string
	// The construct tree node associated with this construct.
	// Experimental.
	Node() awscdk.ConstructNode
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	// Experimental.
	Ref() *string
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	// Experimental.
	Stack() awscdk.Stack
	// An array of key-value pairs to apply to this resource.
	//
	// For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
	Tags() awscdk.TagManager
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	// Experimental.
	UpdatedProperites() *map[string]interface{}
	// Syntactic sugar for `addOverride(path, undefined)`.
	// Experimental.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	// Experimental.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//    "GlobalSecondaryIndexes": [
	//      {
	//        "Projection": {
	//          "NonKeyAttributes": [ "myattribute" ]
	//          ...
	//        }
	//        ...
	//      },
	//      {
	//        "ProjectionType": "INCLUDE"
	//        ...
	//      },
	//    ]
	//    ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	// Experimental.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	// Experimental.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	// Experimental.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).
	// Experimental.
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	// Experimental.
	GetAtt(attributeName *string) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	OnPrepare()
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	OnSynthesize(session constructs.ISynthesisSession)
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	OnValidate() *[]*string
	// Overrides the auto-generated logical ID with a specific ID.
	// Experimental.
	OverrideLogicalId(newLogicalId *string)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	// Experimental.
	ShouldSynthesize() *bool
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	Synthesize(session awscdk.ISynthesisSession)
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	// Experimental.
	ToString() *string
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	Validate() *[]*string
	// Experimental.
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::IoTEvents::Input`.

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](https://docs.aws.amazon.com/iotevents/latest/developerguide/how-to-use-iotevents.html) 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 "github.com/aws/aws-cdk-go/awscdk"

cfnInput := awscdk.Aws_iotevents.NewCfnInput(this, jsii.String("MyCfnInput"), &cfnInputProps{
	inputDefinition: &inputDefinitionProperty{
		attributes: []interface{}{
			&attributeProperty{
				jsonPath: jsii.String("jsonPath"),
			},
		},
	},

	// the properties below are optional
	inputDescription: jsii.String("inputDescription"),
	inputName: jsii.String("inputName"),
	tags: []cfnTag{
		&cfnTag{
			key: jsii.String("key"),
			value: jsii.String("value"),
		},
	},
})

func NewCfnInput

func NewCfnInput(scope awscdk.Construct, id *string, props *CfnInputProps) CfnInput

Create a new `AWS::IoTEvents::Input`.

type CfnInputProps

type CfnInputProps struct {
	// The definition of the input.
	InputDefinition interface{} `field:"required" json:"inputDefinition" yaml:"inputDefinition"`
	// A brief description of the input.
	InputDescription *string `field:"optional" json:"inputDescription" yaml:"inputDescription"`
	// The name of the input.
	InputName *string `field:"optional" json:"inputName" yaml:"inputName"`
	// An array of key-value pairs to apply to this resource.
	//
	// For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
	Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
}

Properties for defining a `CfnInput`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnInputProps := &cfnInputProps{
	inputDefinition: &inputDefinitionProperty{
		attributes: []interface{}{
			&attributeProperty{
				jsonPath: jsii.String("jsonPath"),
			},
		},
	},

	// the properties below are optional
	inputDescription: jsii.String("inputDescription"),
	inputName: jsii.String("inputName"),
	tags: []cfnTag{
		&cfnTag{
			key: jsii.String("key"),
			value: jsii.String("value"),
		},
	},
}

type CfnInput_AttributeProperty

type CfnInput_AttributeProperty struct {
	// 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>...`
	JsonPath *string `field:"required" json:"jsonPath" yaml:"jsonPath"`
}

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 "github.com/aws/aws-cdk-go/awscdk"

attributeProperty := &attributeProperty{
	jsonPath: jsii.String("jsonPath"),
}

type CfnInput_InputDefinitionProperty

type CfnInput_InputDefinitionProperty struct {
	// 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, and those attributes (and their paired values) specified here are available for use in the `condition` expressions used by detectors that monitor this input.
	Attributes interface{} `field:"required" json:"attributes" yaml:"attributes"`
}

The definition of the input.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

inputDefinitionProperty := &inputDefinitionProperty{
	attributes: []interface{}{
		&attributeProperty{
			jsonPath: jsii.String("jsonPath"),
		},
	},
}

type DetectorModel

type DetectorModel interface {
	awscdk.Resource
	IDetectorModel
	// The name of the detector model.
	// Experimental.
	DetectorModelName() *string
	// The environment this resource belongs to.
	//
	// For resources that are created and managed by the CDK
	// (generally, those created by creating new class instances like Role, Bucket, etc.),
	// this is always the same as the environment of the stack they belong to;
	// however, for imported resources
	// (those obtained from static methods like fromRoleArn, fromBucketName, etc.),
	// that might be different than the stack they were imported into.
	// Experimental.
	Env() *awscdk.ResourceEnvironment
	// The construct tree node associated with this construct.
	// Experimental.
	Node() awscdk.ConstructNode
	// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
	//
	// This value will resolve to one of the following:
	// - a concrete value (e.g. `"my-awesome-bucket"`)
	// - `undefined`, when a name should be generated by CloudFormation
	// - a concrete name generated automatically during synthesis, in
	//    cross-environment scenarios.
	// Experimental.
	PhysicalName() *string
	// The stack in which this resource is defined.
	// Experimental.
	Stack() awscdk.Stack
	// Apply the given removal policy to this resource.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).
	// Experimental.
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
	// Experimental.
	GeneratePhysicalName() *string
	// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
	//
	// Normally, this token will resolve to `arnAttr`, but if the resource is
	// referenced across environments, `arnComponents` will be used to synthesize
	// a concrete ARN with the resource's physical name. Make sure to reference
	// `this.physicalName` in `arnComponents`.
	// Experimental.
	GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
	// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
	//
	// Normally, this token will resolve to `nameAttr`, but if the resource is
	// referenced across environments, it will be resolved to `this.physicalName`,
	// which will be a concrete name.
	// Experimental.
	GetResourceNameAttribute(nameAttr *string) *string
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	OnPrepare()
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	OnSynthesize(session constructs.ISynthesisSession)
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	OnValidate() *[]*string
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	Prepare()
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	Synthesize(session awscdk.ISynthesisSession)
	// Returns a string representation of this construct.
	// Experimental.
	ToString() *string
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	Validate() *[]*string
}

Defines an AWS IoT Events detector model in this stack.

Example:

import iotevents "github.com/aws/aws-cdk-go/awscdk"
import actions "github.com/aws/aws-cdk-go/awscdk"
import lambda "github.com/aws/aws-cdk-go/awscdk"

var func iFunction

input := iotevents.NewInput(this, jsii.String("MyInput"), &inputProps{
	inputName: jsii.String("my_input"),
	 // optional
	attributeJsonPaths: []*string{
		jsii.String("payload.deviceId"),
		jsii.String("payload.temperature"),
	},
})

warmState := iotevents.NewState(&stateProps{
	stateName: jsii.String("warm"),
	onEnter: []event{
		&event{
			eventName: jsii.String("test-enter-event"),
			condition: iotevents.expression.currentInput(input),
			actions: []iAction{
				actions.NewLambdaInvokeAction(func),
			},
		},
	},
	onInput: []*event{
		&event{
			 // optional
			eventName: jsii.String("test-input-event"),
			actions: []*iAction{
				actions.NewLambdaInvokeAction(func),
			},
		},
	},
	onExit: []*event{
		&event{
			 // optional
			eventName: jsii.String("test-exit-event"),
			actions: []*iAction{
				actions.NewLambdaInvokeAction(func),
			},
		},
	},
})
coldState := iotevents.NewState(&stateProps{
	stateName: jsii.String("cold"),
})

// transit to coldState when temperature is less than 15
warmState.transitionTo(coldState, &transitionOptions{
	eventName: jsii.String("to_coldState"),
	 // optional property, default by combining the names of the States
	when: iotevents.*expression.lt(iotevents.*expression.inputAttribute(input, jsii.String("payload.temperature")), iotevents.*expression.fromString(jsii.String("15"))),
	executing: []*iAction{
		actions.NewLambdaInvokeAction(func),
	},
})
// transit to warmState when temperature is greater than or equal to 15
coldState.transitionTo(warmState, &transitionOptions{
	when: iotevents.*expression.gte(iotevents.*expression.inputAttribute(input, jsii.String("payload.temperature")), iotevents.*expression.fromString(jsii.String("15"))),
})

iotevents.NewDetectorModel(this, jsii.String("MyDetectorModel"), &detectorModelProps{
	detectorModelName: jsii.String("test-detector-model"),
	 // optional
	description: jsii.String("test-detector-model-description"),
	 // optional property, default is none
	evaluationMethod: iotevents.eventEvaluation_SERIAL,
	 // optional property, default is iotevents.EventEvaluation.BATCH
	detectorKey: jsii.String("payload.deviceId"),
	 // optional property, default is none and single detector instance will be created and all inputs will be routed to it
	initialState: warmState,
})

Experimental.

func NewDetectorModel

func NewDetectorModel(scope constructs.Construct, id *string, props *DetectorModelProps) DetectorModel

Experimental.

type DetectorModelProps

type DetectorModelProps struct {
	// The state that is entered at the creation of each detector.
	// Experimental.
	InitialState State `field:"required" json:"initialState" yaml:"initialState"`
	// A brief description of the detector model.
	// Experimental.
	Description *string `field:"optional" json:"description" yaml:"description"`
	// The value used to identify a detector instance.
	//
	// When a device or system sends input, a new
	// detector instance with a unique key value is created. AWS IoT Events can continue to route
	// input to its corresponding detector instance based on this identifying information.
	//
	// This parameter uses a JSON-path expression to select the attribute-value pair in the message
	// payload that is used for identification. To route the message to the correct detector instance,
	// the device must send a message payload that contains the same attribute-value.
	// Experimental.
	DetectorKey *string `field:"optional" json:"detectorKey" yaml:"detectorKey"`
	// The name of the detector model.
	// Experimental.
	DetectorModelName *string `field:"optional" json:"detectorModelName" yaml:"detectorModelName"`
	// Information about the order in which events are evaluated and how actions are executed.
	//
	// When setting to SERIAL, variables are updated and event conditions are evaluated in the order
	// that the events are defined.
	// When setting to BATCH, variables within a state are updated and events within a state are
	// performed only after all event conditions are evaluated.
	// Experimental.
	EvaluationMethod EventEvaluation `field:"optional" json:"evaluationMethod" yaml:"evaluationMethod"`
	// The role that grants permission to AWS IoT Events to perform its operations.
	// Experimental.
	Role awsiam.IRole `field:"optional" json:"role" yaml:"role"`
}

Properties for defining an AWS IoT Events detector model.

Example:

import iotevents "github.com/aws/aws-cdk-go/awscdk"
import actions "github.com/aws/aws-cdk-go/awscdk"
import lambda "github.com/aws/aws-cdk-go/awscdk"

var func iFunction

input := iotevents.NewInput(this, jsii.String("MyInput"), &inputProps{
	inputName: jsii.String("my_input"),
	 // optional
	attributeJsonPaths: []*string{
		jsii.String("payload.deviceId"),
		jsii.String("payload.temperature"),
	},
})

warmState := iotevents.NewState(&stateProps{
	stateName: jsii.String("warm"),
	onEnter: []event{
		&event{
			eventName: jsii.String("test-enter-event"),
			condition: iotevents.expression.currentInput(input),
			actions: []iAction{
				actions.NewLambdaInvokeAction(func),
			},
		},
	},
	onInput: []*event{
		&event{
			 // optional
			eventName: jsii.String("test-input-event"),
			actions: []*iAction{
				actions.NewLambdaInvokeAction(func),
			},
		},
	},
	onExit: []*event{
		&event{
			 // optional
			eventName: jsii.String("test-exit-event"),
			actions: []*iAction{
				actions.NewLambdaInvokeAction(func),
			},
		},
	},
})
coldState := iotevents.NewState(&stateProps{
	stateName: jsii.String("cold"),
})

// transit to coldState when temperature is less than 15
warmState.transitionTo(coldState, &transitionOptions{
	eventName: jsii.String("to_coldState"),
	 // optional property, default by combining the names of the States
	when: iotevents.*expression.lt(iotevents.*expression.inputAttribute(input, jsii.String("payload.temperature")), iotevents.*expression.fromString(jsii.String("15"))),
	executing: []*iAction{
		actions.NewLambdaInvokeAction(func),
	},
})
// transit to warmState when temperature is greater than or equal to 15
coldState.transitionTo(warmState, &transitionOptions{
	when: iotevents.*expression.gte(iotevents.*expression.inputAttribute(input, jsii.String("payload.temperature")), iotevents.*expression.fromString(jsii.String("15"))),
})

iotevents.NewDetectorModel(this, jsii.String("MyDetectorModel"), &detectorModelProps{
	detectorModelName: jsii.String("test-detector-model"),
	 // optional
	description: jsii.String("test-detector-model-description"),
	 // optional property, default is none
	evaluationMethod: iotevents.eventEvaluation_SERIAL,
	 // optional property, default is iotevents.EventEvaluation.BATCH
	detectorKey: jsii.String("payload.deviceId"),
	 // optional property, default is none and single detector instance will be created and all inputs will be routed to it
	initialState: warmState,
})

Experimental.

type Event

type Event struct {
	// The name of the event.
	// Experimental.
	EventName *string `field:"required" json:"eventName" yaml:"eventName"`
	// The actions to be performed.
	// Experimental.
	Actions *[]IAction `field:"optional" json:"actions" yaml:"actions"`
	// The Boolean expression that, when `true`, causes the actions to be performed.
	// Experimental.
	Condition Expression `field:"optional" json:"condition" yaml:"condition"`
}

Specifies the actions to be performed when the condition evaluates to `true`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var action iAction
var expression expression

event := &event{
	eventName: jsii.String("eventName"),

	// the properties below are optional
	actions: []*iAction{
		action,
	},
	condition: expression,
}

Experimental.

type EventEvaluation

type EventEvaluation string

Information about the order in which events are evaluated and how actions are executed.

Example:

import iotevents "github.com/aws/aws-cdk-go/awscdk"
import actions "github.com/aws/aws-cdk-go/awscdk"
import lambda "github.com/aws/aws-cdk-go/awscdk"

var func iFunction

input := iotevents.NewInput(this, jsii.String("MyInput"), &inputProps{
	inputName: jsii.String("my_input"),
	 // optional
	attributeJsonPaths: []*string{
		jsii.String("payload.deviceId"),
		jsii.String("payload.temperature"),
	},
})

warmState := iotevents.NewState(&stateProps{
	stateName: jsii.String("warm"),
	onEnter: []event{
		&event{
			eventName: jsii.String("test-enter-event"),
			condition: iotevents.expression.currentInput(input),
			actions: []iAction{
				actions.NewLambdaInvokeAction(func),
			},
		},
	},
	onInput: []*event{
		&event{
			 // optional
			eventName: jsii.String("test-input-event"),
			actions: []*iAction{
				actions.NewLambdaInvokeAction(func),
			},
		},
	},
	onExit: []*event{
		&event{
			 // optional
			eventName: jsii.String("test-exit-event"),
			actions: []*iAction{
				actions.NewLambdaInvokeAction(func),
			},
		},
	},
})
coldState := iotevents.NewState(&stateProps{
	stateName: jsii.String("cold"),
})

// transit to coldState when temperature is less than 15
warmState.transitionTo(coldState, &transitionOptions{
	eventName: jsii.String("to_coldState"),
	 // optional property, default by combining the names of the States
	when: iotevents.*expression.lt(iotevents.*expression.inputAttribute(input, jsii.String("payload.temperature")), iotevents.*expression.fromString(jsii.String("15"))),
	executing: []*iAction{
		actions.NewLambdaInvokeAction(func),
	},
})
// transit to warmState when temperature is greater than or equal to 15
coldState.transitionTo(warmState, &transitionOptions{
	when: iotevents.*expression.gte(iotevents.*expression.inputAttribute(input, jsii.String("payload.temperature")), iotevents.*expression.fromString(jsii.String("15"))),
})

iotevents.NewDetectorModel(this, jsii.String("MyDetectorModel"), &detectorModelProps{
	detectorModelName: jsii.String("test-detector-model"),
	 // optional
	description: jsii.String("test-detector-model-description"),
	 // optional property, default is none
	evaluationMethod: iotevents.eventEvaluation_SERIAL,
	 // optional property, default is iotevents.EventEvaluation.BATCH
	detectorKey: jsii.String("payload.deviceId"),
	 // optional property, default is none and single detector instance will be created and all inputs will be routed to it
	initialState: warmState,
})

Experimental.

const (
	// When setting to BATCH, variables within a state are updated and events within a state are performed only after all event conditions are evaluated.
	// Experimental.
	EventEvaluation_BATCH EventEvaluation = "BATCH"
	// When setting to SERIAL, variables are updated and event conditions are evaluated in the order that the events are defined.
	// Experimental.
	EventEvaluation_SERIAL EventEvaluation = "SERIAL"
)

type Expression

type Expression interface {
	// This is called to evaluate the expression.
	// Experimental.
	Evaluate(parentPriority *float64) *string
}

Expression for events in Detector Model state.

Example:

// Example automatically generated from non-compiling source. May contain errors.
import iotevents "github.com/aws/aws-cdk-go/awscdk"
import actions "github.com/aws/aws-cdk-go/awscdk"

var input iInput

state := iotevents.NewState(&stateProps{
	stateName: jsii.String("MyState"),
	onEnter: []event{
		&event{
			eventName: jsii.String("test-event"),
			condition: iotevents.expression.currentInput(input),
			actions: []iAction{
				actions,
				[]interface{}{
					actions.NewSetVariableAction(jsii.String("MyVariable"), iotevents.*expression.inputAttribute(input, jsii.String("payload.temperature"))),
				},
			},
		},
	},
})

See: https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html

Experimental.

func Expression_And

func Expression_And(left Expression, right Expression) Expression

Create a expression for the AND operator. Experimental.

func Expression_CurrentInput

func Expression_CurrentInput(input IInput) Expression

Create a expression for function `currentInput()`.

It is evaluated to true if the specified input message was received. Experimental.

func Expression_Eq

func Expression_Eq(left Expression, right Expression) Expression

Create a expression for the Equal operator. Experimental.

func Expression_FromString

func Expression_FromString(value *string) Expression

Create a expression from the given string. Experimental.

func Expression_Gt

func Expression_Gt(left Expression, right Expression) Expression

Create a expression for the Greater Than operator. Experimental.

func Expression_Gte

func Expression_Gte(left Expression, right Expression) Expression

Create a expression for the Greater Than Or Equal operator. Experimental.

func Expression_InputAttribute

func Expression_InputAttribute(input IInput, path *string) Expression

Create a expression for get an input attribute as `$input.TemperatureInput.temperatures[2]`. Experimental.

func Expression_Lt

func Expression_Lt(left Expression, right Expression) Expression

Create a expression for the Less Than operator. Experimental.

func Expression_Lte

func Expression_Lte(left Expression, right Expression) Expression

Create a expression for the Less Than Or Equal operator. Experimental.

func Expression_Neq

func Expression_Neq(left Expression, right Expression) Expression

Create a expression for the Not Equal operator. Experimental.

func Expression_Or

func Expression_Or(left Expression, right Expression) Expression

Create a expression for the OR operator. Experimental.

type IAction

type IAction interface {
	// Returns the AWS IoT Events action specification.
	// Experimental.
	Bind(scope constructs.Construct, options *ActionBindOptions) *ActionConfig
}

An abstract action for DetectorModel. Experimental.

type IDetectorModel

type IDetectorModel interface {
	awscdk.IResource
	// The name of the detector model.
	// Experimental.
	DetectorModelName() *string
}

Represents an AWS IoT Events detector model. Experimental.

func DetectorModel_FromDetectorModelName

func DetectorModel_FromDetectorModelName(scope constructs.Construct, id *string, detectorModelName *string) IDetectorModel

Import an existing detector model. Experimental.

type IInput

type IInput interface {
	awscdk.IResource
	// Grant the indicated permissions on this input to the given IAM principal (Role/Group/User).
	// Experimental.
	Grant(grantee awsiam.IGrantable, actions ...*string) awsiam.Grant
	// Grant write permissions on this input and its contents to an IAM principal (Role/Group/User).
	// Experimental.
	GrantWrite(grantee awsiam.IGrantable) awsiam.Grant
	// The ARN of the input.
	// Experimental.
	InputArn() *string
	// The name of the input.
	// Experimental.
	InputName() *string
}

Represents an AWS IoT Events input. Experimental.

func Input_FromInputName

func Input_FromInputName(scope constructs.Construct, id *string, inputName *string) IInput

Import an existing input. Experimental.

type Input

type Input interface {
	awscdk.Resource
	IInput
	// The environment this resource belongs to.
	//
	// For resources that are created and managed by the CDK
	// (generally, those created by creating new class instances like Role, Bucket, etc.),
	// this is always the same as the environment of the stack they belong to;
	// however, for imported resources
	// (those obtained from static methods like fromRoleArn, fromBucketName, etc.),
	// that might be different than the stack they were imported into.
	// Experimental.
	Env() *awscdk.ResourceEnvironment
	// The ARN of the input.
	// Experimental.
	InputArn() *string
	// The name of the input.
	// Experimental.
	InputName() *string
	// The construct tree node associated with this construct.
	// Experimental.
	Node() awscdk.ConstructNode
	// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
	//
	// This value will resolve to one of the following:
	// - a concrete value (e.g. `"my-awesome-bucket"`)
	// - `undefined`, when a name should be generated by CloudFormation
	// - a concrete name generated automatically during synthesis, in
	//    cross-environment scenarios.
	// Experimental.
	PhysicalName() *string
	// The stack in which this resource is defined.
	// Experimental.
	Stack() awscdk.Stack
	// Apply the given removal policy to this resource.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).
	// Experimental.
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
	// Experimental.
	GeneratePhysicalName() *string
	// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
	//
	// Normally, this token will resolve to `arnAttr`, but if the resource is
	// referenced across environments, `arnComponents` will be used to synthesize
	// a concrete ARN with the resource's physical name. Make sure to reference
	// `this.physicalName` in `arnComponents`.
	// Experimental.
	GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
	// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
	//
	// Normally, this token will resolve to `nameAttr`, but if the resource is
	// referenced across environments, it will be resolved to `this.physicalName`,
	// which will be a concrete name.
	// Experimental.
	GetResourceNameAttribute(nameAttr *string) *string
	// Grant the indicated permissions on this input to the given IAM principal (Role/Group/User).
	// Experimental.
	Grant(grantee awsiam.IGrantable, actions ...*string) awsiam.Grant
	// Grant write permissions on this input and its contents to an IAM principal (Role/Group/User).
	// Experimental.
	GrantWrite(grantee awsiam.IGrantable) awsiam.Grant
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	OnPrepare()
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	OnSynthesize(session constructs.ISynthesisSession)
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	OnValidate() *[]*string
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	Prepare()
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	Synthesize(session awscdk.ISynthesisSession)
	// Returns a string representation of this construct.
	// Experimental.
	ToString() *string
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	Validate() *[]*string
}

Defines an AWS IoT Events input in this stack.

Example:

import iotevents "github.com/aws/aws-cdk-go/awscdk"
import actions "github.com/aws/aws-cdk-go/awscdk"
import lambda "github.com/aws/aws-cdk-go/awscdk"

var func iFunction

input := iotevents.NewInput(this, jsii.String("MyInput"), &inputProps{
	inputName: jsii.String("my_input"),
	 // optional
	attributeJsonPaths: []*string{
		jsii.String("payload.deviceId"),
		jsii.String("payload.temperature"),
	},
})

warmState := iotevents.NewState(&stateProps{
	stateName: jsii.String("warm"),
	onEnter: []event{
		&event{
			eventName: jsii.String("test-enter-event"),
			condition: iotevents.expression.currentInput(input),
			actions: []iAction{
				actions.NewLambdaInvokeAction(func),
			},
		},
	},
	onInput: []*event{
		&event{
			 // optional
			eventName: jsii.String("test-input-event"),
			actions: []*iAction{
				actions.NewLambdaInvokeAction(func),
			},
		},
	},
	onExit: []*event{
		&event{
			 // optional
			eventName: jsii.String("test-exit-event"),
			actions: []*iAction{
				actions.NewLambdaInvokeAction(func),
			},
		},
	},
})
coldState := iotevents.NewState(&stateProps{
	stateName: jsii.String("cold"),
})

// transit to coldState when temperature is less than 15
warmState.transitionTo(coldState, &transitionOptions{
	eventName: jsii.String("to_coldState"),
	 // optional property, default by combining the names of the States
	when: iotevents.*expression.lt(iotevents.*expression.inputAttribute(input, jsii.String("payload.temperature")), iotevents.*expression.fromString(jsii.String("15"))),
	executing: []*iAction{
		actions.NewLambdaInvokeAction(func),
	},
})
// transit to warmState when temperature is greater than or equal to 15
coldState.transitionTo(warmState, &transitionOptions{
	when: iotevents.*expression.gte(iotevents.*expression.inputAttribute(input, jsii.String("payload.temperature")), iotevents.*expression.fromString(jsii.String("15"))),
})

iotevents.NewDetectorModel(this, jsii.String("MyDetectorModel"), &detectorModelProps{
	detectorModelName: jsii.String("test-detector-model"),
	 // optional
	description: jsii.String("test-detector-model-description"),
	 // optional property, default is none
	evaluationMethod: iotevents.eventEvaluation_SERIAL,
	 // optional property, default is iotevents.EventEvaluation.BATCH
	detectorKey: jsii.String("payload.deviceId"),
	 // optional property, default is none and single detector instance will be created and all inputs will be routed to it
	initialState: warmState,
})

Experimental.

func NewInput

func NewInput(scope constructs.Construct, id *string, props *InputProps) Input

Experimental.

type InputProps

type InputProps struct {
	// 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.
	// Experimental.
	AttributeJsonPaths *[]*string `field:"required" json:"attributeJsonPaths" yaml:"attributeJsonPaths"`
	// The name of the input.
	// Experimental.
	InputName *string `field:"optional" json:"inputName" yaml:"inputName"`
}

Properties for defining an AWS IoT Events input.

Example:

import iotevents "github.com/aws/aws-cdk-go/awscdk"
import actions "github.com/aws/aws-cdk-go/awscdk"
import lambda "github.com/aws/aws-cdk-go/awscdk"

var func iFunction

input := iotevents.NewInput(this, jsii.String("MyInput"), &inputProps{
	inputName: jsii.String("my_input"),
	 // optional
	attributeJsonPaths: []*string{
		jsii.String("payload.deviceId"),
		jsii.String("payload.temperature"),
	},
})

warmState := iotevents.NewState(&stateProps{
	stateName: jsii.String("warm"),
	onEnter: []event{
		&event{
			eventName: jsii.String("test-enter-event"),
			condition: iotevents.expression.currentInput(input),
			actions: []iAction{
				actions.NewLambdaInvokeAction(func),
			},
		},
	},
	onInput: []*event{
		&event{
			 // optional
			eventName: jsii.String("test-input-event"),
			actions: []*iAction{
				actions.NewLambdaInvokeAction(func),
			},
		},
	},
	onExit: []*event{
		&event{
			 // optional
			eventName: jsii.String("test-exit-event"),
			actions: []*iAction{
				actions.NewLambdaInvokeAction(func),
			},
		},
	},
})
coldState := iotevents.NewState(&stateProps{
	stateName: jsii.String("cold"),
})

// transit to coldState when temperature is less than 15
warmState.transitionTo(coldState, &transitionOptions{
	eventName: jsii.String("to_coldState"),
	 // optional property, default by combining the names of the States
	when: iotevents.*expression.lt(iotevents.*expression.inputAttribute(input, jsii.String("payload.temperature")), iotevents.*expression.fromString(jsii.String("15"))),
	executing: []*iAction{
		actions.NewLambdaInvokeAction(func),
	},
})
// transit to warmState when temperature is greater than or equal to 15
coldState.transitionTo(warmState, &transitionOptions{
	when: iotevents.*expression.gte(iotevents.*expression.inputAttribute(input, jsii.String("payload.temperature")), iotevents.*expression.fromString(jsii.String("15"))),
})

iotevents.NewDetectorModel(this, jsii.String("MyDetectorModel"), &detectorModelProps{
	detectorModelName: jsii.String("test-detector-model"),
	 // optional
	description: jsii.String("test-detector-model-description"),
	 // optional property, default is none
	evaluationMethod: iotevents.eventEvaluation_SERIAL,
	 // optional property, default is iotevents.EventEvaluation.BATCH
	detectorKey: jsii.String("payload.deviceId"),
	 // optional property, default is none and single detector instance will be created and all inputs will be routed to it
	initialState: warmState,
})

Experimental.

type State

type State interface {
	// The name of the state.
	// Experimental.
	StateName() *string
	// Add a transition event to the state.
	//
	// The transition event will be triggered if condition is evaluated to `true`.
	// Experimental.
	TransitionTo(targetState State, options *TransitionOptions)
}

Defines a state of a detector.

Example:

// Example automatically generated from non-compiling source. May contain errors.
import iotevents "github.com/aws/aws-cdk-go/awscdk"
import actions "github.com/aws/aws-cdk-go/awscdk"

var input iInput

state := iotevents.NewState(&stateProps{
	stateName: jsii.String("MyState"),
	onEnter: []event{
		&event{
			eventName: jsii.String("test-event"),
			condition: iotevents.expression.currentInput(input),
			actions: []iAction{
				actions,
				[]interface{}{
					actions.NewSetVariableAction(jsii.String("MyVariable"), iotevents.*expression.inputAttribute(input, jsii.String("payload.temperature"))),
				},
			},
		},
	},
})

Experimental.

func NewState

func NewState(props *StateProps) State

Experimental.

type StateProps

type StateProps struct {
	// The name of the state.
	// Experimental.
	StateName *string `field:"required" json:"stateName" yaml:"stateName"`
	// Specifies the events on enter.
	//
	// The conditions of the events will be evaluated when entering this state.
	// If the condition of the event evaluates to `true`, the actions of the event will be executed.
	// Experimental.
	OnEnter *[]*Event `field:"optional" json:"onEnter" yaml:"onEnter"`
	// Specifies the events on exit.
	//
	// The conditions of the events are evaluated when an exiting this state.
	// If the condition evaluates to `true`, the actions of the event will be executed.
	// Experimental.
	OnExit *[]*Event `field:"optional" json:"onExit" yaml:"onExit"`
	// Specifies the events on input.
	//
	// The conditions of the events will be evaluated when any input is received.
	// If the condition of the event evaluates to `true`, the actions of the event will be executed.
	// Experimental.
	OnInput *[]*Event `field:"optional" json:"onInput" yaml:"onInput"`
}

Properties for defining a state of a detector.

Example:

// Example automatically generated from non-compiling source. May contain errors.
import iotevents "github.com/aws/aws-cdk-go/awscdk"
import actions "github.com/aws/aws-cdk-go/awscdk"

var input iInput

state := iotevents.NewState(&stateProps{
	stateName: jsii.String("MyState"),
	onEnter: []event{
		&event{
			eventName: jsii.String("test-event"),
			condition: iotevents.expression.currentInput(input),
			actions: []iAction{
				actions,
				[]interface{}{
					actions.NewSetVariableAction(jsii.String("MyVariable"), iotevents.*expression.inputAttribute(input, jsii.String("payload.temperature"))),
				},
			},
		},
	},
})

Experimental.

type TransitionOptions

type TransitionOptions struct {
	// The condition that is used to determine to cause the state transition and the actions.
	//
	// When this was evaluated to `true`, the state transition and the actions are triggered.
	// Experimental.
	When Expression `field:"required" json:"when" yaml:"when"`
	// The name of the event.
	// Experimental.
	EventName *string `field:"optional" json:"eventName" yaml:"eventName"`
	// The actions to be performed with the transition.
	// Experimental.
	Executing *[]IAction `field:"optional" json:"executing" yaml:"executing"`
}

Properties for options of state transition.

Example:

import iotevents "github.com/aws/aws-cdk-go/awscdk"
import actions "github.com/aws/aws-cdk-go/awscdk"
import lambda "github.com/aws/aws-cdk-go/awscdk"

var func iFunction

input := iotevents.NewInput(this, jsii.String("MyInput"), &inputProps{
	inputName: jsii.String("my_input"),
	 // optional
	attributeJsonPaths: []*string{
		jsii.String("payload.deviceId"),
		jsii.String("payload.temperature"),
	},
})

warmState := iotevents.NewState(&stateProps{
	stateName: jsii.String("warm"),
	onEnter: []event{
		&event{
			eventName: jsii.String("test-enter-event"),
			condition: iotevents.expression.currentInput(input),
			actions: []iAction{
				actions.NewLambdaInvokeAction(func),
			},
		},
	},
	onInput: []*event{
		&event{
			 // optional
			eventName: jsii.String("test-input-event"),
			actions: []*iAction{
				actions.NewLambdaInvokeAction(func),
			},
		},
	},
	onExit: []*event{
		&event{
			 // optional
			eventName: jsii.String("test-exit-event"),
			actions: []*iAction{
				actions.NewLambdaInvokeAction(func),
			},
		},
	},
})
coldState := iotevents.NewState(&stateProps{
	stateName: jsii.String("cold"),
})

// transit to coldState when temperature is less than 15
warmState.transitionTo(coldState, &transitionOptions{
	eventName: jsii.String("to_coldState"),
	 // optional property, default by combining the names of the States
	when: iotevents.*expression.lt(iotevents.*expression.inputAttribute(input, jsii.String("payload.temperature")), iotevents.*expression.fromString(jsii.String("15"))),
	executing: []*iAction{
		actions.NewLambdaInvokeAction(func),
	},
})
// transit to warmState when temperature is greater than or equal to 15
coldState.transitionTo(warmState, &transitionOptions{
	when: iotevents.*expression.gte(iotevents.*expression.inputAttribute(input, jsii.String("payload.temperature")), iotevents.*expression.fromString(jsii.String("15"))),
})

iotevents.NewDetectorModel(this, jsii.String("MyDetectorModel"), &detectorModelProps{
	detectorModelName: jsii.String("test-detector-model"),
	 // optional
	description: jsii.String("test-detector-model-description"),
	 // optional property, default is none
	evaluationMethod: iotevents.eventEvaluation_SERIAL,
	 // optional property, default is iotevents.EventEvaluation.BATCH
	detectorKey: jsii.String("payload.deviceId"),
	 // optional property, default is none and single detector instance will be created and all inputs will be routed to it
	initialState: warmState,
})

Experimental.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL