aws-sdk-workmail 1.20.0 → 1.25.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,6 +11,14 @@ module Aws::WorkMail
11
11
 
12
12
  include Seahorse::Model
13
13
 
14
+ AccessControlRule = Shapes::StructureShape.new(name: 'AccessControlRule')
15
+ AccessControlRuleAction = Shapes::StringShape.new(name: 'AccessControlRuleAction')
16
+ AccessControlRuleDescription = Shapes::StringShape.new(name: 'AccessControlRuleDescription')
17
+ AccessControlRuleEffect = Shapes::StringShape.new(name: 'AccessControlRuleEffect')
18
+ AccessControlRuleName = Shapes::StringShape.new(name: 'AccessControlRuleName')
19
+ AccessControlRuleNameList = Shapes::ListShape.new(name: 'AccessControlRuleNameList')
20
+ AccessControlRulesList = Shapes::ListShape.new(name: 'AccessControlRulesList')
21
+ ActionsList = Shapes::ListShape.new(name: 'ActionsList')
14
22
  Aliases = Shapes::ListShape.new(name: 'Aliases')
15
23
  AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
16
24
  AssociateDelegateToResourceRequest = Shapes::StructureShape.new(name: 'AssociateDelegateToResourceRequest')
@@ -28,6 +36,8 @@ module Aws::WorkMail
28
36
  CreateUserRequest = Shapes::StructureShape.new(name: 'CreateUserRequest')
29
37
  CreateUserResponse = Shapes::StructureShape.new(name: 'CreateUserResponse')
30
38
  Delegate = Shapes::StructureShape.new(name: 'Delegate')
39
+ DeleteAccessControlRuleRequest = Shapes::StructureShape.new(name: 'DeleteAccessControlRuleRequest')
40
+ DeleteAccessControlRuleResponse = Shapes::StructureShape.new(name: 'DeleteAccessControlRuleResponse')
31
41
  DeleteAliasRequest = Shapes::StructureShape.new(name: 'DeleteAliasRequest')
32
42
  DeleteAliasResponse = Shapes::StructureShape.new(name: 'DeleteAliasResponse')
33
43
  DeleteGroupRequest = Shapes::StructureShape.new(name: 'DeleteGroupRequest')
@@ -36,6 +46,8 @@ module Aws::WorkMail
36
46
  DeleteMailboxPermissionsResponse = Shapes::StructureShape.new(name: 'DeleteMailboxPermissionsResponse')
37
47
  DeleteResourceRequest = Shapes::StructureShape.new(name: 'DeleteResourceRequest')
38
48
  DeleteResourceResponse = Shapes::StructureShape.new(name: 'DeleteResourceResponse')
49
+ DeleteRetentionPolicyRequest = Shapes::StructureShape.new(name: 'DeleteRetentionPolicyRequest')
50
+ DeleteRetentionPolicyResponse = Shapes::StructureShape.new(name: 'DeleteRetentionPolicyResponse')
39
51
  DeleteUserRequest = Shapes::StructureShape.new(name: 'DeleteUserRequest')
40
52
  DeleteUserResponse = Shapes::StructureShape.new(name: 'DeleteUserResponse')
41
53
  DeregisterFromWorkMailRequest = Shapes::StructureShape.new(name: 'DeregisterFromWorkMailRequest')
@@ -60,6 +72,13 @@ module Aws::WorkMail
60
72
  EntityNotFoundException = Shapes::StructureShape.new(name: 'EntityNotFoundException')
61
73
  EntityState = Shapes::StringShape.new(name: 'EntityState')
62
74
  EntityStateException = Shapes::StructureShape.new(name: 'EntityStateException')
75
+ FolderConfiguration = Shapes::StructureShape.new(name: 'FolderConfiguration')
76
+ FolderConfigurations = Shapes::ListShape.new(name: 'FolderConfigurations')
77
+ FolderName = Shapes::StringShape.new(name: 'FolderName')
78
+ GetAccessControlEffectRequest = Shapes::StructureShape.new(name: 'GetAccessControlEffectRequest')
79
+ GetAccessControlEffectResponse = Shapes::StructureShape.new(name: 'GetAccessControlEffectResponse')
80
+ GetDefaultRetentionPolicyRequest = Shapes::StructureShape.new(name: 'GetDefaultRetentionPolicyRequest')
81
+ GetDefaultRetentionPolicyResponse = Shapes::StructureShape.new(name: 'GetDefaultRetentionPolicyResponse')
63
82
  GetMailboxDetailsRequest = Shapes::StructureShape.new(name: 'GetMailboxDetailsRequest')
64
83
  GetMailboxDetailsResponse = Shapes::StructureShape.new(name: 'GetMailboxDetailsResponse')
65
84
  Group = Shapes::StructureShape.new(name: 'Group')
@@ -68,7 +87,12 @@ module Aws::WorkMail
68
87
  InvalidConfigurationException = Shapes::StructureShape.new(name: 'InvalidConfigurationException')
69
88
  InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
70
89
  InvalidPasswordException = Shapes::StructureShape.new(name: 'InvalidPasswordException')
90
+ IpAddress = Shapes::StringShape.new(name: 'IpAddress')
91
+ IpRange = Shapes::StringShape.new(name: 'IpRange')
92
+ IpRangeList = Shapes::ListShape.new(name: 'IpRangeList')
71
93
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
94
+ ListAccessControlRulesRequest = Shapes::StructureShape.new(name: 'ListAccessControlRulesRequest')
95
+ ListAccessControlRulesResponse = Shapes::StructureShape.new(name: 'ListAccessControlRulesResponse')
72
96
  ListAliasesRequest = Shapes::StructureShape.new(name: 'ListAliasesRequest')
73
97
  ListAliasesResponse = Shapes::StructureShape.new(name: 'ListAliasesResponse')
74
98
  ListGroupMembersRequest = Shapes::StructureShape.new(name: 'ListGroupMembersRequest')
@@ -108,8 +132,13 @@ module Aws::WorkMail
108
132
  PermissionType = Shapes::StringShape.new(name: 'PermissionType')
109
133
  PermissionValues = Shapes::ListShape.new(name: 'PermissionValues')
110
134
  Permissions = Shapes::ListShape.new(name: 'Permissions')
135
+ PolicyDescription = Shapes::StringShape.new(name: 'PolicyDescription')
136
+ PutAccessControlRuleRequest = Shapes::StructureShape.new(name: 'PutAccessControlRuleRequest')
137
+ PutAccessControlRuleResponse = Shapes::StructureShape.new(name: 'PutAccessControlRuleResponse')
111
138
  PutMailboxPermissionsRequest = Shapes::StructureShape.new(name: 'PutMailboxPermissionsRequest')
112
139
  PutMailboxPermissionsResponse = Shapes::StructureShape.new(name: 'PutMailboxPermissionsResponse')
140
+ PutRetentionPolicyRequest = Shapes::StructureShape.new(name: 'PutRetentionPolicyRequest')
141
+ PutRetentionPolicyResponse = Shapes::StructureShape.new(name: 'PutRetentionPolicyResponse')
113
142
  RegisterToWorkMailRequest = Shapes::StructureShape.new(name: 'RegisterToWorkMailRequest')
114
143
  RegisterToWorkMailResponse = Shapes::StructureShape.new(name: 'RegisterToWorkMailResponse')
115
144
  ReservedNameException = Shapes::StructureShape.new(name: 'ReservedNameException')
@@ -122,6 +151,9 @@ module Aws::WorkMail
122
151
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
123
152
  ResourceType = Shapes::StringShape.new(name: 'ResourceType')
124
153
  Resources = Shapes::ListShape.new(name: 'Resources')
154
+ RetentionAction = Shapes::StringShape.new(name: 'RetentionAction')
155
+ RetentionPeriod = Shapes::IntegerShape.new(name: 'RetentionPeriod')
156
+ ShortString = Shapes::StringShape.new(name: 'ShortString')
125
157
  String = Shapes::StringShape.new(name: 'String')
126
158
  Tag = Shapes::StructureShape.new(name: 'Tag')
127
159
  TagKey = Shapes::StringShape.new(name: 'TagKey')
@@ -142,11 +174,31 @@ module Aws::WorkMail
142
174
  UpdateResourceRequest = Shapes::StructureShape.new(name: 'UpdateResourceRequest')
143
175
  UpdateResourceResponse = Shapes::StructureShape.new(name: 'UpdateResourceResponse')
144
176
  User = Shapes::StructureShape.new(name: 'User')
177
+ UserIdList = Shapes::ListShape.new(name: 'UserIdList')
145
178
  UserName = Shapes::StringShape.new(name: 'UserName')
146
179
  UserRole = Shapes::StringShape.new(name: 'UserRole')
147
180
  Users = Shapes::ListShape.new(name: 'Users')
148
181
  WorkMailIdentifier = Shapes::StringShape.new(name: 'WorkMailIdentifier')
149
182
 
183
+ AccessControlRule.add_member(:name, Shapes::ShapeRef.new(shape: AccessControlRuleName, location_name: "Name"))
184
+ AccessControlRule.add_member(:effect, Shapes::ShapeRef.new(shape: AccessControlRuleEffect, location_name: "Effect"))
185
+ AccessControlRule.add_member(:description, Shapes::ShapeRef.new(shape: AccessControlRuleDescription, location_name: "Description"))
186
+ AccessControlRule.add_member(:ip_ranges, Shapes::ShapeRef.new(shape: IpRangeList, location_name: "IpRanges"))
187
+ AccessControlRule.add_member(:not_ip_ranges, Shapes::ShapeRef.new(shape: IpRangeList, location_name: "NotIpRanges"))
188
+ AccessControlRule.add_member(:actions, Shapes::ShapeRef.new(shape: ActionsList, location_name: "Actions"))
189
+ AccessControlRule.add_member(:not_actions, Shapes::ShapeRef.new(shape: ActionsList, location_name: "NotActions"))
190
+ AccessControlRule.add_member(:user_ids, Shapes::ShapeRef.new(shape: UserIdList, location_name: "UserIds"))
191
+ AccessControlRule.add_member(:not_user_ids, Shapes::ShapeRef.new(shape: UserIdList, location_name: "NotUserIds"))
192
+ AccessControlRule.add_member(:date_created, Shapes::ShapeRef.new(shape: Timestamp, location_name: "DateCreated"))
193
+ AccessControlRule.add_member(:date_modified, Shapes::ShapeRef.new(shape: Timestamp, location_name: "DateModified"))
194
+ AccessControlRule.struct_class = Types::AccessControlRule
195
+
196
+ AccessControlRuleNameList.member = Shapes::ShapeRef.new(shape: AccessControlRuleName)
197
+
198
+ AccessControlRulesList.member = Shapes::ShapeRef.new(shape: AccessControlRule)
199
+
200
+ ActionsList.member = Shapes::ShapeRef.new(shape: AccessControlRuleAction)
201
+
150
202
  Aliases.member = Shapes::ShapeRef.new(shape: EmailAddress)
151
203
 
152
204
  AssociateDelegateToResourceRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
@@ -203,6 +255,12 @@ module Aws::WorkMail
203
255
  Delegate.add_member(:type, Shapes::ShapeRef.new(shape: MemberType, required: true, location_name: "Type"))
204
256
  Delegate.struct_class = Types::Delegate
205
257
 
258
+ DeleteAccessControlRuleRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
259
+ DeleteAccessControlRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: AccessControlRuleName, required: true, location_name: "Name"))
260
+ DeleteAccessControlRuleRequest.struct_class = Types::DeleteAccessControlRuleRequest
261
+
262
+ DeleteAccessControlRuleResponse.struct_class = Types::DeleteAccessControlRuleResponse
263
+
206
264
  DeleteAliasRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
207
265
  DeleteAliasRequest.add_member(:entity_id, Shapes::ShapeRef.new(shape: WorkMailIdentifier, required: true, location_name: "EntityId"))
208
266
  DeleteAliasRequest.add_member(:alias, Shapes::ShapeRef.new(shape: EmailAddress, required: true, location_name: "Alias"))
@@ -229,6 +287,12 @@ module Aws::WorkMail
229
287
 
230
288
  DeleteResourceResponse.struct_class = Types::DeleteResourceResponse
231
289
 
290
+ DeleteRetentionPolicyRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
291
+ DeleteRetentionPolicyRequest.add_member(:id, Shapes::ShapeRef.new(shape: ShortString, required: true, location_name: "Id"))
292
+ DeleteRetentionPolicyRequest.struct_class = Types::DeleteRetentionPolicyRequest
293
+
294
+ DeleteRetentionPolicyResponse.struct_class = Types::DeleteRetentionPolicyResponse
295
+
232
296
  DeleteUserRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
233
297
  DeleteUserRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: WorkMailIdentifier, required: true, location_name: "UserId"))
234
298
  DeleteUserRequest.struct_class = Types::DeleteUserRequest
@@ -327,6 +391,32 @@ module Aws::WorkMail
327
391
  EntityStateException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
328
392
  EntityStateException.struct_class = Types::EntityStateException
329
393
 
394
+ FolderConfiguration.add_member(:name, Shapes::ShapeRef.new(shape: FolderName, required: true, location_name: "Name"))
395
+ FolderConfiguration.add_member(:action, Shapes::ShapeRef.new(shape: RetentionAction, required: true, location_name: "Action"))
396
+ FolderConfiguration.add_member(:period, Shapes::ShapeRef.new(shape: RetentionPeriod, location_name: "Period"))
397
+ FolderConfiguration.struct_class = Types::FolderConfiguration
398
+
399
+ FolderConfigurations.member = Shapes::ShapeRef.new(shape: FolderConfiguration)
400
+
401
+ GetAccessControlEffectRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
402
+ GetAccessControlEffectRequest.add_member(:ip_address, Shapes::ShapeRef.new(shape: IpAddress, required: true, location_name: "IpAddress"))
403
+ GetAccessControlEffectRequest.add_member(:action, Shapes::ShapeRef.new(shape: AccessControlRuleAction, required: true, location_name: "Action"))
404
+ GetAccessControlEffectRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: WorkMailIdentifier, required: true, location_name: "UserId"))
405
+ GetAccessControlEffectRequest.struct_class = Types::GetAccessControlEffectRequest
406
+
407
+ GetAccessControlEffectResponse.add_member(:effect, Shapes::ShapeRef.new(shape: AccessControlRuleEffect, location_name: "Effect"))
408
+ GetAccessControlEffectResponse.add_member(:matched_rules, Shapes::ShapeRef.new(shape: AccessControlRuleNameList, location_name: "MatchedRules"))
409
+ GetAccessControlEffectResponse.struct_class = Types::GetAccessControlEffectResponse
410
+
411
+ GetDefaultRetentionPolicyRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
412
+ GetDefaultRetentionPolicyRequest.struct_class = Types::GetDefaultRetentionPolicyRequest
413
+
414
+ GetDefaultRetentionPolicyResponse.add_member(:id, Shapes::ShapeRef.new(shape: ShortString, location_name: "Id"))
415
+ GetDefaultRetentionPolicyResponse.add_member(:name, Shapes::ShapeRef.new(shape: ShortString, location_name: "Name"))
416
+ GetDefaultRetentionPolicyResponse.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "Description"))
417
+ GetDefaultRetentionPolicyResponse.add_member(:folder_configurations, Shapes::ShapeRef.new(shape: FolderConfigurations, location_name: "FolderConfigurations"))
418
+ GetDefaultRetentionPolicyResponse.struct_class = Types::GetDefaultRetentionPolicyResponse
419
+
330
420
  GetMailboxDetailsRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
331
421
  GetMailboxDetailsRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: WorkMailIdentifier, required: true, location_name: "UserId"))
332
422
  GetMailboxDetailsRequest.struct_class = Types::GetMailboxDetailsRequest
@@ -354,9 +444,17 @@ module Aws::WorkMail
354
444
  InvalidPasswordException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
355
445
  InvalidPasswordException.struct_class = Types::InvalidPasswordException
356
446
 
447
+ IpRangeList.member = Shapes::ShapeRef.new(shape: IpRange)
448
+
357
449
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
358
450
  LimitExceededException.struct_class = Types::LimitExceededException
359
451
 
452
+ ListAccessControlRulesRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
453
+ ListAccessControlRulesRequest.struct_class = Types::ListAccessControlRulesRequest
454
+
455
+ ListAccessControlRulesResponse.add_member(:rules, Shapes::ShapeRef.new(shape: AccessControlRulesList, location_name: "Rules"))
456
+ ListAccessControlRulesResponse.struct_class = Types::ListAccessControlRulesResponse
457
+
360
458
  ListAliasesRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
361
459
  ListAliasesRequest.add_member(:entity_id, Shapes::ShapeRef.new(shape: WorkMailIdentifier, required: true, location_name: "EntityId"))
362
460
  ListAliasesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
@@ -480,6 +578,20 @@ module Aws::WorkMail
480
578
 
481
579
  Permissions.member = Shapes::ShapeRef.new(shape: Permission)
482
580
 
581
+ PutAccessControlRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: AccessControlRuleName, required: true, location_name: "Name"))
582
+ PutAccessControlRuleRequest.add_member(:effect, Shapes::ShapeRef.new(shape: AccessControlRuleEffect, required: true, location_name: "Effect"))
583
+ PutAccessControlRuleRequest.add_member(:description, Shapes::ShapeRef.new(shape: AccessControlRuleDescription, required: true, location_name: "Description"))
584
+ PutAccessControlRuleRequest.add_member(:ip_ranges, Shapes::ShapeRef.new(shape: IpRangeList, location_name: "IpRanges"))
585
+ PutAccessControlRuleRequest.add_member(:not_ip_ranges, Shapes::ShapeRef.new(shape: IpRangeList, location_name: "NotIpRanges"))
586
+ PutAccessControlRuleRequest.add_member(:actions, Shapes::ShapeRef.new(shape: ActionsList, location_name: "Actions"))
587
+ PutAccessControlRuleRequest.add_member(:not_actions, Shapes::ShapeRef.new(shape: ActionsList, location_name: "NotActions"))
588
+ PutAccessControlRuleRequest.add_member(:user_ids, Shapes::ShapeRef.new(shape: UserIdList, location_name: "UserIds"))
589
+ PutAccessControlRuleRequest.add_member(:not_user_ids, Shapes::ShapeRef.new(shape: UserIdList, location_name: "NotUserIds"))
590
+ PutAccessControlRuleRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
591
+ PutAccessControlRuleRequest.struct_class = Types::PutAccessControlRuleRequest
592
+
593
+ PutAccessControlRuleResponse.struct_class = Types::PutAccessControlRuleResponse
594
+
483
595
  PutMailboxPermissionsRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
484
596
  PutMailboxPermissionsRequest.add_member(:entity_id, Shapes::ShapeRef.new(shape: WorkMailIdentifier, required: true, location_name: "EntityId"))
485
597
  PutMailboxPermissionsRequest.add_member(:grantee_id, Shapes::ShapeRef.new(shape: WorkMailIdentifier, required: true, location_name: "GranteeId"))
@@ -488,6 +600,15 @@ module Aws::WorkMail
488
600
 
489
601
  PutMailboxPermissionsResponse.struct_class = Types::PutMailboxPermissionsResponse
490
602
 
603
+ PutRetentionPolicyRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
604
+ PutRetentionPolicyRequest.add_member(:id, Shapes::ShapeRef.new(shape: ShortString, location_name: "Id"))
605
+ PutRetentionPolicyRequest.add_member(:name, Shapes::ShapeRef.new(shape: ShortString, required: true, location_name: "Name"))
606
+ PutRetentionPolicyRequest.add_member(:description, Shapes::ShapeRef.new(shape: PolicyDescription, location_name: "Description"))
607
+ PutRetentionPolicyRequest.add_member(:folder_configurations, Shapes::ShapeRef.new(shape: FolderConfigurations, required: true, location_name: "FolderConfigurations"))
608
+ PutRetentionPolicyRequest.struct_class = Types::PutRetentionPolicyRequest
609
+
610
+ PutRetentionPolicyResponse.struct_class = Types::PutRetentionPolicyResponse
611
+
491
612
  RegisterToWorkMailRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
492
613
  RegisterToWorkMailRequest.add_member(:entity_id, Shapes::ShapeRef.new(shape: WorkMailIdentifier, required: true, location_name: "EntityId"))
493
614
  RegisterToWorkMailRequest.add_member(:email, Shapes::ShapeRef.new(shape: EmailAddress, required: true, location_name: "Email"))
@@ -579,6 +700,8 @@ module Aws::WorkMail
579
700
  User.add_member(:disabled_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "DisabledDate"))
580
701
  User.struct_class = Types::User
581
702
 
703
+ UserIdList.member = Shapes::ShapeRef.new(shape: WorkMailIdentifier)
704
+
582
705
  Users.member = Shapes::ShapeRef.new(shape: User)
583
706
 
584
707
 
@@ -693,6 +816,16 @@ module Aws::WorkMail
693
816
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
694
817
  end)
695
818
 
819
+ api.add_operation(:delete_access_control_rule, Seahorse::Model::Operation.new.tap do |o|
820
+ o.name = "DeleteAccessControlRule"
821
+ o.http_method = "POST"
822
+ o.http_request_uri = "/"
823
+ o.input = Shapes::ShapeRef.new(shape: DeleteAccessControlRuleRequest)
824
+ o.output = Shapes::ShapeRef.new(shape: DeleteAccessControlRuleResponse)
825
+ o.errors << Shapes::ShapeRef.new(shape: OrganizationNotFoundException)
826
+ o.errors << Shapes::ShapeRef.new(shape: OrganizationStateException)
827
+ end)
828
+
696
829
  api.add_operation(:delete_alias, Seahorse::Model::Operation.new.tap do |o|
697
830
  o.name = "DeleteAlias"
698
831
  o.http_method = "POST"
@@ -746,6 +879,17 @@ module Aws::WorkMail
746
879
  o.errors << Shapes::ShapeRef.new(shape: OrganizationStateException)
747
880
  end)
748
881
 
882
+ api.add_operation(:delete_retention_policy, Seahorse::Model::Operation.new.tap do |o|
883
+ o.name = "DeleteRetentionPolicy"
884
+ o.http_method = "POST"
885
+ o.http_request_uri = "/"
886
+ o.input = Shapes::ShapeRef.new(shape: DeleteRetentionPolicyRequest)
887
+ o.output = Shapes::ShapeRef.new(shape: DeleteRetentionPolicyResponse)
888
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
889
+ o.errors << Shapes::ShapeRef.new(shape: OrganizationNotFoundException)
890
+ o.errors << Shapes::ShapeRef.new(shape: OrganizationStateException)
891
+ end)
892
+
749
893
  api.add_operation(:delete_user, Seahorse::Model::Operation.new.tap do |o|
750
894
  o.name = "DeleteUser"
751
895
  o.http_method = "POST"
@@ -849,6 +993,30 @@ module Aws::WorkMail
849
993
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
850
994
  end)
851
995
 
996
+ api.add_operation(:get_access_control_effect, Seahorse::Model::Operation.new.tap do |o|
997
+ o.name = "GetAccessControlEffect"
998
+ o.http_method = "POST"
999
+ o.http_request_uri = "/"
1000
+ o.input = Shapes::ShapeRef.new(shape: GetAccessControlEffectRequest)
1001
+ o.output = Shapes::ShapeRef.new(shape: GetAccessControlEffectResponse)
1002
+ o.errors << Shapes::ShapeRef.new(shape: EntityNotFoundException)
1003
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1004
+ o.errors << Shapes::ShapeRef.new(shape: OrganizationNotFoundException)
1005
+ o.errors << Shapes::ShapeRef.new(shape: OrganizationStateException)
1006
+ end)
1007
+
1008
+ api.add_operation(:get_default_retention_policy, Seahorse::Model::Operation.new.tap do |o|
1009
+ o.name = "GetDefaultRetentionPolicy"
1010
+ o.http_method = "POST"
1011
+ o.http_request_uri = "/"
1012
+ o.input = Shapes::ShapeRef.new(shape: GetDefaultRetentionPolicyRequest)
1013
+ o.output = Shapes::ShapeRef.new(shape: GetDefaultRetentionPolicyResponse)
1014
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1015
+ o.errors << Shapes::ShapeRef.new(shape: OrganizationNotFoundException)
1016
+ o.errors << Shapes::ShapeRef.new(shape: OrganizationStateException)
1017
+ o.errors << Shapes::ShapeRef.new(shape: EntityNotFoundException)
1018
+ end)
1019
+
852
1020
  api.add_operation(:get_mailbox_details, Seahorse::Model::Operation.new.tap do |o|
853
1021
  o.name = "GetMailboxDetails"
854
1022
  o.http_method = "POST"
@@ -860,6 +1028,16 @@ module Aws::WorkMail
860
1028
  o.errors << Shapes::ShapeRef.new(shape: EntityNotFoundException)
861
1029
  end)
862
1030
 
1031
+ api.add_operation(:list_access_control_rules, Seahorse::Model::Operation.new.tap do |o|
1032
+ o.name = "ListAccessControlRules"
1033
+ o.http_method = "POST"
1034
+ o.http_request_uri = "/"
1035
+ o.input = Shapes::ShapeRef.new(shape: ListAccessControlRulesRequest)
1036
+ o.output = Shapes::ShapeRef.new(shape: ListAccessControlRulesResponse)
1037
+ o.errors << Shapes::ShapeRef.new(shape: OrganizationNotFoundException)
1038
+ o.errors << Shapes::ShapeRef.new(shape: OrganizationStateException)
1039
+ end)
1040
+
863
1041
  api.add_operation(:list_aliases, Seahorse::Model::Operation.new.tap do |o|
864
1042
  o.name = "ListAliases"
865
1043
  o.http_method = "POST"
@@ -1011,6 +1189,19 @@ module Aws::WorkMail
1011
1189
  )
1012
1190
  end)
1013
1191
 
1192
+ api.add_operation(:put_access_control_rule, Seahorse::Model::Operation.new.tap do |o|
1193
+ o.name = "PutAccessControlRule"
1194
+ o.http_method = "POST"
1195
+ o.http_request_uri = "/"
1196
+ o.input = Shapes::ShapeRef.new(shape: PutAccessControlRuleRequest)
1197
+ o.output = Shapes::ShapeRef.new(shape: PutAccessControlRuleResponse)
1198
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1199
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1200
+ o.errors << Shapes::ShapeRef.new(shape: EntityNotFoundException)
1201
+ o.errors << Shapes::ShapeRef.new(shape: OrganizationNotFoundException)
1202
+ o.errors << Shapes::ShapeRef.new(shape: OrganizationStateException)
1203
+ end)
1204
+
1014
1205
  api.add_operation(:put_mailbox_permissions, Seahorse::Model::Operation.new.tap do |o|
1015
1206
  o.name = "PutMailboxPermissions"
1016
1207
  o.http_method = "POST"
@@ -1024,6 +1215,18 @@ module Aws::WorkMail
1024
1215
  o.errors << Shapes::ShapeRef.new(shape: OrganizationStateException)
1025
1216
  end)
1026
1217
 
1218
+ api.add_operation(:put_retention_policy, Seahorse::Model::Operation.new.tap do |o|
1219
+ o.name = "PutRetentionPolicy"
1220
+ o.http_method = "POST"
1221
+ o.http_request_uri = "/"
1222
+ o.input = Shapes::ShapeRef.new(shape: PutRetentionPolicyRequest)
1223
+ o.output = Shapes::ShapeRef.new(shape: PutRetentionPolicyResponse)
1224
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1225
+ o.errors << Shapes::ShapeRef.new(shape: OrganizationNotFoundException)
1226
+ o.errors << Shapes::ShapeRef.new(shape: OrganizationStateException)
1227
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1228
+ end)
1229
+
1027
1230
  api.add_operation(:register_to_work_mail, Seahorse::Model::Operation.new.tap do |o|
1028
1231
  o.name = "RegisterToWorkMail"
1029
1232
  o.http_method = "POST"
@@ -6,6 +6,47 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::WorkMail
9
+
10
+ # When WorkMail returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::WorkMail::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all WorkMail errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::WorkMail::Errors::ServiceError
18
+ # # rescues all WorkMail API errors
19
+ # end
20
+ #
21
+ #
22
+ # ## Request Context
23
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
24
+ # information about the request that generated the error.
25
+ # See {Seahorse::Client::RequestContext} for more information.
26
+ #
27
+ # ## Error Classes
28
+ # * {DirectoryServiceAuthenticationFailedException}
29
+ # * {DirectoryUnavailableException}
30
+ # * {EmailAddressInUseException}
31
+ # * {EntityAlreadyRegisteredException}
32
+ # * {EntityNotFoundException}
33
+ # * {EntityStateException}
34
+ # * {InvalidConfigurationException}
35
+ # * {InvalidParameterException}
36
+ # * {InvalidPasswordException}
37
+ # * {LimitExceededException}
38
+ # * {MailDomainNotFoundException}
39
+ # * {MailDomainStateException}
40
+ # * {NameAvailabilityException}
41
+ # * {OrganizationNotFoundException}
42
+ # * {OrganizationStateException}
43
+ # * {ReservedNameException}
44
+ # * {ResourceNotFoundException}
45
+ # * {TooManyTagsException}
46
+ # * {UnsupportedOperationException}
47
+ #
48
+ # Additionally, error classes are dynamically generated for service errors based on the error code
49
+ # if they are not defined above.
9
50
  module Errors
10
51
 
11
52
  extend Aws::Errors::DynamicErrors
@@ -23,7 +64,6 @@ module Aws::WorkMail
23
64
  def message
24
65
  @message || @data[:message]
25
66
  end
26
-
27
67
  end
28
68
 
29
69
  class DirectoryUnavailableException < ServiceError
@@ -39,7 +79,6 @@ module Aws::WorkMail
39
79
  def message
40
80
  @message || @data[:message]
41
81
  end
42
-
43
82
  end
44
83
 
45
84
  class EmailAddressInUseException < ServiceError
@@ -55,7 +94,6 @@ module Aws::WorkMail
55
94
  def message
56
95
  @message || @data[:message]
57
96
  end
58
-
59
97
  end
60
98
 
61
99
  class EntityAlreadyRegisteredException < ServiceError
@@ -71,7 +109,6 @@ module Aws::WorkMail
71
109
  def message
72
110
  @message || @data[:message]
73
111
  end
74
-
75
112
  end
76
113
 
77
114
  class EntityNotFoundException < ServiceError
@@ -87,7 +124,6 @@ module Aws::WorkMail
87
124
  def message
88
125
  @message || @data[:message]
89
126
  end
90
-
91
127
  end
92
128
 
93
129
  class EntityStateException < ServiceError
@@ -103,7 +139,6 @@ module Aws::WorkMail
103
139
  def message
104
140
  @message || @data[:message]
105
141
  end
106
-
107
142
  end
108
143
 
109
144
  class InvalidConfigurationException < ServiceError
@@ -119,7 +154,6 @@ module Aws::WorkMail
119
154
  def message
120
155
  @message || @data[:message]
121
156
  end
122
-
123
157
  end
124
158
 
125
159
  class InvalidParameterException < ServiceError
@@ -135,7 +169,6 @@ module Aws::WorkMail
135
169
  def message
136
170
  @message || @data[:message]
137
171
  end
138
-
139
172
  end
140
173
 
141
174
  class InvalidPasswordException < ServiceError
@@ -151,7 +184,6 @@ module Aws::WorkMail
151
184
  def message
152
185
  @message || @data[:message]
153
186
  end
154
-
155
187
  end
156
188
 
157
189
  class LimitExceededException < ServiceError
@@ -167,7 +199,6 @@ module Aws::WorkMail
167
199
  def message
168
200
  @message || @data[:message]
169
201
  end
170
-
171
202
  end
172
203
 
173
204
  class MailDomainNotFoundException < ServiceError
@@ -183,7 +214,6 @@ module Aws::WorkMail
183
214
  def message
184
215
  @message || @data[:message]
185
216
  end
186
-
187
217
  end
188
218
 
189
219
  class MailDomainStateException < ServiceError
@@ -199,7 +229,6 @@ module Aws::WorkMail
199
229
  def message
200
230
  @message || @data[:message]
201
231
  end
202
-
203
232
  end
204
233
 
205
234
  class NameAvailabilityException < ServiceError
@@ -215,7 +244,6 @@ module Aws::WorkMail
215
244
  def message
216
245
  @message || @data[:message]
217
246
  end
218
-
219
247
  end
220
248
 
221
249
  class OrganizationNotFoundException < ServiceError
@@ -231,7 +259,6 @@ module Aws::WorkMail
231
259
  def message
232
260
  @message || @data[:message]
233
261
  end
234
-
235
262
  end
236
263
 
237
264
  class OrganizationStateException < ServiceError
@@ -247,7 +274,6 @@ module Aws::WorkMail
247
274
  def message
248
275
  @message || @data[:message]
249
276
  end
250
-
251
277
  end
252
278
 
253
279
  class ReservedNameException < ServiceError
@@ -263,7 +289,6 @@ module Aws::WorkMail
263
289
  def message
264
290
  @message || @data[:message]
265
291
  end
266
-
267
292
  end
268
293
 
269
294
  class ResourceNotFoundException < ServiceError
@@ -279,7 +304,6 @@ module Aws::WorkMail
279
304
  def message
280
305
  @message || @data[:message]
281
306
  end
282
-
283
307
  end
284
308
 
285
309
  class TooManyTagsException < ServiceError
@@ -295,7 +319,6 @@ module Aws::WorkMail
295
319
  def message
296
320
  @message || @data[:message]
297
321
  end
298
-
299
322
  end
300
323
 
301
324
  class UnsupportedOperationException < ServiceError
@@ -311,7 +334,6 @@ module Aws::WorkMail
311
334
  def message
312
335
  @message || @data[:message]
313
336
  end
314
-
315
337
  end
316
338
 
317
339
  end