Introducing a new way to review your PRs.

Read the announcement

floci-io / floci

Light, fluffy, and always free - The AWS Local Emulator alternative

View on GitHub

38 documents · Updated Nov 23, 2026

docs / svc-messaging-sqs-sns

SQS and SNS messaging

Floci provides local SQS queues and SNS topics for pull-based work and publish-based fan-out. Queues retain messages until consumers receive and delete them. Topics select eligible subscriptions and deliver each publication to SQS, Lambda, Firehose, HTTP, mobile, or local notification targets.

Messaging model

The messaging model separates work storage from message distribution. A producer sends to a queue when one consumer should pull work. It publishes to a topic when several consumers should receive the same event through their own delivery paths.

An SNS subscription joins one topic to one protocol and endpoint. SNS applies confirmation state and an optional filter before it delivers the message. An SQS subscription then enters the normal queue lifecycle, while other protocols use their own consumer interface.

The main path from publication to consumption is:

flowchart LR
    Producer[Producer] --> Topic[SNS topic]
    Producer --> Queue[SQS queue]
    Topic --> Confirm{Subscription confirmed?}
    Confirm -->|no| Skip[No delivery]
    Confirm -->|yes| Filter{Filter matches?}
    Filter -->|no| Skip
    Filter -->|yes| SQS[SQS subscription]
    Filter -->|yes| Lambda[Lambda invocation]
    Filter -->|yes| Firehose[Firehose record]
    Filter -->|yes| HTTP[HTTP or HTTPS request]
    Filter -->|yes| Push[Mobile push capture]
    Filter -->|yes| Stub[Local email or SMS capture]
    SQS --> Consumer[Queue consumer]

References: src/…/SnsService.java• L1107-1143 src/…/SnsService.java• L2523-2654 src/…/SqsService.java• L1450-1509

Service API surfaces

The SQS service exposes queue and message operations through the AWS Query protocol and AWS JSON 1.0. The SQS Query handler returns XML errors and results, while the JSON handler returns JSON results and errors. Both handlers call the same SQS service, so the wire format does not change queue behavior.

The API surface covers resource management, message send and receive, batch work, visibility, tags, permissions, and dead-letter operations. Receive requests can select message attributes by name, All, *, .*, or a name prefix ending in .*. They can also select system attributes such as receive counts, FIFO fields, sender identity, and AWSTraceHeader. Batch operations report successful and failed entries separately. An oversized send batch fails as a whole before entries are sent. Queue resource policies are supplied to IAM by queue ARN, including the ARN account used for cross-account evaluation. Access policy behavior is described in IAM and authentication.

SNS exposes topic, subscription, publication, tag, SMS preference, SMS sandbox, platform application, and platform endpoint operations through both its Query and JSON handlers. The handlers also expose single and batch publication, while the shared service keeps message validation and delivery behavior the same across both wire formats. Query tag operations return the modeled empty result shape expected by SNS clients. Publish batches report entry-level validation failures while continuing with valid entries, but a batch that exceeds the topic size limit fails before fan-out. These APIs connect SNS to SQS, Lambda, Firehose, HTTP consumers, mobile endpoints, and local SMS inspection. Related downstream consumers are described in Lambda and request-driven event flows are described in EventBridge and Step Functions.

References: src/…/SqsQueryHandler.java• L43-86 src/…/SqsJsonHandler.java• L41-69 src/…/SqsQueryHandler.java• L275-323 src/…/SqsJsonHandler.java• L260-317 src/…/SqsQueryHandler.java• L366-449 src/…/SqsJsonHandler.java• L368-453 src/…/SqsResourcePolicyProvider.java• L27-39 src/…/SnsService.java• L1559-1639 src/…/SnsQueryHandler.java• L39-84 src/…/SnsJsonHandler.java• L43-87

SQS queues

An SQS queue is the pull-based work boundary. It has a URL, ARN, attributes, tags, and a standard or FIFO delivery mode. Queue lookup accepts a full URL or a queue name. URL path normalization keeps equivalent host forms connected to the same queue and uses the account path when one is present. Clients can use either Floci's endpoint form or an AWS-shaped endpoint form when that service setting is enabled.

Queue resources support these broad operations:

  • Create, list, inspect, update, tag, and delete queues.
  • Send, receive, delete, and change message visibility.
  • Purge a queue and inspect messages without consuming them.
  • Configure redrive behavior and move messages from a dead-letter queue.
  • Store queue permissions and expose the queue policy to IAM.

Queue attributes expose approximate counts for visible, in-flight, and delayed messages. These counts describe queue state. They are not another source of messages. SQS accepts a message-size limit from 1 KiB through 1 MiB. The service default is normally 1 MiB, and each queue applies its configured effective limit to message bodies and attributes. Queue tags are also available through the Resource Groups Tagging API, which translates a queue ARN to the queue's own tag operations.

The queue policy is a resource policy stored with the queue. IAM looks it up from a specific SQS ARN and uses the account in that ARN to judge cross-account access. A list request or a wildcard ARN does not identify one queue policy.

References: src/…/SqsService.java• L723-814 src/…/SqsService.java• L819-935 src/…/SqsService.java• L2059-2191 src/…/SqsResourcePolicyProvider.java• L27-39 src/…/SqsInspectionController.java• L23-50 src/…/SqsTagHandler.java• L21-52

SQS message lifecycle

An SQS message moves between available, delayed, and in-flight states. A receive operation claims a visible message and returns a queue-bound signed receipt handle. The consumer must delete the message before the visibility timeout ends. Otherwise, the message can become visible again for another receive.

Queue operations apply message state changes as complete actions. This keeps concurrent sends, receives, deletes, visibility changes, expiry cleanup, and moves from exposing a partial queue state.

The message keeps its body, attributes, identifiers, timestamps, receive count, FIFO fields, sender identity, trace data, and retention start. Receive state stays separate from message content. FIFO queues require a message group and a usable deduplication ID. Content-based deduplication can derive the ID from the message. A duplicate within the five-minute window is treated as an idempotent send and does not add another queue message. A queue can scope FIFO deduplication to the whole queue or to a message group.

Long polling waits for a message or until its wait time ends. A queue deletion ends a waiting receive without allowing it to consume messages from a queue recreated with the same URL. A receipt handle must have the right queue identity and signature. Standard queues accept an older handle for a message, while FIFO queues require the handle from the current in-flight receive. An in-flight FIFO message also blocks later messages in the same group until it is deleted or its visibility expires. Receive attribute selection treats All, *, and .* as all attributes, while a name ending in .* selects that name prefix.

References: src/…/SqsService.java• L996-1208 src/…/SqsService.java• L1450-1584 src/…/GuardedMessageQueue.java• L64-243 src/…/ReceiptHandle.java• L11-56 src/…/SqsMessageAttributeSelector.java• L14-37 src/…/Message.java• L21-125 src/…/MessageAttributeValue.java• L8-45

SQS message retention

Message retention limits how long a message can remain in a queue. The default is four days. A queue can set a retention period from 60 seconds through 14 days, and the service normalizes a valid value before storing it.

Expired messages are removed when the queue is read and by a background sweeper that runs once per minute. The read path therefore does not return expired messages even if the periodic cleanup has not run. A moved message starts a new retention period when it enters a FIFO dead-letter queue or another queue through a message move.

References: src/…/SqsService.java• L1247-1263 src/…/SqsService.java• L2303-2326 src/…/SqsRetentionSweeper.java• L15-55 src/…/Message.java• L50-124

SQS CloudWatch metrics

SQS publishes queue metrics to CloudWatch once per minute when SQS and CloudWatch metrics are enabled. The publisher includes queues that hold messages or had activity in the last six hours, so an empty queue can remain visible in metrics after a send, receive, delete, or queue API call.

The metrics describe both queue state and work done during the previous minute:

  • Queue state includes visible, in-flight, and delayed message counts plus the age of the oldest message.
  • Work counters include sent, received, deleted, and empty receive calls.
  • FIFO queues also report in-flight message groups and deduplicated sends.
  • Sent message size uses one sample per message. Other counters include a zero sample when no call occurred.

The publisher labels data with the queue name and writes it under the AWS/SQS namespace. Shared minute scheduling stamps samples to the minute that ended and prevents a repeated publication attempt from duplicating that minute. It keeps one-minute history for 15 days and isolates a failed queue write from other queues in the same tick.

References: src/…/SqsService.java• L2329-2359 src/…/GuardedMessageQueue.java• L284-341 src/…/SqsQueueActivity.java• L24-71 src/…/SqsMetricsPublisher.java• L19-117 src/…/MinuteMetricsPublisher.java• L15-115

Dead-letter queues

A dead-letter queue stores messages that exceed the source queue's receive limit. The source queue points to the dead-letter queue through its redrive policy. When the limit is reached, the message leaves the source queue and becomes available in the dead-letter queue without its old receipt state.

The message move API sends dead-letter messages to a named destination or back to their original source. The first move is visible when the API returns. Remaining moves can run in the background and can be rate-limited or cancelled. A failed move restores the message at the source queue head. A successful move creates a new message identity while retaining the body, attributes, FIFO fields, and trace data. The moved copy starts a new receive life and a new retention period.

References: src/…/SqsService.java• L1556-1584 src/…/SqsService.java• L1759-2009 src/…/SqsJsonHandler.java• L455-509 src/…/SqsQueryHandler.java• L451-502 src/…/Message.java• L109-124

SNS topics

An SNS topic is the publish-based distribution boundary. It has an ARN, attributes, tags, and a standard or FIFO mode. A FIFO topic requires a message group and uses an explicit or content-derived deduplication ID within a five-minute window.

Topic publication checks the message body and attributes against the topic's configured size. MessageStructure=json lets SNS select a protocol-specific value with a textual default fallback. The topic validates that structure before fan-out so a malformed publication fails before any subscription receives it. In a publish batch, an invalid entry is returned as a failed entry while valid entries continue. A batch whose combined size exceeds the topic limit fails before any entry is delivered.

Topics use a 256 KiB default publication limit and support a configured limit up to 1 MiB. A topic above the default has a narrower subscription contract: it supports at most 100 subscriptions and allows only SQS, Firehose, or Lambda endpoints. The limit is applied to the topic's publication rather than to each subscriber's final representation.

References: src/…/SnsService.java• L567-605 src/…/SnsService.java• L698-709 src/…/SnsService.java• L1042-1143 src/…/SnsService.java• L1559-1639 src/…/Topic.java• L13-41

SNS topic policies

An SNS topic policy is the resource policy that describes which principals can use topic actions. IAM policy evaluation gets the policy by the topic ARN, so it uses the account and Region named by the topic rather than the caller's credential scope. This keeps a request to another account's topic in the cross-account path.

A topic with no stored policy has the default AWS-style policy for its owner. The default grants topic management, subscription, and publication actions when the source owner condition matches. AddPermission, RemovePermission, and SetTopicAttributes store policy changes for later reads through topic attributes. The SNS service stores and exposes these statements; IAM uses the resource-policy provider when it evaluates access.

The provider returns no policy for a non-SNS ARN or an ARN that does not identify a valid SNS topic resource. For a valid topic ARN, it returns the stored policy or the default policy with the ARN's account as owner. This makes policy lookup stable even when the named topic is not present in local storage, while the request itself can still fail because the topic does not exist.

References: src/…/SnsService.java• L633-695 src/…/SnsService.java• L698-808 src/…/SnsResourcePolicyProvider.java• L12-46

SNS subscriptions

An SNS subscription connects one topic to one protocol and endpoint. SNS returns an existing subscription for the same protocol and endpoint on that topic instead of creating a duplicate. HTTP, HTTPS, email, email-json, and SMS subscriptions begin pending confirmation, so they receive no topic messages until confirmed.

Subscription attributes shape delivery and matching. FilterPolicy selects messages. FilterPolicyScope selects message attributes or a JSON message body. SNS reports that scope with subscription attributes only when a filter policy exists. RawMessageDelivery selects the payload without the usual SNS envelope for supported consumers. Firehose subscriptions also require a valid role ARN. HTTP and HTTPS endpoints must use the protocol's URL scheme and cannot target cloud metadata addresses.

References: src/…/SnsService.java• L925-1029 src/…/SnsService.java• L1490-1553 src/…/Subscription.java• L12-63

SNS publication and delivery

When SNS publishes to a topic, it validates the topic message, applies FIFO deduplication, and visits each subscription. Confirmed subscriptions that pass their filter receive a protocol-specific payload. A topic publication has one message ID, while each target interprets that message through its own interface. Non-raw notification envelopes and Lambda events carry an SNS signature and a certificate URL so consumers can verify the source.

The delivery paths are:

TargetDelivery behavior
SQSSNS calls the SQS service. Default delivery places an SNS JSON envelope in the queue. Raw delivery places the selected payload in the queue and forwards message attributes. FIFO group and deduplication values pass to a FIFO queue. SNS retries a failed SQS delivery up to three times, then uses the subscription's SQS dead-letter target when configured.
LambdaSNS invokes the function asynchronously with an SNS notification event.
FirehoseSNS writes the selected payload to the delivery stream. Default delivery uses an SNS envelope. Raw delivery writes the selected payload.
HTTP or HTTPSSNS sends an asynchronous notification request with SNS headers. Non-raw notifications include a verifiable SNS signature and certificate URL. Delivery errors are logged and do not change the publish result.
Mobile application endpointSNS records a push notification for an enabled endpoint and platform application. Direct endpoint publication and topic fan-out use the same capture path.
Email, email-json, or SMS subscriptionSNS records the delivery as a local stub instead of sending it over a network.

SQS and Firehose delivery is synchronous within the emulator. A successful topic call can therefore create an immediately receivable queue message or stream record. HTTP delivery is asynchronous. Each target can fail independently, so one failed subscription does not undo delivery to the others or change the publisher result. A failed SQS delivery can be recorded in its subscription dead-letter queue without changing that isolation. SQS delivery still applies the destination queue's own size limit, so an SNS envelope can fail even when the topic publication fits the topic limit. SNS signs notification and confirmation messages with a stored local RSA certificate. Signature version 1 uses SHA1withRSA and version 2 uses SHA256withRSA. The certificate is local and can be fetched from the SNS inspection path named by SigningCertURL or SigningCertUrl.

References: src/…/SnsService.java• L2519-2654 src/…/SnsService.java• L2668-2734 src/…/SnsService.java• L2736-2834 src/…/SnsMessageSigner.java• L32-41 src/…/SnsMessageSigner.java• L93-131 src/…/SnsInspectionController.java• L31-56

SNS filter policies

An SNS filter policy decides whether a confirmed subscription receives a publication. Without a policy, the subscription matches. With a policy, every policy key must match, while any rule in one key's rule list can match. Attribute-scope policies inspect message attributes. Body-scope policies parse the message as JSON and can inspect nested values.

Supported rules include exact values, key existence, string prefixes and suffixes, case-insensitive equality, wildcards, CIDR ranges, excluded values, numeric comparisons, and alternatives in $or groups. String-array attributes match when one element meets a rule. Body rules also match JSON strings, numbers, booleans, nulls, and nested arrays. An invalid policy or invalid body JSON fails closed: the subscription receives no message and the publisher receives no filter exception.

References: src/…/SnsService.java• L1691-1764 src/…/SnsService.java• L1767-1905 src/…/SnsService.java• L1930-2205

Mobile push and SMS capture

SNS models mobile push resources and local SMS results in addition to queue and topic delivery. Platform applications support APNS, APNS_SANDBOX, GCM, and FCM. Endpoints belong to an application and can be enabled or disabled.

A direct endpoint publication or an application subscription records a push notification for inspection. Direct SMS publication records the phone number, message, subject, and time. The local /_aws/sns inspection endpoint lists or clears captured SMS messages and can filter them by phone number or message ID. These captures let local consumers inspect outbound behavior without a mobile or SMS provider.

SNS also models the SMS sandbox. The account reports that it is not in the sandbox for delivery purposes, so SMS publication still records messages for any destination. Sandbox phone records are regional and have Pending or Verified status. Creating a pending record generates a one-time password and records a verification SMS. Verification changes the record to Verified; listing supports pagination, and deletion removes the record. The Query and JSON APIs expose the sandbox status, create, verify, delete, and list operations.

SNS also stores SMS account preferences by account and region. The supported preference names cover spend limits, delivery status settings, sender defaults, message type, and usage reporting. A set operation validates the supported values, while an empty value removes that preference. A get operation returns all stored preferences or only the requested names. Opt-out checks always report no opted-out numbers because the local emulator does not receive STOP replies.

References: src/…/SnsService.java• L365-565 src/…/SnsService.java• L1145-1479 src/…/SnsInspectionController.java• L49-97 src/…/SnsPushInspectionController.java• L25-80 src/…/PlatformApplication.java• L13-39 src/…/PlatformEndpoint.java• L13-40 src/…/PushNotification.java• L9-25 src/…/SentSms.java• L16-65 src/…/SmsSandboxPhoneNumber.java• L7-43

Change checklist

When these files or sections are changed, remember to consider these:

  • If the SQS message shape changes, check the Query XML response, JSON response, SNS raw delivery, selected message attributes, and selected system attributes together.
  • If SQS batch parsing changes, check empty and oversized batches, total payload size, per-entry failures, and both Query and JSON result shapes.
  • If queue URL or ARN conversion changes, check SNS-to-SQS delivery and SQS lookup together. The subscription endpoint must resolve to the queue that consumers read.
  • If receipt validation changes, check signed handle creation, queue and account binding, standard versus FIFO handle rules, single-message errors, and batch error codes together.
  • If FIFO deduplication changes, check the separate SNS topic window, SQS queue window, queue-wide versus message-group scope, message identity response, and purge link between them.
  • If message retention changes, check validation bounds, lazy read cleanup, the scheduled sweeper, and retention reset during queue moves together.
  • If redrive or move behavior changes, check receive-limit routing, original-source tracking, copied attributes and FIFO fields, fresh receive state, source restoration, destination visibility, and new message identity together.
  • If an SQS handler action changes, update both Query and JSON dispatch and response mappings. Keep protocol-specific error envelopes aligned with the shared service result.
  • If an SNS Query action changes, check its action dispatch, parameter parsing, modeled XML result shape, and shared service call together.
  • If a subscription protocol changes, update payload selection, confirmation rules, endpoint validation, and the delivery target path as one contract.
  • If SNS signing changes, check signed delivery shapes, signature version selection, certificate persistence, certificate retrieval, and both certificate URL field names together.
  • If filter rules change, check attribute scope, body scope, nested values, array attributes, $or handling, fail-closed behavior, and the reported FilterPolicyScope attribute together.
  • If topic or queue policy lookup or mutation changes, check ARN account resolution, default or stored policy behavior, IAM evaluation, and AddPermission or RemovePermission behavior together.
  • If SMS sandbox behavior changes, check the persisted number status, one-time password lifecycle, regional keys, paginated Query and JSON responses, and captured verification SMS together.
  • If SQS metric collection or publication changes, keep active-queue selection, one-minute claims, per-minute counter draining, FIFO-only metrics, the AWS/SQS namespace, and the 15-day cleanup window aligned.

Important failure modes

TriggerConsequenceGuard
A queue is deleted and recreated while a receive waitsThe old receive returns without consuming a message from the new queueThe receive path checks the queue instance before each claim
A FIFO send has no message group or usable deduplication IDThe send is rejectedFIFO validation requires a group and an explicit or content-derived ID
A message or batch exceeds the configured SQS sizeThe send fails. An oversized batch fails before any entry is sentSQS counts UTF-8 body and attribute bytes against the queue limit
A message retention value is below 60 seconds, above 14 days, or not an integerQueue creation or update failsSQS validates and normalizes the retention period
A topic publication exceeds its configured sizeFan-out does not startSNS checks body and attribute size before publication
An SNS publish batch has an invalid entryThat entry is returned in Failed, while valid entries can publishSNS validates entries independently after checking the batch size
An SNS publish batch exceeds the topic size limitNo batch entry is deliveredSNS checks the combined batch size before processing entries
A topic uses MessageStructure=json with invalid JSON or no textual default valueThe publication fails before any subscription receives itSNS validates the message structure before fan-out
A subscription is pending confirmationThe topic skips delivery to that subscriptionConfirmation changes the subscription to active state
An SNS filter policy or body-scope message is invalidThe subscription receives no messageFilter evaluation fails closed
SNS-to-SQS delivery fails or the SNS envelope exceeds the destination queue limitThe target receives no message unless its subscription dead-letter target accepts itSNS retries three times, then uses the configured subscription dead-letter target
An HTTP or HTTPS endpoint cannot accept a notificationThe publish still succeeds and the endpoint receives no notificationHTTP delivery runs asynchronously and logs the failure
A receipt handle is edited, signed for another queue, or stale on a FIFO queueDelete or visibility change is rejectedSQS checks the handle format, signature, queue identity, and FIFO in-flight handle
A message move succeedsConsumers see a new message ID and fresh receive stateMessage moves copy content and delivery fields but create a new identity and reset retention
A topic or queue policy ARN is malformed, broad, or names a non-resource targetIAM receives no resource policy for the requestThe resource-policy providers accept only valid, specific SNS topic or SQS queue ARNs
A topic policy is missing or blankIAM sees the owner's default topic policy rather than an empty policySNS policy lookup supplies the default policy with the ARN's account as owner
A stored topic or queue policy is not a JSON objectA policy edit failsSNS and SQS validate the policy shape before changing it
An SMS sandbox verification uses the wrong code or a missing numberVerification fails and the number stays pending, or the request reports that the number is not in the sandboxThe sandbox checks number format, stored status, and the generated one-time password
A stored SNS signing certificate no longer matches its private keySigned delivery cannot use the stored material and a new signing key is generatedThe signer validates the certificate and key pair before use
SQS or CloudWatch metrics are disabledThe emulator does not publish AWS/SQS queue metricsMetric publication requires the SQS metric and CloudWatch metric settings
The same SQS metric minute is published more than onceThe later attempt does not add duplicate samplesThe shared minute publisher records the last attempted minute
Metric collection fails for a minuteThat minute's SQS samples are droppedThe publisher catches collection errors and continues future ticks
A metric write fails for one queueThat queue loses its samples for the minute, but other queues still publishThe publisher handles each queue write separately

Key files

FileWhy to read it
src/…/SqsService.javaMain SQS resource API, message lifecycle, retention, FIFO rules, redrive, lookup, tags, permissions, message moves, resource-policy lookup, and metric collection
src/…/SqsResourcePolicyProvider.javaSupplies queue policies and queue owner accounts to IAM resource-policy evaluation
src/…/SqsQueryHandler.javaSQS Query request mapping, XML results, selected attributes, batches, and protocol errors
src/…/SqsJsonHandler.javaSQS JSON 1.0 request mapping, selected attributes, batches, and JSON results
src/…/SqsInspectionController.javaLocal, non-destructive queue inspection and purge endpoint used by consumers and tests
src/…/GuardedMessageQueue.javaThread-safe queue claim, visibility, deletion, retention cleanup, message counts, and metric gauges
src/…/SqsQueueActivity.javaPer-minute SQS operation samples used for CloudWatch counters and message-size data
src/…/SqsMetricsPublisher.javaSQS metric target collection and AWS/SQS metric shaping
src/…/MinuteMetricsPublisher.javaShared minute scheduling, duplicate-minute protection, per-target failure isolation, and metric history cleanup
src/…/ReceiptHandle.javaQueue-bound signed receipt handles used by delete and visibility operations
src/…/SqsRetentionSweeper.javaPeriodic cleanup of messages that exceed queue retention
src/…/SqsMessageAttributeSelector.javaReceive-time selection of message attributes, all-name markers, and wildcard name patterns
src/…/Message.javaMessage content, delivery state, attributes, trace data, and state reset when a message moves
src/…/SnsService.javaSNS topic and subscription state, topic policies, publication, filtering, payload selection, SMS sandbox, and delivery integration
src/…/SnsResourcePolicyProvider.javaSupplies topic policies and topic owner accounts to IAM resource-policy evaluation
src/…/SnsQueryHandler.javaSNS Query actions, parameter parsing, and XML response and error mappings
src/…/SnsJsonHandler.javaSNS JSON actions and JSON response mappings, including SMS sandbox operations
src/…/SnsMessageAttributes.javaConverts SNS API message attributes into the shared message form used by filtering and delivery
src/…/SnsMessageSigner.javaSNS notification and confirmation signatures, stored signing keys, and certificate URLs
src/…/SnsInspectionController.javaLocal SMS capture inspection and certificate retrieval for SNS delivery verification
src/…/SnsPushInspectionController.javaLocal inspection of captured mobile push notifications
src/…/SmsSandboxPhoneNumber.javaPersisted SMS sandbox number status and pending verification data
src/…/PlatformApplication.javaSNS mobile platform application identity and settings
src/…/PlatformEndpoint.javaMobile endpoint identity, token, and enabled state
src/…/PushNotification.javaCaptured mobile push payload and message metadata
src/…/SentSms.javaCaptured SMS content and delivery metadata
src/…/Subscription.javaTopic subscription protocol, endpoint, confirmation state, and delivery attributes
src/…/Topic.javaTopic identity, publication attributes, tags, and policy state