aws-sdk-macie2 1.21.0 → 1.26.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -39,6 +39,7 @@ module Aws::Macie2
39
39
  BucketPermissionConfiguration = Shapes::StructureShape.new(name: 'BucketPermissionConfiguration')
40
40
  BucketPolicy = Shapes::StructureShape.new(name: 'BucketPolicy')
41
41
  BucketPublicAccess = Shapes::StructureShape.new(name: 'BucketPublicAccess')
42
+ BucketServerSideEncryption = Shapes::StructureShape.new(name: 'BucketServerSideEncryption')
42
43
  BucketSortCriteria = Shapes::StructureShape.new(name: 'BucketSortCriteria')
43
44
  Cell = Shapes::StructureShape.new(name: 'Cell')
44
45
  Cells = Shapes::ListShape.new(name: 'Cells')
@@ -90,6 +91,8 @@ module Aws::Macie2
90
91
  DisableMacieResponse = Shapes::StructureShape.new(name: 'DisableMacieResponse')
91
92
  DisableOrganizationAdminAccountRequest = Shapes::StructureShape.new(name: 'DisableOrganizationAdminAccountRequest')
92
93
  DisableOrganizationAdminAccountResponse = Shapes::StructureShape.new(name: 'DisableOrganizationAdminAccountResponse')
94
+ DisassociateFromAdministratorAccountRequest = Shapes::StructureShape.new(name: 'DisassociateFromAdministratorAccountRequest')
95
+ DisassociateFromAdministratorAccountResponse = Shapes::StructureShape.new(name: 'DisassociateFromAdministratorAccountResponse')
93
96
  DisassociateFromMasterAccountRequest = Shapes::StructureShape.new(name: 'DisassociateFromMasterAccountRequest')
94
97
  DisassociateFromMasterAccountResponse = Shapes::StructureShape.new(name: 'DisassociateFromMasterAccountResponse')
95
98
  DisassociateMemberRequest = Shapes::StructureShape.new(name: 'DisassociateMemberRequest')
@@ -116,6 +119,8 @@ module Aws::Macie2
116
119
  FindingType = Shapes::StringShape.new(name: 'FindingType')
117
120
  FindingsFilterAction = Shapes::StringShape.new(name: 'FindingsFilterAction')
118
121
  FindingsFilterListItem = Shapes::StructureShape.new(name: 'FindingsFilterListItem')
122
+ GetAdministratorAccountRequest = Shapes::StructureShape.new(name: 'GetAdministratorAccountRequest')
123
+ GetAdministratorAccountResponse = Shapes::StructureShape.new(name: 'GetAdministratorAccountResponse')
119
124
  GetBucketStatisticsRequest = Shapes::StructureShape.new(name: 'GetBucketStatisticsRequest')
120
125
  GetBucketStatisticsResponse = Shapes::StructureShape.new(name: 'GetBucketStatisticsResponse')
121
126
  GetClassificationExportConfigurationRequest = Shapes::StructureShape.new(name: 'GetClassificationExportConfigurationRequest')
@@ -126,6 +131,8 @@ module Aws::Macie2
126
131
  GetFindingStatisticsResponse = Shapes::StructureShape.new(name: 'GetFindingStatisticsResponse')
127
132
  GetFindingsFilterRequest = Shapes::StructureShape.new(name: 'GetFindingsFilterRequest')
128
133
  GetFindingsFilterResponse = Shapes::StructureShape.new(name: 'GetFindingsFilterResponse')
134
+ GetFindingsPublicationConfigurationRequest = Shapes::StructureShape.new(name: 'GetFindingsPublicationConfigurationRequest')
135
+ GetFindingsPublicationConfigurationResponse = Shapes::StructureShape.new(name: 'GetFindingsPublicationConfigurationResponse')
129
136
  GetFindingsRequest = Shapes::StructureShape.new(name: 'GetFindingsRequest')
130
137
  GetFindingsResponse = Shapes::StructureShape.new(name: 'GetFindingsResponse')
131
138
  GetInvitationsCountRequest = Shapes::StructureShape.new(name: 'GetInvitationsCountRequest')
@@ -198,6 +205,8 @@ module Aws::Macie2
198
205
  PolicyDetails = Shapes::StructureShape.new(name: 'PolicyDetails')
199
206
  PutClassificationExportConfigurationRequest = Shapes::StructureShape.new(name: 'PutClassificationExportConfigurationRequest')
200
207
  PutClassificationExportConfigurationResponse = Shapes::StructureShape.new(name: 'PutClassificationExportConfigurationResponse')
208
+ PutFindingsPublicationConfigurationRequest = Shapes::StructureShape.new(name: 'PutFindingsPublicationConfigurationRequest')
209
+ PutFindingsPublicationConfigurationResponse = Shapes::StructureShape.new(name: 'PutFindingsPublicationConfigurationResponse')
201
210
  Range = Shapes::StructureShape.new(name: 'Range')
202
211
  Ranges = Shapes::ListShape.new(name: 'Ranges')
203
212
  Record = Shapes::StructureShape.new(name: 'Record')
@@ -214,6 +223,7 @@ module Aws::Macie2
214
223
  S3Object = Shapes::StructureShape.new(name: 'S3Object')
215
224
  ScopeFilterKey = Shapes::StringShape.new(name: 'ScopeFilterKey')
216
225
  Scoping = Shapes::StructureShape.new(name: 'Scoping')
226
+ SecurityHubConfiguration = Shapes::StructureShape.new(name: 'SecurityHubConfiguration')
217
227
  SensitiveData = Shapes::ListShape.new(name: 'SensitiveData')
218
228
  SensitiveDataItem = Shapes::StructureShape.new(name: 'SensitiveDataItem')
219
229
  SensitiveDataItemCategory = Shapes::StringShape.new(name: 'SensitiveDataItemCategory')
@@ -239,6 +249,8 @@ module Aws::Macie2
239
249
  TestCustomDataIdentifierRequest = Shapes::StructureShape.new(name: 'TestCustomDataIdentifierRequest')
240
250
  TestCustomDataIdentifierResponse = Shapes::StructureShape.new(name: 'TestCustomDataIdentifierResponse')
241
251
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
252
+ TimeRange = Shapes::StringShape.new(name: 'TimeRange')
253
+ Type = Shapes::StringShape.new(name: 'Type')
242
254
  Unit = Shapes::StringShape.new(name: 'Unit')
243
255
  UnprocessedAccount = Shapes::StructureShape.new(name: 'UnprocessedAccount')
244
256
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
@@ -298,8 +310,9 @@ module Aws::Macie2
298
310
  __timestampIso8601 = Shapes::TimestampShape.new(name: '__timestampIso8601', timestampFormat: "iso8601")
299
311
  __timestampUnix = Shapes::TimestampShape.new(name: '__timestampUnix', timestampFormat: "unixTimestamp")
300
312
 
313
+ AcceptInvitationRequest.add_member(:administrator_account_id, Shapes::ShapeRef.new(shape: __string, location_name: "administratorAccountId"))
301
314
  AcceptInvitationRequest.add_member(:invitation_id, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "invitationId"))
302
- AcceptInvitationRequest.add_member(:master_account, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "masterAccount"))
315
+ AcceptInvitationRequest.add_member(:master_account, Shapes::ShapeRef.new(shape: __string, location_name: "masterAccount"))
303
316
  AcceptInvitationRequest.struct_class = Types::AcceptInvitationRequest
304
317
 
305
318
  AcceptInvitationResponse.struct_class = Types::AcceptInvitationResponse
@@ -410,6 +423,7 @@ module Aws::Macie2
410
423
  BucketMetadata.add_member(:public_access, Shapes::ShapeRef.new(shape: BucketPublicAccess, location_name: "publicAccess"))
411
424
  BucketMetadata.add_member(:region, Shapes::ShapeRef.new(shape: __string, location_name: "region"))
412
425
  BucketMetadata.add_member(:replication_details, Shapes::ShapeRef.new(shape: ReplicationDetails, location_name: "replicationDetails"))
426
+ BucketMetadata.add_member(:server_side_encryption, Shapes::ShapeRef.new(shape: BucketServerSideEncryption, location_name: "serverSideEncryption"))
413
427
  BucketMetadata.add_member(:shared_access, Shapes::ShapeRef.new(shape: SharedAccess, location_name: "sharedAccess"))
414
428
  BucketMetadata.add_member(:size_in_bytes, Shapes::ShapeRef.new(shape: __long, location_name: "sizeInBytes"))
415
429
  BucketMetadata.add_member(:size_in_bytes_compressed, Shapes::ShapeRef.new(shape: __long, location_name: "sizeInBytesCompressed"))
@@ -431,6 +445,10 @@ module Aws::Macie2
431
445
  BucketPublicAccess.add_member(:permission_configuration, Shapes::ShapeRef.new(shape: BucketPermissionConfiguration, location_name: "permissionConfiguration"))
432
446
  BucketPublicAccess.struct_class = Types::BucketPublicAccess
433
447
 
448
+ BucketServerSideEncryption.add_member(:kms_master_key_id, Shapes::ShapeRef.new(shape: __string, location_name: "kmsMasterKeyId"))
449
+ BucketServerSideEncryption.add_member(:type, Shapes::ShapeRef.new(shape: Type, location_name: "type"))
450
+ BucketServerSideEncryption.struct_class = Types::BucketServerSideEncryption
451
+
434
452
  BucketSortCriteria.add_member(:attribute_name, Shapes::ShapeRef.new(shape: __string, location_name: "attributeName"))
435
453
  BucketSortCriteria.add_member(:order_by, Shapes::ShapeRef.new(shape: OrderBy, location_name: "orderBy"))
436
454
  BucketSortCriteria.struct_class = Types::BucketSortCriteria
@@ -644,6 +662,10 @@ module Aws::Macie2
644
662
 
645
663
  DisableOrganizationAdminAccountResponse.struct_class = Types::DisableOrganizationAdminAccountResponse
646
664
 
665
+ DisassociateFromAdministratorAccountRequest.struct_class = Types::DisassociateFromAdministratorAccountRequest
666
+
667
+ DisassociateFromAdministratorAccountResponse.struct_class = Types::DisassociateFromAdministratorAccountResponse
668
+
647
669
  DisassociateFromMasterAccountRequest.struct_class = Types::DisassociateFromMasterAccountRequest
648
670
 
649
671
  DisassociateFromMasterAccountResponse.struct_class = Types::DisassociateFromMasterAccountResponse
@@ -721,6 +743,11 @@ module Aws::Macie2
721
743
  FindingsFilterListItem.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
722
744
  FindingsFilterListItem.struct_class = Types::FindingsFilterListItem
723
745
 
746
+ GetAdministratorAccountRequest.struct_class = Types::GetAdministratorAccountRequest
747
+
748
+ GetAdministratorAccountResponse.add_member(:administrator, Shapes::ShapeRef.new(shape: Invitation, location_name: "administrator"))
749
+ GetAdministratorAccountResponse.struct_class = Types::GetAdministratorAccountResponse
750
+
724
751
  GetBucketStatisticsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: __string, location_name: "accountId"))
725
752
  GetBucketStatisticsRequest.struct_class = Types::GetBucketStatisticsRequest
726
753
 
@@ -781,6 +808,11 @@ module Aws::Macie2
781
808
  GetFindingsFilterResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
782
809
  GetFindingsFilterResponse.struct_class = Types::GetFindingsFilterResponse
783
810
 
811
+ GetFindingsPublicationConfigurationRequest.struct_class = Types::GetFindingsPublicationConfigurationRequest
812
+
813
+ GetFindingsPublicationConfigurationResponse.add_member(:security_hub_configuration, Shapes::ShapeRef.new(shape: SecurityHubConfiguration, location_name: "securityHubConfiguration"))
814
+ GetFindingsPublicationConfigurationResponse.struct_class = Types::GetFindingsPublicationConfigurationResponse
815
+
784
816
  GetFindingsRequest.add_member(:finding_ids, Shapes::ShapeRef.new(shape: __listOf__string, required: true, location_name: "findingIds"))
785
817
  GetFindingsRequest.add_member(:sort_criteria, Shapes::ShapeRef.new(shape: SortCriteria, location_name: "sortCriteria"))
786
818
  GetFindingsRequest.struct_class = Types::GetFindingsRequest
@@ -811,6 +843,7 @@ module Aws::Macie2
811
843
  GetMemberRequest.struct_class = Types::GetMemberRequest
812
844
 
813
845
  GetMemberResponse.add_member(:account_id, Shapes::ShapeRef.new(shape: __string, location_name: "accountId"))
846
+ GetMemberResponse.add_member(:administrator_account_id, Shapes::ShapeRef.new(shape: __string, location_name: "administratorAccountId"))
814
847
  GetMemberResponse.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "arn"))
815
848
  GetMemberResponse.add_member(:email, Shapes::ShapeRef.new(shape: __string, location_name: "email"))
816
849
  GetMemberResponse.add_member(:invited_at, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "invitedAt"))
@@ -824,14 +857,18 @@ module Aws::Macie2
824
857
  GetUsageStatisticsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: __integer, location_name: "maxResults"))
825
858
  GetUsageStatisticsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "nextToken"))
826
859
  GetUsageStatisticsRequest.add_member(:sort_by, Shapes::ShapeRef.new(shape: UsageStatisticsSortBy, location_name: "sortBy"))
860
+ GetUsageStatisticsRequest.add_member(:time_range, Shapes::ShapeRef.new(shape: TimeRange, location_name: "timeRange"))
827
861
  GetUsageStatisticsRequest.struct_class = Types::GetUsageStatisticsRequest
828
862
 
829
863
  GetUsageStatisticsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "nextToken"))
830
864
  GetUsageStatisticsResponse.add_member(:records, Shapes::ShapeRef.new(shape: __listOfUsageRecord, location_name: "records"))
865
+ GetUsageStatisticsResponse.add_member(:time_range, Shapes::ShapeRef.new(shape: TimeRange, location_name: "timeRange"))
831
866
  GetUsageStatisticsResponse.struct_class = Types::GetUsageStatisticsResponse
832
867
 
868
+ GetUsageTotalsRequest.add_member(:time_range, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "timeRange"))
833
869
  GetUsageTotalsRequest.struct_class = Types::GetUsageTotalsRequest
834
870
 
871
+ GetUsageTotalsResponse.add_member(:time_range, Shapes::ShapeRef.new(shape: TimeRange, location_name: "timeRange"))
835
872
  GetUsageTotalsResponse.add_member(:usage_totals, Shapes::ShapeRef.new(shape: __listOfUsageTotal, location_name: "usageTotals"))
836
873
  GetUsageTotalsResponse.struct_class = Types::GetUsageTotalsResponse
837
874
 
@@ -996,6 +1033,7 @@ module Aws::Macie2
996
1033
  ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
997
1034
 
998
1035
  Member.add_member(:account_id, Shapes::ShapeRef.new(shape: __string, location_name: "accountId"))
1036
+ Member.add_member(:administrator_account_id, Shapes::ShapeRef.new(shape: __string, location_name: "administratorAccountId"))
999
1037
  Member.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "arn"))
1000
1038
  Member.add_member(:email, Shapes::ShapeRef.new(shape: __string, location_name: "email"))
1001
1039
  Member.add_member(:invited_at, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "invitedAt"))
@@ -1043,6 +1081,12 @@ module Aws::Macie2
1043
1081
  PutClassificationExportConfigurationResponse.add_member(:configuration, Shapes::ShapeRef.new(shape: ClassificationExportConfiguration, location_name: "configuration"))
1044
1082
  PutClassificationExportConfigurationResponse.struct_class = Types::PutClassificationExportConfigurationResponse
1045
1083
 
1084
+ PutFindingsPublicationConfigurationRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: __string, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
1085
+ PutFindingsPublicationConfigurationRequest.add_member(:security_hub_configuration, Shapes::ShapeRef.new(shape: SecurityHubConfiguration, location_name: "securityHubConfiguration"))
1086
+ PutFindingsPublicationConfigurationRequest.struct_class = Types::PutFindingsPublicationConfigurationRequest
1087
+
1088
+ PutFindingsPublicationConfigurationResponse.struct_class = Types::PutFindingsPublicationConfigurationResponse
1089
+
1046
1090
  Range.add_member(:end, Shapes::ShapeRef.new(shape: __long, location_name: "end"))
1047
1091
  Range.add_member(:start, Shapes::ShapeRef.new(shape: __long, location_name: "start"))
1048
1092
  Range.add_member(:start_column, Shapes::ShapeRef.new(shape: __long, location_name: "startColumn"))
@@ -1112,6 +1156,10 @@ module Aws::Macie2
1112
1156
  Scoping.add_member(:includes, Shapes::ShapeRef.new(shape: JobScopingBlock, location_name: "includes"))
1113
1157
  Scoping.struct_class = Types::Scoping
1114
1158
 
1159
+ SecurityHubConfiguration.add_member(:publish_classification_findings, Shapes::ShapeRef.new(shape: __boolean, required: true, location_name: "publishClassificationFindings"))
1160
+ SecurityHubConfiguration.add_member(:publish_policy_findings, Shapes::ShapeRef.new(shape: __boolean, required: true, location_name: "publishPolicyFindings"))
1161
+ SecurityHubConfiguration.struct_class = Types::SecurityHubConfiguration
1162
+
1115
1163
  SensitiveData.member = Shapes::ShapeRef.new(shape: SensitiveDataItem)
1116
1164
 
1117
1165
  SensitiveDataItem.add_member(:category, Shapes::ShapeRef.new(shape: SensitiveDataItemCategory, location_name: "category"))
@@ -1629,6 +1677,21 @@ module Aws::Macie2
1629
1677
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1630
1678
  end)
1631
1679
 
1680
+ api.add_operation(:disassociate_from_administrator_account, Seahorse::Model::Operation.new.tap do |o|
1681
+ o.name = "DisassociateFromAdministratorAccount"
1682
+ o.http_method = "POST"
1683
+ o.http_request_uri = "/administrator/disassociate"
1684
+ o.input = Shapes::ShapeRef.new(shape: DisassociateFromAdministratorAccountRequest)
1685
+ o.output = Shapes::ShapeRef.new(shape: DisassociateFromAdministratorAccountResponse)
1686
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1687
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1688
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1689
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1690
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1691
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1692
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1693
+ end)
1694
+
1632
1695
  api.add_operation(:disassociate_from_master_account, Seahorse::Model::Operation.new.tap do |o|
1633
1696
  o.name = "DisassociateFromMasterAccount"
1634
1697
  o.http_method = "POST"
@@ -1689,6 +1752,21 @@ module Aws::Macie2
1689
1752
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1690
1753
  end)
1691
1754
 
1755
+ api.add_operation(:get_administrator_account, Seahorse::Model::Operation.new.tap do |o|
1756
+ o.name = "GetAdministratorAccount"
1757
+ o.http_method = "GET"
1758
+ o.http_request_uri = "/administrator"
1759
+ o.input = Shapes::ShapeRef.new(shape: GetAdministratorAccountRequest)
1760
+ o.output = Shapes::ShapeRef.new(shape: GetAdministratorAccountResponse)
1761
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1762
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1763
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1764
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1765
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1766
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1767
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1768
+ end)
1769
+
1692
1770
  api.add_operation(:get_bucket_statistics, Seahorse::Model::Operation.new.tap do |o|
1693
1771
  o.name = "GetBucketStatistics"
1694
1772
  o.http_method = "POST"
@@ -1779,6 +1857,21 @@ module Aws::Macie2
1779
1857
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1780
1858
  end)
1781
1859
 
1860
+ api.add_operation(:get_findings_publication_configuration, Seahorse::Model::Operation.new.tap do |o|
1861
+ o.name = "GetFindingsPublicationConfiguration"
1862
+ o.http_method = "GET"
1863
+ o.http_request_uri = "/findings-publication-configuration"
1864
+ o.input = Shapes::ShapeRef.new(shape: GetFindingsPublicationConfigurationRequest)
1865
+ o.output = Shapes::ShapeRef.new(shape: GetFindingsPublicationConfigurationResponse)
1866
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1867
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1868
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1869
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1870
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1871
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1872
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1873
+ end)
1874
+
1782
1875
  api.add_operation(:get_invitations_count, Seahorse::Model::Operation.new.tap do |o|
1783
1876
  o.name = "GetInvitationsCount"
1784
1877
  o.http_method = "GET"
@@ -2045,6 +2138,21 @@ module Aws::Macie2
2045
2138
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2046
2139
  end)
2047
2140
 
2141
+ api.add_operation(:put_findings_publication_configuration, Seahorse::Model::Operation.new.tap do |o|
2142
+ o.name = "PutFindingsPublicationConfiguration"
2143
+ o.http_method = "PUT"
2144
+ o.http_request_uri = "/findings-publication-configuration"
2145
+ o.input = Shapes::ShapeRef.new(shape: PutFindingsPublicationConfigurationRequest)
2146
+ o.output = Shapes::ShapeRef.new(shape: PutFindingsPublicationConfigurationResponse)
2147
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2148
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2149
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
2150
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2151
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2152
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2153
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2154
+ end)
2155
+
2048
2156
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
2049
2157
  o.name = "TagResource"
2050
2158
  o.http_method = "POST"
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,23 +3,32 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
10
  module Aws::Macie2
11
11
  module Types
12
12
 
13
- # Specifies an Amazon Macie membership invitation to accept.
13
+ # Specifies an Amazon Macie membership invitation to accept. In the
14
+ # request, you have to specify the ID for the AWS account that sent the
15
+ # invitation. Otherwise, a validation error occurs. To specify this ID,
16
+ # we recommend that you use the administratorAccountId property instead
17
+ # of the masterAccount property. The masterAccount property has been
18
+ # deprecated and is retained only for backward compatibility.
14
19
  #
15
20
  # @note When making an API call, you may pass AcceptInvitationRequest
16
21
  # data as a hash:
17
22
  #
18
23
  # {
24
+ # administrator_account_id: "__string",
19
25
  # invitation_id: "__string", # required
20
- # master_account: "__string", # required
26
+ # master_account: "__string",
21
27
  # }
22
28
  #
29
+ # @!attribute [rw] administrator_account_id
30
+ # @return [String]
31
+ #
23
32
  # @!attribute [rw] invitation_id
24
33
  # @return [String]
25
34
  #
@@ -29,6 +38,7 @@ module Aws::Macie2
29
38
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/AcceptInvitationRequest AWS API Documentation
30
39
  #
31
40
  class AcceptInvitationRequest < Struct.new(
41
+ :administrator_account_id,
32
42
  :invitation_id,
33
43
  :master_account)
34
44
  SENSITIVE = []
@@ -72,7 +82,7 @@ module Aws::Macie2
72
82
  end
73
83
 
74
84
  # Specifies details for an account to associate with an Amazon Macie
75
- # master account.
85
+ # administrator account.
76
86
  #
77
87
  # @note When making an API call, you may pass AccountDetail
78
88
  # data as a hash:
@@ -97,7 +107,7 @@ module Aws::Macie2
97
107
  include Aws::Structure
98
108
  end
99
109
 
100
- # Provides information about account-level permissions settings that
110
+ # Provides information about the account-level permissions settings that
101
111
  # apply to an S3 bucket.
102
112
  #
103
113
  # @!attribute [rw] block_public_access
@@ -128,7 +138,7 @@ module Aws::Macie2
128
138
  #
129
139
  # @!attribute [rw] status
130
140
  # The current status of an account as the delegated Amazon Macie
131
- # administrator account for an AWS organization.
141
+ # administrator account for an AWS organization. Possible values are:
132
142
  # @return [String]
133
143
  #
134
144
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/AdminAccount AWS API Documentation
@@ -365,7 +375,8 @@ module Aws::Macie2
365
375
  end
366
376
 
367
377
  # Provides information about the number of S3 buckets that use certain
368
- # types of server-side encryption or don't encrypt objects by default.
378
+ # types of server-side encryption by default or don't encrypt new
379
+ # objects by default.
369
380
  #
370
381
  # @!attribute [rw] kms_managed
371
382
  # @return [Integer]
@@ -551,6 +562,18 @@ module Aws::Macie2
551
562
  # accounts and, if so, which accounts.
552
563
  # @return [Types::ReplicationDetails]
553
564
  #
565
+ # @!attribute [rw] server_side_encryption
566
+ # Provides information about the default server-side encryption
567
+ # settings for an S3 bucket. For detailed information about these
568
+ # settings, see [Setting default server-side encryption behavior for
569
+ # Amazon S3 buckets][1] in the *Amazon Simple Storage Service User
570
+ # Guide*.
571
+ #
572
+ #
573
+ #
574
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-encryption.html
575
+ # @return [Types::BucketServerSideEncryption]
576
+ #
554
577
  # @!attribute [rw] shared_access
555
578
  # @return [String]
556
579
  #
@@ -568,7 +591,9 @@ module Aws::Macie2
568
591
  # number of objects that Amazon Macie can't analyze in one or more S3
569
592
  # buckets. In a BucketMetadata object, this data is for a specific
570
593
  # bucket. In a GetBucketStatisticsResponse object, this data is
571
- # aggregated for all the buckets in the query results.
594
+ # aggregated for all the buckets in the query results. If versioning
595
+ # is enabled for a bucket, total storage size values are based on the
596
+ # size of the latest version of each applicable object in the bucket.
572
597
  # @return [Types::ObjectLevelStatistics]
573
598
  #
574
599
  # @!attribute [rw] unclassifiable_object_size_in_bytes
@@ -576,7 +601,9 @@ module Aws::Macie2
576
601
  # number of objects that Amazon Macie can't analyze in one or more S3
577
602
  # buckets. In a BucketMetadata object, this data is for a specific
578
603
  # bucket. In a GetBucketStatisticsResponse object, this data is
579
- # aggregated for all the buckets in the query results.
604
+ # aggregated for all the buckets in the query results. If versioning
605
+ # is enabled for a bucket, total storage size values are based on the
606
+ # size of the latest version of each applicable object in the bucket.
580
607
  # @return [Types::ObjectLevelStatistics]
581
608
  #
582
609
  # @!attribute [rw] versioning
@@ -598,6 +625,7 @@ module Aws::Macie2
598
625
  :public_access,
599
626
  :region,
600
627
  :replication_details,
628
+ :server_side_encryption,
601
629
  :shared_access,
602
630
  :size_in_bytes,
603
631
  :size_in_bytes_compressed,
@@ -613,8 +641,8 @@ module Aws::Macie2
613
641
  # permissions settings for an S3 bucket.
614
642
  #
615
643
  # @!attribute [rw] account_level_permissions
616
- # Provides information about account-level permissions settings that
617
- # apply to an S3 bucket.
644
+ # Provides information about the account-level permissions settings
645
+ # that apply to an S3 bucket.
618
646
  # @return [Types::AccountLevelPermissions]
619
647
  #
620
648
  # @!attribute [rw] bucket_level_permissions
@@ -669,6 +697,30 @@ module Aws::Macie2
669
697
  include Aws::Structure
670
698
  end
671
699
 
700
+ # Provides information about the default server-side encryption settings
701
+ # for an S3 bucket. For detailed information about these settings, see
702
+ # [Setting default server-side encryption behavior for Amazon S3
703
+ # buckets][1] in the *Amazon Simple Storage Service User Guide*.
704
+ #
705
+ #
706
+ #
707
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-encryption.html
708
+ #
709
+ # @!attribute [rw] kms_master_key_id
710
+ # @return [String]
711
+ #
712
+ # @!attribute [rw] type
713
+ # @return [String]
714
+ #
715
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/BucketServerSideEncryption AWS API Documentation
716
+ #
717
+ class BucketServerSideEncryption < Struct.new(
718
+ :kms_master_key_id,
719
+ :type)
720
+ SENSITIVE = []
721
+ include Aws::Structure
722
+ end
723
+
672
724
  # Specifies criteria for sorting the results of a query for information
673
725
  # about S3 buckets.
674
726
  #
@@ -1226,7 +1278,8 @@ module Aws::Macie2
1226
1278
  include Aws::Structure
1227
1279
  end
1228
1280
 
1229
- # Specifies an account to associate with an Amazon Macie master account.
1281
+ # Specifies an AWS account to associate with an Amazon Macie
1282
+ # administrator account.
1230
1283
  #
1231
1284
  # @note When making an API call, you may pass CreateMemberRequest
1232
1285
  # data as a hash:
@@ -1243,7 +1296,7 @@ module Aws::Macie2
1243
1296
  #
1244
1297
  # @!attribute [rw] account
1245
1298
  # Specifies details for an account to associate with an Amazon Macie
1246
- # master account.
1299
+ # administrator account.
1247
1300
  # @return [Types::AccountDetail]
1248
1301
  #
1249
1302
  # @!attribute [rw] tags
@@ -1262,7 +1315,7 @@ module Aws::Macie2
1262
1315
  end
1263
1316
 
1264
1317
  # Provides information about a request to associate an account with an
1265
- # Amazon Macie master account.
1318
+ # Amazon Macie administrator account.
1266
1319
  #
1267
1320
  # @!attribute [rw] arn
1268
1321
  # @return [String]
@@ -1610,7 +1663,8 @@ module Aws::Macie2
1610
1663
  class DeleteMemberResponse < Aws::EmptyStructure; end
1611
1664
 
1612
1665
  # Specifies criteria for filtering, sorting, and paginating the results
1613
- # of a query for information about S3 buckets.
1666
+ # of a query for statistical data and other information about S3
1667
+ # buckets.
1614
1668
  #
1615
1669
  # @note When making an API call, you may pass DescribeBucketsRequest
1616
1670
  # data as a hash:
@@ -1861,6 +1915,16 @@ module Aws::Macie2
1861
1915
  #
1862
1916
  class DisableOrganizationAdminAccountResponse < Aws::EmptyStructure; end
1863
1917
 
1918
+ # @api private
1919
+ #
1920
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DisassociateFromAdministratorAccountRequest AWS API Documentation
1921
+ #
1922
+ class DisassociateFromAdministratorAccountRequest < Aws::EmptyStructure; end
1923
+
1924
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DisassociateFromAdministratorAccountResponse AWS API Documentation
1925
+ #
1926
+ class DisassociateFromAdministratorAccountResponse < Aws::EmptyStructure; end
1927
+
1864
1928
  # @api private
1865
1929
  #
1866
1930
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DisassociateFromMasterAccountRequest AWS API Documentation
@@ -1914,8 +1978,8 @@ module Aws::Macie2
1914
1978
  #
1915
1979
  class Empty < Aws::EmptyStructure; end
1916
1980
 
1917
- # Enables Amazon Macie and specifies the configuration settings for an
1918
- # Amazon Macie account.
1981
+ # Enables Amazon Macie and specifies the configuration settings for a
1982
+ # Macie account.
1919
1983
  #
1920
1984
  # @note When making an API call, you may pass EnableMacieRequest
1921
1985
  # data as a hash:
@@ -1935,7 +1999,13 @@ module Aws::Macie2
1935
1999
  # The frequency with which Amazon Macie publishes updates to policy
1936
2000
  # findings for an account. This includes publishing updates to AWS
1937
2001
  # Security Hub and Amazon EventBridge (formerly called Amazon
1938
- # CloudWatch Events). Valid values are:
2002
+ # CloudWatch Events). For more information, see [Monitoring and
2003
+ # processing findings][1] in the *Amazon Macie User Guide*. Valid
2004
+ # values are:
2005
+ #
2006
+ #
2007
+ #
2008
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/findings-monitor.html
1939
2009
  # @return [String]
1940
2010
  #
1941
2011
  # @!attribute [rw] status
@@ -2271,6 +2341,30 @@ module Aws::Macie2
2271
2341
  include Aws::Structure
2272
2342
  end
2273
2343
 
2344
+ # @api private
2345
+ #
2346
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetAdministratorAccountRequest AWS API Documentation
2347
+ #
2348
+ class GetAdministratorAccountRequest < Aws::EmptyStructure; end
2349
+
2350
+ # Provides information about the Amazon Macie administrator account for
2351
+ # an account. If the accounts are associated by a Macie membership
2352
+ # invitation, the response also provides information about that
2353
+ # invitation.
2354
+ #
2355
+ # @!attribute [rw] administrator
2356
+ # Provides information about an Amazon Macie membership invitation
2357
+ # that was received by an account.
2358
+ # @return [Types::Invitation]
2359
+ #
2360
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetAdministratorAccountResponse AWS API Documentation
2361
+ #
2362
+ class GetAdministratorAccountResponse < Struct.new(
2363
+ :administrator)
2364
+ SENSITIVE = []
2365
+ include Aws::Structure
2366
+ end
2367
+
2274
2368
  # Specifies the account that owns the S3 buckets to retrieve aggregated
2275
2369
  # statistical data for.
2276
2370
  #
@@ -2293,7 +2387,8 @@ module Aws::Macie2
2293
2387
  end
2294
2388
 
2295
2389
  # Provides the results of a query that retrieved aggregated statistical
2296
- # data for the S3 buckets that are owned by an account.
2390
+ # data for all the S3 buckets that Amazon Macie monitors and analyzes
2391
+ # for an account.
2297
2392
  #
2298
2393
  # @!attribute [rw] bucket_count
2299
2394
  # @return [Integer]
@@ -2306,8 +2401,8 @@ module Aws::Macie2
2306
2401
  #
2307
2402
  # @!attribute [rw] bucket_count_by_encryption_type
2308
2403
  # Provides information about the number of S3 buckets that use certain
2309
- # types of server-side encryption or don't encrypt objects by
2310
- # default.
2404
+ # types of server-side encryption by default or don't encrypt new
2405
+ # objects by default.
2311
2406
  # @return [Types::BucketCountByEncryptionType]
2312
2407
  #
2313
2408
  # @!attribute [rw] bucket_count_by_shared_access_type
@@ -2338,7 +2433,9 @@ module Aws::Macie2
2338
2433
  # number of objects that Amazon Macie can't analyze in one or more S3
2339
2434
  # buckets. In a BucketMetadata object, this data is for a specific
2340
2435
  # bucket. In a GetBucketStatisticsResponse object, this data is
2341
- # aggregated for all the buckets in the query results.
2436
+ # aggregated for all the buckets in the query results. If versioning
2437
+ # is enabled for a bucket, total storage size values are based on the
2438
+ # size of the latest version of each applicable object in the bucket.
2342
2439
  # @return [Types::ObjectLevelStatistics]
2343
2440
  #
2344
2441
  # @!attribute [rw] unclassifiable_object_size_in_bytes
@@ -2346,7 +2443,9 @@ module Aws::Macie2
2346
2443
  # number of objects that Amazon Macie can't analyze in one or more S3
2347
2444
  # buckets. In a BucketMetadata object, this data is for a specific
2348
2445
  # bucket. In a GetBucketStatisticsResponse object, this data is
2349
- # aggregated for all the buckets in the query results.
2446
+ # aggregated for all the buckets in the query results. If versioning
2447
+ # is enabled for a bucket, total storage size values are based on the
2448
+ # size of the latest version of each applicable object in the bucket.
2350
2449
  # @return [Types::ObjectLevelStatistics]
2351
2450
  #
2352
2451
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetBucketStatisticsResponse AWS API Documentation
@@ -2605,6 +2704,34 @@ module Aws::Macie2
2605
2704
  include Aws::Structure
2606
2705
  end
2607
2706
 
2707
+ # @api private
2708
+ #
2709
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetFindingsPublicationConfigurationRequest AWS API Documentation
2710
+ #
2711
+ class GetFindingsPublicationConfigurationRequest < Aws::EmptyStructure; end
2712
+
2713
+ # Provides information about the current configuration settings for
2714
+ # publishing findings to AWS Security Hub automatically.
2715
+ #
2716
+ # @!attribute [rw] security_hub_configuration
2717
+ # Specifies configuration settings that determine which findings are
2718
+ # published to AWS Security Hub automatically. For information about
2719
+ # how Macie publishes findings to Security Hub, see [Amazon Macie
2720
+ # integration with Security Hub][1] in the *Amazon Macie User Guide*.
2721
+ #
2722
+ #
2723
+ #
2724
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/securityhub-integration.html
2725
+ # @return [Types::SecurityHubConfiguration]
2726
+ #
2727
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetFindingsPublicationConfigurationResponse AWS API Documentation
2728
+ #
2729
+ class GetFindingsPublicationConfigurationResponse < Struct.new(
2730
+ :security_hub_configuration)
2731
+ SENSITIVE = []
2732
+ include Aws::Structure
2733
+ end
2734
+
2608
2735
  # Specifies one or more findings to retrieve.
2609
2736
  #
2610
2737
  # @note When making an API call, you may pass GetFindingsRequest
@@ -2685,7 +2812,13 @@ module Aws::Macie2
2685
2812
  # The frequency with which Amazon Macie publishes updates to policy
2686
2813
  # findings for an account. This includes publishing updates to AWS
2687
2814
  # Security Hub and Amazon EventBridge (formerly called Amazon
2688
- # CloudWatch Events). Valid values are:
2815
+ # CloudWatch Events). For more information, see [Monitoring and
2816
+ # processing findings][1] in the *Amazon Macie User Guide*. Valid
2817
+ # values are:
2818
+ #
2819
+ #
2820
+ #
2821
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/findings-monitor.html
2689
2822
  # @return [String]
2690
2823
  #
2691
2824
  # @!attribute [rw] service_role
@@ -2716,10 +2849,10 @@ module Aws::Macie2
2716
2849
  #
2717
2850
  class GetMasterAccountRequest < Aws::EmptyStructure; end
2718
2851
 
2719
- # Provides information about the Amazon Macie master account for an
2720
- # account. If the accounts are associated by a Macie membership
2721
- # invitation, the response also provides information about that
2722
- # invitation.
2852
+ # (Deprecated) Provides information about the Amazon Macie administrator
2853
+ # account for an account. If the accounts are associated by a Macie
2854
+ # membership invitation, the response also provides information about
2855
+ # that invitation.
2723
2856
  #
2724
2857
  # @!attribute [rw] master
2725
2858
  # Provides information about an Amazon Macie membership invitation
@@ -2753,11 +2886,14 @@ module Aws::Macie2
2753
2886
  end
2754
2887
 
2755
2888
  # Provides information about an account that's associated with an
2756
- # Amazon Macie master account.
2889
+ # Amazon Macie administrator account.
2757
2890
  #
2758
2891
  # @!attribute [rw] account_id
2759
2892
  # @return [String]
2760
2893
  #
2894
+ # @!attribute [rw] administrator_account_id
2895
+ # @return [String]
2896
+ #
2761
2897
  # @!attribute [rw] arn
2762
2898
  # @return [String]
2763
2899
  #
@@ -2772,8 +2908,8 @@ module Aws::Macie2
2772
2908
  #
2773
2909
  # @!attribute [rw] relationship_status
2774
2910
  # The current status of the relationship between an account and an
2775
- # associated Amazon Macie master account (*inviter account*). Possible
2776
- # values are:
2911
+ # associated Amazon Macie administrator account (*inviter account*).
2912
+ # Possible values are:
2777
2913
  # @return [String]
2778
2914
  #
2779
2915
  # @!attribute [rw] tags
@@ -2789,6 +2925,7 @@ module Aws::Macie2
2789
2925
  #
2790
2926
  class GetMemberResponse < Struct.new(
2791
2927
  :account_id,
2928
+ :administrator_account_id,
2792
2929
  :arn,
2793
2930
  :email,
2794
2931
  :invited_at,
@@ -2801,8 +2938,8 @@ module Aws::Macie2
2801
2938
  end
2802
2939
 
2803
2940
  # Specifies criteria for filtering, sorting, and paginating the results
2804
- # of a query for quotas and aggregated usage data for one or more
2805
- # accounts.
2941
+ # of a query for quotas and aggregated usage data for one or more Amazon
2942
+ # Macie accounts.
2806
2943
  #
2807
2944
  # @note When making an API call, you may pass GetUsageStatisticsRequest
2808
2945
  # data as a hash:
@@ -2821,6 +2958,7 @@ module Aws::Macie2
2821
2958
  # key: "accountId", # accepts accountId, total, serviceLimitValue, freeTrialStartDate
2822
2959
  # order_by: "ASC", # accepts ASC, DESC
2823
2960
  # },
2961
+ # time_range: "MONTH_TO_DATE", # accepts MONTH_TO_DATE, PAST_30_DAYS
2824
2962
  # }
2825
2963
  #
2826
2964
  # @!attribute [rw] filter_by
@@ -2833,23 +2971,29 @@ module Aws::Macie2
2833
2971
  # @return [String]
2834
2972
  #
2835
2973
  # @!attribute [rw] sort_by
2836
- # Specifies criteria for sorting the results of a query for account
2837
- # quotas and usage data.
2974
+ # Specifies criteria for sorting the results of a query for Amazon
2975
+ # Macie account quotas and usage data.
2838
2976
  # @return [Types::UsageStatisticsSortBy]
2839
2977
  #
2978
+ # @!attribute [rw] time_range
2979
+ # An inclusive time period that Amazon Macie usage data applies to.
2980
+ # Possible values are:
2981
+ # @return [String]
2982
+ #
2840
2983
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetUsageStatisticsRequest AWS API Documentation
2841
2984
  #
2842
2985
  class GetUsageStatisticsRequest < Struct.new(
2843
2986
  :filter_by,
2844
2987
  :max_results,
2845
2988
  :next_token,
2846
- :sort_by)
2989
+ :sort_by,
2990
+ :time_range)
2847
2991
  SENSITIVE = []
2848
2992
  include Aws::Structure
2849
2993
  end
2850
2994
 
2851
2995
  # Provides the results of a query that retrieved quotas and aggregated
2852
- # usage data for one or more accounts.
2996
+ # usage data for one or more Amazon Macie accounts.
2853
2997
  #
2854
2998
  # @!attribute [rw] next_token
2855
2999
  # @return [String]
@@ -2857,23 +3001,46 @@ module Aws::Macie2
2857
3001
  # @!attribute [rw] records
2858
3002
  # @return [Array<Types::UsageRecord>]
2859
3003
  #
3004
+ # @!attribute [rw] time_range
3005
+ # An inclusive time period that Amazon Macie usage data applies to.
3006
+ # Possible values are:
3007
+ # @return [String]
3008
+ #
2860
3009
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetUsageStatisticsResponse AWS API Documentation
2861
3010
  #
2862
3011
  class GetUsageStatisticsResponse < Struct.new(
2863
3012
  :next_token,
2864
- :records)
3013
+ :records,
3014
+ :time_range)
2865
3015
  SENSITIVE = []
2866
3016
  include Aws::Structure
2867
3017
  end
2868
3018
 
2869
- # @api private
3019
+ # @note When making an API call, you may pass GetUsageTotalsRequest
3020
+ # data as a hash:
3021
+ #
3022
+ # {
3023
+ # time_range: "__string",
3024
+ # }
3025
+ #
3026
+ # @!attribute [rw] time_range
3027
+ # @return [String]
2870
3028
  #
2871
3029
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetUsageTotalsRequest AWS API Documentation
2872
3030
  #
2873
- class GetUsageTotalsRequest < Aws::EmptyStructure; end
3031
+ class GetUsageTotalsRequest < Struct.new(
3032
+ :time_range)
3033
+ SENSITIVE = []
3034
+ include Aws::Structure
3035
+ end
2874
3036
 
2875
3037
  # Provides the results of a query that retrieved aggregated usage data
2876
- # for an account during the past 30 days.
3038
+ # for an Amazon Macie account.
3039
+ #
3040
+ # @!attribute [rw] time_range
3041
+ # An inclusive time period that Amazon Macie usage data applies to.
3042
+ # Possible values are:
3043
+ # @return [String]
2877
3044
  #
2878
3045
  # @!attribute [rw] usage_totals
2879
3046
  # @return [Array<Types::UsageTotal>]
@@ -2881,6 +3048,7 @@ module Aws::Macie2
2881
3048
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetUsageTotalsResponse AWS API Documentation
2882
3049
  #
2883
3050
  class GetUsageTotalsResponse < Struct.new(
3051
+ :time_range,
2884
3052
  :usage_totals)
2885
3053
  SENSITIVE = []
2886
3054
  include Aws::Structure
@@ -2958,8 +3126,8 @@ module Aws::Macie2
2958
3126
  #
2959
3127
  # @!attribute [rw] relationship_status
2960
3128
  # The current status of the relationship between an account and an
2961
- # associated Amazon Macie master account (*inviter account*). Possible
2962
- # values are:
3129
+ # associated Amazon Macie administrator account (*inviter account*).
3130
+ # Possible values are:
2963
3131
  # @return [String]
2964
3132
  #
2965
3133
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/Invitation AWS API Documentation
@@ -3591,7 +3759,7 @@ module Aws::Macie2
3591
3759
  include Aws::Structure
3592
3760
  end
3593
3761
 
3594
- # Provides information about all the Amazon Macie membership invitations
3762
+ # Provides information about the Amazon Macie membership invitations
3595
3763
  # that were received by an account.
3596
3764
  #
3597
3765
  # @!attribute [rw] invitations
@@ -3737,7 +3905,7 @@ module Aws::Macie2
3737
3905
  end
3738
3906
 
3739
3907
  # Provides information about the accounts that are associated with an
3740
- # Amazon Macie master account.
3908
+ # Amazon Macie administrator account.
3741
3909
  #
3742
3910
  # @!attribute [rw] members
3743
3911
  # @return [Array<Types::Member>]
@@ -3832,11 +4000,14 @@ module Aws::Macie2
3832
4000
  end
3833
4001
 
3834
4002
  # Provides information about an account that's associated with an
3835
- # Amazon Macie master account.
4003
+ # Amazon Macie administrator account.
3836
4004
  #
3837
4005
  # @!attribute [rw] account_id
3838
4006
  # @return [String]
3839
4007
  #
4008
+ # @!attribute [rw] administrator_account_id
4009
+ # @return [String]
4010
+ #
3840
4011
  # @!attribute [rw] arn
3841
4012
  # @return [String]
3842
4013
  #
@@ -3851,8 +4022,8 @@ module Aws::Macie2
3851
4022
  #
3852
4023
  # @!attribute [rw] relationship_status
3853
4024
  # The current status of the relationship between an account and an
3854
- # associated Amazon Macie master account (*inviter account*). Possible
3855
- # values are:
4025
+ # associated Amazon Macie administrator account (*inviter account*).
4026
+ # Possible values are:
3856
4027
  # @return [String]
3857
4028
  #
3858
4029
  # @!attribute [rw] tags
@@ -3868,6 +4039,7 @@ module Aws::Macie2
3868
4039
  #
3869
4040
  class Member < Struct.new(
3870
4041
  :account_id,
4042
+ :administrator_account_id,
3871
4043
  :arn,
3872
4044
  :email,
3873
4045
  :invited_at,
@@ -3931,7 +4103,9 @@ module Aws::Macie2
3931
4103
  # of objects that Amazon Macie can't analyze in one or more S3 buckets.
3932
4104
  # In a BucketMetadata object, this data is for a specific bucket. In a
3933
4105
  # GetBucketStatisticsResponse object, this data is aggregated for all
3934
- # the buckets in the query results.
4106
+ # the buckets in the query results. If versioning is enabled for a
4107
+ # bucket, total storage size values are based on the size of the latest
4108
+ # version of each applicable object in the bucket.
3935
4109
  #
3936
4110
  # @!attribute [rw] file_type
3937
4111
  # @return [Integer]
@@ -4094,6 +4268,49 @@ module Aws::Macie2
4094
4268
  include Aws::Structure
4095
4269
  end
4096
4270
 
4271
+ # Specifies configuration settings for publishing findings to AWS
4272
+ # Security Hub automatically.
4273
+ #
4274
+ # @note When making an API call, you may pass PutFindingsPublicationConfigurationRequest
4275
+ # data as a hash:
4276
+ #
4277
+ # {
4278
+ # client_token: "__string",
4279
+ # security_hub_configuration: {
4280
+ # publish_classification_findings: false, # required
4281
+ # publish_policy_findings: false, # required
4282
+ # },
4283
+ # }
4284
+ #
4285
+ # @!attribute [rw] client_token
4286
+ # **A suitable default value is auto-generated.** You should normally
4287
+ # not need to pass this option.
4288
+ # @return [String]
4289
+ #
4290
+ # @!attribute [rw] security_hub_configuration
4291
+ # Specifies configuration settings that determine which findings are
4292
+ # published to AWS Security Hub automatically. For information about
4293
+ # how Macie publishes findings to Security Hub, see [Amazon Macie
4294
+ # integration with Security Hub][1] in the *Amazon Macie User Guide*.
4295
+ #
4296
+ #
4297
+ #
4298
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/securityhub-integration.html
4299
+ # @return [Types::SecurityHubConfiguration]
4300
+ #
4301
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/PutFindingsPublicationConfigurationRequest AWS API Documentation
4302
+ #
4303
+ class PutFindingsPublicationConfigurationRequest < Struct.new(
4304
+ :client_token,
4305
+ :security_hub_configuration)
4306
+ SENSITIVE = []
4307
+ include Aws::Structure
4308
+ end
4309
+
4310
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/PutFindingsPublicationConfigurationResponse AWS API Documentation
4311
+ #
4312
+ class PutFindingsPublicationConfigurationResponse < Aws::EmptyStructure; end
4313
+
4097
4314
  # Provides details about the location of an occurrence of sensitive data
4098
4315
  # in an Adobe Portable Document Format file, Microsoft Word document, or
4099
4316
  # non-binary text file.
@@ -4531,6 +4748,38 @@ module Aws::Macie2
4531
4748
  include Aws::Structure
4532
4749
  end
4533
4750
 
4751
+ # Specifies configuration settings that determine which findings are
4752
+ # published to AWS Security Hub automatically. For information about how
4753
+ # Macie publishes findings to Security Hub, see [Amazon Macie
4754
+ # integration with Security Hub][1] in the *Amazon Macie User Guide*.
4755
+ #
4756
+ #
4757
+ #
4758
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/securityhub-integration.html
4759
+ #
4760
+ # @note When making an API call, you may pass SecurityHubConfiguration
4761
+ # data as a hash:
4762
+ #
4763
+ # {
4764
+ # publish_classification_findings: false, # required
4765
+ # publish_policy_findings: false, # required
4766
+ # }
4767
+ #
4768
+ # @!attribute [rw] publish_classification_findings
4769
+ # @return [Boolean]
4770
+ #
4771
+ # @!attribute [rw] publish_policy_findings
4772
+ # @return [Boolean]
4773
+ #
4774
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SecurityHubConfiguration AWS API Documentation
4775
+ #
4776
+ class SecurityHubConfiguration < Struct.new(
4777
+ :publish_classification_findings,
4778
+ :publish_policy_findings)
4779
+ SENSITIVE = []
4780
+ include Aws::Structure
4781
+ end
4782
+
4534
4783
  # Provides information about the category, types, and occurrences of
4535
4784
  # sensitive data that produced a sensitive data finding.
4536
4785
  #
@@ -4579,7 +4828,7 @@ module Aws::Macie2
4579
4828
  include Aws::Structure
4580
4829
  end
4581
4830
 
4582
- # Specifies a current quota for an account.
4831
+ # Specifies a current quota for an Amazon Macie account.
4583
4832
  #
4584
4833
  # @!attribute [rw] is_service_limited
4585
4834
  # @return [Boolean]
@@ -4962,7 +5211,7 @@ module Aws::Macie2
4962
5211
  # @return [String]
4963
5212
  #
4964
5213
  # @!attribute [rw] error_code
4965
- # The source of an error, issue, or delay. Possible values are:
5214
+ # The source of an issue or delay. Possible values are:
4966
5215
  # @return [String]
4967
5216
  #
4968
5217
  # @!attribute [rw] error_message
@@ -5139,7 +5388,13 @@ module Aws::Macie2
5139
5388
  # The frequency with which Amazon Macie publishes updates to policy
5140
5389
  # findings for an account. This includes publishing updates to AWS
5141
5390
  # Security Hub and Amazon EventBridge (formerly called Amazon
5142
- # CloudWatch Events). Valid values are:
5391
+ # CloudWatch Events). For more information, see [Monitoring and
5392
+ # processing findings][1] in the *Amazon Macie User Guide*. Valid
5393
+ # values are:
5394
+ #
5395
+ #
5396
+ #
5397
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/findings-monitor.html
5143
5398
  # @return [String]
5144
5399
  #
5145
5400
  # @!attribute [rw] status
@@ -5189,7 +5444,7 @@ module Aws::Macie2
5189
5444
  #
5190
5445
  class UpdateMemberSessionResponse < Aws::EmptyStructure; end
5191
5446
 
5192
- # Specifies whether Amazon Macie is enabled automatically for accounts
5447
+ # Specifies whether to enable Amazon Macie automatically for accounts
5193
5448
  # that are added to an AWS organization.
5194
5449
  #
5195
5450
  # @note When making an API call, you may pass UpdateOrganizationConfigurationRequest
@@ -5215,23 +5470,23 @@ module Aws::Macie2
5215
5470
  class UpdateOrganizationConfigurationResponse < Aws::EmptyStructure; end
5216
5471
 
5217
5472
  # Provides data for a specific usage metric and the corresponding quota
5218
- # for an account. The value for the metric is an aggregated value that
5219
- # reports usage during the past 30 days.
5473
+ # for an Amazon Macie account.
5220
5474
  #
5221
5475
  # @!attribute [rw] currency
5222
- # The type of currency that data for a usage metric is reported in.
5223
- # Possible values are:
5476
+ # The type of currency that the data for an Amazon Macie usage metric
5477
+ # is reported in. Possible values are:
5224
5478
  # @return [String]
5225
5479
  #
5226
5480
  # @!attribute [rw] estimated_cost
5227
5481
  # @return [String]
5228
5482
  #
5229
5483
  # @!attribute [rw] service_limit
5230
- # Specifies a current quota for an account.
5484
+ # Specifies a current quota for an Amazon Macie account.
5231
5485
  # @return [Types::ServiceLimit]
5232
5486
  #
5233
5487
  # @!attribute [rw] type
5234
- # The name of a usage metric for an account. Possible values are:
5488
+ # The name of an Amazon Macie usage metric for an account. Possible
5489
+ # values are:
5235
5490
  # @return [String]
5236
5491
  #
5237
5492
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UsageByAccount AWS API Documentation
@@ -5245,7 +5500,7 @@ module Aws::Macie2
5245
5500
  include Aws::Structure
5246
5501
  end
5247
5502
 
5248
- # Provides quota and aggregated usage data for an account.
5503
+ # Provides quota and aggregated usage data for an Amazon Macie account.
5249
5504
  #
5250
5505
  # @!attribute [rw] account_id
5251
5506
  # @return [String]
@@ -5266,8 +5521,8 @@ module Aws::Macie2
5266
5521
  include Aws::Structure
5267
5522
  end
5268
5523
 
5269
- # Specifies a condition for filtering the results of a query for account
5270
- # quotas and usage data.
5524
+ # Specifies a condition for filtering the results of a query for quota
5525
+ # and usage data for one or more Amazon Macie accounts.
5271
5526
  #
5272
5527
  # @note When making an API call, you may pass UsageStatisticsFilter
5273
5528
  # data as a hash:
@@ -5280,12 +5535,13 @@ module Aws::Macie2
5280
5535
  #
5281
5536
  # @!attribute [rw] comparator
5282
5537
  # The operator to use in a condition that filters the results of a
5283
- # query for account quotas and usage data. Valid values are:
5538
+ # query for Amazon Macie account quotas and usage data. Valid values
5539
+ # are:
5284
5540
  # @return [String]
5285
5541
  #
5286
5542
  # @!attribute [rw] key
5287
5543
  # The field to use in a condition that filters the results of a query
5288
- # for account quotas and usage data. Valid values are:
5544
+ # for Amazon Macie account quotas and usage data. Valid values are:
5289
5545
  # @return [String]
5290
5546
  #
5291
5547
  # @!attribute [rw] values
@@ -5301,8 +5557,8 @@ module Aws::Macie2
5301
5557
  include Aws::Structure
5302
5558
  end
5303
5559
 
5304
- # Specifies criteria for sorting the results of a query for account
5305
- # quotas and usage data.
5560
+ # Specifies criteria for sorting the results of a query for Amazon Macie
5561
+ # account quotas and usage data.
5306
5562
  #
5307
5563
  # @note When making an API call, you may pass UsageStatisticsSortBy
5308
5564
  # data as a hash:
@@ -5313,8 +5569,8 @@ module Aws::Macie2
5313
5569
  # }
5314
5570
  #
5315
5571
  # @!attribute [rw] key
5316
- # The field to use to sort the results of a query for account quotas
5317
- # and usage data. Valid values are:
5572
+ # The field to use to sort the results of a query for Amazon Macie
5573
+ # account quotas and usage data. Valid values are:
5318
5574
  # @return [String]
5319
5575
  #
5320
5576
  # @!attribute [rw] order_by
@@ -5329,19 +5585,22 @@ module Aws::Macie2
5329
5585
  include Aws::Structure
5330
5586
  end
5331
5587
 
5332
- # Provides aggregated data for a usage metric. The value for the metric
5333
- # reports usage data for an account during the past 30 days.
5588
+ # Provides aggregated data for an Amazon Macie usage metric. The value
5589
+ # for the metric reports estimated usage data for an account for the
5590
+ # preceding 30 days or the current calendar month to date, depending on
5591
+ # the time period (timeRange) specified in the request.
5334
5592
  #
5335
5593
  # @!attribute [rw] currency
5336
- # The type of currency that data for a usage metric is reported in.
5337
- # Possible values are:
5594
+ # The type of currency that the data for an Amazon Macie usage metric
5595
+ # is reported in. Possible values are:
5338
5596
  # @return [String]
5339
5597
  #
5340
5598
  # @!attribute [rw] estimated_cost
5341
5599
  # @return [String]
5342
5600
  #
5343
5601
  # @!attribute [rw] type
5344
- # The name of a usage metric for an account. Possible values are:
5602
+ # The name of an Amazon Macie usage metric for an account. Possible
5603
+ # values are:
5345
5604
  # @return [String]
5346
5605
  #
5347
5606
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UsageTotal AWS API Documentation