@Stability(value=Stable)
public static interface CfnSubscriptionDefinition.SubscriptionProperty
extends software.amazon.jsii.JsiiSerializable
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 SubscriptionDefinitionVersion property type 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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnSubscriptionDefinition.SubscriptionProperty.Builder
A builder for
CfnSubscriptionDefinition.SubscriptionProperty |
static class |
CfnSubscriptionDefinition.SubscriptionProperty.Jsii$Proxy
An implementation for
CfnSubscriptionDefinition.SubscriptionProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnSubscriptionDefinition.SubscriptionProperty.Builder |
builder() |
String |
getId()
A descriptive or arbitrary ID for the subscription.
|
String |
getSource()
The originator of the message.
|
String |
getSubject()
The MQTT topic used to route the message.
|
String |
getTarget()
The destination of the message.
|
@Stability(value=Stable) @NotNull String getId()
This value must be unique within the subscription definition version. Maximum length is 128 characters with pattern [a-zA-Z0-9:_-]+ .
@Stability(value=Stable) @NotNull String getSource()
The value can be a thing ARN, the ARN of a Lambda function alias (recommended) or version, a connector ARN, cloud (which represents the AWS IoT cloud), or GGShadowService .
@Stability(value=Stable) @NotNull String getSubject()
@Stability(value=Stable) @NotNull String getTarget()
The value can be a thing ARN, the ARN of a Lambda function alias (recommended) or version, a connector ARN, cloud (which represents the AWS IoT cloud), or GGShadowService .
@Stability(value=Stable) static CfnSubscriptionDefinition.SubscriptionProperty.Builder builder()
Copyright © 2022. All rights reserved.