-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathresources.py
190 lines (190 loc) · 7 KB
/
resources.py
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
MetaHubResourcesConfig = {
"AwsEc2Instance": {
"metatrails_events": ["RunInstances"],
"ResourceName": {"parsing_char": "/", "parsing_pos": 1},
},
"AwsEc2SecurityGroup": {
"metatrails_events": ["CreateSecurityGroup", "AuthorizeSecurityGroupIngress"],
"ResourceName": {"parsing_char": "/", "parsing_pos": 1},
},
"AwsEc2Volume": {
"metatrails_events": ["CreateVolume"],
"ResourceName": {"parsing_char": "/", "parsing_pos": 1},
},
"AwsAutoScalingLaunchConfiguration": {
"metatrails_events": ["CreateLaunchConfiguration"],
"ResourceName": {"parsing_char": "/", "parsing_pos": 1},
},
"AwsEc2LaunchTemplate": {
"metatrails_events": ["CreateLaunchTemplate"],
"ResourceName": {"parsing_char": "/", "parsing_pos": 1},
},
"AwsEc2NetworkAcl": {
"metatrails_events": ["CreateNetworkAcl"],
"ResourceName": {"parsing_char": "/", "parsing_pos": 1},
},
"AwsElasticsearchDomain": {
"metatrails_events": ["CreateDomain"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsLambdaFunction": {
"metatrails_events": ["CreateFunction", "CreateFunction20150331"],
"ResourceName": {"parsing_char": ":", "parsing_pos": -1},
},
"AwsS3Bucket": {
"metatrails_events": ["CreateBucket"],
"ResourceName": {"parsing_char": ":", "parsing_pos": -1},
},
"AwsElastiCacheCacheCluster": {
"metatrails_events": ["CreateCacheCluster"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsSqsQueue": {
"metatrails_events": ["CreateQueue"],
"ResourceName": {"parsing_char": ":", "parsing_pos": -1},
},
"AwsSnsTopic": {
"metatrails_events": ["CreateTopic"],
"ResourceName": {"parsing_char": ":", "parsing_pos": -1},
},
"AwsIamPolicy": {
"metatrails_events": ["CreatePolicyVersion", "CreatePolicy"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsRdsDbInstance": {
"metatrails_events": ["CreateDBInstance"],
"ResourceName": {"parsing_char": ":", "parsing_pos": -1},
},
"AwsRedshiftCluster": {
"metatrails_events": ["CreateCluster"],
"ResourceName": {"parsing_char": ":", "parsing_pos": -1},
},
"AwsDynamoDbTable": {
"metatrails_events": ["CreateTable"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsKinesisStream": {
"metatrails_events": ["CreateStream"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsKinesisFirehoseDeliveryStream": {
"metatrails_events": ["CreateDeliveryStream"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsEcsCluster": {
"metatrails_events": ["CreateCluster"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsEcsTaskDefinition": {
"metatrails_events": ["RegisterTaskDefinition"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsEksCluster": {
"metatrails_events": ["CreateCluster"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsStepFunctionsStateMachine": {
"metatrails_events": ["CreateStateMachine"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsApiGatewayRestApi": {
"metatrails_events": ["CreateRestApi"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsApiGatewayV2Api": {
"metatrails_events": ["CreateApi"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsAppStreamFleet": {
"metatrails_events": ["CreateFleet"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsCloudFormationStack": {
"metatrails_events": ["CreateStack"],
"ResourceName": {"parsing_char": None, "parsing_pos": None},
},
"AwsRoute53HostedZone": {
"metatrails_events": ["CreateHostedZone"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsCloudFrontDistribution": {
"metatrails_events": ["CreateDistribution"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsIamRole": {
"metatrails_events": ["CreateRole"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsIamUser": {
"metatrails_events": ["CreateUser"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsIamGroup": {
"metatrails_events": ["CreateGroup"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsCloudTrailTrail": {
"metatrails_events": ["CreateTrail"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsCodePipeline": {
"metatrails_events": ["CreatePipeline"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsCodeCommitRepository": {
"metatrails_events": ["CreateRepository"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsCodeBuildProject": {
"metatrails_events": ["CreateProject"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsCodeDeployApplication": {
"metatrails_events": ["CreateApplication"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsCodeDeployDeploymentGroup": {
"metatrails_events": ["CreateDeploymentGroup"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsWafWebAcl": {
"metatrails_events": ["CreateWebAcl"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsWafv2WebAcl": {
"metatrails_events": ["CreateWebAcl"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsEc2Vpc": {
"metatrails_events": ["CreateVpc"],
"ResourceName": {"parsing_char": "/", "parsing_pos": 1},
},
"AwsElasticBeanstalkEnvironment": {
"metatrails_events": ["CreateEnvironment"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsElasticBeanstalkApplication": {
"metatrails_events": ["CreateApplication"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsCloudWatchLogsLogGroup": {
"metatrails_events": ["CreateLogGroup"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsEc2Subnet": {
"metatrails_events": ["CreateSubnet"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsSecretsManagerSecret": {
"metatrails_events": ["CreateSecret"],
"ResourceName": {"parsing_char": ":", "parsing_pos": -1},
},
"AwsKmsKey": {
"metatrails_events": ["CreateKey"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
"AwsEcrRepository": {
"metatrails_events": ["CreateRepository"],
"ResourceName": {"parsing_char": "/", "parsing_pos": -1},
},
}