Expand description
Shared notification translation for setup generators and live controllers.
Structs§
- GcsNotification
Config - One GCS notification config: every rule of a Storage with the same queue and prefix. GCS filters by prefix only, so one config per rule would publish each object under a shared prefix once per rule. The consumer checks the suffixes instead.
Constants§
- AWS_
QUEUE_ INGRESS_ SID Sidof the queue policy statement that lets S3 deliver a stack’s notifications.- GCS_
RULE_ ATTRIBUTE - Stable config identity for additive GCS notification reconciliation.
- GCS_
SUFFIXES_ ATTRIBUTE - Custom GCS notification attributes
storageEventSuffixes0,storageEventSuffixes1, … whose values, concatenated in order, form a JSON array of the config’s literal suffixes.
Functions§
- aws_
notification_ id - Id of a rule’s S3 queue configuration. The stack prefix and a hash of the Storage’s identity let the owning controller recognise its own entries among everyone else’s.
- aws_
notification_ id_ prefix - Every
aws_notification_idof one Storage starts with this. - gcs_
notification_ configs - GCS notification configs for a Storage’s rules, in order of first appearance.
- gcs_
suffixes - The literal suffixes a GCS notification’s attributes carry, or
Nonewhen they carry none (every object under the config’s prefix matches). - notification_
rule_ key - Stable identity of what a rule delivers (queue, prefix, suffix), independent of its position, so adding or removing another rule never replaces this one’s subscription.
- notifications_
overlap - Whether one object key can match both rules. Rules on one Storage must not overlap: S3 rejects such a configuration (“Configuration is ambiguously defined”), so the portable declaration rejects it everywhere. Prefixes overlap when either is absent or one starts with the other; suffixes when either is absent or one ends with the other.
- queue_
receives_ storage_ notifications - Whether this queue owns an ingress grant for storage notifications in its stack.
- storages_
notifying_ queue - Ids of the Storages in the stack that notify this queue, sorted for deterministic output.