Skip to content

Commit 3e62940

Browse files
author
AWS
committed
Amazon Verified Permissions Update: Adds deletion protection support to policy stores. Deletion protection is disabled by default, can be enabled via the CreatePolicyStore or UpdatePolicyStore APIs, and is visible in GetPolicyStore.
1 parent a5f3e86 commit 3e62940

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
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": "Adds deletion protection support to policy stores. Deletion protection is disabled by default, can be enabled via the CreatePolicyStore or UpdatePolicyStore APIs, and is visible in GetPolicyStore."
6+
}

services/verifiedpermissions/src/main/resources/codegen-resources/service-2.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@
192192
"output":{"shape":"DeletePolicyStoreOutput"},
193193
"errors":[
194194
{"shape":"ValidationException"},
195+
{"shape":"InvalidStateException"},
195196
{"shape":"AccessDeniedException"},
196197
{"shape":"ThrottlingException"},
197198
{"shape":"InternalServerException"}
@@ -1274,6 +1275,10 @@
12741275
"description":{
12751276
"shape":"PolicyStoreDescription",
12761277
"documentation":"<p>Descriptive text that you can provide to help with identification of the current policy store.</p>"
1278+
},
1279+
"deletionProtection":{
1280+
"shape":"DeletionProtection",
1281+
"documentation":"<p>Specifies whether the policy store can be deleted. If enabled, the policy store can't be deleted.</p> <p>The default state is <code>DISABLED</code>.</p>"
12771282
}
12781283
}
12791284
},
@@ -1452,6 +1457,13 @@
14521457
"members":{
14531458
}
14541459
},
1460+
"DeletionProtection":{
1461+
"type":"string",
1462+
"enum":[
1463+
"ENABLED",
1464+
"DISABLED"
1465+
]
1466+
},
14551467
"DeterminingPolicyItem":{
14561468
"type":"structure",
14571469
"required":["policyId"],
@@ -1757,6 +1769,10 @@
17571769
"description":{
17581770
"shape":"PolicyStoreDescription",
17591771
"documentation":"<p>Descriptive text that you can provide to help with identification of the current policy store.</p>"
1772+
},
1773+
"deletionProtection":{
1774+
"shape":"DeletionProtection",
1775+
"documentation":"<p>Specifies whether the policy store can be deleted. If enabled, the policy store can't be deleted.</p> <p>The default state is <code>DISABLED</code>.</p>"
17601776
}
17611777
}
17621778
},
@@ -2011,6 +2027,15 @@
20112027
"fault":true,
20122028
"retryable":{"throttling":false}
20132029
},
2030+
"InvalidStateException":{
2031+
"type":"structure",
2032+
"required":["message"],
2033+
"members":{
2034+
"message":{"shape":"String"}
2035+
},
2036+
"documentation":"<p>The policy store can't be deleted because deletion protection is enabled. To delete this policy store, disable deletion protection.</p>",
2037+
"exception":true
2038+
},
20142039
"IpAddr":{
20152040
"type":"string",
20162041
"max":44,
@@ -3395,6 +3420,10 @@
33953420
"shape":"ValidationSettings",
33963421
"documentation":"<p>A structure that defines the validation settings that want to enable for the policy store.</p>"
33973422
},
3423+
"deletionProtection":{
3424+
"shape":"DeletionProtection",
3425+
"documentation":"<p>Specifies whether the policy store can be deleted. If enabled, the policy store can't be deleted.</p> <p>When you call <code>UpdatePolicyStore</code>, this parameter is unchanged unless explicitly included in the call.</p>"
3426+
},
33983427
"description":{
33993428
"shape":"PolicyStoreDescription",
34003429
"documentation":"<p>Descriptive text that you can provide to help with identification of the current policy store.</p>"

0 commit comments

Comments
 (0)