aws-sdk-workmail 1.19.0 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c69f455beff30233f394c2e6fa4d8980dfdebe25
4
- data.tar.gz: 0dfb79ce87ebc1e3b238b71a56cf1a2e9549cf54
3
+ metadata.gz: abcf0d3fe9c74b6e9acab706ad70ba749b67af87
4
+ data.tar.gz: dd567f3a0d0e9cc72129ccbf4545ac903fbf4716
5
5
  SHA512:
6
- metadata.gz: ce5f99a260b914b736a885ae4c034ace5007a0bda77b7a1eb9a5fa96bd01cc960d83a3ac6a9295fc4114554045e32e50bdff02c9e2393f95f424830ae98ec099
7
- data.tar.gz: 2a2204c63f5261d75718b05eae64a746b12b98236e17616dc3640dd70942c2a5f05bb06288f28e80610ef2f05ee7d6c8eebfdce68805dfda7719a4ddb5bac0a9
6
+ metadata.gz: 7a4245226613f72de0c24f02b03c8c261b7c37913bf938e65d5906aa17e7017c8b53e95f1f912dcd699e6edbb9205d5ea3489516fd693d7e1b0eba5cc9793cff
7
+ data.tar.gz: 909bbae39a1a3aa689739b66830fede36d3a23279306db11016e3807cf0dfdab3a24a82cd66c658bc4330b30e21dd7a9ee5264ecdf2ed623da41336692cf41b7
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-workmail/customizations'
42
42
  # @service
43
43
  module Aws::WorkMail
44
44
 
45
- GEM_VERSION = '1.19.0'
45
+ GEM_VERSION = '1.20.0'
46
46
 
47
47
  end
@@ -706,6 +706,7 @@ module Aws::WorkMail
706
706
  # * {Types::DescribeOrganizationResponse#default_mail_domain #default_mail_domain} => String
707
707
  # * {Types::DescribeOrganizationResponse#completed_date #completed_date} => Time
708
708
  # * {Types::DescribeOrganizationResponse#error_message #error_message} => String
709
+ # * {Types::DescribeOrganizationResponse#arn #arn} => String
709
710
  #
710
711
  # @example Request syntax with placeholder values
711
712
  #
@@ -723,6 +724,7 @@ module Aws::WorkMail
723
724
  # resp.default_mail_domain #=> String
724
725
  # resp.completed_date #=> Time
725
726
  # resp.error_message #=> String
727
+ # resp.arn #=> String
726
728
  #
727
729
  # @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DescribeOrganization AWS API Documentation
728
730
  #
@@ -1249,6 +1251,36 @@ module Aws::WorkMail
1249
1251
  req.send_request(options)
1250
1252
  end
1251
1253
 
1254
+ # Lists the tags applied to an Amazon WorkMail organization resource.
1255
+ #
1256
+ # @option params [required, String] :resource_arn
1257
+ # The resource ARN.
1258
+ #
1259
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1260
+ #
1261
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Array<Types::Tag>
1262
+ #
1263
+ # @example Request syntax with placeholder values
1264
+ #
1265
+ # resp = client.list_tags_for_resource({
1266
+ # resource_arn: "AmazonResourceName", # required
1267
+ # })
1268
+ #
1269
+ # @example Response structure
1270
+ #
1271
+ # resp.tags #=> Array
1272
+ # resp.tags[0].key #=> String
1273
+ # resp.tags[0].value #=> String
1274
+ #
1275
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ListTagsForResource AWS API Documentation
1276
+ #
1277
+ # @overload list_tags_for_resource(params = {})
1278
+ # @param [Hash] params ({})
1279
+ def list_tags_for_resource(params = {}, options = {})
1280
+ req = build_request(:list_tags_for_resource, params)
1281
+ req.send_request(options)
1282
+ end
1283
+
1252
1284
  # Returns summaries of the organization's users.
1253
1285
  #
1254
1286
  # @option params [required, String] :organization_id
@@ -1416,6 +1448,65 @@ module Aws::WorkMail
1416
1448
  req.send_request(options)
1417
1449
  end
1418
1450
 
1451
+ # Applies the specified tags to the specified Amazon WorkMail
1452
+ # organization resource.
1453
+ #
1454
+ # @option params [required, String] :resource_arn
1455
+ # The resource ARN.
1456
+ #
1457
+ # @option params [required, Array<Types::Tag>] :tags
1458
+ # The tag key-value pairs.
1459
+ #
1460
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1461
+ #
1462
+ # @example Request syntax with placeholder values
1463
+ #
1464
+ # resp = client.tag_resource({
1465
+ # resource_arn: "AmazonResourceName", # required
1466
+ # tags: [ # required
1467
+ # {
1468
+ # key: "TagKey", # required
1469
+ # value: "TagValue", # required
1470
+ # },
1471
+ # ],
1472
+ # })
1473
+ #
1474
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/TagResource AWS API Documentation
1475
+ #
1476
+ # @overload tag_resource(params = {})
1477
+ # @param [Hash] params ({})
1478
+ def tag_resource(params = {}, options = {})
1479
+ req = build_request(:tag_resource, params)
1480
+ req.send_request(options)
1481
+ end
1482
+
1483
+ # Untags the specified tags from the specified Amazon WorkMail
1484
+ # organization resource.
1485
+ #
1486
+ # @option params [required, String] :resource_arn
1487
+ # The resource ARN.
1488
+ #
1489
+ # @option params [required, Array<String>] :tag_keys
1490
+ # The tag keys.
1491
+ #
1492
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1493
+ #
1494
+ # @example Request syntax with placeholder values
1495
+ #
1496
+ # resp = client.untag_resource({
1497
+ # resource_arn: "AmazonResourceName", # required
1498
+ # tag_keys: ["TagKey"], # required
1499
+ # })
1500
+ #
1501
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/UntagResource AWS API Documentation
1502
+ #
1503
+ # @overload untag_resource(params = {})
1504
+ # @param [Hash] params ({})
1505
+ def untag_resource(params = {}, options = {})
1506
+ req = build_request(:untag_resource, params)
1507
+ req.send_request(options)
1508
+ end
1509
+
1419
1510
  # Updates a user's current mailbox quota for a specified organization
1420
1511
  # and user.
1421
1512
  #
@@ -1536,7 +1627,7 @@ module Aws::WorkMail
1536
1627
  params: params,
1537
1628
  config: config)
1538
1629
  context[:gem_name] = 'aws-sdk-workmail'
1539
- context[:gem_version] = '1.19.0'
1630
+ context[:gem_version] = '1.20.0'
1540
1631
  Seahorse::Client::Request.new(handlers, context)
1541
1632
  end
1542
1633
 
@@ -12,6 +12,7 @@ module Aws::WorkMail
12
12
  include Seahorse::Model
13
13
 
14
14
  Aliases = Shapes::ListShape.new(name: 'Aliases')
15
+ AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
15
16
  AssociateDelegateToResourceRequest = Shapes::StructureShape.new(name: 'AssociateDelegateToResourceRequest')
16
17
  AssociateDelegateToResourceResponse = Shapes::StructureShape.new(name: 'AssociateDelegateToResourceResponse')
17
18
  AssociateMemberToGroupRequest = Shapes::StructureShape.new(name: 'AssociateMemberToGroupRequest')
@@ -67,6 +68,7 @@ module Aws::WorkMail
67
68
  InvalidConfigurationException = Shapes::StructureShape.new(name: 'InvalidConfigurationException')
68
69
  InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
69
70
  InvalidPasswordException = Shapes::StructureShape.new(name: 'InvalidPasswordException')
71
+ LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
70
72
  ListAliasesRequest = Shapes::StructureShape.new(name: 'ListAliasesRequest')
71
73
  ListAliasesResponse = Shapes::StructureShape.new(name: 'ListAliasesResponse')
72
74
  ListGroupMembersRequest = Shapes::StructureShape.new(name: 'ListGroupMembersRequest')
@@ -81,6 +83,8 @@ module Aws::WorkMail
81
83
  ListResourceDelegatesResponse = Shapes::StructureShape.new(name: 'ListResourceDelegatesResponse')
82
84
  ListResourcesRequest = Shapes::StructureShape.new(name: 'ListResourcesRequest')
83
85
  ListResourcesResponse = Shapes::StructureShape.new(name: 'ListResourcesResponse')
86
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
87
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
84
88
  ListUsersRequest = Shapes::StructureShape.new(name: 'ListUsersRequest')
85
89
  ListUsersResponse = Shapes::StructureShape.new(name: 'ListUsersResponse')
86
90
  MailDomainNotFoundException = Shapes::StructureShape.new(name: 'MailDomainNotFoundException')
@@ -115,11 +119,22 @@ module Aws::WorkMail
115
119
  ResourceDelegates = Shapes::ListShape.new(name: 'ResourceDelegates')
116
120
  ResourceId = Shapes::StringShape.new(name: 'ResourceId')
117
121
  ResourceName = Shapes::StringShape.new(name: 'ResourceName')
122
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
118
123
  ResourceType = Shapes::StringShape.new(name: 'ResourceType')
119
124
  Resources = Shapes::ListShape.new(name: 'Resources')
120
125
  String = Shapes::StringShape.new(name: 'String')
126
+ Tag = Shapes::StructureShape.new(name: 'Tag')
127
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
128
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
129
+ TagList = Shapes::ListShape.new(name: 'TagList')
130
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
131
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
132
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
121
133
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
134
+ TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
122
135
  UnsupportedOperationException = Shapes::StructureShape.new(name: 'UnsupportedOperationException')
136
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
137
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
123
138
  UpdateMailboxQuotaRequest = Shapes::StructureShape.new(name: 'UpdateMailboxQuotaRequest')
124
139
  UpdateMailboxQuotaResponse = Shapes::StructureShape.new(name: 'UpdateMailboxQuotaResponse')
125
140
  UpdatePrimaryEmailAddressRequest = Shapes::StructureShape.new(name: 'UpdatePrimaryEmailAddressRequest')
@@ -249,6 +264,7 @@ module Aws::WorkMail
249
264
  DescribeOrganizationResponse.add_member(:default_mail_domain, Shapes::ShapeRef.new(shape: String, location_name: "DefaultMailDomain"))
250
265
  DescribeOrganizationResponse.add_member(:completed_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CompletedDate"))
251
266
  DescribeOrganizationResponse.add_member(:error_message, Shapes::ShapeRef.new(shape: String, location_name: "ErrorMessage"))
267
+ DescribeOrganizationResponse.add_member(:arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "ARN"))
252
268
  DescribeOrganizationResponse.struct_class = Types::DescribeOrganizationResponse
253
269
 
254
270
  DescribeResourceRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
@@ -338,6 +354,9 @@ module Aws::WorkMail
338
354
  InvalidPasswordException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
339
355
  InvalidPasswordException.struct_class = Types::InvalidPasswordException
340
356
 
357
+ LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
358
+ LimitExceededException.struct_class = Types::LimitExceededException
359
+
341
360
  ListAliasesRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
342
361
  ListAliasesRequest.add_member(:entity_id, Shapes::ShapeRef.new(shape: WorkMailIdentifier, required: true, location_name: "EntityId"))
343
362
  ListAliasesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
@@ -404,6 +423,12 @@ module Aws::WorkMail
404
423
  ListResourcesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
405
424
  ListResourcesResponse.struct_class = Types::ListResourcesResponse
406
425
 
426
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
427
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
428
+
429
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
430
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
431
+
407
432
  ListUsersRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
408
433
  ListUsersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
409
434
  ListUsersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
@@ -491,11 +516,37 @@ module Aws::WorkMail
491
516
 
492
517
  ResourceDelegates.member = Shapes::ShapeRef.new(shape: Delegate)
493
518
 
519
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
520
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
521
+
494
522
  Resources.member = Shapes::ShapeRef.new(shape: Resource)
495
523
 
524
+ Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
525
+ Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
526
+ Tag.struct_class = Types::Tag
527
+
528
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
529
+
530
+ TagList.member = Shapes::ShapeRef.new(shape: Tag)
531
+
532
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
533
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "Tags"))
534
+ TagResourceRequest.struct_class = Types::TagResourceRequest
535
+
536
+ TagResourceResponse.struct_class = Types::TagResourceResponse
537
+
538
+ TooManyTagsException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
539
+ TooManyTagsException.struct_class = Types::TooManyTagsException
540
+
496
541
  UnsupportedOperationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
497
542
  UnsupportedOperationException.struct_class = Types::UnsupportedOperationException
498
543
 
544
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
545
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
546
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
547
+
548
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
549
+
499
550
  UpdateMailboxQuotaRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
500
551
  UpdateMailboxQuotaRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: WorkMailIdentifier, required: true, location_name: "UserId"))
501
552
  UpdateMailboxQuotaRequest.add_member(:mailbox_quota, Shapes::ShapeRef.new(shape: MailboxQuota, required: true, location_name: "MailboxQuota"))
@@ -591,6 +642,7 @@ module Aws::WorkMail
591
642
  o.errors << Shapes::ShapeRef.new(shape: MailDomainStateException)
592
643
  o.errors << Shapes::ShapeRef.new(shape: OrganizationNotFoundException)
593
644
  o.errors << Shapes::ShapeRef.new(shape: OrganizationStateException)
645
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
594
646
  end)
595
647
 
596
648
  api.add_operation(:create_group, Seahorse::Model::Operation.new.tap do |o|
@@ -933,6 +985,15 @@ module Aws::WorkMail
933
985
  )
934
986
  end)
935
987
 
988
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
989
+ o.name = "ListTagsForResource"
990
+ o.http_method = "POST"
991
+ o.http_request_uri = "/"
992
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
993
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
994
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
995
+ end)
996
+
936
997
  api.add_operation(:list_users, Seahorse::Model::Operation.new.tap do |o|
937
998
  o.name = "ListUsers"
938
999
  o.http_method = "POST"
@@ -999,6 +1060,26 @@ module Aws::WorkMail
999
1060
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1000
1061
  end)
1001
1062
 
1063
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
1064
+ o.name = "TagResource"
1065
+ o.http_method = "POST"
1066
+ o.http_request_uri = "/"
1067
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
1068
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
1069
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1070
+ o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
1071
+ o.errors << Shapes::ShapeRef.new(shape: OrganizationStateException)
1072
+ end)
1073
+
1074
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
1075
+ o.name = "UntagResource"
1076
+ o.http_method = "POST"
1077
+ o.http_request_uri = "/"
1078
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
1079
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
1080
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1081
+ end)
1082
+
1002
1083
  api.add_operation(:update_mailbox_quota, Seahorse::Model::Operation.new.tap do |o|
1003
1084
  o.name = "UpdateMailboxQuota"
1004
1085
  o.http_method = "POST"
@@ -154,6 +154,22 @@ module Aws::WorkMail
154
154
 
155
155
  end
156
156
 
157
+ class LimitExceededException < ServiceError
158
+
159
+ # @param [Seahorse::Client::RequestContext] context
160
+ # @param [String] message
161
+ # @param [Aws::WorkMail::Types::LimitExceededException] data
162
+ def initialize(context, message, data = Aws::EmptyStructure.new)
163
+ super(context, message, data)
164
+ end
165
+
166
+ # @return [String]
167
+ def message
168
+ @message || @data[:message]
169
+ end
170
+
171
+ end
172
+
157
173
  class MailDomainNotFoundException < ServiceError
158
174
 
159
175
  # @param [Seahorse::Client::RequestContext] context
@@ -250,6 +266,38 @@ module Aws::WorkMail
250
266
 
251
267
  end
252
268
 
269
+ class ResourceNotFoundException < ServiceError
270
+
271
+ # @param [Seahorse::Client::RequestContext] context
272
+ # @param [String] message
273
+ # @param [Aws::WorkMail::Types::ResourceNotFoundException] data
274
+ def initialize(context, message, data = Aws::EmptyStructure.new)
275
+ super(context, message, data)
276
+ end
277
+
278
+ # @return [String]
279
+ def message
280
+ @message || @data[:message]
281
+ end
282
+
283
+ end
284
+
285
+ class TooManyTagsException < ServiceError
286
+
287
+ # @param [Seahorse::Client::RequestContext] context
288
+ # @param [String] message
289
+ # @param [Aws::WorkMail::Types::TooManyTagsException] data
290
+ def initialize(context, message, data = Aws::EmptyStructure.new)
291
+ super(context, message, data)
292
+ end
293
+
294
+ # @return [String]
295
+ def message
296
+ @message || @data[:message]
297
+ end
298
+
299
+ end
300
+
253
301
  class UnsupportedOperationException < ServiceError
254
302
 
255
303
  # @param [Seahorse::Client::RequestContext] context
@@ -595,6 +595,10 @@ module Aws::WorkMail
595
595
  # encountered with regards to the organization.
596
596
  # @return [String]
597
597
  #
598
+ # @!attribute [rw] arn
599
+ # The Amazon Resource Name (ARN) of the organization.
600
+ # @return [String]
601
+ #
598
602
  # @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DescribeOrganizationResponse AWS API Documentation
599
603
  #
600
604
  class DescribeOrganizationResponse < Struct.new(
@@ -605,7 +609,8 @@ module Aws::WorkMail
605
609
  :directory_type,
606
610
  :default_mail_domain,
607
611
  :completed_date,
608
- :error_message)
612
+ :error_message,
613
+ :arn)
609
614
  include Aws::Structure
610
615
  end
611
616
 
@@ -655,8 +660,8 @@ module Aws::WorkMail
655
660
  # @return [Types::BookingOptions]
656
661
  #
657
662
  # @!attribute [rw] state
658
- # The state of the resource: enabled (registered to Amazon WorkMail)
659
- # or disabled (deregistered or never registered to WorkMail).
663
+ # The state of the resource: enabled (registered to Amazon WorkMail),
664
+ # disabled (deregistered or never registered to WorkMail), or deleted.
660
665
  # @return [String]
661
666
  #
662
667
  # @!attribute [rw] enabled_date
@@ -1032,6 +1037,18 @@ module Aws::WorkMail
1032
1037
  include Aws::Structure
1033
1038
  end
1034
1039
 
1040
+ # The request exceeds the limit of the resource.
1041
+ #
1042
+ # @!attribute [rw] message
1043
+ # @return [String]
1044
+ #
1045
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/LimitExceededException AWS API Documentation
1046
+ #
1047
+ class LimitExceededException < Struct.new(
1048
+ :message)
1049
+ include Aws::Structure
1050
+ end
1051
+
1035
1052
  # @note When making an API call, you may pass ListAliasesRequest
1036
1053
  # data as a hash:
1037
1054
  #
@@ -1393,6 +1410,35 @@ module Aws::WorkMail
1393
1410
  include Aws::Structure
1394
1411
  end
1395
1412
 
1413
+ # @note When making an API call, you may pass ListTagsForResourceRequest
1414
+ # data as a hash:
1415
+ #
1416
+ # {
1417
+ # resource_arn: "AmazonResourceName", # required
1418
+ # }
1419
+ #
1420
+ # @!attribute [rw] resource_arn
1421
+ # The resource ARN.
1422
+ # @return [String]
1423
+ #
1424
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ListTagsForResourceRequest AWS API Documentation
1425
+ #
1426
+ class ListTagsForResourceRequest < Struct.new(
1427
+ :resource_arn)
1428
+ include Aws::Structure
1429
+ end
1430
+
1431
+ # @!attribute [rw] tags
1432
+ # A list of tag key-value pairs.
1433
+ # @return [Array<Types::Tag>]
1434
+ #
1435
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ListTagsForResourceResponse AWS API Documentation
1436
+ #
1437
+ class ListTagsForResourceResponse < Struct.new(
1438
+ :tags)
1439
+ include Aws::Structure
1440
+ end
1441
+
1396
1442
  # @note When making an API call, you may pass ListUsersRequest
1397
1443
  # data as a hash:
1398
1444
  #
@@ -1784,6 +1830,89 @@ module Aws::WorkMail
1784
1830
  include Aws::Structure
1785
1831
  end
1786
1832
 
1833
+ # The resource cannot be found.
1834
+ #
1835
+ # @!attribute [rw] message
1836
+ # @return [String]
1837
+ #
1838
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ResourceNotFoundException AWS API Documentation
1839
+ #
1840
+ class ResourceNotFoundException < Struct.new(
1841
+ :message)
1842
+ include Aws::Structure
1843
+ end
1844
+
1845
+ # Describes a tag applied to a resource.
1846
+ #
1847
+ # @note When making an API call, you may pass Tag
1848
+ # data as a hash:
1849
+ #
1850
+ # {
1851
+ # key: "TagKey", # required
1852
+ # value: "TagValue", # required
1853
+ # }
1854
+ #
1855
+ # @!attribute [rw] key
1856
+ # The key of the tag.
1857
+ # @return [String]
1858
+ #
1859
+ # @!attribute [rw] value
1860
+ # The value of the tag.
1861
+ # @return [String]
1862
+ #
1863
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/Tag AWS API Documentation
1864
+ #
1865
+ class Tag < Struct.new(
1866
+ :key,
1867
+ :value)
1868
+ include Aws::Structure
1869
+ end
1870
+
1871
+ # @note When making an API call, you may pass TagResourceRequest
1872
+ # data as a hash:
1873
+ #
1874
+ # {
1875
+ # resource_arn: "AmazonResourceName", # required
1876
+ # tags: [ # required
1877
+ # {
1878
+ # key: "TagKey", # required
1879
+ # value: "TagValue", # required
1880
+ # },
1881
+ # ],
1882
+ # }
1883
+ #
1884
+ # @!attribute [rw] resource_arn
1885
+ # The resource ARN.
1886
+ # @return [String]
1887
+ #
1888
+ # @!attribute [rw] tags
1889
+ # The tag key-value pairs.
1890
+ # @return [Array<Types::Tag>]
1891
+ #
1892
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/TagResourceRequest AWS API Documentation
1893
+ #
1894
+ class TagResourceRequest < Struct.new(
1895
+ :resource_arn,
1896
+ :tags)
1897
+ include Aws::Structure
1898
+ end
1899
+
1900
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/TagResourceResponse AWS API Documentation
1901
+ #
1902
+ class TagResourceResponse < Aws::EmptyStructure; end
1903
+
1904
+ # The resource can have up to 50 user-applied tags.
1905
+ #
1906
+ # @!attribute [rw] message
1907
+ # @return [String]
1908
+ #
1909
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/TooManyTagsException AWS API Documentation
1910
+ #
1911
+ class TooManyTagsException < Struct.new(
1912
+ :message)
1913
+ include Aws::Structure
1914
+ end
1915
+
1787
1916
  # You can't perform a write operation against a read-only directory.
1788
1917
  #
1789
1918
  # @!attribute [rw] message
@@ -1796,6 +1925,34 @@ module Aws::WorkMail
1796
1925
  include Aws::Structure
1797
1926
  end
1798
1927
 
1928
+ # @note When making an API call, you may pass UntagResourceRequest
1929
+ # data as a hash:
1930
+ #
1931
+ # {
1932
+ # resource_arn: "AmazonResourceName", # required
1933
+ # tag_keys: ["TagKey"], # required
1934
+ # }
1935
+ #
1936
+ # @!attribute [rw] resource_arn
1937
+ # The resource ARN.
1938
+ # @return [String]
1939
+ #
1940
+ # @!attribute [rw] tag_keys
1941
+ # The tag keys.
1942
+ # @return [Array<String>]
1943
+ #
1944
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/UntagResourceRequest AWS API Documentation
1945
+ #
1946
+ class UntagResourceRequest < Struct.new(
1947
+ :resource_arn,
1948
+ :tag_keys)
1949
+ include Aws::Structure
1950
+ end
1951
+
1952
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/UntagResourceResponse AWS API Documentation
1953
+ #
1954
+ class UntagResourceResponse < Aws::EmptyStructure; end
1955
+
1799
1956
  # @note When making an API call, you may pass UpdateMailboxQuotaRequest
1800
1957
  # data as a hash:
1801
1958
  #
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.19.0
4
+ version: 1.20.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: 2019-10-23 00:00:00.000000000 Z
11
+ date: 2020-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core