Skip to main content

Aws/eventsv2

@swamp/aws/eventsv2v2026.10.25.1· AGPL-3.0-or-later· 1d agoBEHAVIORS
01README

AWS EVENTSV2 infrastructure models

02Release Notes
  • Updated: event_source, subscriber
03Behaviors4
@swamp/aws/eventsv2/event-busv2026.10.23.1event_bus.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessKeyId?stringAWS access key ID; overrides AWS_ACCESS_KEY_ID environment variable. Wire with a vault.get(...) expression to source it from a vault.
secretAccessKey?stringAWS secret access key; overrides AWS_SECRET_ACCESS_KEY environment variable. Wire with a vault.get(...) expression to source it from a vault.
sessionToken?stringAWS session token for temporary credentials; overrides AWS_SESSION_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
region?stringAWS region; overrides AWS_REGION / AWS_DEFAULT_REGION environment variables and ~/.aws/config profile region. Defaults to us-east-1.
NamestringThe name of the event bus. The first character must be alphanumeric; the remaining characters may also include '.', '-', and '_'.
Description?stringA description of the event bus. Control characters and Unicode line separators are not allowed.
StorageConfiguration?objectThe event storage configuration for the event bus, which controls the number of days events are retained on the bus.
EncryptionConfiguration?objectEncryption configuration for the event bus. The service stores and returns the customer managed key as its key ARN. The key ARN is recommended so that drift detection stays accurate. A key ID is also accepted and is matched to the returned key ARN when CloudFormation checks for drift; a key alias is accepted but can be reported as a value difference, because an alias cannot be matched to the key ARN it points to.
Tags?arrayThe tags assigned to the event bus.
fn create()
Create a EventsV2 EventBus
fn get(identifier: string)
Get a EventsV2 EventBus
ArgumentTypeDescription
identifierstringThe primary identifier of the EventsV2 EventBus
fn update()
Update a EventsV2 EventBus
fn delete(identifier: string)
Delete a EventsV2 EventBus
ArgumentTypeDescription
identifierstringThe primary identifier of the EventsV2 EventBus
fn sync()
Sync EventsV2 EventBus state from AWS
fn list(maxPages?: number, resourceModel?: string)
List EventsV2 EventBus resources
ArgumentTypeDescription
maxPages?numberMaximum number of pages to fetch (default: 10)
resourceModel?stringJSON resource model for parent-scoped listing (e.g. parent identifier)

Resources

state(infinite)— EventsV2 EventBus resource state
@swamp/aws/eventsv2/event-sourcev2026.10.25.1event_source.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessKeyId?stringAWS access key ID; overrides AWS_ACCESS_KEY_ID environment variable. Wire with a vault.get(...) expression to source it from a vault.
secretAccessKey?stringAWS secret access key; overrides AWS_SECRET_ACCESS_KEY environment variable. Wire with a vault.get(...) expression to source it from a vault.
sessionToken?stringAWS session token for temporary credentials; overrides AWS_SESSION_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
region?stringAWS region; overrides AWS_REGION / AWS_DEFAULT_REGION environment variables and ~/.aws/config profile region. Defaults to us-east-1.
NamestringThe name of the event source. The first character must be alphanumeric; the remaining characters may also include '.', '-', and '_'. Names cannot begin with the reserved aws. prefix.
EventBusArnstringThe ARN of the custom event bus the event source forwards onto.
ConfigurationobjectThe event source configuration. Specify exactly one of AwsServiceEventsConfiguration or PartnerEventsConfiguration.
Description?stringA description of the event source. Control characters and Unicode line separators are not allowed.
Tags?arrayThe tags assigned to the event source.
fn create()
Create a EventsV2 EventSource
fn get(identifier: string)
Get a EventsV2 EventSource
ArgumentTypeDescription
identifierstringThe primary identifier of the EventsV2 EventSource
fn update()
Update a EventsV2 EventSource
fn delete(identifier: string)
Delete a EventsV2 EventSource
ArgumentTypeDescription
identifierstringThe primary identifier of the EventsV2 EventSource
fn sync()
Sync EventsV2 EventSource state from AWS
fn list(maxPages?: number, resourceModel?: string)
List EventsV2 EventSource resources
ArgumentTypeDescription
maxPages?numberMaximum number of pages to fetch (default: 10)
resourceModel?stringJSON resource model for parent-scoped listing (e.g. parent identifier)

Resources

state(infinite)— EventsV2 EventSource resource state
@swamp/aws/eventsv2/resource-policyv2026.10.23.1resource_policy.ts

Global Arguments

ArgumentTypeDescription
accessKeyId?stringAWS access key ID; overrides AWS_ACCESS_KEY_ID environment variable. Wire with a vault.get(...) expression to source it from a vault.
secretAccessKey?stringAWS secret access key; overrides AWS_SECRET_ACCESS_KEY environment variable. Wire with a vault.get(...) expression to source it from a vault.
sessionToken?stringAWS session token for temporary credentials; overrides AWS_SESSION_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
region?stringAWS region; overrides AWS_REGION / AWS_DEFAULT_REGION environment variables and ~/.aws/config profile region. Defaults to us-east-1.
EventBusArnstringThe Amazon Resource Name (ARN) of the event bus whose resource policy this is. The bus must already exist. This resource does not create it.
PolicyDocumentrecordThe resource policy document, as a JSON object. The document can be up to 20 KB. This quota is adjustable. An empty object is not a valid policy. To remove the policy, delete this resource. The principals in the document must exist and be visible to the service when the policy is written. When you create a new IAM role or user, that principal might not be immediately visible to the service. You might need to enforce a delay before you include it in the document. For more information, see "Change
fn create()
Create a EventsV2 ResourcePolicy
fn get(identifier: string)
Get a EventsV2 ResourcePolicy
ArgumentTypeDescription
identifierstringThe primary identifier of the EventsV2 ResourcePolicy
fn update()
Update a EventsV2 ResourcePolicy
fn delete(identifier: string)
Delete a EventsV2 ResourcePolicy
ArgumentTypeDescription
identifierstringThe primary identifier of the EventsV2 ResourcePolicy
fn sync()
Sync EventsV2 ResourcePolicy state from AWS
fn list(maxPages?: number, resourceModel?: string)
List EventsV2 ResourcePolicy resources
ArgumentTypeDescription
maxPages?numberMaximum number of pages to fetch (default: 10)
resourceModel?stringJSON resource model for parent-scoped listing (e.g. parent identifier)

Resources

state(infinite)— EventsV2 ResourcePolicy resource state
@swamp/aws/eventsv2/subscriberv2026.10.25.1subscriber.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessKeyId?stringAWS access key ID; overrides AWS_ACCESS_KEY_ID environment variable. Wire with a vault.get(...) expression to source it from a vault.
secretAccessKey?stringAWS secret access key; overrides AWS_SECRET_ACCESS_KEY environment variable. Wire with a vault.get(...) expression to source it from a vault.
sessionToken?stringAWS session token for temporary credentials; overrides AWS_SESSION_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
region?stringAWS region; overrides AWS_REGION / AWS_DEFAULT_REGION environment variables and ~/.aws/config profile region. Defaults to us-east-1.
NamestringThe name of the subscriber. The first character must be alphanumeric; the remaining characters may also include '.', '-', and '_'.
EventBusArnstringThe ARN of the event bus this subscriber belongs to.
InvokeConfigurationobjectConfiguration for how the subscriber invokes its target, including the target ARN, the IAM role used to invoke it, and, optionally, the target-specific parameters object that matches the target type.
FilterConfiguration?objectConfiguration for filtering which events are delivered to the target. An event must match every filter to be delivered.
Type?enumThe delivery ordering mode of the subscriber. FIFO delivers events in order within an event group; UNORDERED delivers without an ordering guarantee.
StartingPosition?enumWhere the subscriber starts reading events: LATEST starts from the newest events; POINT_IN_TIME starts from the point specified in PointInTimeConfiguration.
PointInTimeConfiguration?objectThe point in time to start delivering events from. Used when StartingPosition is POINT_IN_TIME.
BatchConfiguration?objectConfiguration for batching events into a single delivery to the target.
Transformer?objectConfiguration for transforming events before delivery to the target.
RetryPolicy?objectThe retry policy for failed deliveries to the target.
OnFailureConfiguration?objectThe destination for events that could not be delivered to the target.
LogConfiguration?objectDelivery logging configuration for the subscriber.
Description?stringA description of the subscriber. Control characters and Unicode line separators are not allowed.
State?enumThe run state of the subscriber. Events are delivered only while the state is RUNNING. Setting the state to STOPPED pauses delivery. When an update sets a stopped subscriber back to RUNNING, ResumePosition controls where delivery resumes.
ResumePosition?enumResume-time control, never returned by the service. Applied only when an update transitions State from STOPPED to RUNNING: LAST_PROCESSED (default) resumes from the last processed event, LATEST skips to the newest. Ignored on create and on any update that does not perform that transition.
Tags?arrayThe tags assigned to the subscriber.
fn create()
Create a EventsV2 Subscriber
fn get(identifier: string)
Get a EventsV2 Subscriber
ArgumentTypeDescription
identifierstringThe primary identifier of the EventsV2 Subscriber
fn update()
Update a EventsV2 Subscriber
fn delete(identifier: string)
Delete a EventsV2 Subscriber
ArgumentTypeDescription
identifierstringThe primary identifier of the EventsV2 Subscriber
fn sync()
Sync EventsV2 Subscriber state from AWS
fn list(maxPages?: number, resourceModel?: string)
List EventsV2 Subscriber resources
ArgumentTypeDescription
maxPages?numberMaximum number of pages to fetch (default: 10)
resourceModel?stringJSON resource model for parent-scoped listing (e.g. parent identifier)

Resources

state(infinite)— EventsV2 Subscriber resource state
04Previous Versions15
2026.10.24.1AGPL-3.0-or-later
2026.10.23.1AGPL-3.0-or-later(was none)
  • Updated: event_bus, event_source, resource_policy, subscriber
2026.10.13.1
  • Updated: event_bus, event_source, resource_policy, subscriber
2026.10.08.1
2026.10.06.1
2026.10.04.1
2026.10.03.1
2026.10.02.1
2026.10.01.1
2026.09.30.1
2026.09.29.1
2026.09.28.1
2026.09.27.1
2026.09.26.1
2026.09.25.1
  • Added: event_bus, event_source, resource_policy, subscriber
05Stats
A
100 / 100
Downloads
35
Archive size
838.6 KB
Verified by Swamp
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Docs keep secrets in a vault1/1earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License2/2earned
  • Verified public repository2/2earned
06Platforms
07Labels