Skip to content

Commit debf8cd

Browse files
author
AWS
committed
Amazon Verified Permissions Update: Documentation updates for Amazon Verified Permissions. Increases max results per page for ListPolicyStores, ListPolicies, and ListPolicyTemplates APIs from 20 to 50.
1 parent fcaf70f commit debf8cd

File tree

3 files changed

+143
-103
lines changed

3 files changed

+143
-103
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Verified Permissions",
4+
"contributor": "",
5+
"description": "Documentation updates for Amazon Verified Permissions. Increases max results per page for ListPolicyStores, ListPolicies, and ListPolicyTemplates APIs from 20 to 50."
6+
}

services/verifiedpermissions/src/main/resources/codegen-resources/endpoint-tests.json

Lines changed: 90 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
11
{
22
"testCases": [
33
{
4-
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
4+
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
55
"expect": {
66
"endpoint": {
7-
"url": "https://verifiedpermissions-fips.us-gov-east-1.api.aws"
7+
"url": "https://verifiedpermissions-fips.us-east-1.api.aws"
88
}
99
},
1010
"params": {
11+
"Region": "us-east-1",
1112
"UseFIPS": true,
12-
"UseDualStack": true,
13-
"Region": "us-gov-east-1"
13+
"UseDualStack": true
1414
}
1515
},
1616
{
17-
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
17+
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
1818
"expect": {
1919
"endpoint": {
20-
"url": "https://verifiedpermissions-fips.us-gov-east-1.amazonaws.com"
20+
"url": "https://verifiedpermissions-fips.us-east-1.amazonaws.com"
2121
}
2222
},
2323
"params": {
24+
"Region": "us-east-1",
2425
"UseFIPS": true,
25-
"UseDualStack": false,
26-
"Region": "us-gov-east-1"
26+
"UseDualStack": false
2727
}
2828
},
2929
{
30-
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
30+
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
3131
"expect": {
3232
"endpoint": {
33-
"url": "https://verifiedpermissions.us-gov-east-1.api.aws"
33+
"url": "https://verifiedpermissions.us-east-1.api.aws"
3434
}
3535
},
3636
"params": {
37+
"Region": "us-east-1",
3738
"UseFIPS": false,
38-
"UseDualStack": true,
39-
"Region": "us-gov-east-1"
39+
"UseDualStack": true
4040
}
4141
},
4242
{
43-
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
43+
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
4444
"expect": {
4545
"endpoint": {
46-
"url": "https://verifiedpermissions.us-gov-east-1.amazonaws.com"
46+
"url": "https://verifiedpermissions.us-east-1.amazonaws.com"
4747
}
4848
},
4949
"params": {
50+
"Region": "us-east-1",
5051
"UseFIPS": false,
51-
"UseDualStack": false,
52-
"Region": "us-gov-east-1"
52+
"UseDualStack": false
5353
}
5454
},
5555
{
@@ -60,9 +60,9 @@
6060
}
6161
},
6262
"params": {
63+
"Region": "cn-north-1",
6364
"UseFIPS": true,
64-
"UseDualStack": true,
65-
"Region": "cn-north-1"
65+
"UseDualStack": true
6666
}
6767
},
6868
{
@@ -73,9 +73,9 @@
7373
}
7474
},
7575
"params": {
76+
"Region": "cn-north-1",
7677
"UseFIPS": true,
77-
"UseDualStack": false,
78-
"Region": "cn-north-1"
78+
"UseDualStack": false
7979
}
8080
},
8181
{
@@ -86,9 +86,9 @@
8686
}
8787
},
8888
"params": {
89+
"Region": "cn-north-1",
8990
"UseFIPS": false,
90-
"UseDualStack": true,
91-
"Region": "cn-north-1"
91+
"UseDualStack": true
9292
}
9393
},
9494
{
@@ -99,109 +99,109 @@
9999
}
100100
},
101101
"params": {
102+
"Region": "cn-north-1",
102103
"UseFIPS": false,
103-
"UseDualStack": false,
104-
"Region": "cn-north-1"
104+
"UseDualStack": false
105105
}
106106
},
107107
{
108-
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
108+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
109109
"expect": {
110-
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
110+
"endpoint": {
111+
"url": "https://verifiedpermissions-fips.us-gov-east-1.api.aws"
112+
}
111113
},
112114
"params": {
115+
"Region": "us-gov-east-1",
113116
"UseFIPS": true,
114-
"UseDualStack": true,
115-
"Region": "us-iso-east-1"
117+
"UseDualStack": true
116118
}
117119
},
118120
{
119-
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
121+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
120122
"expect": {
121123
"endpoint": {
122-
"url": "https://verifiedpermissions-fips.us-iso-east-1.c2s.ic.gov"
124+
"url": "https://verifiedpermissions-fips.us-gov-east-1.amazonaws.com"
123125
}
124126
},
125127
"params": {
128+
"Region": "us-gov-east-1",
126129
"UseFIPS": true,
127-
"UseDualStack": false,
128-
"Region": "us-iso-east-1"
130+
"UseDualStack": false
129131
}
130132
},
131133
{
132-
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
134+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
133135
"expect": {
134-
"error": "DualStack is enabled but this partition does not support DualStack"
136+
"endpoint": {
137+
"url": "https://verifiedpermissions.us-gov-east-1.api.aws"
138+
}
135139
},
136140
"params": {
141+
"Region": "us-gov-east-1",
137142
"UseFIPS": false,
138-
"UseDualStack": true,
139-
"Region": "us-iso-east-1"
143+
"UseDualStack": true
140144
}
141145
},
142146
{
143-
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
147+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
144148
"expect": {
145149
"endpoint": {
146-
"url": "https://verifiedpermissions.us-iso-east-1.c2s.ic.gov"
150+
"url": "https://verifiedpermissions.us-gov-east-1.amazonaws.com"
147151
}
148152
},
149153
"params": {
154+
"Region": "us-gov-east-1",
150155
"UseFIPS": false,
151-
"UseDualStack": false,
152-
"Region": "us-iso-east-1"
156+
"UseDualStack": false
153157
}
154158
},
155159
{
156-
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
160+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
157161
"expect": {
158-
"endpoint": {
159-
"url": "https://verifiedpermissions-fips.us-east-1.api.aws"
160-
}
162+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
161163
},
162164
"params": {
165+
"Region": "us-iso-east-1",
163166
"UseFIPS": true,
164-
"UseDualStack": true,
165-
"Region": "us-east-1"
167+
"UseDualStack": true
166168
}
167169
},
168170
{
169-
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
171+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
170172
"expect": {
171173
"endpoint": {
172-
"url": "https://verifiedpermissions-fips.us-east-1.amazonaws.com"
174+
"url": "https://verifiedpermissions-fips.us-iso-east-1.c2s.ic.gov"
173175
}
174176
},
175177
"params": {
178+
"Region": "us-iso-east-1",
176179
"UseFIPS": true,
177-
"UseDualStack": false,
178-
"Region": "us-east-1"
180+
"UseDualStack": false
179181
}
180182
},
181183
{
182-
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
184+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
183185
"expect": {
184-
"endpoint": {
185-
"url": "https://verifiedpermissions.us-east-1.api.aws"
186-
}
186+
"error": "DualStack is enabled but this partition does not support DualStack"
187187
},
188188
"params": {
189+
"Region": "us-iso-east-1",
189190
"UseFIPS": false,
190-
"UseDualStack": true,
191-
"Region": "us-east-1"
191+
"UseDualStack": true
192192
}
193193
},
194194
{
195-
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
195+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
196196
"expect": {
197197
"endpoint": {
198-
"url": "https://verifiedpermissions.us-east-1.amazonaws.com"
198+
"url": "https://verifiedpermissions.us-iso-east-1.c2s.ic.gov"
199199
}
200200
},
201201
"params": {
202+
"Region": "us-iso-east-1",
202203
"UseFIPS": false,
203-
"UseDualStack": false,
204-
"Region": "us-east-1"
204+
"UseDualStack": false
205205
}
206206
},
207207
{
@@ -210,9 +210,9 @@
210210
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
211211
},
212212
"params": {
213+
"Region": "us-isob-east-1",
213214
"UseFIPS": true,
214-
"UseDualStack": true,
215-
"Region": "us-isob-east-1"
215+
"UseDualStack": true
216216
}
217217
},
218218
{
@@ -223,9 +223,9 @@
223223
}
224224
},
225225
"params": {
226+
"Region": "us-isob-east-1",
226227
"UseFIPS": true,
227-
"UseDualStack": false,
228-
"Region": "us-isob-east-1"
228+
"UseDualStack": false
229229
}
230230
},
231231
{
@@ -234,9 +234,9 @@
234234
"error": "DualStack is enabled but this partition does not support DualStack"
235235
},
236236
"params": {
237+
"Region": "us-isob-east-1",
237238
"UseFIPS": false,
238-
"UseDualStack": true,
239-
"Region": "us-isob-east-1"
239+
"UseDualStack": true
240240
}
241241
},
242242
{
@@ -247,13 +247,27 @@
247247
}
248248
},
249249
"params": {
250+
"Region": "us-isob-east-1",
251+
"UseFIPS": false,
252+
"UseDualStack": false
253+
}
254+
},
255+
{
256+
"documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
257+
"expect": {
258+
"endpoint": {
259+
"url": "https://example.com"
260+
}
261+
},
262+
"params": {
263+
"Region": "us-east-1",
250264
"UseFIPS": false,
251265
"UseDualStack": false,
252-
"Region": "us-isob-east-1"
266+
"Endpoint": "https://example.com"
253267
}
254268
},
255269
{
256-
"documentation": "For custom endpoint with fips disabled and dualstack disabled",
270+
"documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
257271
"expect": {
258272
"endpoint": {
259273
"url": "https://example.com"
@@ -262,7 +276,6 @@
262276
"params": {
263277
"UseFIPS": false,
264278
"UseDualStack": false,
265-
"Region": "us-east-1",
266279
"Endpoint": "https://example.com"
267280
}
268281
},
@@ -272,9 +285,9 @@
272285
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
273286
},
274287
"params": {
288+
"Region": "us-east-1",
275289
"UseFIPS": true,
276290
"UseDualStack": false,
277-
"Region": "us-east-1",
278291
"Endpoint": "https://example.com"
279292
}
280293
},
@@ -284,11 +297,17 @@
284297
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
285298
},
286299
"params": {
300+
"Region": "us-east-1",
287301
"UseFIPS": false,
288302
"UseDualStack": true,
289-
"Region": "us-east-1",
290303
"Endpoint": "https://example.com"
291304
}
305+
},
306+
{
307+
"documentation": "Missing region",
308+
"expect": {
309+
"error": "Invalid Configuration: Missing Region"
310+
}
292311
}
293312
],
294313
"version": "1.0"

0 commit comments

Comments
 (0)