aws.eventbridge-event-bus resource¶
Description¶
EventBus is an EventBridge custom or partner event bus. Name fixes the bus' identity and EventSourceName binds a partner bus to its source, so both are replace fields. Description, dead-letter queue, KMS key, and logging settings update in place through UpdateEventBus, while tags reconcile through the tag APIs addressed by the bus ARN. Length, ARN, and partner-source pattern rules run in validate because they need character counts or regular expressions.
Source: internal/service/eventbridge/event_bus_rsrc.go:38
Example usage:
imports: {
aws: 'github.com/cloudboss/unobin-library-aws'
}
resources: {
example: aws.eventbridge-event-bus {
# Set input fields here.
}
}
Inputs¶
name
string
dead-letter-config
optional(object)
optional(
object({
arn: optional(string)
})
)
description
optional(string)
event-source-name
optional(string)
kms-key-identifier
optional(string)
log-config
optional(object)
optional(
object({
include-detail: optional(string)
level: optional(string)
})
)
tags
map(string)
Input Constraints¶
Name rules
name cannot be default.
Rule logic
- Require
input.name != 'default'
Log config rules
log-config.include-detail must be NONE or FULL.
Rule logic
- When
input.log-config.include-detail != null- Require
input.log-config.include-detail == 'NONE'
|| input.log-config.include-detail == 'FULL'
log-config.level must be OFF, ERROR, INFO, or TRACE.
Rule logic
- When
input.log-config.level != null- Require
input.log-config.level == 'OFF'
|| input.log-config.level == 'ERROR'
|| input.log-config.level == 'INFO'
|| input.log-config.level == 'TRACE'
Outputs¶
arn
string
name
string