Interface CfnSubscriptionDefinitionVersion.SubscriptionProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnSubscriptionDefinitionVersion.SubscriptionProperty.Jsii$Proxy
Enclosing class:
CfnSubscriptionDefinitionVersion

@Stability(Stable) public static interface CfnSubscriptionDefinitionVersion.SubscriptionProperty extends software.amazon.jsii.JsiiSerializable
Subscriptions define how MQTT messages can be exchanged between devices, functions, and connectors in the group, and with AWS IoT or the local shadow service.

A subscription defines a message source, message target, and a topic (or subject) that's used to route messages from the source to the target. A subscription defines the message flow in one direction, from the source to the target. For two-way communication, you must set up two subscriptions, one for each direction.

In an AWS CloudFormation template, the Subscriptions property of the AWS::Greengrass::SubscriptionDefinitionVersion resource contains a list of Subscription property types.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.greengrass.*;
 SubscriptionProperty subscriptionProperty = SubscriptionProperty.builder()
         .id("id")
         .source("source")
         .subject("subject")
         .target("target")
         .build();
 

See Also: