Skip to content

Commit ef01f36

Browse files
author
AWS
committed
Amazon WorkMail Update: This release adds support for Amazon WorkMail organization-level retention policies.
1 parent abf5511 commit ef01f36

File tree

2 files changed

+204
-0
lines changed

2 files changed

+204
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon WorkMail",
4+
"description": "This release adds support for Amazon WorkMail organization-level retention policies."
5+
}

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

Lines changed: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,22 @@
223223
"documentation":"<p>Deletes the specified resource. </p>",
224224
"idempotent":true
225225
},
226+
"DeleteRetentionPolicy":{
227+
"name":"DeleteRetentionPolicy",
228+
"http":{
229+
"method":"POST",
230+
"requestUri":"/"
231+
},
232+
"input":{"shape":"DeleteRetentionPolicyRequest"},
233+
"output":{"shape":"DeleteRetentionPolicyResponse"},
234+
"errors":[
235+
{"shape":"InvalidParameterException"},
236+
{"shape":"OrganizationNotFoundException"},
237+
{"shape":"OrganizationStateException"}
238+
],
239+
"documentation":"<p>Deletes the specified retention policy from the specified organization.</p>",
240+
"idempotent":true
241+
},
226242
"DeleteUser":{
227243
"name":"DeleteUser",
228244
"http":{
@@ -382,6 +398,23 @@
382398
],
383399
"documentation":"<p>Gets the effects of an organization's access control rules as they apply to a specified IPv4 address, access protocol action, or user ID. </p>"
384400
},
401+
"GetDefaultRetentionPolicy":{
402+
"name":"GetDefaultRetentionPolicy",
403+
"http":{
404+
"method":"POST",
405+
"requestUri":"/"
406+
},
407+
"input":{"shape":"GetDefaultRetentionPolicyRequest"},
408+
"output":{"shape":"GetDefaultRetentionPolicyResponse"},
409+
"errors":[
410+
{"shape":"InvalidParameterException"},
411+
{"shape":"OrganizationNotFoundException"},
412+
{"shape":"OrganizationStateException"},
413+
{"shape":"EntityNotFoundException"}
414+
],
415+
"documentation":"<p>Gets the default retention policy details for the specified organization.</p>",
416+
"idempotent":true
417+
},
385418
"GetMailboxDetails":{
386419
"name":"GetMailboxDetails",
387420
"http":{
@@ -594,6 +627,23 @@
594627
"documentation":"<p>Sets permissions for a user, group, or resource. This replaces any pre-existing permissions.</p>",
595628
"idempotent":true
596629
},
630+
"PutRetentionPolicy":{
631+
"name":"PutRetentionPolicy",
632+
"http":{
633+
"method":"POST",
634+
"requestUri":"/"
635+
},
636+
"input":{"shape":"PutRetentionPolicyRequest"},
637+
"output":{"shape":"PutRetentionPolicyResponse"},
638+
"errors":[
639+
{"shape":"InvalidParameterException"},
640+
{"shape":"OrganizationNotFoundException"},
641+
{"shape":"OrganizationStateException"},
642+
{"shape":"LimitExceededException"}
643+
],
644+
"documentation":"<p>Puts a retention policy to the specified organization.</p>",
645+
"idempotent":true
646+
},
597647
"RegisterToWorkMail":{
598648
"name":"RegisterToWorkMail",
599649
"http":{
@@ -1169,6 +1219,28 @@
11691219
"members":{
11701220
}
11711221
},
1222+
"DeleteRetentionPolicyRequest":{
1223+
"type":"structure",
1224+
"required":[
1225+
"OrganizationId",
1226+
"Id"
1227+
],
1228+
"members":{
1229+
"OrganizationId":{
1230+
"shape":"OrganizationId",
1231+
"documentation":"<p>The organization ID.</p>"
1232+
},
1233+
"Id":{
1234+
"shape":"ShortString",
1235+
"documentation":"<p>The retention policy ID.</p>"
1236+
}
1237+
}
1238+
},
1239+
"DeleteRetentionPolicyResponse":{
1240+
"type":"structure",
1241+
"members":{
1242+
}
1243+
},
11721244
"DeleteUserRequest":{
11731245
"type":"structure",
11741246
"required":[
@@ -1534,6 +1606,42 @@
15341606
"documentation":"<p>You are performing an operation on a user, group, or resource that isn't in the expected state, such as trying to delete an active user.</p>",
15351607
"exception":true
15361608
},
1609+
"FolderConfiguration":{
1610+
"type":"structure",
1611+
"required":[
1612+
"Name",
1613+
"Action"
1614+
],
1615+
"members":{
1616+
"Name":{
1617+
"shape":"FolderName",
1618+
"documentation":"<p>The folder name.</p>"
1619+
},
1620+
"Action":{
1621+
"shape":"RetentionAction",
1622+
"documentation":"<p>The action to take on the folder contents at the end of the folder configuration period.</p>"
1623+
},
1624+
"Period":{
1625+
"shape":"RetentionPeriod",
1626+
"documentation":"<p>The period of time at which the folder configuration action is applied.</p>"
1627+
}
1628+
},
1629+
"documentation":"<p>The configuration applied to an organization's folders by its retention policy.</p>"
1630+
},
1631+
"FolderConfigurations":{
1632+
"type":"list",
1633+
"member":{"shape":"FolderConfiguration"}
1634+
},
1635+
"FolderName":{
1636+
"type":"string",
1637+
"enum":[
1638+
"INBOX",
1639+
"DELETED_ITEMS",
1640+
"SENT_ITEMS",
1641+
"DRAFTS",
1642+
"JUNK_EMAIL"
1643+
]
1644+
},
15371645
"GetAccessControlEffectRequest":{
15381646
"type":"structure",
15391647
"required":[
@@ -1574,6 +1682,37 @@
15741682
}
15751683
}
15761684
},
1685+
"GetDefaultRetentionPolicyRequest":{
1686+
"type":"structure",
1687+
"required":["OrganizationId"],
1688+
"members":{
1689+
"OrganizationId":{
1690+
"shape":"OrganizationId",
1691+
"documentation":"<p>The organization ID.</p>"
1692+
}
1693+
}
1694+
},
1695+
"GetDefaultRetentionPolicyResponse":{
1696+
"type":"structure",
1697+
"members":{
1698+
"Id":{
1699+
"shape":"ShortString",
1700+
"documentation":"<p>The retention policy ID.</p>"
1701+
},
1702+
"Name":{
1703+
"shape":"ShortString",
1704+
"documentation":"<p>The retention policy name.</p>"
1705+
},
1706+
"Description":{
1707+
"shape":"String",
1708+
"documentation":"<p>The retention policy description.</p>"
1709+
},
1710+
"FolderConfigurations":{
1711+
"shape":"FolderConfigurations",
1712+
"documentation":"<p>The retention policy folder configurations.</p>"
1713+
}
1714+
}
1715+
},
15771716
"GetMailboxDetailsRequest":{
15781717
"type":"structure",
15791718
"required":[
@@ -2185,6 +2324,11 @@
21852324
"type":"list",
21862325
"member":{"shape":"Permission"}
21872326
},
2327+
"PolicyDescription":{
2328+
"type":"string",
2329+
"max":256,
2330+
"pattern":"[\\w\\d\\s\\S\\-!?=,.;:'_]+"
2331+
},
21882332
"PutAccessControlRuleRequest":{
21892333
"type":"structure",
21902334
"required":[
@@ -2273,6 +2417,41 @@
22732417
"members":{
22742418
}
22752419
},
2420+
"PutRetentionPolicyRequest":{
2421+
"type":"structure",
2422+
"required":[
2423+
"OrganizationId",
2424+
"Name",
2425+
"FolderConfigurations"
2426+
],
2427+
"members":{
2428+
"OrganizationId":{
2429+
"shape":"OrganizationId",
2430+
"documentation":"<p>The organization ID.</p>"
2431+
},
2432+
"Id":{
2433+
"shape":"ShortString",
2434+
"documentation":"<p>The retention policy ID.</p>"
2435+
},
2436+
"Name":{
2437+
"shape":"ShortString",
2438+
"documentation":"<p>The retention policy name.</p>"
2439+
},
2440+
"Description":{
2441+
"shape":"PolicyDescription",
2442+
"documentation":"<p>The retention policy description.</p>"
2443+
},
2444+
"FolderConfigurations":{
2445+
"shape":"FolderConfigurations",
2446+
"documentation":"<p>The retention policy folder configurations.</p>"
2447+
}
2448+
}
2449+
},
2450+
"PutRetentionPolicyResponse":{
2451+
"type":"structure",
2452+
"members":{
2453+
}
2454+
},
22762455
"RegisterToWorkMailRequest":{
22772456
"type":"structure",
22782457
"required":[
@@ -2402,6 +2581,26 @@
24022581
"type":"list",
24032582
"member":{"shape":"Resource"}
24042583
},
2584+
"RetentionAction":{
2585+
"type":"string",
2586+
"enum":[
2587+
"NONE",
2588+
"DELETE",
2589+
"PERMANENTLY_DELETE"
2590+
]
2591+
},
2592+
"RetentionPeriod":{
2593+
"type":"integer",
2594+
"box":true,
2595+
"max":730,
2596+
"min":1
2597+
},
2598+
"ShortString":{
2599+
"type":"string",
2600+
"max":64,
2601+
"min":1,
2602+
"pattern":"[a-zA-Z0-9_-]+"
2603+
},
24052604
"String":{
24062605
"type":"string",
24072606
"max":256

0 commit comments

Comments
 (0)