Aws/eventsv2
@swamp/aws/eventsv2v2026.10.25.1
01README
AWS EVENTSV2 infrastructure models
02Release Notes
- Updated: event_source, subscriber
03Behaviors
@swamp/aws/eventsv2/event-busv2026.10.23.1event_bus.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| accessKeyId? | string | AWS access key ID; overrides AWS_ACCESS_KEY_ID environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| secretAccessKey? | string | AWS secret access key; overrides AWS_SECRET_ACCESS_KEY environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| sessionToken? | string | AWS session token for temporary credentials; overrides AWS_SESSION_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| region? | string | AWS region; overrides AWS_REGION / AWS_DEFAULT_REGION environment variables and ~/.aws/config profile region. Defaults to us-east-1. |
| Name | string | The name of the event bus. The first character must be alphanumeric; the remaining characters may also include '.', '-', and '_'. |
| Description? | string | A description of the event bus. Control characters and Unicode line separators are not allowed. |
| StorageConfiguration? | object | The event storage configuration for the event bus, which controls the number of days events are retained on the bus. |
| EncryptionConfiguration? | object | Encryption 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? | array | The tags assigned to the event bus. |
fn create()
Create a EventsV2 EventBus
fn get(identifier: string)
Get a EventsV2 EventBus
| Argument | Type | Description |
|---|---|---|
| identifier | string | The primary identifier of the EventsV2 EventBus |
fn update()
Update a EventsV2 EventBus
fn delete(identifier: string)
Delete a EventsV2 EventBus
| Argument | Type | Description |
|---|---|---|
| identifier | string | The primary identifier of the EventsV2 EventBus |
fn sync()
Sync EventsV2 EventBus state from AWS
fn list(maxPages?: number, resourceModel?: string)
List EventsV2 EventBus resources
| Argument | Type | Description |
|---|---|---|
| maxPages? | number | Maximum number of pages to fetch (default: 10) |
| resourceModel? | string | JSON 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
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| accessKeyId? | string | AWS access key ID; overrides AWS_ACCESS_KEY_ID environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| secretAccessKey? | string | AWS secret access key; overrides AWS_SECRET_ACCESS_KEY environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| sessionToken? | string | AWS session token for temporary credentials; overrides AWS_SESSION_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| region? | string | AWS region; overrides AWS_REGION / AWS_DEFAULT_REGION environment variables and ~/.aws/config profile region. Defaults to us-east-1. |
| Name | string | The 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. |
| EventBusArn | string | The ARN of the custom event bus the event source forwards onto. |
| Configuration | object | The event source configuration. Specify exactly one of AwsServiceEventsConfiguration or PartnerEventsConfiguration. |
| Description? | string | A description of the event source. Control characters and Unicode line separators are not allowed. |
| Tags? | array | The tags assigned to the event source. |
fn create()
Create a EventsV2 EventSource
fn get(identifier: string)
Get a EventsV2 EventSource
| Argument | Type | Description |
|---|---|---|
| identifier | string | The primary identifier of the EventsV2 EventSource |
fn update()
Update a EventsV2 EventSource
fn delete(identifier: string)
Delete a EventsV2 EventSource
| Argument | Type | Description |
|---|---|---|
| identifier | string | The primary identifier of the EventsV2 EventSource |
fn sync()
Sync EventsV2 EventSource state from AWS
fn list(maxPages?: number, resourceModel?: string)
List EventsV2 EventSource resources
| Argument | Type | Description |
|---|---|---|
| maxPages? | number | Maximum number of pages to fetch (default: 10) |
| resourceModel? | string | JSON 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
| Argument | Type | Description |
|---|---|---|
| accessKeyId? | string | AWS access key ID; overrides AWS_ACCESS_KEY_ID environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| secretAccessKey? | string | AWS secret access key; overrides AWS_SECRET_ACCESS_KEY environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| sessionToken? | string | AWS session token for temporary credentials; overrides AWS_SESSION_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| region? | string | AWS region; overrides AWS_REGION / AWS_DEFAULT_REGION environment variables and ~/.aws/config profile region. Defaults to us-east-1. |
| EventBusArn | string | The Amazon Resource Name (ARN) of the event bus whose resource policy this is. The bus must already exist. This resource does not create it. |
| PolicyDocument | record | The 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
| Argument | Type | Description |
|---|---|---|
| identifier | string | The primary identifier of the EventsV2 ResourcePolicy |
fn update()
Update a EventsV2 ResourcePolicy
fn delete(identifier: string)
Delete a EventsV2 ResourcePolicy
| Argument | Type | Description |
|---|---|---|
| identifier | string | The primary identifier of the EventsV2 ResourcePolicy |
fn sync()
Sync EventsV2 ResourcePolicy state from AWS
fn list(maxPages?: number, resourceModel?: string)
List EventsV2 ResourcePolicy resources
| Argument | Type | Description |
|---|---|---|
| maxPages? | number | Maximum number of pages to fetch (default: 10) |
| resourceModel? | string | JSON 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
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| accessKeyId? | string | AWS access key ID; overrides AWS_ACCESS_KEY_ID environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| secretAccessKey? | string | AWS secret access key; overrides AWS_SECRET_ACCESS_KEY environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| sessionToken? | string | AWS session token for temporary credentials; overrides AWS_SESSION_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| region? | string | AWS region; overrides AWS_REGION / AWS_DEFAULT_REGION environment variables and ~/.aws/config profile region. Defaults to us-east-1. |
| Name | string | The name of the subscriber. The first character must be alphanumeric; the remaining characters may also include '.', '-', and '_'. |
| EventBusArn | string | The ARN of the event bus this subscriber belongs to. |
| InvokeConfiguration | object | Configuration 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? | object | Configuration for filtering which events are delivered to the target. An event must match every filter to be delivered. |
| Type? | enum | The delivery ordering mode of the subscriber. FIFO delivers events in order within an event group; UNORDERED delivers without an ordering guarantee. |
| StartingPosition? | enum | Where the subscriber starts reading events: LATEST starts from the newest events; POINT_IN_TIME starts from the point specified in PointInTimeConfiguration. |
| PointInTimeConfiguration? | object | The point in time to start delivering events from. Used when StartingPosition is POINT_IN_TIME. |
| BatchConfiguration? | object | Configuration for batching events into a single delivery to the target. |
| Transformer? | object | Configuration for transforming events before delivery to the target. |
| RetryPolicy? | object | The retry policy for failed deliveries to the target. |
| OnFailureConfiguration? | object | The destination for events that could not be delivered to the target. |
| LogConfiguration? | object | Delivery logging configuration for the subscriber. |
| Description? | string | A description of the subscriber. Control characters and Unicode line separators are not allowed. |
| State? | enum | The 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? | enum | Resume-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? | array | The tags assigned to the subscriber. |
fn create()
Create a EventsV2 Subscriber
fn get(identifier: string)
Get a EventsV2 Subscriber
| Argument | Type | Description |
|---|---|---|
| identifier | string | The primary identifier of the EventsV2 Subscriber |
fn update()
Update a EventsV2 Subscriber
fn delete(identifier: string)
Delete a EventsV2 Subscriber
| Argument | Type | Description |
|---|---|---|
| identifier | string | The primary identifier of the EventsV2 Subscriber |
fn sync()
Sync EventsV2 Subscriber state from AWS
fn list(maxPages?: number, resourceModel?: string)
List EventsV2 Subscriber resources
| Argument | Type | Description |
|---|---|---|
| maxPages? | number | Maximum number of pages to fetch (default: 10) |
| resourceModel? | string | JSON resource model for parent-scoped listing (e.g. parent identifier) |
Resources
state(infinite)— EventsV2 Subscriber resource state
04Previous Versions
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