Resource
aws.s3.BucketNotificationConfiguration
Example
let bucket = aws.s3.Bucket {
bucket = 'carina-example-notification-bucket'
tags = {
Environment = 'example'
}
}
aws.s3.BucketNotificationConfiguration {
bucket = bucket.bucket
event_bridge_configuration = {}
}
Argument Reference
bucket
- Type:
String - Required: Yes
The name of the bucket.
topic_configurations
- Type: List<Struct(TopicConfiguration)> (ordered)
- Required: No
SNS topic notification configurations.
queue_configurations
- Type: List<Struct(QueueConfiguration)> (ordered)
- Required: No
SQS queue notification configurations.
lambda_function_configurations
- Type: List<Struct(LambdaFunctionConfiguration)> (ordered)
- Required: No
Lambda function notification configurations.
event_bridge_configuration
- Type: Struct(EventBridgeConfiguration)
- Required: No
Enables EventBridge notifications when present.
Enum Values
lambda_function_configurations[].events[] (Event)
| Value | DSL Identifier |
|---|---|
s3:ReducedRedundancyLostObject |
aws.s3.BucketNotificationConfiguration.Event.s3_reduced_redundancy_lost_object |
s3:ObjectCreated:* |
aws.s3.BucketNotificationConfiguration.Event.s3_object_created |
s3:ObjectCreated:Put |
aws.s3.BucketNotificationConfiguration.Event.s3_object_created_put |
s3:ObjectCreated:Post |
aws.s3.BucketNotificationConfiguration.Event.s3_object_created_post |
s3:ObjectCreated:Copy |
aws.s3.BucketNotificationConfiguration.Event.s3_object_created_copy |
s3:ObjectCreated:CompleteMultipartUpload |
aws.s3.BucketNotificationConfiguration.Event.s3_object_created_complete_multipart_upload |
s3:ObjectRemoved:* |
aws.s3.BucketNotificationConfiguration.Event.s3_object_removed |
s3:ObjectRemoved:Delete |
aws.s3.BucketNotificationConfiguration.Event.s3_object_removed_delete |
s3:ObjectRemoved:DeleteMarkerCreated |
aws.s3.BucketNotificationConfiguration.Event.s3_object_removed_delete_marker_created |
s3:ObjectRestore:* |
aws.s3.BucketNotificationConfiguration.Event.s3_object_restore |
s3:ObjectRestore:Post |
aws.s3.BucketNotificationConfiguration.Event.s3_object_restore_post |
s3:ObjectRestore:Completed |
aws.s3.BucketNotificationConfiguration.Event.s3_object_restore_completed |
s3:Replication:* |
aws.s3.BucketNotificationConfiguration.Event.s3_replication |
s3:Replication:OperationFailedReplication |
aws.s3.BucketNotificationConfiguration.Event.s3_replication_operation_failed_replication |
s3:Replication:OperationNotTracked |
aws.s3.BucketNotificationConfiguration.Event.s3_replication_operation_not_tracked |
s3:Replication:OperationMissedThreshold |
aws.s3.BucketNotificationConfiguration.Event.s3_replication_operation_missed_threshold |
s3:Replication:OperationReplicatedAfterThreshold |
aws.s3.BucketNotificationConfiguration.Event.s3_replication_operation_replicated_after_threshold |
s3:ObjectRestore:Delete |
aws.s3.BucketNotificationConfiguration.Event.s3_object_restore_delete |
s3:LifecycleTransition |
aws.s3.BucketNotificationConfiguration.Event.s3_lifecycle_transition |
s3:IntelligentTiering |
aws.s3.BucketNotificationConfiguration.Event.s3_intelligent_tiering |
s3:ObjectAcl:Put |
aws.s3.BucketNotificationConfiguration.Event.s3_object_acl_put |
s3:LifecycleExpiration:* |
aws.s3.BucketNotificationConfiguration.Event.s3_lifecycle_expiration |
s3:LifecycleExpiration:Delete |
aws.s3.BucketNotificationConfiguration.Event.s3_lifecycle_expiration_delete |
s3:LifecycleExpiration:DeleteMarkerCreated |
aws.s3.BucketNotificationConfiguration.Event.s3_lifecycle_expiration_delete_marker_created |
s3:ObjectTagging:* |
aws.s3.BucketNotificationConfiguration.Event.s3_object_tagging |
s3:ObjectTagging:Put |
aws.s3.BucketNotificationConfiguration.Event.s3_object_tagging_put |
s3:ObjectTagging:Delete |
aws.s3.BucketNotificationConfiguration.Event.s3_object_tagging_delete |
s3:ObjectAnnotation:* |
aws.s3.BucketNotificationConfiguration.Event.s3_object_annotation |
s3:ObjectAnnotation:Put |
aws.s3.BucketNotificationConfiguration.Event.s3_object_annotation_put |
s3:ObjectAnnotation:Delete |
aws.s3.BucketNotificationConfiguration.Event.s3_object_annotation_delete |
s3:ObjectRetention:Put |
aws.s3.BucketNotificationConfiguration.Event.s3_object_retention_put |
Shorthand formats: s3_reduced_redundancy_lost_object or Event.s3_reduced_redundancy_lost_object
lambda_function_configurations[].filter.filter_rules[].name (Name)
| Value | DSL Identifier |
|---|---|
prefix |
aws.s3.BucketNotificationConfiguration.NotificationFilter.FilterRule.Name.prefix |
suffix |
aws.s3.BucketNotificationConfiguration.NotificationFilter.FilterRule.Name.suffix |
Shorthand formats: prefix or Name.prefix
queue_configurations[].events[] (Event)
| Value | DSL Identifier |
|---|---|
s3:ReducedRedundancyLostObject |
aws.s3.BucketNotificationConfiguration.Event.s3_reduced_redundancy_lost_object |
s3:ObjectCreated:* |
aws.s3.BucketNotificationConfiguration.Event.s3_object_created |
s3:ObjectCreated:Put |
aws.s3.BucketNotificationConfiguration.Event.s3_object_created_put |
s3:ObjectCreated:Post |
aws.s3.BucketNotificationConfiguration.Event.s3_object_created_post |
s3:ObjectCreated:Copy |
aws.s3.BucketNotificationConfiguration.Event.s3_object_created_copy |
s3:ObjectCreated:CompleteMultipartUpload |
aws.s3.BucketNotificationConfiguration.Event.s3_object_created_complete_multipart_upload |
s3:ObjectRemoved:* |
aws.s3.BucketNotificationConfiguration.Event.s3_object_removed |
s3:ObjectRemoved:Delete |
aws.s3.BucketNotificationConfiguration.Event.s3_object_removed_delete |
s3:ObjectRemoved:DeleteMarkerCreated |
aws.s3.BucketNotificationConfiguration.Event.s3_object_removed_delete_marker_created |
s3:ObjectRestore:* |
aws.s3.BucketNotificationConfiguration.Event.s3_object_restore |
s3:ObjectRestore:Post |
aws.s3.BucketNotificationConfiguration.Event.s3_object_restore_post |
s3:ObjectRestore:Completed |
aws.s3.BucketNotificationConfiguration.Event.s3_object_restore_completed |
s3:Replication:* |
aws.s3.BucketNotificationConfiguration.Event.s3_replication |
s3:Replication:OperationFailedReplication |
aws.s3.BucketNotificationConfiguration.Event.s3_replication_operation_failed_replication |
s3:Replication:OperationNotTracked |
aws.s3.BucketNotificationConfiguration.Event.s3_replication_operation_not_tracked |
s3:Replication:OperationMissedThreshold |
aws.s3.BucketNotificationConfiguration.Event.s3_replication_operation_missed_threshold |
s3:Replication:OperationReplicatedAfterThreshold |
aws.s3.BucketNotificationConfiguration.Event.s3_replication_operation_replicated_after_threshold |
s3:ObjectRestore:Delete |
aws.s3.BucketNotificationConfiguration.Event.s3_object_restore_delete |
s3:LifecycleTransition |
aws.s3.BucketNotificationConfiguration.Event.s3_lifecycle_transition |
s3:IntelligentTiering |
aws.s3.BucketNotificationConfiguration.Event.s3_intelligent_tiering |
s3:ObjectAcl:Put |
aws.s3.BucketNotificationConfiguration.Event.s3_object_acl_put |
s3:LifecycleExpiration:* |
aws.s3.BucketNotificationConfiguration.Event.s3_lifecycle_expiration |
s3:LifecycleExpiration:Delete |
aws.s3.BucketNotificationConfiguration.Event.s3_lifecycle_expiration_delete |
s3:LifecycleExpiration:DeleteMarkerCreated |
aws.s3.BucketNotificationConfiguration.Event.s3_lifecycle_expiration_delete_marker_created |
s3:ObjectTagging:* |
aws.s3.BucketNotificationConfiguration.Event.s3_object_tagging |
s3:ObjectTagging:Put |
aws.s3.BucketNotificationConfiguration.Event.s3_object_tagging_put |
s3:ObjectTagging:Delete |
aws.s3.BucketNotificationConfiguration.Event.s3_object_tagging_delete |
s3:ObjectAnnotation:* |
aws.s3.BucketNotificationConfiguration.Event.s3_object_annotation |
s3:ObjectAnnotation:Put |
aws.s3.BucketNotificationConfiguration.Event.s3_object_annotation_put |
s3:ObjectAnnotation:Delete |
aws.s3.BucketNotificationConfiguration.Event.s3_object_annotation_delete |
s3:ObjectRetention:Put |
aws.s3.BucketNotificationConfiguration.Event.s3_object_retention_put |
Shorthand formats: s3_reduced_redundancy_lost_object or Event.s3_reduced_redundancy_lost_object
queue_configurations[].filter.filter_rules[].name (Name)
| Value | DSL Identifier |
|---|---|
prefix |
aws.s3.BucketNotificationConfiguration.NotificationFilter.FilterRule.Name.prefix |
suffix |
aws.s3.BucketNotificationConfiguration.NotificationFilter.FilterRule.Name.suffix |
Shorthand formats: prefix or Name.prefix
topic_configurations[].events[] (Event)
| Value | DSL Identifier |
|---|---|
s3:ReducedRedundancyLostObject |
aws.s3.BucketNotificationConfiguration.Event.s3_reduced_redundancy_lost_object |
s3:ObjectCreated:* |
aws.s3.BucketNotificationConfiguration.Event.s3_object_created |
s3:ObjectCreated:Put |
aws.s3.BucketNotificationConfiguration.Event.s3_object_created_put |
s3:ObjectCreated:Post |
aws.s3.BucketNotificationConfiguration.Event.s3_object_created_post |
s3:ObjectCreated:Copy |
aws.s3.BucketNotificationConfiguration.Event.s3_object_created_copy |
s3:ObjectCreated:CompleteMultipartUpload |
aws.s3.BucketNotificationConfiguration.Event.s3_object_created_complete_multipart_upload |
s3:ObjectRemoved:* |
aws.s3.BucketNotificationConfiguration.Event.s3_object_removed |
s3:ObjectRemoved:Delete |
aws.s3.BucketNotificationConfiguration.Event.s3_object_removed_delete |
s3:ObjectRemoved:DeleteMarkerCreated |
aws.s3.BucketNotificationConfiguration.Event.s3_object_removed_delete_marker_created |
s3:ObjectRestore:* |
aws.s3.BucketNotificationConfiguration.Event.s3_object_restore |
s3:ObjectRestore:Post |
aws.s3.BucketNotificationConfiguration.Event.s3_object_restore_post |
s3:ObjectRestore:Completed |
aws.s3.BucketNotificationConfiguration.Event.s3_object_restore_completed |
s3:Replication:* |
aws.s3.BucketNotificationConfiguration.Event.s3_replication |
s3:Replication:OperationFailedReplication |
aws.s3.BucketNotificationConfiguration.Event.s3_replication_operation_failed_replication |
s3:Replication:OperationNotTracked |
aws.s3.BucketNotificationConfiguration.Event.s3_replication_operation_not_tracked |
s3:Replication:OperationMissedThreshold |
aws.s3.BucketNotificationConfiguration.Event.s3_replication_operation_missed_threshold |
s3:Replication:OperationReplicatedAfterThreshold |
aws.s3.BucketNotificationConfiguration.Event.s3_replication_operation_replicated_after_threshold |
s3:ObjectRestore:Delete |
aws.s3.BucketNotificationConfiguration.Event.s3_object_restore_delete |
s3:LifecycleTransition |
aws.s3.BucketNotificationConfiguration.Event.s3_lifecycle_transition |
s3:IntelligentTiering |
aws.s3.BucketNotificationConfiguration.Event.s3_intelligent_tiering |
s3:ObjectAcl:Put |
aws.s3.BucketNotificationConfiguration.Event.s3_object_acl_put |
s3:LifecycleExpiration:* |
aws.s3.BucketNotificationConfiguration.Event.s3_lifecycle_expiration |
s3:LifecycleExpiration:Delete |
aws.s3.BucketNotificationConfiguration.Event.s3_lifecycle_expiration_delete |
s3:LifecycleExpiration:DeleteMarkerCreated |
aws.s3.BucketNotificationConfiguration.Event.s3_lifecycle_expiration_delete_marker_created |
s3:ObjectTagging:* |
aws.s3.BucketNotificationConfiguration.Event.s3_object_tagging |
s3:ObjectTagging:Put |
aws.s3.BucketNotificationConfiguration.Event.s3_object_tagging_put |
s3:ObjectTagging:Delete |
aws.s3.BucketNotificationConfiguration.Event.s3_object_tagging_delete |
s3:ObjectAnnotation:* |
aws.s3.BucketNotificationConfiguration.Event.s3_object_annotation |
s3:ObjectAnnotation:Put |
aws.s3.BucketNotificationConfiguration.Event.s3_object_annotation_put |
s3:ObjectAnnotation:Delete |
aws.s3.BucketNotificationConfiguration.Event.s3_object_annotation_delete |
s3:ObjectRetention:Put |
aws.s3.BucketNotificationConfiguration.Event.s3_object_retention_put |
Shorthand formats: s3_reduced_redundancy_lost_object or Event.s3_reduced_redundancy_lost_object
topic_configurations[].filter.filter_rules[].name (Name)
| Value | DSL Identifier |
|---|---|
prefix |
aws.s3.BucketNotificationConfiguration.NotificationFilter.FilterRule.Name.prefix |
suffix |
aws.s3.BucketNotificationConfiguration.NotificationFilter.FilterRule.Name.suffix |
Shorthand formats: prefix or Name.prefix
Struct Definitions
event_bridge_configuration
| Field | Type | Required | Description |
|---|
lambda_function_configurations[]
| Field | Type | Required | Description |
|---|---|---|---|
id |
String |
No | |
lambda_function_arn |
String |
Yes | |
events |
List<Event> (items: 1.., ordered) | Yes | |
filter |
Struct(NotificationFilter) | No |
lambda_function_configurations[].filter
| Field | Type | Required | Description |
|---|---|---|---|
filter_rules |
List<Struct(FilterRule)> (ordered) | No |
lambda_function_configurations[].filter.filter_rules[]
| Field | Type | Required | Description |
|---|---|---|---|
name |
Name | Yes | |
value |
String |
Yes |
queue_configurations[]
| Field | Type | Required | Description |
|---|---|---|---|
id |
String |
No | |
queue_arn |
String |
Yes | |
events |
List<Event> (items: 1.., ordered) | Yes | |
filter |
Struct(NotificationFilter) | No |
queue_configurations[].filter
| Field | Type | Required | Description |
|---|---|---|---|
filter_rules |
List<Struct(FilterRule)> (ordered) | No |
queue_configurations[].filter.filter_rules[]
| Field | Type | Required | Description |
|---|---|---|---|
name |
Name | Yes | |
value |
String |
Yes |
topic_configurations[]
| Field | Type | Required | Description |
|---|---|---|---|
id |
String |
No | |
topic_arn |
String |
Yes | |
events |
List<Event> (items: 1.., ordered) | Yes | |
filter |
Struct(NotificationFilter) | No |
topic_configurations[].filter
| Field | Type | Required | Description |
|---|---|---|---|
filter_rules |
List<Struct(FilterRule)> (ordered) | No |
topic_configurations[].filter.filter_rules[]
| Field | Type | Required | Description |
|---|---|---|---|
name |
Name | Yes | |
value |
String |
Yes |