Documentation
¶
Overview ¶
The CDK Construct Library for AWS::IoT
Index ¶
- func NewIotSql_Override(i IotSql)
- func NewTopicRule_Override(t TopicRule, scope constructs.Construct, id *string, props *TopicRuleProps)
- func TopicRule_IsConstruct(x interface{}) *bool
- func TopicRule_IsResource(construct constructs.IConstruct) *bool
- type ActionConfig
- type IAction
- type ITopicRule
- type IotSql
- type IotSqlConfig
- type TopicRule
- type TopicRuleProps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTopicRule_Override ¶
func NewTopicRule_Override(t TopicRule, scope constructs.Construct, id *string, props *TopicRuleProps)
Experimental.
func TopicRule_IsConstruct ¶
func TopicRule_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func TopicRule_IsResource ¶
func TopicRule_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Experimental.
Types ¶
type ActionConfig ¶
type ActionConfig struct { // The configuration for this action. // Experimental. Configuration *awsiot.CfnTopicRule_ActionProperty `json:"configuration" yaml:"configuration"` }
Properties for an topic rule action.
TODO: EXAMPLE
Experimental.
type IAction ¶
type IAction interface { // Returns the topic rule action specification. // Experimental. Bind(topicRule ITopicRule) *ActionConfig }
An abstract action for TopicRule. Experimental.
type ITopicRule ¶
type ITopicRule interface { awscdk.IResource // The value of the topic rule Amazon Resource Name (ARN), such as arn:aws:iot:us-east-2:123456789012:rule/rule_name. // Experimental. TopicRuleArn() *string // The name topic rule. // Experimental. TopicRuleName() *string }
Represents an AWS IoT Rule. Experimental.
func TopicRule_FromTopicRuleArn ¶
func TopicRule_FromTopicRuleArn(scope constructs.Construct, id *string, topicRuleArn *string) ITopicRule
Import an existing AWS IoT Rule provided an ARN. Experimental.
type IotSql ¶
type IotSql interface {
Bind(scope constructs.Construct) *IotSqlConfig
}
Defines AWS IoT SQL.
TODO: EXAMPLE
Experimental.
func IotSql_FromStringAsVer20151008 ¶
Uses the original SQL version built on 2015-10-08.
Returns: Instance of IotSql Experimental.
func IotSql_FromStringAsVer20160323 ¶
Uses the SQL version built on 2016-03-23.
Returns: Instance of IotSql Experimental.
func IotSql_FromStringAsVerNewestUnstable ¶
Uses the most recent beta SQL version.
If you use this version, it might introduce breaking changes to your rules.
Returns: Instance of IotSql Experimental.
type IotSqlConfig ¶
type IotSqlConfig struct { // The version of the SQL rules engine to use when evaluating the rule. // Experimental. AwsIotSqlVersion *string `json:"awsIotSqlVersion" yaml:"awsIotSqlVersion"` // The SQL statement used to query the topic. // Experimental. Sql *string `json:"sql" yaml:"sql"` }
The type returned from the `bind()` method in {@link IotSql}.
TODO: EXAMPLE
Experimental.
type TopicRule ¶
type TopicRule interface { awscdk.Resource ITopicRule Env() *awscdk.ResourceEnvironment Node() constructs.Node PhysicalName() *string Stack() awscdk.Stack TopicRuleArn() *string TopicRuleName() *string AddAction(action IAction) ApplyRemovalPolicy(policy awscdk.RemovalPolicy) GeneratePhysicalName() *string GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string GetResourceNameAttribute(nameAttr *string) *string ToString() *string }
Defines an AWS IoT Rule in this stack.
TODO: EXAMPLE
Experimental.
func NewTopicRule ¶
func NewTopicRule(scope constructs.Construct, id *string, props *TopicRuleProps) TopicRule
Experimental.
type TopicRuleProps ¶
type TopicRuleProps struct { // A simplified SQL syntax to filter messages received on an MQTT topic and push the data elsewhere. // See: https://docs.aws.amazon.com/iot/latest/developerguide/iot-sql-reference.html // // Experimental. Sql IotSql `json:"sql" yaml:"sql"` // The actions associated with the topic rule. // Experimental. Actions *[]IAction `json:"actions" yaml:"actions"` // A textual description of the topic rule. // Experimental. Description *string `json:"description" yaml:"description"` // Specifies whether the rule is enabled. // Experimental. Enabled *bool `json:"enabled" yaml:"enabled"` // The action AWS IoT performs when it is unable to perform a rule's action. // Experimental. ErrorAction IAction `json:"errorAction" yaml:"errorAction"` // The name of the topic rule. // Experimental. TopicRuleName *string `json:"topicRuleName" yaml:"topicRuleName"` }
Properties for defining an AWS IoT Rule.
TODO: EXAMPLE
Experimental.