Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Returns the notification configuration of a bucket.
If notifications are not enabled on the bucket, the action returns an
empty NotificationConfiguration
element.
By default, you must be the bucket owner to read the notification
configuration of a bucket. However, the bucket owner can use a bucket
policy to grant permission to other users to read this configuration
with the s3:GetBucketNotification
permission.
For more information about setting and reading the notification configuration on a bucket, see Setting Up Notification of Bucket Events. For more information about bucket policies, see Using Bucket Policies.
The following action is related to GetBucketNotification
:
Synopsis
- data GetBucketNotificationConfiguration = GetBucketNotificationConfiguration' {}
- newGetBucketNotificationConfiguration :: BucketName -> GetBucketNotificationConfiguration
- getBucketNotificationConfiguration_expectedBucketOwner :: Lens' GetBucketNotificationConfiguration (Maybe Text)
- getBucketNotificationConfiguration_bucket :: Lens' GetBucketNotificationConfiguration BucketName
- data NotificationConfiguration = NotificationConfiguration' {}
- newNotificationConfiguration :: NotificationConfiguration
- notificationConfiguration_eventBridgeConfiguration :: Lens' NotificationConfiguration (Maybe EventBridgeConfiguration)
- notificationConfiguration_lambdaFunctionConfigurations :: Lens' NotificationConfiguration (Maybe [LambdaFunctionConfiguration])
- notificationConfiguration_queueConfigurations :: Lens' NotificationConfiguration (Maybe [QueueConfiguration])
- notificationConfiguration_topicConfigurations :: Lens' NotificationConfiguration (Maybe [TopicConfiguration])
Creating a Request
data GetBucketNotificationConfiguration Source #
See: newGetBucketNotificationConfiguration
smart constructor.
GetBucketNotificationConfiguration' | |
|
Instances
newGetBucketNotificationConfiguration Source #
Create a value of GetBucketNotificationConfiguration
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:expectedBucketOwner:GetBucketNotificationConfiguration'
, getBucketNotificationConfiguration_expectedBucketOwner
- The account ID of the expected bucket owner. If the bucket is owned by a
different account, the request fails with the HTTP status code
403 Forbidden
(access denied).
GetBucketNotificationConfiguration
, getBucketNotificationConfiguration_bucket
- The name of the bucket for which to get the notification configuration.
Request Lenses
getBucketNotificationConfiguration_expectedBucketOwner :: Lens' GetBucketNotificationConfiguration (Maybe Text) Source #
The account ID of the expected bucket owner. If the bucket is owned by a
different account, the request fails with the HTTP status code
403 Forbidden
(access denied).
getBucketNotificationConfiguration_bucket :: Lens' GetBucketNotificationConfiguration BucketName Source #
The name of the bucket for which to get the notification configuration.
Destructuring the Response
data NotificationConfiguration Source #
A container for specifying the notification configuration of the bucket. If this element is empty, notifications are turned off for the bucket.
See: newNotificationConfiguration
smart constructor.
NotificationConfiguration' | |
|
Instances
newNotificationConfiguration :: NotificationConfiguration Source #
Create a value of NotificationConfiguration
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:eventBridgeConfiguration:NotificationConfiguration'
, notificationConfiguration_eventBridgeConfiguration
- Enables delivery of events to Amazon EventBridge.
$sel:lambdaFunctionConfigurations:NotificationConfiguration'
, notificationConfiguration_lambdaFunctionConfigurations
- Describes the Lambda functions to invoke and the events for which to
invoke them.
$sel:queueConfigurations:NotificationConfiguration'
, notificationConfiguration_queueConfigurations
- The Amazon Simple Queue Service queues to publish messages to and the
events for which to publish messages.
$sel:topicConfigurations:NotificationConfiguration'
, notificationConfiguration_topicConfigurations
- The topic to which notifications are sent and the events for which
notifications are generated.
Response Lenses
notificationConfiguration_eventBridgeConfiguration :: Lens' NotificationConfiguration (Maybe EventBridgeConfiguration) Source #
Enables delivery of events to Amazon EventBridge.
notificationConfiguration_lambdaFunctionConfigurations :: Lens' NotificationConfiguration (Maybe [LambdaFunctionConfiguration]) Source #
Describes the Lambda functions to invoke and the events for which to invoke them.
notificationConfiguration_queueConfigurations :: Lens' NotificationConfiguration (Maybe [QueueConfiguration]) Source #
The Amazon Simple Queue Service queues to publish messages to and the events for which to publish messages.
notificationConfiguration_topicConfigurations :: Lens' NotificationConfiguration (Maybe [TopicConfiguration]) Source #
The topic to which notifications are sent and the events for which notifications are generated.