MCPcopy Create free account
hub / github.com/dan-v/lambda-nat-proxy / GetBucketNotifications

Method GetBucketNotifications

internal/deploy/triggers.go:177–188  ·  view source on GitHub ↗

GetBucketNotifications retrieves current bucket notification configuration

(ctx context.Context, bucketName string)

Source from the content-addressed store, hash-verified

175
176// GetBucketNotifications retrieves current bucket notification configuration
177func (t *TriggerDeployer) GetBucketNotifications(ctx context.Context, bucketName string) (*s3.NotificationConfiguration, error) {
178 input := &s3.GetBucketNotificationConfigurationRequest{
179 Bucket: aws.String(bucketName),
180 }
181
182 result, err := t.clients.S3.GetBucketNotificationConfigurationWithContext(ctx, input)
183 if err != nil {
184 return nil, err
185 }
186
187 return result, nil
188}
189
190// ValidateTriggerConfiguration validates that S3 triggers are properly configured
191func (t *TriggerDeployer) ValidateTriggerConfiguration(ctx context.Context, bucketName, functionArn string) error {

Callers 2

getS3StatusFunction · 0.95

Tested by

no test coverage detected