@cloud-copilot/iam-data 0.4.202409191 → 0.5.202409201
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/actions/connect.json +188 -0
- package/data/actions/ds-data.json +359 -0
- package/data/actions/ds.json +45 -0
- package/data/actions/lambda.json +49 -8
- package/data/conditionKeys/ds-data.json +32 -0
- package/data/resourceTypes/ds-data.json +9 -0
- package/data/resourceTypes/lambda.json +8 -2
- package/data/serviceNames.json +1 -0
- package/data/services.json +1 -0
- package/dist/cjs/data.d.ts.map +1 -1
- package/dist/cjs/data.js +1 -2
- package/dist/cjs/data.js.map +1 -1
- package/dist/esm/data.d.ts.map +1 -1
- package/dist/esm/data.js +1 -2
- package/dist/esm/data.js.map +1 -1
- package/dist/esm/readRelativeFile.js +23 -9
- package/dist/esm/readRelativeFile.js.map +1 -1
- package/dist/esm/readRelativeFileEsm.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -611,6 +611,29 @@
|
|
|
611
611
|
],
|
|
612
612
|
"dependentActions": []
|
|
613
613
|
},
|
|
614
|
+
"createhoursofoperationoverride": {
|
|
615
|
+
"name": "CreateHoursOfOperationOverride",
|
|
616
|
+
"description": "Grants permission to create an hours of operation override in an Amazon Connect instance",
|
|
617
|
+
"accessLevel": "Write",
|
|
618
|
+
"resourceTypes": [
|
|
619
|
+
{
|
|
620
|
+
"name": "hours-of-operation",
|
|
621
|
+
"required": true,
|
|
622
|
+
"conditionKeys": [],
|
|
623
|
+
"dependentActions": []
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"name": "instance",
|
|
627
|
+
"required": true,
|
|
628
|
+
"conditionKeys": [],
|
|
629
|
+
"dependentActions": []
|
|
630
|
+
}
|
|
631
|
+
],
|
|
632
|
+
"conditionKeys": [
|
|
633
|
+
"connect:InstanceId"
|
|
634
|
+
],
|
|
635
|
+
"dependentActions": []
|
|
636
|
+
},
|
|
614
637
|
"createinstance": {
|
|
615
638
|
"name": "CreateInstance",
|
|
616
639
|
"description": "Grants permission to create a new Amazon Connect instance",
|
|
@@ -1217,6 +1240,29 @@
|
|
|
1217
1240
|
],
|
|
1218
1241
|
"dependentActions": []
|
|
1219
1242
|
},
|
|
1243
|
+
"deletehoursofoperationoverride": {
|
|
1244
|
+
"name": "DeleteHoursOfOperationOverride",
|
|
1245
|
+
"description": "Grants permission to delete an hours of operation override in an Amazon Connect instance",
|
|
1246
|
+
"accessLevel": "Write",
|
|
1247
|
+
"resourceTypes": [
|
|
1248
|
+
{
|
|
1249
|
+
"name": "hours-of-operation",
|
|
1250
|
+
"required": true,
|
|
1251
|
+
"conditionKeys": [],
|
|
1252
|
+
"dependentActions": []
|
|
1253
|
+
},
|
|
1254
|
+
{
|
|
1255
|
+
"name": "instance",
|
|
1256
|
+
"required": true,
|
|
1257
|
+
"conditionKeys": [],
|
|
1258
|
+
"dependentActions": []
|
|
1259
|
+
}
|
|
1260
|
+
],
|
|
1261
|
+
"conditionKeys": [
|
|
1262
|
+
"connect:InstanceId"
|
|
1263
|
+
],
|
|
1264
|
+
"dependentActions": []
|
|
1265
|
+
},
|
|
1220
1266
|
"deleteinstance": {
|
|
1221
1267
|
"name": "DeleteInstance",
|
|
1222
1268
|
"description": "Grants permission to delete an Amazon Connect instance. When you remove an instance, the link to an existing AWS directory is also removed",
|
|
@@ -1705,6 +1751,29 @@
|
|
|
1705
1751
|
],
|
|
1706
1752
|
"dependentActions": []
|
|
1707
1753
|
},
|
|
1754
|
+
"describehoursofoperationoverride": {
|
|
1755
|
+
"name": "DescribeHoursOfOperationOverride",
|
|
1756
|
+
"description": "Grants permission to describe an hours of operation override in an Amazon Connect instance",
|
|
1757
|
+
"accessLevel": "Read",
|
|
1758
|
+
"resourceTypes": [
|
|
1759
|
+
{
|
|
1760
|
+
"name": "hours-of-operation",
|
|
1761
|
+
"required": true,
|
|
1762
|
+
"conditionKeys": [],
|
|
1763
|
+
"dependentActions": []
|
|
1764
|
+
},
|
|
1765
|
+
{
|
|
1766
|
+
"name": "instance",
|
|
1767
|
+
"required": true,
|
|
1768
|
+
"conditionKeys": [],
|
|
1769
|
+
"dependentActions": []
|
|
1770
|
+
}
|
|
1771
|
+
],
|
|
1772
|
+
"conditionKeys": [
|
|
1773
|
+
"connect:InstanceId"
|
|
1774
|
+
],
|
|
1775
|
+
"dependentActions": []
|
|
1776
|
+
},
|
|
1708
1777
|
"describeinstance": {
|
|
1709
1778
|
"name": "DescribeInstance",
|
|
1710
1779
|
"description": "Grants permission to view details of an Amazon Connect instance and is also required to create an instance",
|
|
@@ -2409,6 +2478,29 @@
|
|
|
2409
2478
|
],
|
|
2410
2479
|
"dependentActions": []
|
|
2411
2480
|
},
|
|
2481
|
+
"geteffectivehoursofoperations": {
|
|
2482
|
+
"name": "GetEffectiveHoursOfOperations",
|
|
2483
|
+
"description": "Grants permission to get effective hours of operation resources in an Amazon Connect instance",
|
|
2484
|
+
"accessLevel": "Read",
|
|
2485
|
+
"resourceTypes": [
|
|
2486
|
+
{
|
|
2487
|
+
"name": "hours-of-operation",
|
|
2488
|
+
"required": true,
|
|
2489
|
+
"conditionKeys": [],
|
|
2490
|
+
"dependentActions": []
|
|
2491
|
+
},
|
|
2492
|
+
{
|
|
2493
|
+
"name": "instance",
|
|
2494
|
+
"required": true,
|
|
2495
|
+
"conditionKeys": [],
|
|
2496
|
+
"dependentActions": []
|
|
2497
|
+
}
|
|
2498
|
+
],
|
|
2499
|
+
"conditionKeys": [
|
|
2500
|
+
"connect:InstanceId"
|
|
2501
|
+
],
|
|
2502
|
+
"dependentActions": []
|
|
2503
|
+
},
|
|
2412
2504
|
"getfederationtoken": {
|
|
2413
2505
|
"name": "GetFederationToken",
|
|
2414
2506
|
"description": "Grants permission to federate into an Amazon Connect instance when using SAML-based authentication for identity management",
|
|
@@ -2775,6 +2867,29 @@
|
|
|
2775
2867
|
],
|
|
2776
2868
|
"dependentActions": []
|
|
2777
2869
|
},
|
|
2870
|
+
"listhoursofoperationoverrides": {
|
|
2871
|
+
"name": "ListHoursOfOperationOverrides",
|
|
2872
|
+
"description": "Grants permission to list hours of operation override resources in an Amazon Connect instance",
|
|
2873
|
+
"accessLevel": "List",
|
|
2874
|
+
"resourceTypes": [
|
|
2875
|
+
{
|
|
2876
|
+
"name": "hours-of-operation",
|
|
2877
|
+
"required": true,
|
|
2878
|
+
"conditionKeys": [],
|
|
2879
|
+
"dependentActions": []
|
|
2880
|
+
},
|
|
2881
|
+
{
|
|
2882
|
+
"name": "instance",
|
|
2883
|
+
"required": true,
|
|
2884
|
+
"conditionKeys": [],
|
|
2885
|
+
"dependentActions": []
|
|
2886
|
+
}
|
|
2887
|
+
],
|
|
2888
|
+
"conditionKeys": [
|
|
2889
|
+
"connect:InstanceId"
|
|
2890
|
+
],
|
|
2891
|
+
"dependentActions": []
|
|
2892
|
+
},
|
|
2778
2893
|
"listhoursofoperations": {
|
|
2779
2894
|
"name": "ListHoursOfOperations",
|
|
2780
2895
|
"description": "Grants permission to list hours of operation resources in an Amazon Connect instance",
|
|
@@ -3723,6 +3838,33 @@
|
|
|
3723
3838
|
],
|
|
3724
3839
|
"dependentActions": []
|
|
3725
3840
|
},
|
|
3841
|
+
"searchhoursofoperationoverrides": {
|
|
3842
|
+
"name": "SearchHoursOfOperationOverrides",
|
|
3843
|
+
"description": "Grants permission to search hours of operation override resources in an Amazon Connect instance",
|
|
3844
|
+
"accessLevel": "Read",
|
|
3845
|
+
"resourceTypes": [
|
|
3846
|
+
{
|
|
3847
|
+
"name": "hours-of-operation",
|
|
3848
|
+
"required": true,
|
|
3849
|
+
"conditionKeys": [],
|
|
3850
|
+
"dependentActions": [
|
|
3851
|
+
"connect:DescribeHoursOfOperation",
|
|
3852
|
+
"connect:ListHoursOfOperationOverrides"
|
|
3853
|
+
]
|
|
3854
|
+
},
|
|
3855
|
+
{
|
|
3856
|
+
"name": "instance",
|
|
3857
|
+
"required": true,
|
|
3858
|
+
"conditionKeys": [],
|
|
3859
|
+
"dependentActions": []
|
|
3860
|
+
}
|
|
3861
|
+
],
|
|
3862
|
+
"conditionKeys": [
|
|
3863
|
+
"connect:InstanceId",
|
|
3864
|
+
"connect:SearchTag/${TagKey}"
|
|
3865
|
+
],
|
|
3866
|
+
"dependentActions": []
|
|
3867
|
+
},
|
|
3726
3868
|
"searchhoursofoperations": {
|
|
3727
3869
|
"name": "SearchHoursOfOperations",
|
|
3728
3870
|
"description": "Grants permission to search hours of operation resources in an Amazon Connect instance",
|
|
@@ -3946,6 +4088,29 @@
|
|
|
3946
4088
|
"conditionKeys": [],
|
|
3947
4089
|
"dependentActions": []
|
|
3948
4090
|
},
|
|
4091
|
+
"sendoutboundemail": {
|
|
4092
|
+
"name": "SendOutboundEmail",
|
|
4093
|
+
"description": "Grants permission to send outbound email using the Amazon Connect API",
|
|
4094
|
+
"accessLevel": "Write",
|
|
4095
|
+
"resourceTypes": [
|
|
4096
|
+
{
|
|
4097
|
+
"name": "instance",
|
|
4098
|
+
"required": true,
|
|
4099
|
+
"conditionKeys": [],
|
|
4100
|
+
"dependentActions": []
|
|
4101
|
+
},
|
|
4102
|
+
{
|
|
4103
|
+
"name": "contact",
|
|
4104
|
+
"required": false,
|
|
4105
|
+
"conditionKeys": [],
|
|
4106
|
+
"dependentActions": []
|
|
4107
|
+
}
|
|
4108
|
+
],
|
|
4109
|
+
"conditionKeys": [
|
|
4110
|
+
"connect:InstanceId"
|
|
4111
|
+
],
|
|
4112
|
+
"dependentActions": []
|
|
4113
|
+
},
|
|
3949
4114
|
"startattachedfileupload": {
|
|
3950
4115
|
"name": "StartAttachedFileUpload",
|
|
3951
4116
|
"description": "Grants permission to start an attached file upload in an Amazon Connect instance",
|
|
@@ -4840,6 +5005,29 @@
|
|
|
4840
5005
|
],
|
|
4841
5006
|
"dependentActions": []
|
|
4842
5007
|
},
|
|
5008
|
+
"updatehoursofoperationoverride": {
|
|
5009
|
+
"name": "UpdateHoursOfOperationOverride",
|
|
5010
|
+
"description": "Grants permission to update an hours of operation override in an Amazon Connect instance",
|
|
5011
|
+
"accessLevel": "Write",
|
|
5012
|
+
"resourceTypes": [
|
|
5013
|
+
{
|
|
5014
|
+
"name": "hours-of-operation",
|
|
5015
|
+
"required": true,
|
|
5016
|
+
"conditionKeys": [],
|
|
5017
|
+
"dependentActions": []
|
|
5018
|
+
},
|
|
5019
|
+
{
|
|
5020
|
+
"name": "instance",
|
|
5021
|
+
"required": true,
|
|
5022
|
+
"conditionKeys": [],
|
|
5023
|
+
"dependentActions": []
|
|
5024
|
+
}
|
|
5025
|
+
],
|
|
5026
|
+
"conditionKeys": [
|
|
5027
|
+
"connect:InstanceId"
|
|
5028
|
+
],
|
|
5029
|
+
"dependentActions": []
|
|
5030
|
+
},
|
|
4843
5031
|
"updateinstanceattribute": {
|
|
4844
5032
|
"name": "UpdateInstanceAttribute",
|
|
4845
5033
|
"description": "Grants permission to update the attribute for an existing Amazon Connect instance",
|
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
{
|
|
2
|
+
"addgroupmember": {
|
|
3
|
+
"name": "AddGroupMember",
|
|
4
|
+
"description": "Grants permission to add a member to a group on a directory",
|
|
5
|
+
"accessLevel": "Write",
|
|
6
|
+
"resourceTypes": [
|
|
7
|
+
{
|
|
8
|
+
"name": "directory",
|
|
9
|
+
"required": true,
|
|
10
|
+
"conditionKeys": [],
|
|
11
|
+
"dependentActions": [
|
|
12
|
+
"ds:AccessDSData"
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"conditionKeys": [
|
|
17
|
+
"ds-data:SAMAccountName",
|
|
18
|
+
"ds-data:MemberName",
|
|
19
|
+
"ds-data:Realm",
|
|
20
|
+
"ds-data:MemberRealm",
|
|
21
|
+
"ds-data:Identifier"
|
|
22
|
+
],
|
|
23
|
+
"dependentActions": []
|
|
24
|
+
},
|
|
25
|
+
"creategroup": {
|
|
26
|
+
"name": "CreateGroup",
|
|
27
|
+
"description": "Grants permission to create a group on a directory",
|
|
28
|
+
"accessLevel": "Write",
|
|
29
|
+
"resourceTypes": [
|
|
30
|
+
{
|
|
31
|
+
"name": "directory",
|
|
32
|
+
"required": true,
|
|
33
|
+
"conditionKeys": [],
|
|
34
|
+
"dependentActions": [
|
|
35
|
+
"ds:AccessDSData"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"conditionKeys": [
|
|
40
|
+
"ds-data:SAMAccountName",
|
|
41
|
+
"ds-data:Identifier",
|
|
42
|
+
"ds-data:Realm"
|
|
43
|
+
],
|
|
44
|
+
"dependentActions": []
|
|
45
|
+
},
|
|
46
|
+
"createuser": {
|
|
47
|
+
"name": "CreateUser",
|
|
48
|
+
"description": "Grants permission to create a user on a directory",
|
|
49
|
+
"accessLevel": "Write",
|
|
50
|
+
"resourceTypes": [
|
|
51
|
+
{
|
|
52
|
+
"name": "directory",
|
|
53
|
+
"required": true,
|
|
54
|
+
"conditionKeys": [],
|
|
55
|
+
"dependentActions": [
|
|
56
|
+
"ds:AccessDSData"
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"conditionKeys": [
|
|
61
|
+
"ds-data:SAMAccountName",
|
|
62
|
+
"ds-data:Identifier",
|
|
63
|
+
"ds-data:Realm"
|
|
64
|
+
],
|
|
65
|
+
"dependentActions": []
|
|
66
|
+
},
|
|
67
|
+
"deletegroup": {
|
|
68
|
+
"name": "DeleteGroup",
|
|
69
|
+
"description": "Grants permission to delete a group on a directory",
|
|
70
|
+
"accessLevel": "Write",
|
|
71
|
+
"resourceTypes": [
|
|
72
|
+
{
|
|
73
|
+
"name": "directory",
|
|
74
|
+
"required": true,
|
|
75
|
+
"conditionKeys": [],
|
|
76
|
+
"dependentActions": [
|
|
77
|
+
"ds:AccessDSData"
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"conditionKeys": [
|
|
82
|
+
"ds-data:SAMAccountName",
|
|
83
|
+
"ds-data:Identifier",
|
|
84
|
+
"ds-data:Realm"
|
|
85
|
+
],
|
|
86
|
+
"dependentActions": []
|
|
87
|
+
},
|
|
88
|
+
"deleteuser": {
|
|
89
|
+
"name": "DeleteUser",
|
|
90
|
+
"description": "Grants permission to delete a user on a directory",
|
|
91
|
+
"accessLevel": "Write",
|
|
92
|
+
"resourceTypes": [
|
|
93
|
+
{
|
|
94
|
+
"name": "directory",
|
|
95
|
+
"required": true,
|
|
96
|
+
"conditionKeys": [],
|
|
97
|
+
"dependentActions": [
|
|
98
|
+
"ds:AccessDSData"
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"conditionKeys": [
|
|
103
|
+
"ds-data:SAMAccountName",
|
|
104
|
+
"ds-data:Identifier",
|
|
105
|
+
"ds-data:Realm"
|
|
106
|
+
],
|
|
107
|
+
"dependentActions": []
|
|
108
|
+
},
|
|
109
|
+
"describegroup": {
|
|
110
|
+
"name": "DescribeGroup",
|
|
111
|
+
"description": "Grants permission to describe a group on a directory",
|
|
112
|
+
"accessLevel": "Read",
|
|
113
|
+
"resourceTypes": [
|
|
114
|
+
{
|
|
115
|
+
"name": "directory",
|
|
116
|
+
"required": true,
|
|
117
|
+
"conditionKeys": [],
|
|
118
|
+
"dependentActions": [
|
|
119
|
+
"ds:AccessDSData"
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"conditionKeys": [
|
|
124
|
+
"ds-data:SAMAccountName",
|
|
125
|
+
"ds-data:Identifier",
|
|
126
|
+
"ds-data:Realm"
|
|
127
|
+
],
|
|
128
|
+
"dependentActions": []
|
|
129
|
+
},
|
|
130
|
+
"describeuser": {
|
|
131
|
+
"name": "DescribeUser",
|
|
132
|
+
"description": "Grants permission to describe a user on a directory",
|
|
133
|
+
"accessLevel": "Read",
|
|
134
|
+
"resourceTypes": [
|
|
135
|
+
{
|
|
136
|
+
"name": "directory",
|
|
137
|
+
"required": true,
|
|
138
|
+
"conditionKeys": [],
|
|
139
|
+
"dependentActions": [
|
|
140
|
+
"ds:AccessDSData"
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"conditionKeys": [
|
|
145
|
+
"ds-data:SAMAccountName",
|
|
146
|
+
"ds-data:Identifier",
|
|
147
|
+
"ds-data:Realm"
|
|
148
|
+
],
|
|
149
|
+
"dependentActions": []
|
|
150
|
+
},
|
|
151
|
+
"disableuser": {
|
|
152
|
+
"name": "DisableUser",
|
|
153
|
+
"description": "Grants permission to disable a user on a directory",
|
|
154
|
+
"accessLevel": "Write",
|
|
155
|
+
"resourceTypes": [
|
|
156
|
+
{
|
|
157
|
+
"name": "directory",
|
|
158
|
+
"required": true,
|
|
159
|
+
"conditionKeys": [],
|
|
160
|
+
"dependentActions": [
|
|
161
|
+
"ds:AccessDSData"
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
"conditionKeys": [
|
|
166
|
+
"ds-data:SAMAccountName",
|
|
167
|
+
"ds-data:Identifier",
|
|
168
|
+
"ds-data:Realm"
|
|
169
|
+
],
|
|
170
|
+
"dependentActions": []
|
|
171
|
+
},
|
|
172
|
+
"listgroupmembers": {
|
|
173
|
+
"name": "ListGroupMembers",
|
|
174
|
+
"description": "Grants permission to list members in a group on a directory",
|
|
175
|
+
"accessLevel": "List",
|
|
176
|
+
"resourceTypes": [
|
|
177
|
+
{
|
|
178
|
+
"name": "directory",
|
|
179
|
+
"required": true,
|
|
180
|
+
"conditionKeys": [],
|
|
181
|
+
"dependentActions": [
|
|
182
|
+
"ds:AccessDSData"
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
"conditionKeys": [
|
|
187
|
+
"ds-data:SAMAccountName",
|
|
188
|
+
"ds-data:Realm",
|
|
189
|
+
"ds-data:MemberRealm",
|
|
190
|
+
"ds-data:Identifier"
|
|
191
|
+
],
|
|
192
|
+
"dependentActions": []
|
|
193
|
+
},
|
|
194
|
+
"listgroups": {
|
|
195
|
+
"name": "ListGroups",
|
|
196
|
+
"description": "Grants permission to list groups on a directory",
|
|
197
|
+
"accessLevel": "List",
|
|
198
|
+
"resourceTypes": [
|
|
199
|
+
{
|
|
200
|
+
"name": "directory",
|
|
201
|
+
"required": true,
|
|
202
|
+
"conditionKeys": [],
|
|
203
|
+
"dependentActions": [
|
|
204
|
+
"ds:AccessDSData"
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"conditionKeys": [
|
|
209
|
+
"ds-data:Realm"
|
|
210
|
+
],
|
|
211
|
+
"dependentActions": []
|
|
212
|
+
},
|
|
213
|
+
"listgroupsformember": {
|
|
214
|
+
"name": "ListGroupsForMember",
|
|
215
|
+
"description": "Grants permission to list the groups that a member is in on a directory",
|
|
216
|
+
"accessLevel": "List",
|
|
217
|
+
"resourceTypes": [
|
|
218
|
+
{
|
|
219
|
+
"name": "directory",
|
|
220
|
+
"required": true,
|
|
221
|
+
"conditionKeys": [],
|
|
222
|
+
"dependentActions": [
|
|
223
|
+
"ds:AccessDSData"
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
],
|
|
227
|
+
"conditionKeys": [
|
|
228
|
+
"ds-data:SAMAccountName",
|
|
229
|
+
"ds-data:Realm",
|
|
230
|
+
"ds-data:MemberRealm",
|
|
231
|
+
"ds-data:Identifier"
|
|
232
|
+
],
|
|
233
|
+
"dependentActions": []
|
|
234
|
+
},
|
|
235
|
+
"listusers": {
|
|
236
|
+
"name": "ListUsers",
|
|
237
|
+
"description": "Grants permission to list users on a directory",
|
|
238
|
+
"accessLevel": "List",
|
|
239
|
+
"resourceTypes": [
|
|
240
|
+
{
|
|
241
|
+
"name": "directory",
|
|
242
|
+
"required": true,
|
|
243
|
+
"conditionKeys": [],
|
|
244
|
+
"dependentActions": [
|
|
245
|
+
"ds:AccessDSData"
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
],
|
|
249
|
+
"conditionKeys": [
|
|
250
|
+
"ds-data:Realm"
|
|
251
|
+
],
|
|
252
|
+
"dependentActions": []
|
|
253
|
+
},
|
|
254
|
+
"removegroupmember": {
|
|
255
|
+
"name": "RemoveGroupMember",
|
|
256
|
+
"description": "Grants permission to remove a member from a group on a directory",
|
|
257
|
+
"accessLevel": "Write",
|
|
258
|
+
"resourceTypes": [
|
|
259
|
+
{
|
|
260
|
+
"name": "directory",
|
|
261
|
+
"required": true,
|
|
262
|
+
"conditionKeys": [],
|
|
263
|
+
"dependentActions": [
|
|
264
|
+
"ds:AccessDSData"
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
],
|
|
268
|
+
"conditionKeys": [
|
|
269
|
+
"ds-data:SAMAccountName",
|
|
270
|
+
"ds-data:MemberName",
|
|
271
|
+
"ds-data:Realm",
|
|
272
|
+
"ds-data:MemberRealm",
|
|
273
|
+
"ds-data:Identifier"
|
|
274
|
+
],
|
|
275
|
+
"dependentActions": []
|
|
276
|
+
},
|
|
277
|
+
"searchgroups": {
|
|
278
|
+
"name": "SearchGroups",
|
|
279
|
+
"description": "Grants permission to search for groups on a directory",
|
|
280
|
+
"accessLevel": "Read",
|
|
281
|
+
"resourceTypes": [
|
|
282
|
+
{
|
|
283
|
+
"name": "directory",
|
|
284
|
+
"required": true,
|
|
285
|
+
"conditionKeys": [],
|
|
286
|
+
"dependentActions": [
|
|
287
|
+
"ds-data:DescribeGroup",
|
|
288
|
+
"ds:AccessDSData"
|
|
289
|
+
]
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
"conditionKeys": [
|
|
293
|
+
"ds-data:Realm"
|
|
294
|
+
],
|
|
295
|
+
"dependentActions": []
|
|
296
|
+
},
|
|
297
|
+
"searchusers": {
|
|
298
|
+
"name": "SearchUsers",
|
|
299
|
+
"description": "Grants permission to search for users on a directory",
|
|
300
|
+
"accessLevel": "Read",
|
|
301
|
+
"resourceTypes": [
|
|
302
|
+
{
|
|
303
|
+
"name": "directory",
|
|
304
|
+
"required": true,
|
|
305
|
+
"conditionKeys": [],
|
|
306
|
+
"dependentActions": [
|
|
307
|
+
"ds-data:DescribeUser",
|
|
308
|
+
"ds:AccessDSData"
|
|
309
|
+
]
|
|
310
|
+
}
|
|
311
|
+
],
|
|
312
|
+
"conditionKeys": [
|
|
313
|
+
"ds-data:Realm"
|
|
314
|
+
],
|
|
315
|
+
"dependentActions": []
|
|
316
|
+
},
|
|
317
|
+
"updategroup": {
|
|
318
|
+
"name": "UpdateGroup",
|
|
319
|
+
"description": "Grants permission to update a group on a directory",
|
|
320
|
+
"accessLevel": "Write",
|
|
321
|
+
"resourceTypes": [
|
|
322
|
+
{
|
|
323
|
+
"name": "directory",
|
|
324
|
+
"required": true,
|
|
325
|
+
"conditionKeys": [],
|
|
326
|
+
"dependentActions": [
|
|
327
|
+
"ds:AccessDSData"
|
|
328
|
+
]
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
"conditionKeys": [
|
|
332
|
+
"ds-data:SAMAccountName",
|
|
333
|
+
"ds-data:Identifier",
|
|
334
|
+
"ds-data:Realm"
|
|
335
|
+
],
|
|
336
|
+
"dependentActions": []
|
|
337
|
+
},
|
|
338
|
+
"updateuser": {
|
|
339
|
+
"name": "UpdateUser",
|
|
340
|
+
"description": "Grants permission to update a user on a directory",
|
|
341
|
+
"accessLevel": "Write",
|
|
342
|
+
"resourceTypes": [
|
|
343
|
+
{
|
|
344
|
+
"name": "directory",
|
|
345
|
+
"required": true,
|
|
346
|
+
"conditionKeys": [],
|
|
347
|
+
"dependentActions": [
|
|
348
|
+
"ds:AccessDSData"
|
|
349
|
+
]
|
|
350
|
+
}
|
|
351
|
+
],
|
|
352
|
+
"conditionKeys": [
|
|
353
|
+
"ds-data:SAMAccountName",
|
|
354
|
+
"ds-data:Identifier",
|
|
355
|
+
"ds-data:Realm"
|
|
356
|
+
],
|
|
357
|
+
"dependentActions": []
|
|
358
|
+
}
|
|
359
|
+
}
|
package/data/actions/ds.json
CHANGED
|
@@ -459,6 +459,21 @@
|
|
|
459
459
|
"conditionKeys": [],
|
|
460
460
|
"dependentActions": []
|
|
461
461
|
},
|
|
462
|
+
"describedirectorydataaccess": {
|
|
463
|
+
"name": "DescribeDirectoryDataAccess",
|
|
464
|
+
"description": "Grants permission to describe the Directory Service Data API status for the specified directory",
|
|
465
|
+
"accessLevel": "Read",
|
|
466
|
+
"resourceTypes": [
|
|
467
|
+
{
|
|
468
|
+
"name": "directory",
|
|
469
|
+
"required": true,
|
|
470
|
+
"conditionKeys": [],
|
|
471
|
+
"dependentActions": []
|
|
472
|
+
}
|
|
473
|
+
],
|
|
474
|
+
"conditionKeys": [],
|
|
475
|
+
"dependentActions": []
|
|
476
|
+
},
|
|
462
477
|
"describedomaincontrollers": {
|
|
463
478
|
"name": "DescribeDomainControllers",
|
|
464
479
|
"description": "Grants permission to provide information about any domain controllers in your directory",
|
|
@@ -595,6 +610,21 @@
|
|
|
595
610
|
"conditionKeys": [],
|
|
596
611
|
"dependentActions": []
|
|
597
612
|
},
|
|
613
|
+
"disabledirectorydataaccess": {
|
|
614
|
+
"name": "DisableDirectoryDataAccess",
|
|
615
|
+
"description": "Grants permission to disable the Directory Service Data API for the specified directory",
|
|
616
|
+
"accessLevel": "Write",
|
|
617
|
+
"resourceTypes": [
|
|
618
|
+
{
|
|
619
|
+
"name": "directory",
|
|
620
|
+
"required": true,
|
|
621
|
+
"conditionKeys": [],
|
|
622
|
+
"dependentActions": []
|
|
623
|
+
}
|
|
624
|
+
],
|
|
625
|
+
"conditionKeys": [],
|
|
626
|
+
"dependentActions": []
|
|
627
|
+
},
|
|
598
628
|
"disableldaps": {
|
|
599
629
|
"name": "DisableLDAPS",
|
|
600
630
|
"description": "Grants permission to deactivate LDAP secure calls for the specified directory",
|
|
@@ -671,6 +701,21 @@
|
|
|
671
701
|
"conditionKeys": [],
|
|
672
702
|
"dependentActions": []
|
|
673
703
|
},
|
|
704
|
+
"enabledirectorydataaccess": {
|
|
705
|
+
"name": "EnableDirectoryDataAccess",
|
|
706
|
+
"description": "Grants permission to enable the Directory Service Data API for the specified directory",
|
|
707
|
+
"accessLevel": "Write",
|
|
708
|
+
"resourceTypes": [
|
|
709
|
+
{
|
|
710
|
+
"name": "directory",
|
|
711
|
+
"required": true,
|
|
712
|
+
"conditionKeys": [],
|
|
713
|
+
"dependentActions": []
|
|
714
|
+
}
|
|
715
|
+
],
|
|
716
|
+
"conditionKeys": [],
|
|
717
|
+
"dependentActions": []
|
|
718
|
+
},
|
|
674
719
|
"enableldaps": {
|
|
675
720
|
"name": "EnableLDAPS",
|
|
676
721
|
"description": "Grants permission to activate the switch for the specific directory to always use LDAP secure calls",
|
package/data/actions/lambda.json
CHANGED
|
@@ -52,7 +52,10 @@
|
|
|
52
52
|
"description": "Grants permission to create an AWS Lambda code signing config",
|
|
53
53
|
"accessLevel": "Write",
|
|
54
54
|
"resourceTypes": [],
|
|
55
|
-
"conditionKeys": [
|
|
55
|
+
"conditionKeys": [
|
|
56
|
+
"aws:RequestTag/${TagKey}",
|
|
57
|
+
"aws:TagKeys"
|
|
58
|
+
],
|
|
56
59
|
"dependentActions": []
|
|
57
60
|
},
|
|
58
61
|
"createeventsourcemapping": {
|
|
@@ -61,7 +64,9 @@
|
|
|
61
64
|
"accessLevel": "Write",
|
|
62
65
|
"resourceTypes": [],
|
|
63
66
|
"conditionKeys": [
|
|
64
|
-
"lambda:FunctionArn"
|
|
67
|
+
"lambda:FunctionArn",
|
|
68
|
+
"aws:RequestTag/${TagKey}",
|
|
69
|
+
"aws:TagKeys"
|
|
65
70
|
],
|
|
66
71
|
"dependentActions": []
|
|
67
72
|
},
|
|
@@ -765,12 +770,24 @@
|
|
|
765
770
|
},
|
|
766
771
|
"listtags": {
|
|
767
772
|
"name": "ListTags",
|
|
768
|
-
"description": "Grants permission to retrieve a list of tags for an AWS Lambda function",
|
|
773
|
+
"description": "Grants permission to retrieve a list of tags for an AWS Lambda function, event source mapping or code signing configuration resource",
|
|
769
774
|
"accessLevel": "Read",
|
|
770
775
|
"resourceTypes": [
|
|
776
|
+
{
|
|
777
|
+
"name": "code signing config",
|
|
778
|
+
"required": false,
|
|
779
|
+
"conditionKeys": [],
|
|
780
|
+
"dependentActions": []
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
"name": "eventSourceMapping",
|
|
784
|
+
"required": false,
|
|
785
|
+
"conditionKeys": [],
|
|
786
|
+
"dependentActions": []
|
|
787
|
+
},
|
|
771
788
|
{
|
|
772
789
|
"name": "function",
|
|
773
|
-
"required":
|
|
790
|
+
"required": false,
|
|
774
791
|
"conditionKeys": [],
|
|
775
792
|
"dependentActions": []
|
|
776
793
|
}
|
|
@@ -995,12 +1012,24 @@
|
|
|
995
1012
|
},
|
|
996
1013
|
"tagresource": {
|
|
997
1014
|
"name": "TagResource",
|
|
998
|
-
"description": "Grants permission to add tags to an AWS Lambda function",
|
|
1015
|
+
"description": "Grants permission to add tags to an AWS Lambda function, event source mapping or code signing configuration resource",
|
|
999
1016
|
"accessLevel": "Tagging",
|
|
1000
1017
|
"resourceTypes": [
|
|
1018
|
+
{
|
|
1019
|
+
"name": "code signing config",
|
|
1020
|
+
"required": false,
|
|
1021
|
+
"conditionKeys": [],
|
|
1022
|
+
"dependentActions": []
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
"name": "eventSourceMapping",
|
|
1026
|
+
"required": false,
|
|
1027
|
+
"conditionKeys": [],
|
|
1028
|
+
"dependentActions": []
|
|
1029
|
+
},
|
|
1001
1030
|
{
|
|
1002
1031
|
"name": "function",
|
|
1003
|
-
"required":
|
|
1032
|
+
"required": false,
|
|
1004
1033
|
"conditionKeys": [],
|
|
1005
1034
|
"dependentActions": []
|
|
1006
1035
|
}
|
|
@@ -1013,12 +1042,24 @@
|
|
|
1013
1042
|
},
|
|
1014
1043
|
"untagresource": {
|
|
1015
1044
|
"name": "UntagResource",
|
|
1016
|
-
"description": "Grants permission to remove tags from an AWS Lambda function",
|
|
1045
|
+
"description": "Grants permission to remove tags from an AWS Lambda function, event source mapping or code signing configuration resource",
|
|
1017
1046
|
"accessLevel": "Tagging",
|
|
1018
1047
|
"resourceTypes": [
|
|
1048
|
+
{
|
|
1049
|
+
"name": "code signing config",
|
|
1050
|
+
"required": false,
|
|
1051
|
+
"conditionKeys": [],
|
|
1052
|
+
"dependentActions": []
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
"name": "eventSourceMapping",
|
|
1056
|
+
"required": false,
|
|
1057
|
+
"conditionKeys": [],
|
|
1058
|
+
"dependentActions": []
|
|
1059
|
+
},
|
|
1019
1060
|
{
|
|
1020
1061
|
"name": "function",
|
|
1021
|
-
"required":
|
|
1062
|
+
"required": false,
|
|
1022
1063
|
"conditionKeys": [],
|
|
1023
1064
|
"dependentActions": []
|
|
1024
1065
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"aws:resourcetag/${tagkey}": {
|
|
3
|
+
"key": "aws:ResourceTag/${TagKey}",
|
|
4
|
+
"description": "Filters access by the AWS DS Resource being acted upon",
|
|
5
|
+
"type": "String"
|
|
6
|
+
},
|
|
7
|
+
"ds-data:identifier": {
|
|
8
|
+
"key": "ds-data:Identifier",
|
|
9
|
+
"description": "Filters access by the type of identifier provided in the request (i.e. SAM Account Name)",
|
|
10
|
+
"type": "String"
|
|
11
|
+
},
|
|
12
|
+
"ds-data:membername": {
|
|
13
|
+
"key": "ds-data:MemberName",
|
|
14
|
+
"description": "Filters access by the directory SAM Account Name included in the MemberName input of the request",
|
|
15
|
+
"type": "String"
|
|
16
|
+
},
|
|
17
|
+
"ds-data:memberrealm": {
|
|
18
|
+
"key": "ds-data:MemberRealm",
|
|
19
|
+
"description": "Filters access by the directory realm name included in the MemberRealm input of the request",
|
|
20
|
+
"type": "String"
|
|
21
|
+
},
|
|
22
|
+
"ds-data:realm": {
|
|
23
|
+
"key": "ds-data:Realm",
|
|
24
|
+
"description": "Filters access by the directory realm name for the request",
|
|
25
|
+
"type": "String"
|
|
26
|
+
},
|
|
27
|
+
"ds-data:samaccountname": {
|
|
28
|
+
"key": "ds-data:SAMAccountName",
|
|
29
|
+
"description": "Filters access by the directory SAM Account Name included in the SAMAccountName input of the request",
|
|
30
|
+
"type": "String"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"code signing config": {
|
|
3
3
|
"key": "code signing config",
|
|
4
|
-
"arn": "arn:${Partition}:lambda:${Region}:${Account}:code-signing-config:${CodeSigningConfigId}"
|
|
4
|
+
"arn": "arn:${Partition}:lambda:${Region}:${Account}:code-signing-config:${CodeSigningConfigId}",
|
|
5
|
+
"conditionKeys": [
|
|
6
|
+
"aws:ResourceTag/${TagKey}"
|
|
7
|
+
]
|
|
5
8
|
},
|
|
6
9
|
"eventsourcemapping": {
|
|
7
10
|
"key": "eventSourceMapping",
|
|
8
|
-
"arn": "arn:${Partition}:lambda:${Region}:${Account}:event-source-mapping:${UUID}"
|
|
11
|
+
"arn": "arn:${Partition}:lambda:${Region}:${Account}:event-source-mapping:${UUID}",
|
|
12
|
+
"conditionKeys": [
|
|
13
|
+
"aws:ResourceTag/${TagKey}"
|
|
14
|
+
]
|
|
9
15
|
},
|
|
10
16
|
"function": {
|
|
11
17
|
"key": "function",
|
package/data/serviceNames.json
CHANGED
|
@@ -123,6 +123,7 @@
|
|
|
123
123
|
"docdb-elastic": "Amazon DocumentDB Elastic Clusters",
|
|
124
124
|
"drs": "AWS Elastic Disaster Recovery",
|
|
125
125
|
"ds": "AWS Directory Service",
|
|
126
|
+
"ds-data": "AWS Directory Service Data",
|
|
126
127
|
"dynamodb": "Amazon DynamoDB",
|
|
127
128
|
"ebs": "Amazon Elastic Block Store",
|
|
128
129
|
"ec2": "Amazon EC2",
|
package/data/services.json
CHANGED
package/dist/cjs/data.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src/data.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src/data.ts"],"names":[],"mappings":"AAIA,wBAAsB,YAAY,CAAC,CAAC,EAAE,GAAG,SAAS,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,CAQxE;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAEtE;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAEzE;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAEzE"}
|
package/dist/cjs/data.js
CHANGED
|
@@ -4,12 +4,11 @@ exports.readDataFile = readDataFile;
|
|
|
4
4
|
exports.readActionData = readActionData;
|
|
5
5
|
exports.readConditionKeys = readConditionKeys;
|
|
6
6
|
exports.readResourceTypes = readResourceTypes;
|
|
7
|
-
const path_1 = require("path");
|
|
8
7
|
const readRelativeFile_js_1 = require("./readRelativeFile.js");
|
|
9
8
|
const dataCache = {};
|
|
10
9
|
async function readDataFile(...pathParts) {
|
|
11
10
|
pathParts.unshift('data');
|
|
12
|
-
const file =
|
|
11
|
+
const file = pathParts.join('/');
|
|
13
12
|
if (!dataCache[file]) {
|
|
14
13
|
const data = await (0, readRelativeFile_js_1.readRelativeFile)(pathParts);
|
|
15
14
|
dataCache[file] = data;
|
package/dist/cjs/data.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.js","sourceRoot":"","sources":["../../src/data.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"data.js","sourceRoot":"","sources":["../../src/data.ts"],"names":[],"mappings":";;AAIA,oCAQC;AAQD,wCAEC;AAQD,8CAEC;AAQD,8CAEC;AA1CD,+DAAyD;AAEzD,MAAM,SAAS,GAAwB,EAAE,CAAC;AAEnC,KAAK,UAAU,YAAY,CAAI,GAAG,SAAmB;IAC1D,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC1B,MAAM,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACjC,IAAG,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;QACpB,MAAM,IAAI,GAAG,MAAM,IAAA,sCAAgB,EAAC,SAAS,CAAC,CAAA;QAC9C,SAAS,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IACxB,CAAC;IACD,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC;AAED;;;;;GAKG;AACI,KAAK,UAAU,cAAc,CAAI,UAAkB;IACxD,OAAO,YAAY,CAAI,SAAS,EAAE,GAAG,UAAU,OAAO,CAAC,CAAC;AAC1D,CAAC;AAED;;;;;GAKG;AACI,KAAK,UAAU,iBAAiB,CAAI,UAAkB;IAC3D,OAAO,YAAY,CAAI,eAAe,EAAE,GAAG,UAAU,OAAO,CAAC,CAAC;AAChE,CAAC;AAED;;;;;GAKG;AACI,KAAK,UAAU,iBAAiB,CAAI,UAAkB;IAC3D,OAAO,YAAY,CAAI,eAAe,EAAE,GAAG,UAAU,OAAO,CAAC,CAAC;AAChE,CAAC"}
|
package/dist/esm/data.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src/data.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src/data.ts"],"names":[],"mappings":"AAIA,wBAAsB,YAAY,CAAC,CAAC,EAAE,GAAG,SAAS,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,CAQxE;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAEtE;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAEzE;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAEzE"}
|
package/dist/esm/data.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { join } from "path";
|
|
2
1
|
import { readRelativeFile } from "./readRelativeFile.js";
|
|
3
2
|
const dataCache = {};
|
|
4
3
|
export async function readDataFile(...pathParts) {
|
|
5
4
|
pathParts.unshift('data');
|
|
6
|
-
const file = join(
|
|
5
|
+
const file = pathParts.join('/');
|
|
7
6
|
if (!dataCache[file]) {
|
|
8
7
|
const data = await readRelativeFile(pathParts);
|
|
9
8
|
dataCache[file] = data;
|
package/dist/esm/data.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.js","sourceRoot":"","sources":["../../src/data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"data.js","sourceRoot":"","sources":["../../src/data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,SAAS,GAAwB,EAAE,CAAC;AAE1C,MAAM,CAAC,KAAK,UAAU,YAAY,CAAI,GAAG,SAAmB;IAC1D,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC1B,MAAM,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACjC,IAAG,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;QACpB,MAAM,IAAI,GAAG,MAAM,gBAAgB,CAAC,SAAS,CAAC,CAAA;QAC9C,SAAS,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IACxB,CAAC;IACD,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAI,UAAkB;IACxD,OAAO,YAAY,CAAI,SAAS,EAAE,GAAG,UAAU,OAAO,CAAC,CAAC;AAC1D,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAI,UAAkB;IAC3D,OAAO,YAAY,CAAI,eAAe,EAAE,GAAG,UAAU,OAAO,CAAC,CAAC;AAChE,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAI,UAAkB;IAC3D,OAAO,YAAY,CAAI,eAAe,EAAE,GAAG,UAAU,OAAO,CAAC,CAAC;AAChE,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { readFile } from "fs/promises";
|
|
2
|
-
import { join } from "node:path";
|
|
3
|
-
import { fileURLToPath, resolve } from "node:url";
|
|
4
1
|
// @ts-ignore
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
const root = import.meta.url;
|
|
3
|
+
let resolvedRoot = undefined;
|
|
7
4
|
const fileSystem = root.startsWith('file://');
|
|
8
5
|
/**
|
|
9
6
|
* Get a data file from the data directory in ESM
|
|
@@ -12,14 +9,31 @@ const fileSystem = root.startsWith('file://');
|
|
|
12
9
|
* @returns the data from the file
|
|
13
10
|
*/
|
|
14
11
|
export async function readRelativeFile(pathParts) {
|
|
15
|
-
|
|
12
|
+
/*
|
|
13
|
+
* Maybe a little too optimized here. Want to only resolve the root once, but we have to do it inside the
|
|
14
|
+
* function, so caching it here.
|
|
15
|
+
*/
|
|
16
|
+
if (!resolvedRoot) {
|
|
17
|
+
if (fileSystem) {
|
|
18
|
+
const { join } = await import('node:path');
|
|
19
|
+
const { resolve } = await import('node:url');
|
|
20
|
+
resolvedRoot = resolve(root, join('..', '..'));
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
resolvedRoot = '../../';
|
|
24
|
+
}
|
|
25
|
+
}
|
|
16
26
|
if (fileSystem) {
|
|
17
|
-
const
|
|
27
|
+
const { readFile } = await import('fs/promises');
|
|
28
|
+
const { join } = await import('node:path');
|
|
29
|
+
const { fileURLToPath, resolve } = await import('node:url');
|
|
30
|
+
const relativePath = join(...pathParts);
|
|
31
|
+
const contents = await readFile(fileURLToPath(resolve(resolvedRoot, relativePath)), 'utf-8');
|
|
18
32
|
return JSON.parse(contents);
|
|
19
33
|
}
|
|
20
34
|
else {
|
|
21
|
-
const contents = await
|
|
22
|
-
return await contents.
|
|
35
|
+
const contents = await import(resolvedRoot + pathParts.join('/'));
|
|
36
|
+
return await contents.default;
|
|
23
37
|
}
|
|
24
38
|
}
|
|
25
39
|
//# sourceMappingURL=readRelativeFileEsm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readRelativeFileEsm.js","sourceRoot":"","sources":["../../src/readRelativeFileEsm.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"readRelativeFileEsm.js","sourceRoot":"","sources":["../../src/readRelativeFileEsm.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAA;AAC5B,IAAI,YAAY,GAAwB,SAAS,CAAA;AACjD,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAA;AAE7C;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAI,SAAmB;IAC3D;;;OAGG;IACH,IAAG,CAAC,YAAY,EAAE,CAAC;QACjB,IAAG,UAAU,EAAE,CAAC;YACd,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,CAAC;YAC3C,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,CAAC;YAC7C,YAAY,GAAG,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;QAChD,CAAC;aAAM,CAAC;YACN,YAAY,GAAG,QAAQ,CAAA;QACzB,CAAC;IACH,CAAC;IAED,IAAG,UAAU,EAAE,CAAC;QACd,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,CAAC;QACjD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,CAAC;QAC3C,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,CAAC;QAE5D,MAAM,YAAY,GAAG,IAAI,CAAC,GAAG,SAAS,CAAC,CAAA;QACvC,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,EAAE,OAAO,CAAC,CAAA;QAC5F,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC9B,CAAC;SAAM,CAAC;QACN,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,YAAY,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;QACjE,OAAO,MAAM,QAAQ,CAAC,OAAO,CAAA;IAC/B,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readRelativeFileEsm.d.ts","sourceRoot":"","sources":["../../src/readRelativeFileEsm.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"readRelativeFileEsm.d.ts","sourceRoot":"","sources":["../../src/readRelativeFileEsm.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,wBAAsB,gBAAgB,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,CA2BzE"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloud-copilot/iam-data",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.202409201",
|
|
4
4
|
"description": "AWS IAM Data",
|
|
5
5
|
"repository": "github:cloud-copilot/iam-data",
|
|
6
|
-
"updatedAt": "2024-09-
|
|
6
|
+
"updatedAt": "2024-09-20T04:46:26.833Z",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
9
|
"import": "./dist/esm/index.js",
|