getBucketNotificationConfiguration not returning filters

0

Hi,

We put the topic configuration using 'putBucketNotificationConfiguration' but when we tried to get it back with getBucketNotificationConfiguration
It returns everything but the Filters and there are filters, I can see those on the web and when creating the event we pass the topic config with the filters.

Here is what we send to the putBucketNotificationConfiguration as topic configuration
{
"Id": "my-id",
"TopicArn": "arn:aws:sns:eu-west-1:account-number:my-id",
"Events": [
"s3:ObjectCreated:*"
],
"Filter": {
"Key": {
"FilterRules": [
{
"Name": "prefix",
"Value": "data-lake/scada_mdb"
}
]
}
}
}

And this is what we get back

{
"Id": "my-id",
"Events": [
"s3:ObjectCreated:"
],
"Event": "s3:ObjectCreated:
",
"Topic": "arn:aws:sns:eu-west-1:account-number:my-id"
}

As you can see the filters are missing and for us this is the most crucial part. Any reason those are not coming back?

We know for sure that the bucket is configured correctly because we can see the notification working as expected but we need to be able to get the right configuration back.

질문됨 3년 전175회 조회
1개 답변
0

My bad, I was running 'getBucketNotification' instead of 'getBucketNotificationConfiguration' but as I was promisifying I didn't notice >.<

답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠