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. - aws_
trigger_ events - The S3 event names a worker’s storage trigger subscribes to.
- aws_
trigger_ notification_ id - Id of the S3 function configuration (and of the Lambda permission statement) a worker’s storage trigger installs.
- azure_
subscription_ name - The name of the Event Grid subscription that delivers one rule of the storage in
container. It carries the hash of what the rule delivers, not its position. At most 59 characters. - azure_
subscription_ prefix - Every Event Grid subscription name of this container’s rules starts with this. Azure container names are ASCII; the hash keeps long names distinct after truncation.
- 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.