-
Notifications
You must be signed in to change notification settings - Fork 27
/
awscommunity-s3-bucketnotification.json
146 lines (146 loc) · 4.71 KB
/
awscommunity-s3-bucketnotification.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
"typeName": "AwsCommunity::S3::BucketNotification",
"description": "Configure bucket notifications for a variety of targets.",
"sourceUrl": "https://github.com/aws-cloudformation/awslabs-registry-extension-bucket-notification.git",
"definitions": {
"KeyVal": {
"description": "A key value pair",
"type": "object",
"properties": {
"Name": {
"type": "string"
},
"Value": {
"type": "string"
}
},
"additionalProperties": false
}
},
"tagging": {
"taggable": false
},
"properties": {
"Id": {
"description": "A unique identifier for the notification. This is required, since we have to query all notifications configured on the bucket in order to leave any of them not defined here intact.",
"type": "string"
},
"Events": {
"description": "The S3 event types. See https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-event-types-and-destinations.html#supported-notification-event-types",
"type": "array",
"insertionOrder": false,
"items": {
"type": "string"
}
},
"Filters": {
"description": "The filters to apply to events",
"type": "array",
"insertionOrder": false,
"items": {
"$ref": "#/definitions/KeyVal"
}
},
"BucketArn": {
"description": "The ARN of the bucket",
"type": "string"
},
"TargetArn": {
"description": "The ARN to the Lambda Function, SQS Queue, or SNS Topic",
"type": "string"
},
"TargetType": {
"description": "The target type, Function, Queue, or Topic",
"type": "string",
"enum": [ "Function", "Queue", "Topic" ]
}
},
"additionalProperties": false,
"required": [
"Id",
"Events",
"BucketArn",
"TargetArn",
"TargetType"
],
"primaryIdentifier": [
"/properties/Id",
"/properties/BucketArn"
],
"createOnlyProperties": [
"/properties/Id",
"/properties/BucketArn"
],
"handlers": {
"create": {
"permissions": [
"iam:CreateRole",
"iam:GetRole",
"iam:DeleteRole",
"s3:PutBucketNotification",
"s3:GetBucketNotification",
"sns:AddPermission",
"sns:ConfirmSubscription",
"sns:GetTopicAttributes",
"sns:RemovePermission",
"sns:SetTopicAttributes",
"sqs:AddPermission",
"sqs:GetQueueAttributes",
"sqs:SetQueueAttributes",
"sqs:GetQueueUrl",
"lambda:AddPermission",
"lambda:RemovePermission"
]
},
"read": {
"permissions": [
"s3:GetBucketNotification",
"iam:GetRole",
"sns:ConfirmSubscription",
"sns:GetTopicAttributes",
"sqs:AddPermission",
"sqs:GetQueueAttributes",
"sqs:GetQueueUrl"
]
},
"update": {
"permissions": [
"iam:CreateRole",
"iam:GetRole",
"iam:DeleteRole",
"s3:PutBucketNotification",
"s3:GetBucketNotification",
"sns:AddPermission",
"sns:ConfirmSubscription",
"sns:GetTopicAttributes",
"sns:RemovePermission",
"sns:SetTopicAttributes",
"sqs:AddPermission",
"sqs:GetQueueAttributes",
"sqs:SetQueueAttributes",
"sqs:GetQueueUrl",
"lambda:AddPermission",
"lambda:RemovePermission"
]
},
"delete": {
"permissions": [
"iam:CreateRole",
"iam:DeleteRole",
"s3:PutBucketNotification",
"s3:GetBucketNotification",
"sns:AddPermission",
"sns:ConfirmSubscription",
"sns:GetTopicAttributes",
"sns:RemovePermission",
"sns:SetTopicAttributes",
"sqs:AddPermission",
"sqs:GetQueueAttributes",
"sqs:SetQueueAttributes",
"sqs:GetQueueUrl",
"lambda:AddPermission",
"lambda:RemovePermission"
]
}
}
}