aws-sdk-workmail 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-workmail.rb +1 -1
- data/lib/aws-sdk-workmail/client.rb +127 -1
- data/lib/aws-sdk-workmail/client_api.rb +88 -0
- data/lib/aws-sdk-workmail/types.rb +174 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ca7227355d74b5321fb6de750edacbdd715a152
|
4
|
+
data.tar.gz: 6aac35baa0aa5086319e78de2158c440893a74ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 272ca95ade53e51ec4c1bc78c970c5f2d2bf8fa5bbcd8e9692de822a52190b74da095a78fa766de52b1c221995b7b28279e1747c0c5c31d4735a4e1fd8b26502
|
7
|
+
data.tar.gz: 74ad740f6b7b5437a0756f0eee081590dd24bfe7d921e00336c01f14503f9ac379a02c3d07db89f399ea43a8fbc85a3627d2f219b903cc20adfbf292a7299ebc
|
data/lib/aws-sdk-workmail.rb
CHANGED
@@ -416,6 +416,39 @@ module Aws::WorkMail
|
|
416
416
|
req.send_request(options)
|
417
417
|
end
|
418
418
|
|
419
|
+
# Deletes permissions granted to a user or group.
|
420
|
+
#
|
421
|
+
# @option params [required, String] :organization_id
|
422
|
+
# The identifier of the organization under which the entity (user or
|
423
|
+
# group) exists.
|
424
|
+
#
|
425
|
+
# @option params [required, String] :entity_id
|
426
|
+
# The identifier of the entity (user or group) for which to delete
|
427
|
+
# mailbox permissions.
|
428
|
+
#
|
429
|
+
# @option params [required, String] :grantee_id
|
430
|
+
# The identifier of the entity (user or group) for which to delete
|
431
|
+
# granted permissions.
|
432
|
+
#
|
433
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
434
|
+
#
|
435
|
+
# @example Request syntax with placeholder values
|
436
|
+
#
|
437
|
+
# resp = client.delete_mailbox_permissions({
|
438
|
+
# organization_id: "OrganizationId", # required
|
439
|
+
# entity_id: "WorkMailIdentifier", # required
|
440
|
+
# grantee_id: "WorkMailIdentifier", # required
|
441
|
+
# })
|
442
|
+
#
|
443
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DeleteMailboxPermissions AWS API Documentation
|
444
|
+
#
|
445
|
+
# @overload delete_mailbox_permissions(params = {})
|
446
|
+
# @param [Hash] params ({})
|
447
|
+
def delete_mailbox_permissions(params = {}, options = {})
|
448
|
+
req = build_request(:delete_mailbox_permissions, params)
|
449
|
+
req.send_request(options)
|
450
|
+
end
|
451
|
+
|
419
452
|
# Deletes the specified resource.
|
420
453
|
#
|
421
454
|
# @option params [required, String] :organization_id
|
@@ -882,6 +915,55 @@ module Aws::WorkMail
|
|
882
915
|
req.send_request(options)
|
883
916
|
end
|
884
917
|
|
918
|
+
# Lists the mailbox permissions associated with a mailbox.
|
919
|
+
#
|
920
|
+
# @option params [required, String] :organization_id
|
921
|
+
# The identifier of the organization under which the entity (user or
|
922
|
+
# group) exists.
|
923
|
+
#
|
924
|
+
# @option params [required, String] :entity_id
|
925
|
+
# The identifier of the entity (user or group) for which to list mailbox
|
926
|
+
# permissions.
|
927
|
+
#
|
928
|
+
# @option params [String] :next_token
|
929
|
+
# The token to use to retrieve the next page of results. The first call
|
930
|
+
# does not contain any tokens.
|
931
|
+
#
|
932
|
+
# @option params [Integer] :max_results
|
933
|
+
# The maximum number of results to return in a single call.
|
934
|
+
#
|
935
|
+
# @return [Types::ListMailboxPermissionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
936
|
+
#
|
937
|
+
# * {Types::ListMailboxPermissionsResponse#permissions #permissions} => Array<Types::Permission>
|
938
|
+
# * {Types::ListMailboxPermissionsResponse#next_token #next_token} => String
|
939
|
+
#
|
940
|
+
# @example Request syntax with placeholder values
|
941
|
+
#
|
942
|
+
# resp = client.list_mailbox_permissions({
|
943
|
+
# organization_id: "OrganizationId", # required
|
944
|
+
# entity_id: "WorkMailIdentifier", # required
|
945
|
+
# next_token: "NextToken",
|
946
|
+
# max_results: 1,
|
947
|
+
# })
|
948
|
+
#
|
949
|
+
# @example Response structure
|
950
|
+
#
|
951
|
+
# resp.permissions #=> Array
|
952
|
+
# resp.permissions[0].grantee_id #=> String
|
953
|
+
# resp.permissions[0].grantee_type #=> String, one of "GROUP", "USER"
|
954
|
+
# resp.permissions[0].permission_values #=> Array
|
955
|
+
# resp.permissions[0].permission_values[0] #=> String, one of "FULL_ACCESS", "SEND_AS", "SEND_ON_BEHALF"
|
956
|
+
# resp.next_token #=> String
|
957
|
+
#
|
958
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ListMailboxPermissions AWS API Documentation
|
959
|
+
#
|
960
|
+
# @overload list_mailbox_permissions(params = {})
|
961
|
+
# @param [Hash] params ({})
|
962
|
+
def list_mailbox_permissions(params = {}, options = {})
|
963
|
+
req = build_request(:list_mailbox_permissions, params)
|
964
|
+
req.send_request(options)
|
965
|
+
end
|
966
|
+
|
885
967
|
# Returns summaries of the customer's non-deleted organizations.
|
886
968
|
#
|
887
969
|
# @option params [String] :next_token
|
@@ -1060,6 +1142,50 @@ module Aws::WorkMail
|
|
1060
1142
|
req.send_request(options)
|
1061
1143
|
end
|
1062
1144
|
|
1145
|
+
# Sets permissions for a user or group. This replaces any pre-existing
|
1146
|
+
# permissions set for the entity.
|
1147
|
+
#
|
1148
|
+
# @option params [required, String] :organization_id
|
1149
|
+
# The identifier of the organization under which the entity (user or
|
1150
|
+
# group) exists.
|
1151
|
+
#
|
1152
|
+
# @option params [required, String] :entity_id
|
1153
|
+
# The identifier of the entity (user or group) for which to update
|
1154
|
+
# mailbox permissions.
|
1155
|
+
#
|
1156
|
+
# @option params [required, String] :grantee_id
|
1157
|
+
# The identifier of the entity (user or group) to which to grant the
|
1158
|
+
# permissions.
|
1159
|
+
#
|
1160
|
+
# @option params [required, Array<String>] :permission_values
|
1161
|
+
# The permissions granted to the grantee. SEND\_AS allows the grantee to
|
1162
|
+
# send email as the owner of the mailbox (the grantee is not mentioned
|
1163
|
+
# on these emails). SEND\_ON\_BEHALF allows the grantee to send email on
|
1164
|
+
# behalf of the owner of the mailbox (the grantee is not mentioned as
|
1165
|
+
# the physical sender of these emails). FULL\_ACCESS allows the grantee
|
1166
|
+
# full access to the mailbox, irrespective of other folder-level
|
1167
|
+
# permissions set on the mailbox.
|
1168
|
+
#
|
1169
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1170
|
+
#
|
1171
|
+
# @example Request syntax with placeholder values
|
1172
|
+
#
|
1173
|
+
# resp = client.put_mailbox_permissions({
|
1174
|
+
# organization_id: "OrganizationId", # required
|
1175
|
+
# entity_id: "WorkMailIdentifier", # required
|
1176
|
+
# grantee_id: "WorkMailIdentifier", # required
|
1177
|
+
# permission_values: ["FULL_ACCESS"], # required, accepts FULL_ACCESS, SEND_AS, SEND_ON_BEHALF
|
1178
|
+
# })
|
1179
|
+
#
|
1180
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/PutMailboxPermissions AWS API Documentation
|
1181
|
+
#
|
1182
|
+
# @overload put_mailbox_permissions(params = {})
|
1183
|
+
# @param [Hash] params ({})
|
1184
|
+
def put_mailbox_permissions(params = {}, options = {})
|
1185
|
+
req = build_request(:put_mailbox_permissions, params)
|
1186
|
+
req.send_request(options)
|
1187
|
+
end
|
1188
|
+
|
1063
1189
|
# Registers an existing and disabled user, group, or resource/entity for
|
1064
1190
|
# Amazon WorkMail use by associating a mailbox and calendaring
|
1065
1191
|
# capabilities. It performs no change if the entity is enabled and fails
|
@@ -1220,7 +1346,7 @@ module Aws::WorkMail
|
|
1220
1346
|
params: params,
|
1221
1347
|
config: config)
|
1222
1348
|
context[:gem_name] = 'aws-sdk-workmail'
|
1223
|
-
context[:gem_version] = '1.
|
1349
|
+
context[:gem_version] = '1.1.0'
|
1224
1350
|
Seahorse::Client::Request.new(handlers, context)
|
1225
1351
|
end
|
1226
1352
|
|
@@ -31,6 +31,8 @@ module Aws::WorkMail
|
|
31
31
|
DeleteAliasResponse = Shapes::StructureShape.new(name: 'DeleteAliasResponse')
|
32
32
|
DeleteGroupRequest = Shapes::StructureShape.new(name: 'DeleteGroupRequest')
|
33
33
|
DeleteGroupResponse = Shapes::StructureShape.new(name: 'DeleteGroupResponse')
|
34
|
+
DeleteMailboxPermissionsRequest = Shapes::StructureShape.new(name: 'DeleteMailboxPermissionsRequest')
|
35
|
+
DeleteMailboxPermissionsResponse = Shapes::StructureShape.new(name: 'DeleteMailboxPermissionsResponse')
|
34
36
|
DeleteResourceRequest = Shapes::StructureShape.new(name: 'DeleteResourceRequest')
|
35
37
|
DeleteResourceResponse = Shapes::StructureShape.new(name: 'DeleteResourceResponse')
|
36
38
|
DeleteUserRequest = Shapes::StructureShape.new(name: 'DeleteUserRequest')
|
@@ -69,6 +71,8 @@ module Aws::WorkMail
|
|
69
71
|
ListGroupMembersResponse = Shapes::StructureShape.new(name: 'ListGroupMembersResponse')
|
70
72
|
ListGroupsRequest = Shapes::StructureShape.new(name: 'ListGroupsRequest')
|
71
73
|
ListGroupsResponse = Shapes::StructureShape.new(name: 'ListGroupsResponse')
|
74
|
+
ListMailboxPermissionsRequest = Shapes::StructureShape.new(name: 'ListMailboxPermissionsRequest')
|
75
|
+
ListMailboxPermissionsResponse = Shapes::StructureShape.new(name: 'ListMailboxPermissionsResponse')
|
72
76
|
ListOrganizationsRequest = Shapes::StructureShape.new(name: 'ListOrganizationsRequest')
|
73
77
|
ListOrganizationsResponse = Shapes::StructureShape.new(name: 'ListOrganizationsResponse')
|
74
78
|
ListResourceDelegatesRequest = Shapes::StructureShape.new(name: 'ListResourceDelegatesRequest')
|
@@ -92,6 +96,12 @@ module Aws::WorkMail
|
|
92
96
|
OrganizationSummaries = Shapes::ListShape.new(name: 'OrganizationSummaries')
|
93
97
|
OrganizationSummary = Shapes::StructureShape.new(name: 'OrganizationSummary')
|
94
98
|
Password = Shapes::StringShape.new(name: 'Password')
|
99
|
+
Permission = Shapes::StructureShape.new(name: 'Permission')
|
100
|
+
PermissionType = Shapes::StringShape.new(name: 'PermissionType')
|
101
|
+
PermissionValues = Shapes::ListShape.new(name: 'PermissionValues')
|
102
|
+
Permissions = Shapes::ListShape.new(name: 'Permissions')
|
103
|
+
PutMailboxPermissionsRequest = Shapes::StructureShape.new(name: 'PutMailboxPermissionsRequest')
|
104
|
+
PutMailboxPermissionsResponse = Shapes::StructureShape.new(name: 'PutMailboxPermissionsResponse')
|
95
105
|
RegisterToWorkMailRequest = Shapes::StructureShape.new(name: 'RegisterToWorkMailRequest')
|
96
106
|
RegisterToWorkMailResponse = Shapes::StructureShape.new(name: 'RegisterToWorkMailResponse')
|
97
107
|
ReservedNameException = Shapes::StructureShape.new(name: 'ReservedNameException')
|
@@ -185,6 +195,13 @@ module Aws::WorkMail
|
|
185
195
|
|
186
196
|
DeleteGroupResponse.struct_class = Types::DeleteGroupResponse
|
187
197
|
|
198
|
+
DeleteMailboxPermissionsRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
|
199
|
+
DeleteMailboxPermissionsRequest.add_member(:entity_id, Shapes::ShapeRef.new(shape: WorkMailIdentifier, required: true, location_name: "EntityId"))
|
200
|
+
DeleteMailboxPermissionsRequest.add_member(:grantee_id, Shapes::ShapeRef.new(shape: WorkMailIdentifier, required: true, location_name: "GranteeId"))
|
201
|
+
DeleteMailboxPermissionsRequest.struct_class = Types::DeleteMailboxPermissionsRequest
|
202
|
+
|
203
|
+
DeleteMailboxPermissionsResponse.struct_class = Types::DeleteMailboxPermissionsResponse
|
204
|
+
|
188
205
|
DeleteResourceRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
|
189
206
|
DeleteResourceRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "ResourceId"))
|
190
207
|
DeleteResourceRequest.struct_class = Types::DeleteResourceRequest
|
@@ -309,6 +326,16 @@ module Aws::WorkMail
|
|
309
326
|
ListGroupsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
310
327
|
ListGroupsResponse.struct_class = Types::ListGroupsResponse
|
311
328
|
|
329
|
+
ListMailboxPermissionsRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
|
330
|
+
ListMailboxPermissionsRequest.add_member(:entity_id, Shapes::ShapeRef.new(shape: WorkMailIdentifier, required: true, location_name: "EntityId"))
|
331
|
+
ListMailboxPermissionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
332
|
+
ListMailboxPermissionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
333
|
+
ListMailboxPermissionsRequest.struct_class = Types::ListMailboxPermissionsRequest
|
334
|
+
|
335
|
+
ListMailboxPermissionsResponse.add_member(:permissions, Shapes::ShapeRef.new(shape: Permissions, location_name: "Permissions"))
|
336
|
+
ListMailboxPermissionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
337
|
+
ListMailboxPermissionsResponse.struct_class = Types::ListMailboxPermissionsResponse
|
338
|
+
|
312
339
|
ListOrganizationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
313
340
|
ListOrganizationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
314
341
|
ListOrganizationsRequest.struct_class = Types::ListOrganizationsRequest
|
@@ -363,6 +390,23 @@ module Aws::WorkMail
|
|
363
390
|
OrganizationSummary.add_member(:state, Shapes::ShapeRef.new(shape: String, location_name: "State"))
|
364
391
|
OrganizationSummary.struct_class = Types::OrganizationSummary
|
365
392
|
|
393
|
+
Permission.add_member(:grantee_id, Shapes::ShapeRef.new(shape: WorkMailIdentifier, required: true, location_name: "GranteeId"))
|
394
|
+
Permission.add_member(:grantee_type, Shapes::ShapeRef.new(shape: MemberType, required: true, location_name: "GranteeType"))
|
395
|
+
Permission.add_member(:permission_values, Shapes::ShapeRef.new(shape: PermissionValues, required: true, location_name: "PermissionValues"))
|
396
|
+
Permission.struct_class = Types::Permission
|
397
|
+
|
398
|
+
PermissionValues.member = Shapes::ShapeRef.new(shape: PermissionType)
|
399
|
+
|
400
|
+
Permissions.member = Shapes::ShapeRef.new(shape: Permission)
|
401
|
+
|
402
|
+
PutMailboxPermissionsRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
|
403
|
+
PutMailboxPermissionsRequest.add_member(:entity_id, Shapes::ShapeRef.new(shape: WorkMailIdentifier, required: true, location_name: "EntityId"))
|
404
|
+
PutMailboxPermissionsRequest.add_member(:grantee_id, Shapes::ShapeRef.new(shape: WorkMailIdentifier, required: true, location_name: "GranteeId"))
|
405
|
+
PutMailboxPermissionsRequest.add_member(:permission_values, Shapes::ShapeRef.new(shape: PermissionValues, required: true, location_name: "PermissionValues"))
|
406
|
+
PutMailboxPermissionsRequest.struct_class = Types::PutMailboxPermissionsRequest
|
407
|
+
|
408
|
+
PutMailboxPermissionsResponse.struct_class = Types::PutMailboxPermissionsResponse
|
409
|
+
|
366
410
|
RegisterToWorkMailRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
|
367
411
|
RegisterToWorkMailRequest.add_member(:entity_id, Shapes::ShapeRef.new(shape: WorkMailIdentifier, required: true, location_name: "EntityId"))
|
368
412
|
RegisterToWorkMailRequest.add_member(:email, Shapes::ShapeRef.new(shape: EmailAddress, required: true, location_name: "Email"))
|
@@ -553,6 +597,19 @@ module Aws::WorkMail
|
|
553
597
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
554
598
|
end)
|
555
599
|
|
600
|
+
api.add_operation(:delete_mailbox_permissions, Seahorse::Model::Operation.new.tap do |o|
|
601
|
+
o.name = "DeleteMailboxPermissions"
|
602
|
+
o.http_method = "POST"
|
603
|
+
o.http_request_uri = "/"
|
604
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteMailboxPermissionsRequest)
|
605
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteMailboxPermissionsResponse)
|
606
|
+
o.errors << Shapes::ShapeRef.new(shape: EntityNotFoundException)
|
607
|
+
o.errors << Shapes::ShapeRef.new(shape: EntityStateException)
|
608
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
609
|
+
o.errors << Shapes::ShapeRef.new(shape: OrganizationNotFoundException)
|
610
|
+
o.errors << Shapes::ShapeRef.new(shape: OrganizationStateException)
|
611
|
+
end)
|
612
|
+
|
556
613
|
api.add_operation(:delete_resource, Seahorse::Model::Operation.new.tap do |o|
|
557
614
|
o.name = "DeleteResource"
|
558
615
|
o.http_method = "POST"
|
@@ -724,6 +781,24 @@ module Aws::WorkMail
|
|
724
781
|
)
|
725
782
|
end)
|
726
783
|
|
784
|
+
api.add_operation(:list_mailbox_permissions, Seahorse::Model::Operation.new.tap do |o|
|
785
|
+
o.name = "ListMailboxPermissions"
|
786
|
+
o.http_method = "POST"
|
787
|
+
o.http_request_uri = "/"
|
788
|
+
o.input = Shapes::ShapeRef.new(shape: ListMailboxPermissionsRequest)
|
789
|
+
o.output = Shapes::ShapeRef.new(shape: ListMailboxPermissionsResponse)
|
790
|
+
o.errors << Shapes::ShapeRef.new(shape: EntityNotFoundException)
|
791
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
792
|
+
o.errors << Shapes::ShapeRef.new(shape: OrganizationNotFoundException)
|
793
|
+
o.errors << Shapes::ShapeRef.new(shape: OrganizationStateException)
|
794
|
+
o[:pager] = Aws::Pager.new(
|
795
|
+
limit_key: "max_results",
|
796
|
+
tokens: {
|
797
|
+
"next_token" => "next_token"
|
798
|
+
}
|
799
|
+
)
|
800
|
+
end)
|
801
|
+
|
727
802
|
api.add_operation(:list_organizations, Seahorse::Model::Operation.new.tap do |o|
|
728
803
|
o.name = "ListOrganizations"
|
729
804
|
o.http_method = "POST"
|
@@ -786,6 +861,19 @@ module Aws::WorkMail
|
|
786
861
|
)
|
787
862
|
end)
|
788
863
|
|
864
|
+
api.add_operation(:put_mailbox_permissions, Seahorse::Model::Operation.new.tap do |o|
|
865
|
+
o.name = "PutMailboxPermissions"
|
866
|
+
o.http_method = "POST"
|
867
|
+
o.http_request_uri = "/"
|
868
|
+
o.input = Shapes::ShapeRef.new(shape: PutMailboxPermissionsRequest)
|
869
|
+
o.output = Shapes::ShapeRef.new(shape: PutMailboxPermissionsResponse)
|
870
|
+
o.errors << Shapes::ShapeRef.new(shape: EntityNotFoundException)
|
871
|
+
o.errors << Shapes::ShapeRef.new(shape: EntityStateException)
|
872
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
873
|
+
o.errors << Shapes::ShapeRef.new(shape: OrganizationNotFoundException)
|
874
|
+
o.errors << Shapes::ShapeRef.new(shape: OrganizationStateException)
|
875
|
+
end)
|
876
|
+
|
789
877
|
api.add_operation(:register_to_work_mail, Seahorse::Model::Operation.new.tap do |o|
|
790
878
|
o.name = "RegisterToWorkMail"
|
791
879
|
o.http_method = "POST"
|
@@ -355,6 +355,43 @@ module Aws::WorkMail
|
|
355
355
|
#
|
356
356
|
class DeleteGroupResponse < Aws::EmptyStructure; end
|
357
357
|
|
358
|
+
# @note When making an API call, you may pass DeleteMailboxPermissionsRequest
|
359
|
+
# data as a hash:
|
360
|
+
#
|
361
|
+
# {
|
362
|
+
# organization_id: "OrganizationId", # required
|
363
|
+
# entity_id: "WorkMailIdentifier", # required
|
364
|
+
# grantee_id: "WorkMailIdentifier", # required
|
365
|
+
# }
|
366
|
+
#
|
367
|
+
# @!attribute [rw] organization_id
|
368
|
+
# The identifier of the organization under which the entity (user or
|
369
|
+
# group) exists.
|
370
|
+
# @return [String]
|
371
|
+
#
|
372
|
+
# @!attribute [rw] entity_id
|
373
|
+
# The identifier of the entity (user or group) for which to delete
|
374
|
+
# mailbox permissions.
|
375
|
+
# @return [String]
|
376
|
+
#
|
377
|
+
# @!attribute [rw] grantee_id
|
378
|
+
# The identifier of the entity (user or group) for which to delete
|
379
|
+
# granted permissions.
|
380
|
+
# @return [String]
|
381
|
+
#
|
382
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DeleteMailboxPermissionsRequest AWS API Documentation
|
383
|
+
#
|
384
|
+
class DeleteMailboxPermissionsRequest < Struct.new(
|
385
|
+
:organization_id,
|
386
|
+
:entity_id,
|
387
|
+
:grantee_id)
|
388
|
+
include Aws::Structure
|
389
|
+
end
|
390
|
+
|
391
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DeleteMailboxPermissionsResponse AWS API Documentation
|
392
|
+
#
|
393
|
+
class DeleteMailboxPermissionsResponse < Aws::EmptyStructure; end
|
394
|
+
|
358
395
|
# @note When making an API call, you may pass DeleteResourceRequest
|
359
396
|
# data as a hash:
|
360
397
|
#
|
@@ -991,6 +1028,62 @@ module Aws::WorkMail
|
|
991
1028
|
include Aws::Structure
|
992
1029
|
end
|
993
1030
|
|
1031
|
+
# @note When making an API call, you may pass ListMailboxPermissionsRequest
|
1032
|
+
# data as a hash:
|
1033
|
+
#
|
1034
|
+
# {
|
1035
|
+
# organization_id: "OrganizationId", # required
|
1036
|
+
# entity_id: "WorkMailIdentifier", # required
|
1037
|
+
# next_token: "NextToken",
|
1038
|
+
# max_results: 1,
|
1039
|
+
# }
|
1040
|
+
#
|
1041
|
+
# @!attribute [rw] organization_id
|
1042
|
+
# The identifier of the organization under which the entity (user or
|
1043
|
+
# group) exists.
|
1044
|
+
# @return [String]
|
1045
|
+
#
|
1046
|
+
# @!attribute [rw] entity_id
|
1047
|
+
# The identifier of the entity (user or group) for which to list
|
1048
|
+
# mailbox permissions.
|
1049
|
+
# @return [String]
|
1050
|
+
#
|
1051
|
+
# @!attribute [rw] next_token
|
1052
|
+
# The token to use to retrieve the next page of results. The first
|
1053
|
+
# call does not contain any tokens.
|
1054
|
+
# @return [String]
|
1055
|
+
#
|
1056
|
+
# @!attribute [rw] max_results
|
1057
|
+
# The maximum number of results to return in a single call.
|
1058
|
+
# @return [Integer]
|
1059
|
+
#
|
1060
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ListMailboxPermissionsRequest AWS API Documentation
|
1061
|
+
#
|
1062
|
+
class ListMailboxPermissionsRequest < Struct.new(
|
1063
|
+
:organization_id,
|
1064
|
+
:entity_id,
|
1065
|
+
:next_token,
|
1066
|
+
:max_results)
|
1067
|
+
include Aws::Structure
|
1068
|
+
end
|
1069
|
+
|
1070
|
+
# @!attribute [rw] permissions
|
1071
|
+
# One page of the entity's mailbox permissions.
|
1072
|
+
# @return [Array<Types::Permission>]
|
1073
|
+
#
|
1074
|
+
# @!attribute [rw] next_token
|
1075
|
+
# The token to use to retrieve the next page of results. The value is
|
1076
|
+
# "null" when there are no more results to return.
|
1077
|
+
# @return [String]
|
1078
|
+
#
|
1079
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ListMailboxPermissionsResponse AWS API Documentation
|
1080
|
+
#
|
1081
|
+
class ListMailboxPermissionsResponse < Struct.new(
|
1082
|
+
:permissions,
|
1083
|
+
:next_token)
|
1084
|
+
include Aws::Structure
|
1085
|
+
end
|
1086
|
+
|
994
1087
|
# @note When making an API call, you may pass ListOrganizationsRequest
|
995
1088
|
# data as a hash:
|
996
1089
|
#
|
@@ -1257,6 +1350,87 @@ module Aws::WorkMail
|
|
1257
1350
|
include Aws::Structure
|
1258
1351
|
end
|
1259
1352
|
|
1353
|
+
# Permission granted to an entity (user, group) to access a certain
|
1354
|
+
# aspect of another entity's mailbox.
|
1355
|
+
#
|
1356
|
+
# @!attribute [rw] grantee_id
|
1357
|
+
# The identifier of the entity (user or group) to which the
|
1358
|
+
# permissions are granted.
|
1359
|
+
# @return [String]
|
1360
|
+
#
|
1361
|
+
# @!attribute [rw] grantee_type
|
1362
|
+
# The type of entity (user, group) of the entity referred to in
|
1363
|
+
# GranteeId.
|
1364
|
+
# @return [String]
|
1365
|
+
#
|
1366
|
+
# @!attribute [rw] permission_values
|
1367
|
+
# The permissions granted to the grantee. SEND\_AS allows the grantee
|
1368
|
+
# to send email as the owner of the mailbox (the grantee is not
|
1369
|
+
# mentioned on these emails). SEND\_ON\_BEHALF allows the grantee to
|
1370
|
+
# send email on behalf of the owner of the mailbox (the grantee is not
|
1371
|
+
# mentioned as the physical sender of these emails). FULL\_ACCESS
|
1372
|
+
# allows the grantee full access to the mailbox, irrespective of other
|
1373
|
+
# folder-level permissions set on the mailbox.
|
1374
|
+
# @return [Array<String>]
|
1375
|
+
#
|
1376
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/Permission AWS API Documentation
|
1377
|
+
#
|
1378
|
+
class Permission < Struct.new(
|
1379
|
+
:grantee_id,
|
1380
|
+
:grantee_type,
|
1381
|
+
:permission_values)
|
1382
|
+
include Aws::Structure
|
1383
|
+
end
|
1384
|
+
|
1385
|
+
# @note When making an API call, you may pass PutMailboxPermissionsRequest
|
1386
|
+
# data as a hash:
|
1387
|
+
#
|
1388
|
+
# {
|
1389
|
+
# organization_id: "OrganizationId", # required
|
1390
|
+
# entity_id: "WorkMailIdentifier", # required
|
1391
|
+
# grantee_id: "WorkMailIdentifier", # required
|
1392
|
+
# permission_values: ["FULL_ACCESS"], # required, accepts FULL_ACCESS, SEND_AS, SEND_ON_BEHALF
|
1393
|
+
# }
|
1394
|
+
#
|
1395
|
+
# @!attribute [rw] organization_id
|
1396
|
+
# The identifier of the organization under which the entity (user or
|
1397
|
+
# group) exists.
|
1398
|
+
# @return [String]
|
1399
|
+
#
|
1400
|
+
# @!attribute [rw] entity_id
|
1401
|
+
# The identifier of the entity (user or group) for which to update
|
1402
|
+
# mailbox permissions.
|
1403
|
+
# @return [String]
|
1404
|
+
#
|
1405
|
+
# @!attribute [rw] grantee_id
|
1406
|
+
# The identifier of the entity (user or group) to which to grant the
|
1407
|
+
# permissions.
|
1408
|
+
# @return [String]
|
1409
|
+
#
|
1410
|
+
# @!attribute [rw] permission_values
|
1411
|
+
# The permissions granted to the grantee. SEND\_AS allows the grantee
|
1412
|
+
# to send email as the owner of the mailbox (the grantee is not
|
1413
|
+
# mentioned on these emails). SEND\_ON\_BEHALF allows the grantee to
|
1414
|
+
# send email on behalf of the owner of the mailbox (the grantee is not
|
1415
|
+
# mentioned as the physical sender of these emails). FULL\_ACCESS
|
1416
|
+
# allows the grantee full access to the mailbox, irrespective of other
|
1417
|
+
# folder-level permissions set on the mailbox.
|
1418
|
+
# @return [Array<String>]
|
1419
|
+
#
|
1420
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/PutMailboxPermissionsRequest AWS API Documentation
|
1421
|
+
#
|
1422
|
+
class PutMailboxPermissionsRequest < Struct.new(
|
1423
|
+
:organization_id,
|
1424
|
+
:entity_id,
|
1425
|
+
:grantee_id,
|
1426
|
+
:permission_values)
|
1427
|
+
include Aws::Structure
|
1428
|
+
end
|
1429
|
+
|
1430
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/PutMailboxPermissionsResponse AWS API Documentation
|
1431
|
+
#
|
1432
|
+
class PutMailboxPermissionsResponse < Aws::EmptyStructure; end
|
1433
|
+
|
1260
1434
|
# @note When making an API call, you may pass RegisterToWorkMailRequest
|
1261
1435
|
# data as a hash:
|
1262
1436
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-workmail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
version: '0'
|
76
76
|
requirements: []
|
77
77
|
rubyforge_project:
|
78
|
-
rubygems_version: 2.5.
|
78
|
+
rubygems_version: 2.5.2.2
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: AWS SDK for Ruby - Amazon WorkMail
|