aws-sdk-macie2 1.25.0 → 1.30.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.
@@ -21,6 +21,7 @@ module Aws::Macie2
21
21
  AccountLevelPermissions = Shapes::StructureShape.new(name: 'AccountLevelPermissions')
22
22
  AdminAccount = Shapes::StructureShape.new(name: 'AdminAccount')
23
23
  AdminStatus = Shapes::StringShape.new(name: 'AdminStatus')
24
+ AllowsUnencryptedObjectUploads = Shapes::StringShape.new(name: 'AllowsUnencryptedObjectUploads')
24
25
  ApiCallDetails = Shapes::StructureShape.new(name: 'ApiCallDetails')
25
26
  AssumedRole = Shapes::StructureShape.new(name: 'AssumedRole')
26
27
  AwsAccount = Shapes::StructureShape.new(name: 'AwsAccount')
@@ -32,6 +33,7 @@ module Aws::Macie2
32
33
  BucketCountByEffectivePermission = Shapes::StructureShape.new(name: 'BucketCountByEffectivePermission')
33
34
  BucketCountByEncryptionType = Shapes::StructureShape.new(name: 'BucketCountByEncryptionType')
34
35
  BucketCountBySharedAccessType = Shapes::StructureShape.new(name: 'BucketCountBySharedAccessType')
36
+ BucketCountPolicyAllowsUnencryptedObjectUploads = Shapes::StructureShape.new(name: 'BucketCountPolicyAllowsUnencryptedObjectUploads')
35
37
  BucketCriteria = Shapes::MapShape.new(name: 'BucketCriteria')
36
38
  BucketCriteriaAdditionalProperties = Shapes::StructureShape.new(name: 'BucketCriteriaAdditionalProperties')
37
39
  BucketLevelPermissions = Shapes::StructureShape.new(name: 'BucketLevelPermissions')
@@ -60,6 +62,8 @@ module Aws::Macie2
60
62
  CreateMemberResponse = Shapes::StructureShape.new(name: 'CreateMemberResponse')
61
63
  CreateSampleFindingsRequest = Shapes::StructureShape.new(name: 'CreateSampleFindingsRequest')
62
64
  CreateSampleFindingsResponse = Shapes::StructureShape.new(name: 'CreateSampleFindingsResponse')
65
+ CriteriaBlockForJob = Shapes::StructureShape.new(name: 'CriteriaBlockForJob')
66
+ CriteriaForJob = Shapes::StructureShape.new(name: 'CriteriaForJob')
63
67
  Criterion = Shapes::MapShape.new(name: 'Criterion')
64
68
  CriterionAdditionalProperties = Shapes::StructureShape.new(name: 'CriterionAdditionalProperties')
65
69
  Currency = Shapes::StringShape.new(name: 'Currency')
@@ -131,6 +135,8 @@ module Aws::Macie2
131
135
  GetFindingStatisticsResponse = Shapes::StructureShape.new(name: 'GetFindingStatisticsResponse')
132
136
  GetFindingsFilterRequest = Shapes::StructureShape.new(name: 'GetFindingsFilterRequest')
133
137
  GetFindingsFilterResponse = Shapes::StructureShape.new(name: 'GetFindingsFilterResponse')
138
+ GetFindingsPublicationConfigurationRequest = Shapes::StructureShape.new(name: 'GetFindingsPublicationConfigurationRequest')
139
+ GetFindingsPublicationConfigurationResponse = Shapes::StructureShape.new(name: 'GetFindingsPublicationConfigurationResponse')
134
140
  GetFindingsRequest = Shapes::StructureShape.new(name: 'GetFindingsRequest')
135
141
  GetFindingsResponse = Shapes::StructureShape.new(name: 'GetFindingsResponse')
136
142
  GetInvitationsCountRequest = Shapes::StructureShape.new(name: 'GetInvitationsCountRequest')
@@ -191,6 +197,8 @@ module Aws::Macie2
191
197
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
192
198
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
193
199
  MacieStatus = Shapes::StringShape.new(name: 'MacieStatus')
200
+ MatchingBucket = Shapes::StructureShape.new(name: 'MatchingBucket')
201
+ MatchingResource = Shapes::StructureShape.new(name: 'MatchingResource')
194
202
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
195
203
  Member = Shapes::StructureShape.new(name: 'Member')
196
204
  MonthlySchedule = Shapes::StructureShape.new(name: 'MonthlySchedule')
@@ -203,6 +211,8 @@ module Aws::Macie2
203
211
  PolicyDetails = Shapes::StructureShape.new(name: 'PolicyDetails')
204
212
  PutClassificationExportConfigurationRequest = Shapes::StructureShape.new(name: 'PutClassificationExportConfigurationRequest')
205
213
  PutClassificationExportConfigurationResponse = Shapes::StructureShape.new(name: 'PutClassificationExportConfigurationResponse')
214
+ PutFindingsPublicationConfigurationRequest = Shapes::StructureShape.new(name: 'PutFindingsPublicationConfigurationRequest')
215
+ PutFindingsPublicationConfigurationResponse = Shapes::StructureShape.new(name: 'PutFindingsPublicationConfigurationResponse')
206
216
  Range = Shapes::StructureShape.new(name: 'Range')
207
217
  Ranges = Shapes::ListShape.new(name: 'Ranges')
208
218
  Record = Shapes::StructureShape.new(name: 'Record')
@@ -212,6 +222,7 @@ module Aws::Macie2
212
222
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
213
223
  ResourcesAffected = Shapes::StructureShape.new(name: 'ResourcesAffected')
214
224
  S3Bucket = Shapes::StructureShape.new(name: 'S3Bucket')
225
+ S3BucketCriteriaForJob = Shapes::StructureShape.new(name: 'S3BucketCriteriaForJob')
215
226
  S3BucketDefinitionForJob = Shapes::StructureShape.new(name: 'S3BucketDefinitionForJob')
216
227
  S3BucketOwner = Shapes::StructureShape.new(name: 'S3BucketOwner')
217
228
  S3Destination = Shapes::StructureShape.new(name: 'S3Destination')
@@ -219,6 +230,19 @@ module Aws::Macie2
219
230
  S3Object = Shapes::StructureShape.new(name: 'S3Object')
220
231
  ScopeFilterKey = Shapes::StringShape.new(name: 'ScopeFilterKey')
221
232
  Scoping = Shapes::StructureShape.new(name: 'Scoping')
233
+ SearchResourcesBucketCriteria = Shapes::StructureShape.new(name: 'SearchResourcesBucketCriteria')
234
+ SearchResourcesComparator = Shapes::StringShape.new(name: 'SearchResourcesComparator')
235
+ SearchResourcesCriteria = Shapes::StructureShape.new(name: 'SearchResourcesCriteria')
236
+ SearchResourcesCriteriaBlock = Shapes::StructureShape.new(name: 'SearchResourcesCriteriaBlock')
237
+ SearchResourcesRequest = Shapes::StructureShape.new(name: 'SearchResourcesRequest')
238
+ SearchResourcesResponse = Shapes::StructureShape.new(name: 'SearchResourcesResponse')
239
+ SearchResourcesSimpleCriterion = Shapes::StructureShape.new(name: 'SearchResourcesSimpleCriterion')
240
+ SearchResourcesSimpleCriterionKey = Shapes::StringShape.new(name: 'SearchResourcesSimpleCriterionKey')
241
+ SearchResourcesSortAttributeName = Shapes::StringShape.new(name: 'SearchResourcesSortAttributeName')
242
+ SearchResourcesSortCriteria = Shapes::StructureShape.new(name: 'SearchResourcesSortCriteria')
243
+ SearchResourcesTagCriterion = Shapes::StructureShape.new(name: 'SearchResourcesTagCriterion')
244
+ SearchResourcesTagCriterionPair = Shapes::StructureShape.new(name: 'SearchResourcesTagCriterionPair')
245
+ SecurityHubConfiguration = Shapes::StructureShape.new(name: 'SecurityHubConfiguration')
222
246
  SensitiveData = Shapes::ListShape.new(name: 'SensitiveData')
223
247
  SensitiveDataItem = Shapes::StructureShape.new(name: 'SensitiveDataItem')
224
248
  SensitiveDataItemCategory = Shapes::StringShape.new(name: 'SensitiveDataItemCategory')
@@ -231,10 +255,14 @@ module Aws::Macie2
231
255
  Severity = Shapes::StructureShape.new(name: 'Severity')
232
256
  SeverityDescription = Shapes::StringShape.new(name: 'SeverityDescription')
233
257
  SharedAccess = Shapes::StringShape.new(name: 'SharedAccess')
258
+ SimpleCriterionForJob = Shapes::StructureShape.new(name: 'SimpleCriterionForJob')
259
+ SimpleCriterionKeyForJob = Shapes::StringShape.new(name: 'SimpleCriterionKeyForJob')
234
260
  SimpleScopeTerm = Shapes::StructureShape.new(name: 'SimpleScopeTerm')
235
261
  SortCriteria = Shapes::StructureShape.new(name: 'SortCriteria')
236
262
  Statistics = Shapes::StructureShape.new(name: 'Statistics')
237
263
  StorageClass = Shapes::StringShape.new(name: 'StorageClass')
264
+ TagCriterionForJob = Shapes::StructureShape.new(name: 'TagCriterionForJob')
265
+ TagCriterionPairForJob = Shapes::StructureShape.new(name: 'TagCriterionPairForJob')
238
266
  TagMap = Shapes::MapShape.new(name: 'TagMap')
239
267
  TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
240
268
  TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
@@ -281,6 +309,7 @@ module Aws::Macie2
281
309
  __listOfAdminAccount = Shapes::ListShape.new(name: '__listOfAdminAccount')
282
310
  __listOfBatchGetCustomDataIdentifierSummary = Shapes::ListShape.new(name: '__listOfBatchGetCustomDataIdentifierSummary')
283
311
  __listOfBucketMetadata = Shapes::ListShape.new(name: '__listOfBucketMetadata')
312
+ __listOfCriteriaForJob = Shapes::ListShape.new(name: '__listOfCriteriaForJob')
284
313
  __listOfCustomDataIdentifierSummary = Shapes::ListShape.new(name: '__listOfCustomDataIdentifierSummary')
285
314
  __listOfFinding = Shapes::ListShape.new(name: '__listOfFinding')
286
315
  __listOfFindingType = Shapes::ListShape.new(name: '__listOfFindingType')
@@ -291,8 +320,12 @@ module Aws::Macie2
291
320
  __listOfJobSummary = Shapes::ListShape.new(name: '__listOfJobSummary')
292
321
  __listOfKeyValuePair = Shapes::ListShape.new(name: '__listOfKeyValuePair')
293
322
  __listOfListJobsFilterTerm = Shapes::ListShape.new(name: '__listOfListJobsFilterTerm')
323
+ __listOfMatchingResource = Shapes::ListShape.new(name: '__listOfMatchingResource')
294
324
  __listOfMember = Shapes::ListShape.new(name: '__listOfMember')
295
325
  __listOfS3BucketDefinitionForJob = Shapes::ListShape.new(name: '__listOfS3BucketDefinitionForJob')
326
+ __listOfSearchResourcesCriteria = Shapes::ListShape.new(name: '__listOfSearchResourcesCriteria')
327
+ __listOfSearchResourcesTagCriterionPair = Shapes::ListShape.new(name: '__listOfSearchResourcesTagCriterionPair')
328
+ __listOfTagCriterionPairForJob = Shapes::ListShape.new(name: '__listOfTagCriterionPairForJob')
296
329
  __listOfTagValuePair = Shapes::ListShape.new(name: '__listOfTagValuePair')
297
330
  __listOfUnprocessedAccount = Shapes::ListShape.new(name: '__listOfUnprocessedAccount')
298
331
  __listOfUsageByAccount = Shapes::ListShape.new(name: '__listOfUsageByAccount')
@@ -380,6 +413,7 @@ module Aws::Macie2
380
413
  BucketCountByEncryptionType.add_member(:kms_managed, Shapes::ShapeRef.new(shape: __long, location_name: "kmsManaged"))
381
414
  BucketCountByEncryptionType.add_member(:s3_managed, Shapes::ShapeRef.new(shape: __long, location_name: "s3Managed"))
382
415
  BucketCountByEncryptionType.add_member(:unencrypted, Shapes::ShapeRef.new(shape: __long, location_name: "unencrypted"))
416
+ BucketCountByEncryptionType.add_member(:unknown, Shapes::ShapeRef.new(shape: __long, location_name: "unknown"))
383
417
  BucketCountByEncryptionType.struct_class = Types::BucketCountByEncryptionType
384
418
 
385
419
  BucketCountBySharedAccessType.add_member(:external, Shapes::ShapeRef.new(shape: __long, location_name: "external"))
@@ -388,6 +422,11 @@ module Aws::Macie2
388
422
  BucketCountBySharedAccessType.add_member(:unknown, Shapes::ShapeRef.new(shape: __long, location_name: "unknown"))
389
423
  BucketCountBySharedAccessType.struct_class = Types::BucketCountBySharedAccessType
390
424
 
425
+ BucketCountPolicyAllowsUnencryptedObjectUploads.add_member(:allows_unencrypted_object_uploads, Shapes::ShapeRef.new(shape: __long, location_name: "allowsUnencryptedObjectUploads"))
426
+ BucketCountPolicyAllowsUnencryptedObjectUploads.add_member(:denies_unencrypted_object_uploads, Shapes::ShapeRef.new(shape: __long, location_name: "deniesUnencryptedObjectUploads"))
427
+ BucketCountPolicyAllowsUnencryptedObjectUploads.add_member(:unknown, Shapes::ShapeRef.new(shape: __long, location_name: "unknown"))
428
+ BucketCountPolicyAllowsUnencryptedObjectUploads.struct_class = Types::BucketCountPolicyAllowsUnencryptedObjectUploads
429
+
391
430
  BucketCriteria.key = Shapes::ShapeRef.new(shape: __string)
392
431
  BucketCriteria.value = Shapes::ShapeRef.new(shape: BucketCriteriaAdditionalProperties)
393
432
 
@@ -406,6 +445,7 @@ module Aws::Macie2
406
445
  BucketLevelPermissions.struct_class = Types::BucketLevelPermissions
407
446
 
408
447
  BucketMetadata.add_member(:account_id, Shapes::ShapeRef.new(shape: __string, location_name: "accountId"))
448
+ BucketMetadata.add_member(:allows_unencrypted_object_uploads, Shapes::ShapeRef.new(shape: AllowsUnencryptedObjectUploads, location_name: "allowsUnencryptedObjectUploads"))
409
449
  BucketMetadata.add_member(:bucket_arn, Shapes::ShapeRef.new(shape: __string, location_name: "bucketArn"))
410
450
  BucketMetadata.add_member(:bucket_created_at, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "bucketCreatedAt"))
411
451
  BucketMetadata.add_member(:bucket_name, Shapes::ShapeRef.new(shape: __string, location_name: "bucketName"))
@@ -542,6 +582,13 @@ module Aws::Macie2
542
582
 
543
583
  CreateSampleFindingsResponse.struct_class = Types::CreateSampleFindingsResponse
544
584
 
585
+ CriteriaBlockForJob.add_member(:and, Shapes::ShapeRef.new(shape: __listOfCriteriaForJob, location_name: "and"))
586
+ CriteriaBlockForJob.struct_class = Types::CriteriaBlockForJob
587
+
588
+ CriteriaForJob.add_member(:simple_criterion, Shapes::ShapeRef.new(shape: SimpleCriterionForJob, location_name: "simpleCriterion"))
589
+ CriteriaForJob.add_member(:tag_criterion, Shapes::ShapeRef.new(shape: TagCriterionForJob, location_name: "tagCriterion"))
590
+ CriteriaForJob.struct_class = Types::CriteriaForJob
591
+
545
592
  Criterion.key = Shapes::ShapeRef.new(shape: __string)
546
593
  Criterion.value = Shapes::ShapeRef.new(shape: CriterionAdditionalProperties)
547
594
 
@@ -749,6 +796,7 @@ module Aws::Macie2
749
796
  GetBucketStatisticsResponse.add_member(:bucket_count, Shapes::ShapeRef.new(shape: __long, location_name: "bucketCount"))
750
797
  GetBucketStatisticsResponse.add_member(:bucket_count_by_effective_permission, Shapes::ShapeRef.new(shape: BucketCountByEffectivePermission, location_name: "bucketCountByEffectivePermission"))
751
798
  GetBucketStatisticsResponse.add_member(:bucket_count_by_encryption_type, Shapes::ShapeRef.new(shape: BucketCountByEncryptionType, location_name: "bucketCountByEncryptionType"))
799
+ GetBucketStatisticsResponse.add_member(:bucket_count_by_object_encryption_requirement, Shapes::ShapeRef.new(shape: BucketCountPolicyAllowsUnencryptedObjectUploads, location_name: "bucketCountByObjectEncryptionRequirement"))
752
800
  GetBucketStatisticsResponse.add_member(:bucket_count_by_shared_access_type, Shapes::ShapeRef.new(shape: BucketCountBySharedAccessType, location_name: "bucketCountBySharedAccessType"))
753
801
  GetBucketStatisticsResponse.add_member(:classifiable_object_count, Shapes::ShapeRef.new(shape: __long, location_name: "classifiableObjectCount"))
754
802
  GetBucketStatisticsResponse.add_member(:classifiable_size_in_bytes, Shapes::ShapeRef.new(shape: __long, location_name: "classifiableSizeInBytes"))
@@ -803,6 +851,11 @@ module Aws::Macie2
803
851
  GetFindingsFilterResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
804
852
  GetFindingsFilterResponse.struct_class = Types::GetFindingsFilterResponse
805
853
 
854
+ GetFindingsPublicationConfigurationRequest.struct_class = Types::GetFindingsPublicationConfigurationRequest
855
+
856
+ GetFindingsPublicationConfigurationResponse.add_member(:security_hub_configuration, Shapes::ShapeRef.new(shape: SecurityHubConfiguration, location_name: "securityHubConfiguration"))
857
+ GetFindingsPublicationConfigurationResponse.struct_class = Types::GetFindingsPublicationConfigurationResponse
858
+
806
859
  GetFindingsRequest.add_member(:finding_ids, Shapes::ShapeRef.new(shape: __listOf__string, required: true, location_name: "findingIds"))
807
860
  GetFindingsRequest.add_member(:sort_criteria, Shapes::ShapeRef.new(shape: SortCriteria, location_name: "sortCriteria"))
808
861
  GetFindingsRequest.struct_class = Types::GetFindingsRequest
@@ -931,6 +984,7 @@ module Aws::Macie2
931
984
  JobSummary.add_member(:last_run_error_status, Shapes::ShapeRef.new(shape: LastRunErrorStatus, location_name: "lastRunErrorStatus"))
932
985
  JobSummary.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "name"))
933
986
  JobSummary.add_member(:user_paused_details, Shapes::ShapeRef.new(shape: UserPausedDetails, location_name: "userPausedDetails"))
987
+ JobSummary.add_member(:bucket_criteria, Shapes::ShapeRef.new(shape: S3BucketCriteriaForJob, location_name: "bucketCriteria"))
934
988
  JobSummary.struct_class = Types::JobSummary
935
989
 
936
990
  KeyValuePair.add_member(:key, Shapes::ShapeRef.new(shape: __string, location_name: "key"))
@@ -1022,6 +1076,22 @@ module Aws::Macie2
1022
1076
  ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
1023
1077
  ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
1024
1078
 
1079
+ MatchingBucket.add_member(:account_id, Shapes::ShapeRef.new(shape: __string, location_name: "accountId"))
1080
+ MatchingBucket.add_member(:bucket_name, Shapes::ShapeRef.new(shape: __string, location_name: "bucketName"))
1081
+ MatchingBucket.add_member(:classifiable_object_count, Shapes::ShapeRef.new(shape: __long, location_name: "classifiableObjectCount"))
1082
+ MatchingBucket.add_member(:classifiable_size_in_bytes, Shapes::ShapeRef.new(shape: __long, location_name: "classifiableSizeInBytes"))
1083
+ MatchingBucket.add_member(:job_details, Shapes::ShapeRef.new(shape: JobDetails, location_name: "jobDetails"))
1084
+ MatchingBucket.add_member(:object_count, Shapes::ShapeRef.new(shape: __long, location_name: "objectCount"))
1085
+ MatchingBucket.add_member(:object_count_by_encryption_type, Shapes::ShapeRef.new(shape: ObjectCountByEncryptionType, location_name: "objectCountByEncryptionType"))
1086
+ MatchingBucket.add_member(:size_in_bytes, Shapes::ShapeRef.new(shape: __long, location_name: "sizeInBytes"))
1087
+ MatchingBucket.add_member(:size_in_bytes_compressed, Shapes::ShapeRef.new(shape: __long, location_name: "sizeInBytesCompressed"))
1088
+ MatchingBucket.add_member(:unclassifiable_object_count, Shapes::ShapeRef.new(shape: ObjectLevelStatistics, location_name: "unclassifiableObjectCount"))
1089
+ MatchingBucket.add_member(:unclassifiable_object_size_in_bytes, Shapes::ShapeRef.new(shape: ObjectLevelStatistics, location_name: "unclassifiableObjectSizeInBytes"))
1090
+ MatchingBucket.struct_class = Types::MatchingBucket
1091
+
1092
+ MatchingResource.add_member(:matching_bucket, Shapes::ShapeRef.new(shape: MatchingBucket, location_name: "matchingBucket"))
1093
+ MatchingResource.struct_class = Types::MatchingResource
1094
+
1025
1095
  Member.add_member(:account_id, Shapes::ShapeRef.new(shape: __string, location_name: "accountId"))
1026
1096
  Member.add_member(:administrator_account_id, Shapes::ShapeRef.new(shape: __string, location_name: "administratorAccountId"))
1027
1097
  Member.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "arn"))
@@ -1040,6 +1110,7 @@ module Aws::Macie2
1040
1110
  ObjectCountByEncryptionType.add_member(:kms_managed, Shapes::ShapeRef.new(shape: __long, location_name: "kmsManaged"))
1041
1111
  ObjectCountByEncryptionType.add_member(:s3_managed, Shapes::ShapeRef.new(shape: __long, location_name: "s3Managed"))
1042
1112
  ObjectCountByEncryptionType.add_member(:unencrypted, Shapes::ShapeRef.new(shape: __long, location_name: "unencrypted"))
1113
+ ObjectCountByEncryptionType.add_member(:unknown, Shapes::ShapeRef.new(shape: __long, location_name: "unknown"))
1043
1114
  ObjectCountByEncryptionType.struct_class = Types::ObjectCountByEncryptionType
1044
1115
 
1045
1116
  ObjectLevelStatistics.add_member(:file_type, Shapes::ShapeRef.new(shape: __long, location_name: "fileType"))
@@ -1071,6 +1142,12 @@ module Aws::Macie2
1071
1142
  PutClassificationExportConfigurationResponse.add_member(:configuration, Shapes::ShapeRef.new(shape: ClassificationExportConfiguration, location_name: "configuration"))
1072
1143
  PutClassificationExportConfigurationResponse.struct_class = Types::PutClassificationExportConfigurationResponse
1073
1144
 
1145
+ PutFindingsPublicationConfigurationRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: __string, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
1146
+ PutFindingsPublicationConfigurationRequest.add_member(:security_hub_configuration, Shapes::ShapeRef.new(shape: SecurityHubConfiguration, location_name: "securityHubConfiguration"))
1147
+ PutFindingsPublicationConfigurationRequest.struct_class = Types::PutFindingsPublicationConfigurationRequest
1148
+
1149
+ PutFindingsPublicationConfigurationResponse.struct_class = Types::PutFindingsPublicationConfigurationResponse
1150
+
1074
1151
  Range.add_member(:end, Shapes::ShapeRef.new(shape: __long, location_name: "end"))
1075
1152
  Range.add_member(:start, Shapes::ShapeRef.new(shape: __long, location_name: "start"))
1076
1153
  Range.add_member(:start_column, Shapes::ShapeRef.new(shape: __long, location_name: "startColumn"))
@@ -1096,6 +1173,7 @@ module Aws::Macie2
1096
1173
  ResourcesAffected.add_member(:s3_object, Shapes::ShapeRef.new(shape: S3Object, location_name: "s3Object"))
1097
1174
  ResourcesAffected.struct_class = Types::ResourcesAffected
1098
1175
 
1176
+ S3Bucket.add_member(:allows_unencrypted_object_uploads, Shapes::ShapeRef.new(shape: AllowsUnencryptedObjectUploads, location_name: "allowsUnencryptedObjectUploads"))
1099
1177
  S3Bucket.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "arn"))
1100
1178
  S3Bucket.add_member(:created_at, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "createdAt"))
1101
1179
  S3Bucket.add_member(:default_server_side_encryption, Shapes::ShapeRef.new(shape: ServerSideEncryption, location_name: "defaultServerSideEncryption"))
@@ -1105,6 +1183,10 @@ module Aws::Macie2
1105
1183
  S3Bucket.add_member(:tags, Shapes::ShapeRef.new(shape: KeyValuePairList, location_name: "tags"))
1106
1184
  S3Bucket.struct_class = Types::S3Bucket
1107
1185
 
1186
+ S3BucketCriteriaForJob.add_member(:excludes, Shapes::ShapeRef.new(shape: CriteriaBlockForJob, location_name: "excludes"))
1187
+ S3BucketCriteriaForJob.add_member(:includes, Shapes::ShapeRef.new(shape: CriteriaBlockForJob, location_name: "includes"))
1188
+ S3BucketCriteriaForJob.struct_class = Types::S3BucketCriteriaForJob
1189
+
1108
1190
  S3BucketDefinitionForJob.add_member(:account_id, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "accountId"))
1109
1191
  S3BucketDefinitionForJob.add_member(:buckets, Shapes::ShapeRef.new(shape: __listOf__string, required: true, location_name: "buckets"))
1110
1192
  S3BucketDefinitionForJob.struct_class = Types::S3BucketDefinitionForJob
@@ -1120,6 +1202,7 @@ module Aws::Macie2
1120
1202
 
1121
1203
  S3JobDefinition.add_member(:bucket_definitions, Shapes::ShapeRef.new(shape: __listOfS3BucketDefinitionForJob, location_name: "bucketDefinitions"))
1122
1204
  S3JobDefinition.add_member(:scoping, Shapes::ShapeRef.new(shape: Scoping, location_name: "scoping"))
1205
+ S3JobDefinition.add_member(:bucket_criteria, Shapes::ShapeRef.new(shape: S3BucketCriteriaForJob, location_name: "bucketCriteria"))
1123
1206
  S3JobDefinition.struct_class = Types::S3JobDefinition
1124
1207
 
1125
1208
  S3Object.add_member(:bucket_arn, Shapes::ShapeRef.new(shape: __string, location_name: "bucketArn"))
@@ -1140,6 +1223,48 @@ module Aws::Macie2
1140
1223
  Scoping.add_member(:includes, Shapes::ShapeRef.new(shape: JobScopingBlock, location_name: "includes"))
1141
1224
  Scoping.struct_class = Types::Scoping
1142
1225
 
1226
+ SearchResourcesBucketCriteria.add_member(:excludes, Shapes::ShapeRef.new(shape: SearchResourcesCriteriaBlock, location_name: "excludes"))
1227
+ SearchResourcesBucketCriteria.add_member(:includes, Shapes::ShapeRef.new(shape: SearchResourcesCriteriaBlock, location_name: "includes"))
1228
+ SearchResourcesBucketCriteria.struct_class = Types::SearchResourcesBucketCriteria
1229
+
1230
+ SearchResourcesCriteria.add_member(:simple_criterion, Shapes::ShapeRef.new(shape: SearchResourcesSimpleCriterion, location_name: "simpleCriterion"))
1231
+ SearchResourcesCriteria.add_member(:tag_criterion, Shapes::ShapeRef.new(shape: SearchResourcesTagCriterion, location_name: "tagCriterion"))
1232
+ SearchResourcesCriteria.struct_class = Types::SearchResourcesCriteria
1233
+
1234
+ SearchResourcesCriteriaBlock.add_member(:and, Shapes::ShapeRef.new(shape: __listOfSearchResourcesCriteria, location_name: "and"))
1235
+ SearchResourcesCriteriaBlock.struct_class = Types::SearchResourcesCriteriaBlock
1236
+
1237
+ SearchResourcesRequest.add_member(:bucket_criteria, Shapes::ShapeRef.new(shape: SearchResourcesBucketCriteria, location_name: "bucketCriteria"))
1238
+ SearchResourcesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: __integer, location_name: "maxResults"))
1239
+ SearchResourcesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "nextToken"))
1240
+ SearchResourcesRequest.add_member(:sort_criteria, Shapes::ShapeRef.new(shape: SearchResourcesSortCriteria, location_name: "sortCriteria"))
1241
+ SearchResourcesRequest.struct_class = Types::SearchResourcesRequest
1242
+
1243
+ SearchResourcesResponse.add_member(:matching_resources, Shapes::ShapeRef.new(shape: __listOfMatchingResource, location_name: "matchingResources"))
1244
+ SearchResourcesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "nextToken"))
1245
+ SearchResourcesResponse.struct_class = Types::SearchResourcesResponse
1246
+
1247
+ SearchResourcesSimpleCriterion.add_member(:comparator, Shapes::ShapeRef.new(shape: SearchResourcesComparator, location_name: "comparator"))
1248
+ SearchResourcesSimpleCriterion.add_member(:key, Shapes::ShapeRef.new(shape: SearchResourcesSimpleCriterionKey, location_name: "key"))
1249
+ SearchResourcesSimpleCriterion.add_member(:values, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "values"))
1250
+ SearchResourcesSimpleCriterion.struct_class = Types::SearchResourcesSimpleCriterion
1251
+
1252
+ SearchResourcesSortCriteria.add_member(:attribute_name, Shapes::ShapeRef.new(shape: SearchResourcesSortAttributeName, location_name: "attributeName"))
1253
+ SearchResourcesSortCriteria.add_member(:order_by, Shapes::ShapeRef.new(shape: OrderBy, location_name: "orderBy"))
1254
+ SearchResourcesSortCriteria.struct_class = Types::SearchResourcesSortCriteria
1255
+
1256
+ SearchResourcesTagCriterion.add_member(:comparator, Shapes::ShapeRef.new(shape: SearchResourcesComparator, location_name: "comparator"))
1257
+ SearchResourcesTagCriterion.add_member(:tag_values, Shapes::ShapeRef.new(shape: __listOfSearchResourcesTagCriterionPair, location_name: "tagValues"))
1258
+ SearchResourcesTagCriterion.struct_class = Types::SearchResourcesTagCriterion
1259
+
1260
+ SearchResourcesTagCriterionPair.add_member(:key, Shapes::ShapeRef.new(shape: __string, location_name: "key"))
1261
+ SearchResourcesTagCriterionPair.add_member(:value, Shapes::ShapeRef.new(shape: __string, location_name: "value"))
1262
+ SearchResourcesTagCriterionPair.struct_class = Types::SearchResourcesTagCriterionPair
1263
+
1264
+ SecurityHubConfiguration.add_member(:publish_classification_findings, Shapes::ShapeRef.new(shape: __boolean, required: true, location_name: "publishClassificationFindings"))
1265
+ SecurityHubConfiguration.add_member(:publish_policy_findings, Shapes::ShapeRef.new(shape: __boolean, required: true, location_name: "publishPolicyFindings"))
1266
+ SecurityHubConfiguration.struct_class = Types::SecurityHubConfiguration
1267
+
1143
1268
  SensitiveData.member = Shapes::ShapeRef.new(shape: SensitiveDataItem)
1144
1269
 
1145
1270
  SensitiveDataItem.add_member(:category, Shapes::ShapeRef.new(shape: SensitiveDataItemCategory, location_name: "category"))
@@ -1178,6 +1303,11 @@ module Aws::Macie2
1178
1303
  Severity.add_member(:score, Shapes::ShapeRef.new(shape: __long, location_name: "score"))
1179
1304
  Severity.struct_class = Types::Severity
1180
1305
 
1306
+ SimpleCriterionForJob.add_member(:comparator, Shapes::ShapeRef.new(shape: JobComparator, location_name: "comparator"))
1307
+ SimpleCriterionForJob.add_member(:key, Shapes::ShapeRef.new(shape: SimpleCriterionKeyForJob, location_name: "key"))
1308
+ SimpleCriterionForJob.add_member(:values, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "values"))
1309
+ SimpleCriterionForJob.struct_class = Types::SimpleCriterionForJob
1310
+
1181
1311
  SimpleScopeTerm.add_member(:comparator, Shapes::ShapeRef.new(shape: JobComparator, location_name: "comparator"))
1182
1312
  SimpleScopeTerm.add_member(:key, Shapes::ShapeRef.new(shape: ScopeFilterKey, location_name: "key"))
1183
1313
  SimpleScopeTerm.add_member(:values, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "values"))
@@ -1191,6 +1321,14 @@ module Aws::Macie2
1191
1321
  Statistics.add_member(:number_of_runs, Shapes::ShapeRef.new(shape: __double, location_name: "numberOfRuns"))
1192
1322
  Statistics.struct_class = Types::Statistics
1193
1323
 
1324
+ TagCriterionForJob.add_member(:comparator, Shapes::ShapeRef.new(shape: JobComparator, location_name: "comparator"))
1325
+ TagCriterionForJob.add_member(:tag_values, Shapes::ShapeRef.new(shape: __listOfTagCriterionPairForJob, location_name: "tagValues"))
1326
+ TagCriterionForJob.struct_class = Types::TagCriterionForJob
1327
+
1328
+ TagCriterionPairForJob.add_member(:key, Shapes::ShapeRef.new(shape: __string, location_name: "key"))
1329
+ TagCriterionPairForJob.add_member(:value, Shapes::ShapeRef.new(shape: __string, location_name: "value"))
1330
+ TagCriterionPairForJob.struct_class = Types::TagCriterionPairForJob
1331
+
1194
1332
  TagMap.key = Shapes::ShapeRef.new(shape: __string)
1195
1333
  TagMap.value = Shapes::ShapeRef.new(shape: __string)
1196
1334
 
@@ -1246,6 +1384,7 @@ module Aws::Macie2
1246
1384
  UpdateFindingsFilterRequest.add_member(:id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "id"))
1247
1385
  UpdateFindingsFilterRequest.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "name"))
1248
1386
  UpdateFindingsFilterRequest.add_member(:position, Shapes::ShapeRef.new(shape: __integer, location_name: "position"))
1387
+ UpdateFindingsFilterRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: __string, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
1249
1388
  UpdateFindingsFilterRequest.struct_class = Types::UpdateFindingsFilterRequest
1250
1389
 
1251
1390
  UpdateFindingsFilterResponse.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "arn"))
@@ -1325,6 +1464,8 @@ module Aws::Macie2
1325
1464
 
1326
1465
  __listOfBucketMetadata.member = Shapes::ShapeRef.new(shape: BucketMetadata)
1327
1466
 
1467
+ __listOfCriteriaForJob.member = Shapes::ShapeRef.new(shape: CriteriaForJob)
1468
+
1328
1469
  __listOfCustomDataIdentifierSummary.member = Shapes::ShapeRef.new(shape: CustomDataIdentifierSummary)
1329
1470
 
1330
1471
  __listOfFinding.member = Shapes::ShapeRef.new(shape: Finding)
@@ -1345,10 +1486,18 @@ module Aws::Macie2
1345
1486
 
1346
1487
  __listOfListJobsFilterTerm.member = Shapes::ShapeRef.new(shape: ListJobsFilterTerm)
1347
1488
 
1489
+ __listOfMatchingResource.member = Shapes::ShapeRef.new(shape: MatchingResource)
1490
+
1348
1491
  __listOfMember.member = Shapes::ShapeRef.new(shape: Member)
1349
1492
 
1350
1493
  __listOfS3BucketDefinitionForJob.member = Shapes::ShapeRef.new(shape: S3BucketDefinitionForJob)
1351
1494
 
1495
+ __listOfSearchResourcesCriteria.member = Shapes::ShapeRef.new(shape: SearchResourcesCriteria)
1496
+
1497
+ __listOfSearchResourcesTagCriterionPair.member = Shapes::ShapeRef.new(shape: SearchResourcesTagCriterionPair)
1498
+
1499
+ __listOfTagCriterionPairForJob.member = Shapes::ShapeRef.new(shape: TagCriterionPairForJob)
1500
+
1352
1501
  __listOfTagValuePair.member = Shapes::ShapeRef.new(shape: TagValuePair)
1353
1502
 
1354
1503
  __listOfUnprocessedAccount.member = Shapes::ShapeRef.new(shape: UnprocessedAccount)
@@ -1837,6 +1986,21 @@ module Aws::Macie2
1837
1986
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1838
1987
  end)
1839
1988
 
1989
+ api.add_operation(:get_findings_publication_configuration, Seahorse::Model::Operation.new.tap do |o|
1990
+ o.name = "GetFindingsPublicationConfiguration"
1991
+ o.http_method = "GET"
1992
+ o.http_request_uri = "/findings-publication-configuration"
1993
+ o.input = Shapes::ShapeRef.new(shape: GetFindingsPublicationConfigurationRequest)
1994
+ o.output = Shapes::ShapeRef.new(shape: GetFindingsPublicationConfigurationResponse)
1995
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1996
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1997
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1998
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1999
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2000
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2001
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2002
+ end)
2003
+
1840
2004
  api.add_operation(:get_invitations_count, Seahorse::Model::Operation.new.tap do |o|
1841
2005
  o.name = "GetInvitationsCount"
1842
2006
  o.http_method = "GET"
@@ -2103,6 +2267,42 @@ module Aws::Macie2
2103
2267
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2104
2268
  end)
2105
2269
 
2270
+ api.add_operation(:put_findings_publication_configuration, Seahorse::Model::Operation.new.tap do |o|
2271
+ o.name = "PutFindingsPublicationConfiguration"
2272
+ o.http_method = "PUT"
2273
+ o.http_request_uri = "/findings-publication-configuration"
2274
+ o.input = Shapes::ShapeRef.new(shape: PutFindingsPublicationConfigurationRequest)
2275
+ o.output = Shapes::ShapeRef.new(shape: PutFindingsPublicationConfigurationResponse)
2276
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2277
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2278
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
2279
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2280
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2281
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2282
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2283
+ end)
2284
+
2285
+ api.add_operation(:search_resources, Seahorse::Model::Operation.new.tap do |o|
2286
+ o.name = "SearchResources"
2287
+ o.http_method = "POST"
2288
+ o.http_request_uri = "/datasources/search-resources"
2289
+ o.input = Shapes::ShapeRef.new(shape: SearchResourcesRequest)
2290
+ o.output = Shapes::ShapeRef.new(shape: SearchResourcesResponse)
2291
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2292
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2293
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
2294
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2295
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2296
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2297
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2298
+ o[:pager] = Aws::Pager.new(
2299
+ limit_key: "max_results",
2300
+ tokens: {
2301
+ "next_token" => "next_token"
2302
+ }
2303
+ )
2304
+ end)
2305
+
2106
2306
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
2107
2307
  o.name = "TagResource"
2108
2308
  o.http_method = "POST"
@@ -11,11 +11,12 @@ module Aws::Macie2
11
11
  module Types
12
12
 
13
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
+ # request, you have to specify the ID for the Amazon Web Services
15
+ # account that sent the invitation. Otherwise, a validation error
16
+ # occurs. To specify this ID, we recommend that you use the
17
+ # administratorAccountId property instead of the masterAccount property.
18
+ # The masterAccount property has been deprecated and is retained only
19
+ # for backward compatibility.
19
20
  #
20
21
  # @note When making an API call, you may pass AcceptInvitationRequest
21
22
  # data as a hash:
@@ -81,7 +82,7 @@ module Aws::Macie2
81
82
  include Aws::Structure
82
83
  end
83
84
 
84
- # Specifies details for an account to associate with an Amazon Macie
85
+ # Specifies the details of an account to associate with an Amazon Macie
85
86
  # administrator account.
86
87
  #
87
88
  # @note When making an API call, you may pass AccountDetail
@@ -131,14 +132,15 @@ module Aws::Macie2
131
132
  end
132
133
 
133
134
  # Provides information about the delegated Amazon Macie administrator
134
- # account for an AWS organization.
135
+ # account for an Amazon Web Services organization.
135
136
  #
136
137
  # @!attribute [rw] account_id
137
138
  # @return [String]
138
139
  #
139
140
  # @!attribute [rw] status
140
141
  # The current status of an account as the delegated Amazon Macie
141
- # administrator account for an AWS organization. Possible values are:
142
+ # administrator account for an Amazon Web Services organization.
143
+ # Possible values are:
142
144
  # @return [String]
143
145
  #
144
146
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/AdminAccount AWS API Documentation
@@ -178,8 +180,8 @@ module Aws::Macie2
178
180
 
179
181
  # Provides information about an identity that performed an action on an
180
182
  # affected resource by using temporary security credentials. The
181
- # credentials were obtained using the AssumeRole operation of the AWS
182
- # Security Token Service (AWS STS) API.
183
+ # credentials were obtained using the AssumeRole operation of the
184
+ # Security Token Service (STS) API.
183
185
  #
184
186
  # @!attribute [rw] access_key_id
185
187
  # @return [String]
@@ -210,9 +212,10 @@ module Aws::Macie2
210
212
  include Aws::Structure
211
213
  end
212
214
 
213
- # Provides information about an AWS account and entity that performed an
214
- # action on an affected resource. The action was performed using the
215
- # credentials for an AWS account other than your own account.
215
+ # Provides information about an Amazon Web Services account and entity
216
+ # that performed an action on an affected resource. The action was
217
+ # performed using the credentials for an Amazon Web Services account
218
+ # other than your own account.
216
219
  #
217
220
  # @!attribute [rw] account_id
218
221
  # @return [String]
@@ -229,8 +232,8 @@ module Aws::Macie2
229
232
  include Aws::Structure
230
233
  end
231
234
 
232
- # Provides information about an AWS service that performed an action on
233
- # an affected resource.
235
+ # Provides information about an Amazon Web Service that performed an
236
+ # action on an affected resource.
234
237
  #
235
238
  # @!attribute [rw] invoked_by
236
239
  # @return [String]
@@ -376,7 +379,13 @@ module Aws::Macie2
376
379
 
377
380
  # Provides information about the number of S3 buckets that use certain
378
381
  # types of server-side encryption by default or don't encrypt new
379
- # objects by default.
382
+ # objects by default. For detailed information about these settings, see
383
+ # [Setting default server-side encryption behavior for Amazon S3
384
+ # buckets][1] in the *Amazon Simple Storage Service User Guide*.
385
+ #
386
+ #
387
+ #
388
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-encryption.html
380
389
  #
381
390
  # @!attribute [rw] kms_managed
382
391
  # @return [Integer]
@@ -387,18 +396,22 @@ module Aws::Macie2
387
396
  # @!attribute [rw] unencrypted
388
397
  # @return [Integer]
389
398
  #
399
+ # @!attribute [rw] unknown
400
+ # @return [Integer]
401
+ #
390
402
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/BucketCountByEncryptionType AWS API Documentation
391
403
  #
392
404
  class BucketCountByEncryptionType < Struct.new(
393
405
  :kms_managed,
394
406
  :s3_managed,
395
- :unencrypted)
407
+ :unencrypted,
408
+ :unknown)
396
409
  SENSITIVE = []
397
410
  include Aws::Structure
398
411
  end
399
412
 
400
- # Provides information about the number of S3 buckets that are shared
401
- # with other AWS accounts.
413
+ # Provides information about the number of S3 buckets that are or
414
+ # aren't shared with other Amazon Web Services accounts.
402
415
  #
403
416
  # @!attribute [rw] external
404
417
  # @return [Integer]
@@ -423,6 +436,29 @@ module Aws::Macie2
423
436
  include Aws::Structure
424
437
  end
425
438
 
439
+ # Provides information about the number of S3 buckets whose bucket
440
+ # policies do or don't require server-side encryption of objects when
441
+ # objects are uploaded to the buckets.
442
+ #
443
+ # @!attribute [rw] allows_unencrypted_object_uploads
444
+ # @return [Integer]
445
+ #
446
+ # @!attribute [rw] denies_unencrypted_object_uploads
447
+ # @return [Integer]
448
+ #
449
+ # @!attribute [rw] unknown
450
+ # @return [Integer]
451
+ #
452
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/BucketCountPolicyAllowsUnencryptedObjectUploads AWS API Documentation
453
+ #
454
+ class BucketCountPolicyAllowsUnencryptedObjectUploads < Struct.new(
455
+ :allows_unencrypted_object_uploads,
456
+ :denies_unencrypted_object_uploads,
457
+ :unknown)
458
+ SENSITIVE = []
459
+ include Aws::Structure
460
+ end
461
+
426
462
  # Specifies the operator to use in a property-based condition that
427
463
  # filters the results of a query for information about S3 buckets.
428
464
  #
@@ -495,7 +531,7 @@ module Aws::Macie2
495
531
  # @return [Types::BlockPublicAccess]
496
532
  #
497
533
  # @!attribute [rw] bucket_policy
498
- # Provides information about the permissions settings of a bucket
534
+ # Provides information about the permissions settings of the bucket
499
535
  # policy for an S3 bucket.
500
536
  # @return [Types::BucketPolicy]
501
537
  #
@@ -515,6 +551,9 @@ module Aws::Macie2
515
551
  # @!attribute [rw] account_id
516
552
  # @return [String]
517
553
  #
554
+ # @!attribute [rw] allows_unencrypted_object_uploads
555
+ # @return [String]
556
+ #
518
557
  # @!attribute [rw] bucket_arn
519
558
  # @return [String]
520
559
  #
@@ -558,8 +597,8 @@ module Aws::Macie2
558
597
  #
559
598
  # @!attribute [rw] replication_details
560
599
  # Provides information about settings that define whether one or more
561
- # objects in an S3 bucket are replicated to S3 buckets for other AWS
562
- # accounts and, if so, which accounts.
600
+ # objects in an S3 bucket are replicated to S3 buckets for other
601
+ # Amazon Web Services accounts and, if so, which accounts.
563
602
  # @return [Types::ReplicationDetails]
564
603
  #
565
604
  # @!attribute [rw] server_side_encryption
@@ -589,21 +628,23 @@ module Aws::Macie2
589
628
  # @!attribute [rw] unclassifiable_object_count
590
629
  # Provides information about the total storage size (in bytes) or
591
630
  # number of objects that Amazon Macie can't analyze in one or more S3
592
- # buckets. In a BucketMetadata object, this data is for a specific
593
- # bucket. In a GetBucketStatisticsResponse object, this data is
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.
631
+ # buckets. In a BucketMetadata or MatchingBucket object, this data is
632
+ # for a specific bucket. In a GetBucketStatisticsResponse object, this
633
+ # data is aggregated for all the buckets in the query results. If
634
+ # versioning is enabled for a bucket, total storage size values are
635
+ # based on the size of the latest version of each applicable object in
636
+ # the bucket.
597
637
  # @return [Types::ObjectLevelStatistics]
598
638
  #
599
639
  # @!attribute [rw] unclassifiable_object_size_in_bytes
600
640
  # Provides information about the total storage size (in bytes) or
601
641
  # number of objects that Amazon Macie can't analyze in one or more S3
602
- # buckets. In a BucketMetadata object, this data is for a specific
603
- # bucket. In a GetBucketStatisticsResponse object, this data is
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.
642
+ # buckets. In a BucketMetadata or MatchingBucket object, this data is
643
+ # for a specific bucket. In a GetBucketStatisticsResponse object, this
644
+ # data is aggregated for all the buckets in the query results. If
645
+ # versioning is enabled for a bucket, total storage size values are
646
+ # based on the size of the latest version of each applicable object in
647
+ # the bucket.
607
648
  # @return [Types::ObjectLevelStatistics]
608
649
  #
609
650
  # @!attribute [rw] versioning
@@ -613,6 +654,7 @@ module Aws::Macie2
613
654
  #
614
655
  class BucketMetadata < Struct.new(
615
656
  :account_id,
657
+ :allows_unencrypted_object_uploads,
616
658
  :bucket_arn,
617
659
  :bucket_created_at,
618
660
  :bucket_name,
@@ -659,8 +701,8 @@ module Aws::Macie2
659
701
  include Aws::Structure
660
702
  end
661
703
 
662
- # Provides information about the permissions settings of a bucket policy
663
- # for an S3 bucket.
704
+ # Provides information about the permissions settings of the bucket
705
+ # policy for an S3 bucket.
664
706
  #
665
707
  # @!attribute [rw] allows_public_read_access
666
708
  # @return [Boolean]
@@ -931,7 +973,7 @@ module Aws::Macie2
931
973
  # {
932
974
  # simple_scope_term: {
933
975
  # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
934
- # key: "BUCKET_CREATION_DATE", # accepts BUCKET_CREATION_DATE, OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, TAG, OBJECT_KEY
976
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
935
977
  # values: ["__string"],
936
978
  # },
937
979
  # tag_scope_term: {
@@ -953,7 +995,7 @@ module Aws::Macie2
953
995
  # {
954
996
  # simple_scope_term: {
955
997
  # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
956
- # key: "BUCKET_CREATION_DATE", # accepts BUCKET_CREATION_DATE, OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, TAG, OBJECT_KEY
998
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
957
999
  # values: ["__string"],
958
1000
  # },
959
1001
  # tag_scope_term: {
@@ -971,6 +1013,48 @@ module Aws::Macie2
971
1013
  # ],
972
1014
  # },
973
1015
  # },
1016
+ # bucket_criteria: {
1017
+ # excludes: {
1018
+ # and: [
1019
+ # {
1020
+ # simple_criterion: {
1021
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1022
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
1023
+ # values: ["__string"],
1024
+ # },
1025
+ # tag_criterion: {
1026
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1027
+ # tag_values: [
1028
+ # {
1029
+ # key: "__string",
1030
+ # value: "__string",
1031
+ # },
1032
+ # ],
1033
+ # },
1034
+ # },
1035
+ # ],
1036
+ # },
1037
+ # includes: {
1038
+ # and: [
1039
+ # {
1040
+ # simple_criterion: {
1041
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1042
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
1043
+ # values: ["__string"],
1044
+ # },
1045
+ # tag_criterion: {
1046
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1047
+ # tag_values: [
1048
+ # {
1049
+ # key: "__string",
1050
+ # value: "__string",
1051
+ # },
1052
+ # ],
1053
+ # },
1054
+ # },
1055
+ # ],
1056
+ # },
1057
+ # },
974
1058
  # },
975
1059
  # sampling_percentage: 1,
976
1060
  # schedule_frequency: {
@@ -1011,7 +1095,12 @@ module Aws::Macie2
1011
1095
  #
1012
1096
  # @!attribute [rw] s3_job_definition
1013
1097
  # Specifies which S3 buckets contain the objects that a classification
1014
- # job analyzes, and the scope of that analysis.
1098
+ # job analyzes, and the scope of that analysis. The bucket
1099
+ # specification can be static (bucketDefinitions) or dynamic
1100
+ # (bucketCriteria). If it's static, the job analyzes objects in the
1101
+ # same predefined set of buckets each time the job runs. If it's
1102
+ # dynamic, the job analyzes objects in any buckets that match the
1103
+ # specified criteria each time the job starts to run.
1015
1104
  # @return [Types::S3JobDefinition]
1016
1105
  #
1017
1106
  # @!attribute [rw] sampling_percentage
@@ -1278,8 +1367,8 @@ module Aws::Macie2
1278
1367
  include Aws::Structure
1279
1368
  end
1280
1369
 
1281
- # Specifies an AWS account to associate with an Amazon Macie
1282
- # administrator account.
1370
+ # Specifies an Amazon Web Services account to associate with an Amazon
1371
+ # Macie administrator account.
1283
1372
  #
1284
1373
  # @note When making an API call, you may pass CreateMemberRequest
1285
1374
  # data as a hash:
@@ -1295,8 +1384,8 @@ module Aws::Macie2
1295
1384
  # }
1296
1385
  #
1297
1386
  # @!attribute [rw] account
1298
- # Specifies details for an account to associate with an Amazon Macie
1299
- # administrator account.
1387
+ # Specifies the details of an account to associate with an Amazon
1388
+ # Macie administrator account.
1300
1389
  # @return [Types::AccountDetail]
1301
1390
  #
1302
1391
  # @!attribute [rw] tags
@@ -1353,6 +1442,87 @@ module Aws::Macie2
1353
1442
  #
1354
1443
  class CreateSampleFindingsResponse < Aws::EmptyStructure; end
1355
1444
 
1445
+ # Specifies one or more property- and tag-based conditions that define
1446
+ # criteria for including or excluding S3 buckets from a classification
1447
+ # job.
1448
+ #
1449
+ # @note When making an API call, you may pass CriteriaBlockForJob
1450
+ # data as a hash:
1451
+ #
1452
+ # {
1453
+ # and: [
1454
+ # {
1455
+ # simple_criterion: {
1456
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1457
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
1458
+ # values: ["__string"],
1459
+ # },
1460
+ # tag_criterion: {
1461
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1462
+ # tag_values: [
1463
+ # {
1464
+ # key: "__string",
1465
+ # value: "__string",
1466
+ # },
1467
+ # ],
1468
+ # },
1469
+ # },
1470
+ # ],
1471
+ # }
1472
+ #
1473
+ # @!attribute [rw] and
1474
+ # @return [Array<Types::CriteriaForJob>]
1475
+ #
1476
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CriteriaBlockForJob AWS API Documentation
1477
+ #
1478
+ class CriteriaBlockForJob < Struct.new(
1479
+ :and)
1480
+ SENSITIVE = []
1481
+ include Aws::Structure
1482
+ end
1483
+
1484
+ # Specifies a property- or tag-based condition that defines criteria for
1485
+ # including or excluding S3 buckets from a classification job.
1486
+ #
1487
+ # @note When making an API call, you may pass CriteriaForJob
1488
+ # data as a hash:
1489
+ #
1490
+ # {
1491
+ # simple_criterion: {
1492
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1493
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
1494
+ # values: ["__string"],
1495
+ # },
1496
+ # tag_criterion: {
1497
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1498
+ # tag_values: [
1499
+ # {
1500
+ # key: "__string",
1501
+ # value: "__string",
1502
+ # },
1503
+ # ],
1504
+ # },
1505
+ # }
1506
+ #
1507
+ # @!attribute [rw] simple_criterion
1508
+ # Specifies a property-based condition that determines whether an S3
1509
+ # bucket is included or excluded from a classification job.
1510
+ # @return [Types::SimpleCriterionForJob]
1511
+ #
1512
+ # @!attribute [rw] tag_criterion
1513
+ # Specifies a tag-based condition that determines whether an S3 bucket
1514
+ # is included or excluded from a classification job.
1515
+ # @return [Types::TagCriterionForJob]
1516
+ #
1517
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CriteriaForJob AWS API Documentation
1518
+ #
1519
+ class CriteriaForJob < Struct.new(
1520
+ :simple_criterion,
1521
+ :tag_criterion)
1522
+ SENSITIVE = []
1523
+ include Aws::Structure
1524
+ end
1525
+
1356
1526
  # Specifies the operator to use in a property-based condition that
1357
1527
  # filters the results of a query for findings. For detailed information
1358
1528
  # and examples of each operator, see [Fundamentals of filtering
@@ -1475,9 +1645,9 @@ module Aws::Macie2
1475
1645
  # @return [String]
1476
1646
  #
1477
1647
  # @!attribute [rw] occurrences
1478
- # Provides the location of 1-15 occurrences of sensitive data that was
1479
- # detected by managed data identifiers or a custom data identifier and
1480
- # produced a sensitive data finding.
1648
+ # Specifies the location of 1-15 occurrences of sensitive data that
1649
+ # was detected by managed data identifiers or a custom data identifier
1650
+ # and produced a sensitive data finding.
1481
1651
  # @return [Types::Occurrences]
1482
1652
  #
1483
1653
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CustomDetection AWS API Documentation
@@ -1543,9 +1713,9 @@ module Aws::Macie2
1543
1713
  # @return [Integer]
1544
1714
  #
1545
1715
  # @!attribute [rw] occurrences
1546
- # Provides the location of 1-15 occurrences of sensitive data that was
1547
- # detected by managed data identifiers or a custom data identifier and
1548
- # produced a sensitive data finding.
1716
+ # Specifies the location of 1-15 occurrences of sensitive data that
1717
+ # was detected by managed data identifiers or a custom data identifier
1718
+ # and produced a sensitive data finding.
1549
1719
  # @return [Types::Occurrences]
1550
1720
  #
1551
1721
  # @!attribute [rw] type
@@ -1789,10 +1959,13 @@ module Aws::Macie2
1789
1959
  #
1790
1960
  # @!attribute [rw] last_run_error_status
1791
1961
  # Specifies whether any account- or bucket-level access errors
1792
- # occurred when a classification job ran. For example, the job is
1793
- # configured to analyze data for a member account that was suspended,
1794
- # or the job is configured to analyze an S3 bucket that Amazon Macie
1795
- # isn't allowed to access.
1962
+ # occurred when a classification job ran. For information about using
1963
+ # logging data to investigate these errors, see [Monitoring sensitive
1964
+ # data discovery jobs][1] in the *Amazon Macie User Guide*.
1965
+ #
1966
+ #
1967
+ #
1968
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/discovery-jobs-monitor-cw-logs.html
1796
1969
  # @return [Types::LastRunErrorStatus]
1797
1970
  #
1798
1971
  # @!attribute [rw] last_run_time
@@ -1803,7 +1976,12 @@ module Aws::Macie2
1803
1976
  #
1804
1977
  # @!attribute [rw] s3_job_definition
1805
1978
  # Specifies which S3 buckets contain the objects that a classification
1806
- # job analyzes, and the scope of that analysis.
1979
+ # job analyzes, and the scope of that analysis. The bucket
1980
+ # specification can be static (bucketDefinitions) or dynamic
1981
+ # (bucketCriteria). If it's static, the job analyzes objects in the
1982
+ # same predefined set of buckets each time the job runs. If it's
1983
+ # dynamic, the job analyzes objects in any buckets that match the
1984
+ # specified criteria each time the job starts to run.
1807
1985
  # @return [Types::S3JobDefinition]
1808
1986
  #
1809
1987
  # @!attribute [rw] sampling_percentage
@@ -1866,7 +2044,7 @@ module Aws::Macie2
1866
2044
  class DescribeOrganizationConfigurationRequest < Aws::EmptyStructure; end
1867
2045
 
1868
2046
  # Provides information about the Amazon Macie configuration settings for
1869
- # an AWS organization.
2047
+ # an Amazon Web Services organization.
1870
2048
  #
1871
2049
  # @!attribute [rw] auto_enable
1872
2050
  # @return [Boolean]
@@ -1997,9 +2175,15 @@ module Aws::Macie2
1997
2175
  #
1998
2176
  # @!attribute [rw] finding_publishing_frequency
1999
2177
  # The frequency with which Amazon Macie publishes updates to policy
2000
- # findings for an account. This includes publishing updates to AWS
2178
+ # findings for an account. This includes publishing updates to
2001
2179
  # Security Hub and Amazon EventBridge (formerly called Amazon
2002
- # CloudWatch Events). Valid values are:
2180
+ # CloudWatch Events). For more information, see [Monitoring and
2181
+ # processing findings][1] in the *Amazon Macie User Guide*. Valid
2182
+ # values are:
2183
+ #
2184
+ #
2185
+ #
2186
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/findings-monitor.html
2003
2187
  # @return [String]
2004
2188
  #
2005
2189
  # @!attribute [rw] status
@@ -2021,8 +2205,9 @@ module Aws::Macie2
2021
2205
  class EnableMacieResponse < Aws::EmptyStructure; end
2022
2206
 
2023
2207
  # Specifies an account to designate as a delegated Amazon Macie
2024
- # administrator account for an AWS organization. To submit this request,
2025
- # you must be a user of the management account for the AWS organization.
2208
+ # administrator account for an Amazon Web Services organization. To
2209
+ # submit this request, you must be a user of the management account for
2210
+ # the Amazon Web Services organization.
2026
2211
  #
2027
2212
  # @note When making an API call, you may pass EnableOrganizationAdminAccountRequest
2028
2213
  # data as a hash:
@@ -2056,7 +2241,7 @@ module Aws::Macie2
2056
2241
  # Provides information about an identity that performed an action on an
2057
2242
  # affected resource by using temporary security credentials. The
2058
2243
  # credentials were obtained using the GetFederationToken operation of
2059
- # the AWS Security Token Service (AWS STS) API.
2244
+ # the Security Token Service (STS) API.
2060
2245
  #
2061
2246
  # @!attribute [rw] access_key_id
2062
2247
  # @return [String]
@@ -2396,12 +2581,24 @@ module Aws::Macie2
2396
2581
  # @!attribute [rw] bucket_count_by_encryption_type
2397
2582
  # Provides information about the number of S3 buckets that use certain
2398
2583
  # types of server-side encryption by default or don't encrypt new
2399
- # objects by default.
2584
+ # objects by default. For detailed information about these settings,
2585
+ # see [Setting default server-side encryption behavior for Amazon S3
2586
+ # buckets][1] in the *Amazon Simple Storage Service User Guide*.
2587
+ #
2588
+ #
2589
+ #
2590
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-encryption.html
2400
2591
  # @return [Types::BucketCountByEncryptionType]
2401
2592
  #
2593
+ # @!attribute [rw] bucket_count_by_object_encryption_requirement
2594
+ # Provides information about the number of S3 buckets whose bucket
2595
+ # policies do or don't require server-side encryption of objects when
2596
+ # objects are uploaded to the buckets.
2597
+ # @return [Types::BucketCountPolicyAllowsUnencryptedObjectUploads]
2598
+ #
2402
2599
  # @!attribute [rw] bucket_count_by_shared_access_type
2403
- # Provides information about the number of S3 buckets that are shared
2404
- # with other AWS accounts.
2600
+ # Provides information about the number of S3 buckets that are or
2601
+ # aren't shared with other Amazon Web Services accounts.
2405
2602
  # @return [Types::BucketCountBySharedAccessType]
2406
2603
  #
2407
2604
  # @!attribute [rw] classifiable_object_count
@@ -2425,21 +2622,23 @@ module Aws::Macie2
2425
2622
  # @!attribute [rw] unclassifiable_object_count
2426
2623
  # Provides information about the total storage size (in bytes) or
2427
2624
  # number of objects that Amazon Macie can't analyze in one or more S3
2428
- # buckets. In a BucketMetadata object, this data is for a specific
2429
- # bucket. In a GetBucketStatisticsResponse object, this data is
2430
- # aggregated for all the buckets in the query results. If versioning
2431
- # is enabled for a bucket, total storage size values are based on the
2432
- # size of the latest version of each applicable object in the bucket.
2625
+ # buckets. In a BucketMetadata or MatchingBucket object, this data is
2626
+ # for a specific bucket. In a GetBucketStatisticsResponse object, this
2627
+ # data is aggregated for all the buckets in the query results. If
2628
+ # versioning is enabled for a bucket, total storage size values are
2629
+ # based on the size of the latest version of each applicable object in
2630
+ # the bucket.
2433
2631
  # @return [Types::ObjectLevelStatistics]
2434
2632
  #
2435
2633
  # @!attribute [rw] unclassifiable_object_size_in_bytes
2436
2634
  # Provides information about the total storage size (in bytes) or
2437
2635
  # number of objects that Amazon Macie can't analyze in one or more S3
2438
- # buckets. In a BucketMetadata object, this data is for a specific
2439
- # bucket. In a GetBucketStatisticsResponse object, this data is
2440
- # aggregated for all the buckets in the query results. If versioning
2441
- # is enabled for a bucket, total storage size values are based on the
2442
- # size of the latest version of each applicable object in the bucket.
2636
+ # buckets. In a BucketMetadata or MatchingBucket object, this data is
2637
+ # for a specific bucket. In a GetBucketStatisticsResponse object, this
2638
+ # data is aggregated for all the buckets in the query results. If
2639
+ # versioning is enabled for a bucket, total storage size values are
2640
+ # based on the size of the latest version of each applicable object in
2641
+ # the bucket.
2443
2642
  # @return [Types::ObjectLevelStatistics]
2444
2643
  #
2445
2644
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetBucketStatisticsResponse AWS API Documentation
@@ -2448,6 +2647,7 @@ module Aws::Macie2
2448
2647
  :bucket_count,
2449
2648
  :bucket_count_by_effective_permission,
2450
2649
  :bucket_count_by_encryption_type,
2650
+ :bucket_count_by_object_encryption_requirement,
2451
2651
  :bucket_count_by_shared_access_type,
2452
2652
  :classifiable_object_count,
2453
2653
  :classifiable_size_in_bytes,
@@ -2698,6 +2898,34 @@ module Aws::Macie2
2698
2898
  include Aws::Structure
2699
2899
  end
2700
2900
 
2901
+ # @api private
2902
+ #
2903
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetFindingsPublicationConfigurationRequest AWS API Documentation
2904
+ #
2905
+ class GetFindingsPublicationConfigurationRequest < Aws::EmptyStructure; end
2906
+
2907
+ # Provides information about the current configuration settings for
2908
+ # publishing findings to Security Hub automatically.
2909
+ #
2910
+ # @!attribute [rw] security_hub_configuration
2911
+ # Specifies configuration settings that determine which findings are
2912
+ # published to Security Hub automatically. For information about how
2913
+ # Macie publishes findings to Security Hub, see [Amazon Macie
2914
+ # integration with Security Hub][1] in the *Amazon Macie User Guide*.
2915
+ #
2916
+ #
2917
+ #
2918
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/securityhub-integration.html
2919
+ # @return [Types::SecurityHubConfiguration]
2920
+ #
2921
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetFindingsPublicationConfigurationResponse AWS API Documentation
2922
+ #
2923
+ class GetFindingsPublicationConfigurationResponse < Struct.new(
2924
+ :security_hub_configuration)
2925
+ SENSITIVE = []
2926
+ include Aws::Structure
2927
+ end
2928
+
2701
2929
  # Specifies one or more findings to retrieve.
2702
2930
  #
2703
2931
  # @note When making an API call, you may pass GetFindingsRequest
@@ -2776,9 +3004,15 @@ module Aws::Macie2
2776
3004
  #
2777
3005
  # @!attribute [rw] finding_publishing_frequency
2778
3006
  # The frequency with which Amazon Macie publishes updates to policy
2779
- # findings for an account. This includes publishing updates to AWS
3007
+ # findings for an account. This includes publishing updates to
2780
3008
  # Security Hub and Amazon EventBridge (formerly called Amazon
2781
- # CloudWatch Events). Valid values are:
3009
+ # CloudWatch Events). For more information, see [Monitoring and
3010
+ # processing findings][1] in the *Amazon Macie User Guide*. Valid
3011
+ # values are:
3012
+ #
3013
+ #
3014
+ #
3015
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/findings-monitor.html
2782
3016
  # @return [String]
2783
3017
  #
2784
3018
  # @!attribute [rw] service_role
@@ -3032,7 +3266,7 @@ module Aws::Macie2
3032
3266
  include Aws::Structure
3033
3267
  end
3034
3268
 
3035
- # Provides information about an AWS Identity and Access Management (IAM)
3269
+ # Provides information about an Identity and Access Management (IAM)
3036
3270
  # user who performed an action on an affected resource.
3037
3271
  #
3038
3272
  # @!attribute [rw] account_id
@@ -3282,7 +3516,9 @@ module Aws::Macie2
3282
3516
  end
3283
3517
 
3284
3518
  # Specifies a property- or tag-based condition that defines criteria for
3285
- # including or excluding objects from a classification job.
3519
+ # including or excluding S3 objects from a classification job. A
3520
+ # JobScopeTerm object can contain only one simpleScopeTerm object or one
3521
+ # tagScopeTerm object.
3286
3522
  #
3287
3523
  # @note When making an API call, you may pass JobScopeTerm
3288
3524
  # data as a hash:
@@ -3290,7 +3526,7 @@ module Aws::Macie2
3290
3526
  # {
3291
3527
  # simple_scope_term: {
3292
3528
  # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
3293
- # key: "BUCKET_CREATION_DATE", # accepts BUCKET_CREATION_DATE, OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, TAG, OBJECT_KEY
3529
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
3294
3530
  # values: ["__string"],
3295
3531
  # },
3296
3532
  # tag_scope_term: {
@@ -3307,13 +3543,13 @@ module Aws::Macie2
3307
3543
  # }
3308
3544
  #
3309
3545
  # @!attribute [rw] simple_scope_term
3310
- # Specifies a property-based condition that determines whether an
3546
+ # Specifies a property-based condition that determines whether an S3
3311
3547
  # object is included or excluded from a classification job.
3312
3548
  # @return [Types::SimpleScopeTerm]
3313
3549
  #
3314
3550
  # @!attribute [rw] tag_scope_term
3315
- # Specifies a tag-based condition that determines whether an object is
3316
- # included or excluded from a classification job.
3551
+ # Specifies a tag-based condition that determines whether an S3 object
3552
+ # is included or excluded from a classification job.
3317
3553
  # @return [Types::TagScopeTerm]
3318
3554
  #
3319
3555
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/JobScopeTerm AWS API Documentation
@@ -3326,9 +3562,8 @@ module Aws::Macie2
3326
3562
  end
3327
3563
 
3328
3564
  # Specifies one or more property- and tag-based conditions that define
3329
- # criteria for including or excluding objects from a classification job.
3330
- # If you specify more than one condition, Amazon Macie uses an AND
3331
- # operator to join the conditions.
3565
+ # criteria for including or excluding S3 objects from a classification
3566
+ # job.
3332
3567
  #
3333
3568
  # @note When making an API call, you may pass JobScopingBlock
3334
3569
  # data as a hash:
@@ -3338,7 +3573,7 @@ module Aws::Macie2
3338
3573
  # {
3339
3574
  # simple_scope_term: {
3340
3575
  # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
3341
- # key: "BUCKET_CREATION_DATE", # accepts BUCKET_CREATION_DATE, OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, TAG, OBJECT_KEY
3576
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
3342
3577
  # values: ["__string"],
3343
3578
  # },
3344
3579
  # tag_scope_term: {
@@ -3389,10 +3624,13 @@ module Aws::Macie2
3389
3624
  #
3390
3625
  # @!attribute [rw] last_run_error_status
3391
3626
  # Specifies whether any account- or bucket-level access errors
3392
- # occurred when a classification job ran. For example, the job is
3393
- # configured to analyze data for a member account that was suspended,
3394
- # or the job is configured to analyze an S3 bucket that Amazon Macie
3395
- # isn't allowed to access.
3627
+ # occurred when a classification job ran. For information about using
3628
+ # logging data to investigate these errors, see [Monitoring sensitive
3629
+ # data discovery jobs][1] in the *Amazon Macie User Guide*.
3630
+ #
3631
+ #
3632
+ #
3633
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/discovery-jobs-monitor-cw-logs.html
3396
3634
  # @return [Types::LastRunErrorStatus]
3397
3635
  #
3398
3636
  # @!attribute [rw] name
@@ -3409,6 +3647,12 @@ module Aws::Macie2
3409
3647
  # status of RUNNING.
3410
3648
  # @return [Types::UserPausedDetails]
3411
3649
  #
3650
+ # @!attribute [rw] bucket_criteria
3651
+ # Specifies property- and tag-based conditions that define criteria
3652
+ # for including or excluding S3 buckets from a classification job.
3653
+ # Exclude conditions take precedence over include conditions.
3654
+ # @return [Types::S3BucketCriteriaForJob]
3655
+ #
3412
3656
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/JobSummary AWS API Documentation
3413
3657
  #
3414
3658
  class JobSummary < Struct.new(
@@ -3419,7 +3663,8 @@ module Aws::Macie2
3419
3663
  :job_type,
3420
3664
  :last_run_error_status,
3421
3665
  :name,
3422
- :user_paused_details)
3666
+ :user_paused_details,
3667
+ :bucket_criteria)
3423
3668
  SENSITIVE = []
3424
3669
  include Aws::Structure
3425
3670
  end
@@ -3444,10 +3689,13 @@ module Aws::Macie2
3444
3689
  end
3445
3690
 
3446
3691
  # Specifies whether any account- or bucket-level access errors occurred
3447
- # when a classification job ran. For example, the job is configured to
3448
- # analyze data for a member account that was suspended, or the job is
3449
- # configured to analyze an S3 bucket that Amazon Macie isn't allowed to
3450
- # access.
3692
+ # when a classification job ran. For information about using logging
3693
+ # data to investigate these errors, see [Monitoring sensitive data
3694
+ # discovery jobs][1] in the *Amazon Macie User Guide*.
3695
+ #
3696
+ #
3697
+ #
3698
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/discovery-jobs-monitor-cw-logs.html
3451
3699
  #
3452
3700
  # @!attribute [rw] code
3453
3701
  # Specifies whether any account- or bucket-level access errors
@@ -3906,7 +4154,7 @@ module Aws::Macie2
3906
4154
  end
3907
4155
 
3908
4156
  # Provides information about the delegated Amazon Macie administrator
3909
- # accounts for an AWS organization.
4157
+ # accounts for an Amazon Web Services organization.
3910
4158
  #
3911
4159
  # @!attribute [rw] admin_accounts
3912
4160
  # @return [Array<Types::AdminAccount>]
@@ -3959,6 +4207,98 @@ module Aws::Macie2
3959
4207
  include Aws::Structure
3960
4208
  end
3961
4209
 
4210
+ # Provides statistical data and other information about an S3 bucket
4211
+ # that Amazon Macie monitors and analyzes.
4212
+ #
4213
+ # @!attribute [rw] account_id
4214
+ # @return [String]
4215
+ #
4216
+ # @!attribute [rw] bucket_name
4217
+ # @return [String]
4218
+ #
4219
+ # @!attribute [rw] classifiable_object_count
4220
+ # @return [Integer]
4221
+ #
4222
+ # @!attribute [rw] classifiable_size_in_bytes
4223
+ # @return [Integer]
4224
+ #
4225
+ # @!attribute [rw] job_details
4226
+ # Specifies whether any one-time or recurring classification jobs are
4227
+ # configured to analyze data in an S3 bucket, and, if so, the details
4228
+ # of the job that ran most recently.
4229
+ # @return [Types::JobDetails]
4230
+ #
4231
+ # @!attribute [rw] object_count
4232
+ # @return [Integer]
4233
+ #
4234
+ # @!attribute [rw] object_count_by_encryption_type
4235
+ # Provides information about the number of objects that are in an S3
4236
+ # bucket and use certain types of server-side encryption, use
4237
+ # client-side encryption, or aren't encrypted.
4238
+ # @return [Types::ObjectCountByEncryptionType]
4239
+ #
4240
+ # @!attribute [rw] size_in_bytes
4241
+ # @return [Integer]
4242
+ #
4243
+ # @!attribute [rw] size_in_bytes_compressed
4244
+ # @return [Integer]
4245
+ #
4246
+ # @!attribute [rw] unclassifiable_object_count
4247
+ # Provides information about the total storage size (in bytes) or
4248
+ # number of objects that Amazon Macie can't analyze in one or more S3
4249
+ # buckets. In a BucketMetadata or MatchingBucket object, this data is
4250
+ # for a specific bucket. In a GetBucketStatisticsResponse object, this
4251
+ # data is aggregated for all the buckets in the query results. If
4252
+ # versioning is enabled for a bucket, total storage size values are
4253
+ # based on the size of the latest version of each applicable object in
4254
+ # the bucket.
4255
+ # @return [Types::ObjectLevelStatistics]
4256
+ #
4257
+ # @!attribute [rw] unclassifiable_object_size_in_bytes
4258
+ # Provides information about the total storage size (in bytes) or
4259
+ # number of objects that Amazon Macie can't analyze in one or more S3
4260
+ # buckets. In a BucketMetadata or MatchingBucket object, this data is
4261
+ # for a specific bucket. In a GetBucketStatisticsResponse object, this
4262
+ # data is aggregated for all the buckets in the query results. If
4263
+ # versioning is enabled for a bucket, total storage size values are
4264
+ # based on the size of the latest version of each applicable object in
4265
+ # the bucket.
4266
+ # @return [Types::ObjectLevelStatistics]
4267
+ #
4268
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/MatchingBucket AWS API Documentation
4269
+ #
4270
+ class MatchingBucket < Struct.new(
4271
+ :account_id,
4272
+ :bucket_name,
4273
+ :classifiable_object_count,
4274
+ :classifiable_size_in_bytes,
4275
+ :job_details,
4276
+ :object_count,
4277
+ :object_count_by_encryption_type,
4278
+ :size_in_bytes,
4279
+ :size_in_bytes_compressed,
4280
+ :unclassifiable_object_count,
4281
+ :unclassifiable_object_size_in_bytes)
4282
+ SENSITIVE = []
4283
+ include Aws::Structure
4284
+ end
4285
+
4286
+ # Provides statistical data and other information about an Amazon Web
4287
+ # Services resource that Amazon Macie monitors and analyzes.
4288
+ #
4289
+ # @!attribute [rw] matching_bucket
4290
+ # Provides statistical data and other information about an S3 bucket
4291
+ # that Amazon Macie monitors and analyzes.
4292
+ # @return [Types::MatchingBucket]
4293
+ #
4294
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/MatchingResource AWS API Documentation
4295
+ #
4296
+ class MatchingResource < Struct.new(
4297
+ :matching_bucket)
4298
+ SENSITIVE = []
4299
+ include Aws::Structure
4300
+ end
4301
+
3962
4302
  # Provides information about an account that's associated with an
3963
4303
  # Amazon Macie administrator account.
3964
4304
  #
@@ -4048,24 +4388,28 @@ module Aws::Macie2
4048
4388
  # @!attribute [rw] unencrypted
4049
4389
  # @return [Integer]
4050
4390
  #
4391
+ # @!attribute [rw] unknown
4392
+ # @return [Integer]
4393
+ #
4051
4394
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ObjectCountByEncryptionType AWS API Documentation
4052
4395
  #
4053
4396
  class ObjectCountByEncryptionType < Struct.new(
4054
4397
  :customer_managed,
4055
4398
  :kms_managed,
4056
4399
  :s3_managed,
4057
- :unencrypted)
4400
+ :unencrypted,
4401
+ :unknown)
4058
4402
  SENSITIVE = []
4059
4403
  include Aws::Structure
4060
4404
  end
4061
4405
 
4062
4406
  # Provides information about the total storage size (in bytes) or number
4063
4407
  # of objects that Amazon Macie can't analyze in one or more S3 buckets.
4064
- # In a BucketMetadata object, this data is for a specific bucket. In a
4065
- # GetBucketStatisticsResponse object, this data is aggregated for all
4066
- # the buckets in the query results. If versioning is enabled for a
4067
- # bucket, total storage size values are based on the size of the latest
4068
- # version of each applicable object in the bucket.
4408
+ # In a BucketMetadata or MatchingBucket object, this data is for a
4409
+ # specific bucket. In a GetBucketStatisticsResponse object, this data is
4410
+ # aggregated for all the buckets in the query results. If versioning is
4411
+ # enabled for a bucket, total storage size values are based on the size
4412
+ # of the latest version of each applicable object in the bucket.
4069
4413
  #
4070
4414
  # @!attribute [rw] file_type
4071
4415
  # @return [Integer]
@@ -4086,7 +4430,7 @@ module Aws::Macie2
4086
4430
  include Aws::Structure
4087
4431
  end
4088
4432
 
4089
- # Provides the location of 1-15 occurrences of sensitive data that was
4433
+ # Specifies the location of 1-15 occurrences of sensitive data that was
4090
4434
  # detected by managed data identifiers or a custom data identifier and
4091
4435
  # produced a sensitive data finding.
4092
4436
  #
@@ -4096,15 +4440,9 @@ module Aws::Macie2
4096
4440
  # @return [Array<Types::Cell>]
4097
4441
  #
4098
4442
  # @!attribute [rw] line_ranges
4099
- # Provides details about the location of occurrences of sensitive data
4100
- # in an Adobe Portable Document Format file, Microsoft Word document,
4101
- # or non-binary text file.
4102
4443
  # @return [Array<Types::Range>]
4103
4444
  #
4104
4445
  # @!attribute [rw] offset_ranges
4105
- # Provides details about the location of occurrences of sensitive data
4106
- # in an Adobe Portable Document Format file, Microsoft Word document,
4107
- # or non-binary text file.
4108
4446
  # @return [Array<Types::Range>]
4109
4447
  #
4110
4448
  # @!attribute [rw] pages
@@ -4113,8 +4451,6 @@ module Aws::Macie2
4113
4451
  # @return [Array<Types::Page>]
4114
4452
  #
4115
4453
  # @!attribute [rw] records
4116
- # Specifies the location of occurrences of sensitive data in an Apache
4117
- # Parquet file.
4118
4454
  # @return [Array<Types::Record>]
4119
4455
  #
4120
4456
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/Occurrences AWS API Documentation
@@ -4133,15 +4469,13 @@ module Aws::Macie2
4133
4469
  # Portable Document Format file.
4134
4470
  #
4135
4471
  # @!attribute [rw] line_range
4136
- # Provides details about the location of an occurrence of sensitive
4137
- # data in an Adobe Portable Document Format file, Microsoft Word
4138
- # document, or non-binary text file.
4472
+ # Specifies the location of an occurrence of sensitive data in a
4473
+ # non-binary text file, such as an HTML, TXT, or XML file.
4139
4474
  # @return [Types::Range]
4140
4475
  #
4141
4476
  # @!attribute [rw] offset_range
4142
- # Provides details about the location of an occurrence of sensitive
4143
- # data in an Adobe Portable Document Format file, Microsoft Word
4144
- # document, or non-binary text file.
4477
+ # Specifies the location of an occurrence of sensitive data in a
4478
+ # non-binary text file, such as an HTML, TXT, or XML file.
4145
4479
  # @return [Types::Range]
4146
4480
  #
4147
4481
  # @!attribute [rw] page_number
@@ -4228,31 +4562,74 @@ module Aws::Macie2
4228
4562
  include Aws::Structure
4229
4563
  end
4230
4564
 
4231
- # Provides details about the location of an occurrence of sensitive data
4232
- # in an Adobe Portable Document Format file, Microsoft Word document, or
4233
- # non-binary text file.
4565
+ # Specifies configuration settings for publishing findings to Security
4566
+ # Hub automatically.
4234
4567
  #
4235
- # @!attribute [rw] end
4236
- # @return [Integer]
4568
+ # @note When making an API call, you may pass PutFindingsPublicationConfigurationRequest
4569
+ # data as a hash:
4237
4570
  #
4238
- # @!attribute [rw] start
4239
- # @return [Integer]
4571
+ # {
4572
+ # client_token: "__string",
4573
+ # security_hub_configuration: {
4574
+ # publish_classification_findings: false, # required
4575
+ # publish_policy_findings: false, # required
4576
+ # },
4577
+ # }
4240
4578
  #
4241
- # @!attribute [rw] start_column
4242
- # @return [Integer]
4579
+ # @!attribute [rw] client_token
4580
+ # **A suitable default value is auto-generated.** You should normally
4581
+ # not need to pass this option.
4582
+ # @return [String]
4243
4583
  #
4244
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/Range AWS API Documentation
4584
+ # @!attribute [rw] security_hub_configuration
4585
+ # Specifies configuration settings that determine which findings are
4586
+ # published to Security Hub automatically. For information about how
4587
+ # Macie publishes findings to Security Hub, see [Amazon Macie
4588
+ # integration with Security Hub][1] in the *Amazon Macie User Guide*.
4245
4589
  #
4246
- class Range < Struct.new(
4247
- :end,
4248
- :start,
4249
- :start_column)
4590
+ #
4591
+ #
4592
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/securityhub-integration.html
4593
+ # @return [Types::SecurityHubConfiguration]
4594
+ #
4595
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/PutFindingsPublicationConfigurationRequest AWS API Documentation
4596
+ #
4597
+ class PutFindingsPublicationConfigurationRequest < Struct.new(
4598
+ :client_token,
4599
+ :security_hub_configuration)
4600
+ SENSITIVE = []
4601
+ include Aws::Structure
4602
+ end
4603
+
4604
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/PutFindingsPublicationConfigurationResponse AWS API Documentation
4605
+ #
4606
+ class PutFindingsPublicationConfigurationResponse < Aws::EmptyStructure; end
4607
+
4608
+ # Specifies the location of an occurrence of sensitive data in a
4609
+ # non-binary text file, such as an HTML, TXT, or XML file.
4610
+ #
4611
+ # @!attribute [rw] end
4612
+ # @return [Integer]
4613
+ #
4614
+ # @!attribute [rw] start
4615
+ # @return [Integer]
4616
+ #
4617
+ # @!attribute [rw] start_column
4618
+ # @return [Integer]
4619
+ #
4620
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/Range AWS API Documentation
4621
+ #
4622
+ class Range < Struct.new(
4623
+ :end,
4624
+ :start,
4625
+ :start_column)
4250
4626
  SENSITIVE = []
4251
4627
  include Aws::Structure
4252
4628
  end
4253
4629
 
4254
4630
  # Specifies the location of an occurrence of sensitive data in an Apache
4255
- # Avro object container or Apache Parquet file.
4631
+ # Avro object container, Apache Parquet file, JSON file, or JSON Lines
4632
+ # file.
4256
4633
  #
4257
4634
  # @!attribute [rw] json_path
4258
4635
  # @return [String]
@@ -4270,8 +4647,8 @@ module Aws::Macie2
4270
4647
  end
4271
4648
 
4272
4649
  # Provides information about settings that define whether one or more
4273
- # objects in an S3 bucket are replicated to S3 buckets for other AWS
4274
- # accounts and, if so, which accounts.
4650
+ # objects in an S3 bucket are replicated to S3 buckets for other Amazon
4651
+ # Web Services accounts and, if so, which accounts.
4275
4652
  #
4276
4653
  # @!attribute [rw] replicated
4277
4654
  # @return [Boolean]
@@ -4309,11 +4686,11 @@ module Aws::Macie2
4309
4686
  # Provides information about the resources that a finding applies to.
4310
4687
  #
4311
4688
  # @!attribute [rw] s3_bucket
4312
- # Provides information about an S3 bucket that a finding applies to.
4689
+ # Provides information about the S3 bucket that a finding applies to.
4313
4690
  # @return [Types::S3Bucket]
4314
4691
  #
4315
4692
  # @!attribute [rw] s3_object
4316
- # Provides information about an S3 object that a finding applies to.
4693
+ # Provides information about the S3 object that a finding applies to.
4317
4694
  # @return [Types::S3Object]
4318
4695
  #
4319
4696
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ResourcesAffected AWS API Documentation
@@ -4325,7 +4702,10 @@ module Aws::Macie2
4325
4702
  include Aws::Structure
4326
4703
  end
4327
4704
 
4328
- # Provides information about an S3 bucket that a finding applies to.
4705
+ # Provides information about the S3 bucket that a finding applies to.
4706
+ #
4707
+ # @!attribute [rw] allows_unencrypted_object_uploads
4708
+ # @return [String]
4329
4709
  #
4330
4710
  # @!attribute [rw] arn
4331
4711
  # @return [String]
@@ -4359,6 +4739,7 @@ module Aws::Macie2
4359
4739
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/S3Bucket AWS API Documentation
4360
4740
  #
4361
4741
  class S3Bucket < Struct.new(
4742
+ :allows_unencrypted_object_uploads,
4362
4743
  :arn,
4363
4744
  :created_at,
4364
4745
  :default_server_side_encryption,
@@ -4370,8 +4751,80 @@ module Aws::Macie2
4370
4751
  include Aws::Structure
4371
4752
  end
4372
4753
 
4373
- # Specifies which AWS account owns the S3 buckets that a classification
4374
- # job analyzes, and the buckets to analyze for the account.
4754
+ # Specifies property- and tag-based conditions that define criteria for
4755
+ # including or excluding S3 buckets from a classification job. Exclude
4756
+ # conditions take precedence over include conditions.
4757
+ #
4758
+ # @note When making an API call, you may pass S3BucketCriteriaForJob
4759
+ # data as a hash:
4760
+ #
4761
+ # {
4762
+ # excludes: {
4763
+ # and: [
4764
+ # {
4765
+ # simple_criterion: {
4766
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4767
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
4768
+ # values: ["__string"],
4769
+ # },
4770
+ # tag_criterion: {
4771
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4772
+ # tag_values: [
4773
+ # {
4774
+ # key: "__string",
4775
+ # value: "__string",
4776
+ # },
4777
+ # ],
4778
+ # },
4779
+ # },
4780
+ # ],
4781
+ # },
4782
+ # includes: {
4783
+ # and: [
4784
+ # {
4785
+ # simple_criterion: {
4786
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4787
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
4788
+ # values: ["__string"],
4789
+ # },
4790
+ # tag_criterion: {
4791
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4792
+ # tag_values: [
4793
+ # {
4794
+ # key: "__string",
4795
+ # value: "__string",
4796
+ # },
4797
+ # ],
4798
+ # },
4799
+ # },
4800
+ # ],
4801
+ # },
4802
+ # }
4803
+ #
4804
+ # @!attribute [rw] excludes
4805
+ # Specifies one or more property- and tag-based conditions that define
4806
+ # criteria for including or excluding S3 buckets from a classification
4807
+ # job.
4808
+ # @return [Types::CriteriaBlockForJob]
4809
+ #
4810
+ # @!attribute [rw] includes
4811
+ # Specifies one or more property- and tag-based conditions that define
4812
+ # criteria for including or excluding S3 buckets from a classification
4813
+ # job.
4814
+ # @return [Types::CriteriaBlockForJob]
4815
+ #
4816
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/S3BucketCriteriaForJob AWS API Documentation
4817
+ #
4818
+ class S3BucketCriteriaForJob < Struct.new(
4819
+ :excludes,
4820
+ :includes)
4821
+ SENSITIVE = []
4822
+ include Aws::Structure
4823
+ end
4824
+
4825
+ # Specifies an Amazon Web Services account that owns S3 buckets for a
4826
+ # classification job to analyze, and one or more specific buckets to
4827
+ # analyze for that account.
4375
4828
  #
4376
4829
  # @note When making an API call, you may pass S3BucketDefinitionForJob
4377
4830
  # data as a hash:
@@ -4445,7 +4898,12 @@ module Aws::Macie2
4445
4898
  end
4446
4899
 
4447
4900
  # Specifies which S3 buckets contain the objects that a classification
4448
- # job analyzes, and the scope of that analysis.
4901
+ # job analyzes, and the scope of that analysis. The bucket specification
4902
+ # can be static (bucketDefinitions) or dynamic (bucketCriteria). If
4903
+ # it's static, the job analyzes objects in the same predefined set of
4904
+ # buckets each time the job runs. If it's dynamic, the job analyzes
4905
+ # objects in any buckets that match the specified criteria each time the
4906
+ # job starts to run.
4449
4907
  #
4450
4908
  # @note When making an API call, you may pass S3JobDefinition
4451
4909
  # data as a hash:
@@ -4463,7 +4921,7 @@ module Aws::Macie2
4463
4921
  # {
4464
4922
  # simple_scope_term: {
4465
4923
  # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4466
- # key: "BUCKET_CREATION_DATE", # accepts BUCKET_CREATION_DATE, OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, TAG, OBJECT_KEY
4924
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
4467
4925
  # values: ["__string"],
4468
4926
  # },
4469
4927
  # tag_scope_term: {
@@ -4485,7 +4943,7 @@ module Aws::Macie2
4485
4943
  # {
4486
4944
  # simple_scope_term: {
4487
4945
  # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4488
- # key: "BUCKET_CREATION_DATE", # accepts BUCKET_CREATION_DATE, OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, TAG, OBJECT_KEY
4946
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
4489
4947
  # values: ["__string"],
4490
4948
  # },
4491
4949
  # tag_scope_term: {
@@ -4503,28 +4961,76 @@ module Aws::Macie2
4503
4961
  # ],
4504
4962
  # },
4505
4963
  # },
4964
+ # bucket_criteria: {
4965
+ # excludes: {
4966
+ # and: [
4967
+ # {
4968
+ # simple_criterion: {
4969
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4970
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
4971
+ # values: ["__string"],
4972
+ # },
4973
+ # tag_criterion: {
4974
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4975
+ # tag_values: [
4976
+ # {
4977
+ # key: "__string",
4978
+ # value: "__string",
4979
+ # },
4980
+ # ],
4981
+ # },
4982
+ # },
4983
+ # ],
4984
+ # },
4985
+ # includes: {
4986
+ # and: [
4987
+ # {
4988
+ # simple_criterion: {
4989
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4990
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
4991
+ # values: ["__string"],
4992
+ # },
4993
+ # tag_criterion: {
4994
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4995
+ # tag_values: [
4996
+ # {
4997
+ # key: "__string",
4998
+ # value: "__string",
4999
+ # },
5000
+ # ],
5001
+ # },
5002
+ # },
5003
+ # ],
5004
+ # },
5005
+ # },
4506
5006
  # }
4507
5007
  #
4508
5008
  # @!attribute [rw] bucket_definitions
4509
5009
  # @return [Array<Types::S3BucketDefinitionForJob>]
4510
5010
  #
4511
5011
  # @!attribute [rw] scoping
4512
- # Specifies one or more property- and tag-based conditions that refine
4513
- # the scope of a classification job. These conditions define criteria
4514
- # that determine which objects a job analyzes. Exclude conditions take
4515
- # precedence over include conditions.
5012
+ # Specifies one or more property- and tag-based conditions that define
5013
+ # criteria for including or excluding S3 objects from a classification
5014
+ # job. Exclude conditions take precedence over include conditions.
4516
5015
  # @return [Types::Scoping]
4517
5016
  #
5017
+ # @!attribute [rw] bucket_criteria
5018
+ # Specifies property- and tag-based conditions that define criteria
5019
+ # for including or excluding S3 buckets from a classification job.
5020
+ # Exclude conditions take precedence over include conditions.
5021
+ # @return [Types::S3BucketCriteriaForJob]
5022
+ #
4518
5023
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/S3JobDefinition AWS API Documentation
4519
5024
  #
4520
5025
  class S3JobDefinition < Struct.new(
4521
5026
  :bucket_definitions,
4522
- :scoping)
5027
+ :scoping,
5028
+ :bucket_criteria)
4523
5029
  SENSITIVE = []
4524
5030
  include Aws::Structure
4525
5031
  end
4526
5032
 
4527
- # Provides information about an S3 object that a finding applies to.
5033
+ # Provides information about the S3 object that a finding applies to.
4528
5034
  #
4529
5035
  # @!attribute [rw] bucket_arn
4530
5036
  # @return [String]
@@ -4587,10 +5093,9 @@ module Aws::Macie2
4587
5093
  include Aws::Structure
4588
5094
  end
4589
5095
 
4590
- # Specifies one or more property- and tag-based conditions that refine
4591
- # the scope of a classification job. These conditions define criteria
4592
- # that determine which objects a job analyzes. Exclude conditions take
4593
- # precedence over include conditions.
5096
+ # Specifies one or more property- and tag-based conditions that define
5097
+ # criteria for including or excluding S3 objects from a classification
5098
+ # job. Exclude conditions take precedence over include conditions.
4594
5099
  #
4595
5100
  # @note When making an API call, you may pass Scoping
4596
5101
  # data as a hash:
@@ -4601,7 +5106,7 @@ module Aws::Macie2
4601
5106
  # {
4602
5107
  # simple_scope_term: {
4603
5108
  # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4604
- # key: "BUCKET_CREATION_DATE", # accepts BUCKET_CREATION_DATE, OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, TAG, OBJECT_KEY
5109
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
4605
5110
  # values: ["__string"],
4606
5111
  # },
4607
5112
  # tag_scope_term: {
@@ -4623,7 +5128,7 @@ module Aws::Macie2
4623
5128
  # {
4624
5129
  # simple_scope_term: {
4625
5130
  # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4626
- # key: "BUCKET_CREATION_DATE", # accepts BUCKET_CREATION_DATE, OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, TAG, OBJECT_KEY
5131
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
4627
5132
  # values: ["__string"],
4628
5133
  # },
4629
5134
  # tag_scope_term: {
@@ -4644,16 +5149,14 @@ module Aws::Macie2
4644
5149
  #
4645
5150
  # @!attribute [rw] excludes
4646
5151
  # Specifies one or more property- and tag-based conditions that define
4647
- # criteria for including or excluding objects from a classification
4648
- # job. If you specify more than one condition, Amazon Macie uses an
4649
- # AND operator to join the conditions.
5152
+ # criteria for including or excluding S3 objects from a classification
5153
+ # job.
4650
5154
  # @return [Types::JobScopingBlock]
4651
5155
  #
4652
5156
  # @!attribute [rw] includes
4653
5157
  # Specifies one or more property- and tag-based conditions that define
4654
- # criteria for including or excluding objects from a classification
4655
- # job. If you specify more than one condition, Amazon Macie uses an
4656
- # AND operator to join the conditions.
5158
+ # criteria for including or excluding S3 objects from a classification
5159
+ # job.
4657
5160
  # @return [Types::JobScopingBlock]
4658
5161
  #
4659
5162
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/Scoping AWS API Documentation
@@ -4665,6 +5168,424 @@ module Aws::Macie2
4665
5168
  include Aws::Structure
4666
5169
  end
4667
5170
 
5171
+ # Specifies property- and tag-based conditions that define filter
5172
+ # criteria for including or excluding S3 buckets from the query results.
5173
+ # Exclude conditions take precedence over include conditions.
5174
+ #
5175
+ # @note When making an API call, you may pass SearchResourcesBucketCriteria
5176
+ # data as a hash:
5177
+ #
5178
+ # {
5179
+ # excludes: {
5180
+ # and: [
5181
+ # {
5182
+ # simple_criterion: {
5183
+ # comparator: "EQ", # accepts EQ, NE
5184
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5185
+ # values: ["__string"],
5186
+ # },
5187
+ # tag_criterion: {
5188
+ # comparator: "EQ", # accepts EQ, NE
5189
+ # tag_values: [
5190
+ # {
5191
+ # key: "__string",
5192
+ # value: "__string",
5193
+ # },
5194
+ # ],
5195
+ # },
5196
+ # },
5197
+ # ],
5198
+ # },
5199
+ # includes: {
5200
+ # and: [
5201
+ # {
5202
+ # simple_criterion: {
5203
+ # comparator: "EQ", # accepts EQ, NE
5204
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5205
+ # values: ["__string"],
5206
+ # },
5207
+ # tag_criterion: {
5208
+ # comparator: "EQ", # accepts EQ, NE
5209
+ # tag_values: [
5210
+ # {
5211
+ # key: "__string",
5212
+ # value: "__string",
5213
+ # },
5214
+ # ],
5215
+ # },
5216
+ # },
5217
+ # ],
5218
+ # },
5219
+ # }
5220
+ #
5221
+ # @!attribute [rw] excludes
5222
+ # Specifies property- and tag-based conditions that define filter
5223
+ # criteria for including or excluding Amazon Web Services resources
5224
+ # from the query results.
5225
+ # @return [Types::SearchResourcesCriteriaBlock]
5226
+ #
5227
+ # @!attribute [rw] includes
5228
+ # Specifies property- and tag-based conditions that define filter
5229
+ # criteria for including or excluding Amazon Web Services resources
5230
+ # from the query results.
5231
+ # @return [Types::SearchResourcesCriteriaBlock]
5232
+ #
5233
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesBucketCriteria AWS API Documentation
5234
+ #
5235
+ class SearchResourcesBucketCriteria < Struct.new(
5236
+ :excludes,
5237
+ :includes)
5238
+ SENSITIVE = []
5239
+ include Aws::Structure
5240
+ end
5241
+
5242
+ # Specifies a property- or tag-based filter condition for including or
5243
+ # excluding Amazon Web Services resources from the query results.
5244
+ #
5245
+ # @note When making an API call, you may pass SearchResourcesCriteria
5246
+ # data as a hash:
5247
+ #
5248
+ # {
5249
+ # simple_criterion: {
5250
+ # comparator: "EQ", # accepts EQ, NE
5251
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5252
+ # values: ["__string"],
5253
+ # },
5254
+ # tag_criterion: {
5255
+ # comparator: "EQ", # accepts EQ, NE
5256
+ # tag_values: [
5257
+ # {
5258
+ # key: "__string",
5259
+ # value: "__string",
5260
+ # },
5261
+ # ],
5262
+ # },
5263
+ # }
5264
+ #
5265
+ # @!attribute [rw] simple_criterion
5266
+ # Specifies a property-based filter condition that determines which
5267
+ # Amazon Web Services resources are included or excluded from the
5268
+ # query results.
5269
+ # @return [Types::SearchResourcesSimpleCriterion]
5270
+ #
5271
+ # @!attribute [rw] tag_criterion
5272
+ # Specifies a tag-based filter condition that determines which Amazon
5273
+ # Web Services resources are included or excluded from the query
5274
+ # results.
5275
+ # @return [Types::SearchResourcesTagCriterion]
5276
+ #
5277
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesCriteria AWS API Documentation
5278
+ #
5279
+ class SearchResourcesCriteria < Struct.new(
5280
+ :simple_criterion,
5281
+ :tag_criterion)
5282
+ SENSITIVE = []
5283
+ include Aws::Structure
5284
+ end
5285
+
5286
+ # Specifies property- and tag-based conditions that define filter
5287
+ # criteria for including or excluding Amazon Web Services resources from
5288
+ # the query results.
5289
+ #
5290
+ # @note When making an API call, you may pass SearchResourcesCriteriaBlock
5291
+ # data as a hash:
5292
+ #
5293
+ # {
5294
+ # and: [
5295
+ # {
5296
+ # simple_criterion: {
5297
+ # comparator: "EQ", # accepts EQ, NE
5298
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5299
+ # values: ["__string"],
5300
+ # },
5301
+ # tag_criterion: {
5302
+ # comparator: "EQ", # accepts EQ, NE
5303
+ # tag_values: [
5304
+ # {
5305
+ # key: "__string",
5306
+ # value: "__string",
5307
+ # },
5308
+ # ],
5309
+ # },
5310
+ # },
5311
+ # ],
5312
+ # }
5313
+ #
5314
+ # @!attribute [rw] and
5315
+ # @return [Array<Types::SearchResourcesCriteria>]
5316
+ #
5317
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesCriteriaBlock AWS API Documentation
5318
+ #
5319
+ class SearchResourcesCriteriaBlock < Struct.new(
5320
+ :and)
5321
+ SENSITIVE = []
5322
+ include Aws::Structure
5323
+ end
5324
+
5325
+ # Specifies criteria for filtering, sorting, and paginating the results
5326
+ # of a query for statistical data and other information about Amazon Web
5327
+ # Services resources that Amazon Macie monitors and analyzes.
5328
+ #
5329
+ # @note When making an API call, you may pass SearchResourcesRequest
5330
+ # data as a hash:
5331
+ #
5332
+ # {
5333
+ # bucket_criteria: {
5334
+ # excludes: {
5335
+ # and: [
5336
+ # {
5337
+ # simple_criterion: {
5338
+ # comparator: "EQ", # accepts EQ, NE
5339
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5340
+ # values: ["__string"],
5341
+ # },
5342
+ # tag_criterion: {
5343
+ # comparator: "EQ", # accepts EQ, NE
5344
+ # tag_values: [
5345
+ # {
5346
+ # key: "__string",
5347
+ # value: "__string",
5348
+ # },
5349
+ # ],
5350
+ # },
5351
+ # },
5352
+ # ],
5353
+ # },
5354
+ # includes: {
5355
+ # and: [
5356
+ # {
5357
+ # simple_criterion: {
5358
+ # comparator: "EQ", # accepts EQ, NE
5359
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5360
+ # values: ["__string"],
5361
+ # },
5362
+ # tag_criterion: {
5363
+ # comparator: "EQ", # accepts EQ, NE
5364
+ # tag_values: [
5365
+ # {
5366
+ # key: "__string",
5367
+ # value: "__string",
5368
+ # },
5369
+ # ],
5370
+ # },
5371
+ # },
5372
+ # ],
5373
+ # },
5374
+ # },
5375
+ # max_results: 1,
5376
+ # next_token: "__string",
5377
+ # sort_criteria: {
5378
+ # attribute_name: "ACCOUNT_ID", # accepts ACCOUNT_ID, RESOURCE_NAME, S3_CLASSIFIABLE_OBJECT_COUNT, S3_CLASSIFIABLE_SIZE_IN_BYTES
5379
+ # order_by: "ASC", # accepts ASC, DESC
5380
+ # },
5381
+ # }
5382
+ #
5383
+ # @!attribute [rw] bucket_criteria
5384
+ # Specifies property- and tag-based conditions that define filter
5385
+ # criteria for including or excluding S3 buckets from the query
5386
+ # results. Exclude conditions take precedence over include conditions.
5387
+ # @return [Types::SearchResourcesBucketCriteria]
5388
+ #
5389
+ # @!attribute [rw] max_results
5390
+ # @return [Integer]
5391
+ #
5392
+ # @!attribute [rw] next_token
5393
+ # @return [String]
5394
+ #
5395
+ # @!attribute [rw] sort_criteria
5396
+ # Specifies criteria for sorting the results of a query for
5397
+ # information about Amazon Web Services resources that Amazon Macie
5398
+ # monitors and analyzes.
5399
+ # @return [Types::SearchResourcesSortCriteria]
5400
+ #
5401
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesRequest AWS API Documentation
5402
+ #
5403
+ class SearchResourcesRequest < Struct.new(
5404
+ :bucket_criteria,
5405
+ :max_results,
5406
+ :next_token,
5407
+ :sort_criteria)
5408
+ SENSITIVE = []
5409
+ include Aws::Structure
5410
+ end
5411
+
5412
+ # Provides the results of a query that retrieved statistical data and
5413
+ # other information about Amazon Web Services resources that Amazon
5414
+ # Macie monitors and analyzes.
5415
+ #
5416
+ # @!attribute [rw] matching_resources
5417
+ # @return [Array<Types::MatchingResource>]
5418
+ #
5419
+ # @!attribute [rw] next_token
5420
+ # @return [String]
5421
+ #
5422
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesResponse AWS API Documentation
5423
+ #
5424
+ class SearchResourcesResponse < Struct.new(
5425
+ :matching_resources,
5426
+ :next_token)
5427
+ SENSITIVE = []
5428
+ include Aws::Structure
5429
+ end
5430
+
5431
+ # Specifies a property-based filter condition that determines which
5432
+ # Amazon Web Services resources are included or excluded from the query
5433
+ # results.
5434
+ #
5435
+ # @note When making an API call, you may pass SearchResourcesSimpleCriterion
5436
+ # data as a hash:
5437
+ #
5438
+ # {
5439
+ # comparator: "EQ", # accepts EQ, NE
5440
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5441
+ # values: ["__string"],
5442
+ # }
5443
+ #
5444
+ # @!attribute [rw] comparator
5445
+ # The operator to use in a condition that filters the results of a
5446
+ # query. Valid values are:
5447
+ # @return [String]
5448
+ #
5449
+ # @!attribute [rw] key
5450
+ # The property to use in a condition that filters the query results.
5451
+ # Valid values are:
5452
+ # @return [String]
5453
+ #
5454
+ # @!attribute [rw] values
5455
+ # @return [Array<String>]
5456
+ #
5457
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesSimpleCriterion AWS API Documentation
5458
+ #
5459
+ class SearchResourcesSimpleCriterion < Struct.new(
5460
+ :comparator,
5461
+ :key,
5462
+ :values)
5463
+ SENSITIVE = []
5464
+ include Aws::Structure
5465
+ end
5466
+
5467
+ # Specifies criteria for sorting the results of a query for information
5468
+ # about Amazon Web Services resources that Amazon Macie monitors and
5469
+ # analyzes.
5470
+ #
5471
+ # @note When making an API call, you may pass SearchResourcesSortCriteria
5472
+ # data as a hash:
5473
+ #
5474
+ # {
5475
+ # attribute_name: "ACCOUNT_ID", # accepts ACCOUNT_ID, RESOURCE_NAME, S3_CLASSIFIABLE_OBJECT_COUNT, S3_CLASSIFIABLE_SIZE_IN_BYTES
5476
+ # order_by: "ASC", # accepts ASC, DESC
5477
+ # }
5478
+ #
5479
+ # @!attribute [rw] attribute_name
5480
+ # The property to sort the query results by. Valid values are:
5481
+ # @return [String]
5482
+ #
5483
+ # @!attribute [rw] order_by
5484
+ # @return [String]
5485
+ #
5486
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesSortCriteria AWS API Documentation
5487
+ #
5488
+ class SearchResourcesSortCriteria < Struct.new(
5489
+ :attribute_name,
5490
+ :order_by)
5491
+ SENSITIVE = []
5492
+ include Aws::Structure
5493
+ end
5494
+
5495
+ # Specifies a tag-based filter condition that determines which Amazon
5496
+ # Web Services resources are included or excluded from the query
5497
+ # results.
5498
+ #
5499
+ # @note When making an API call, you may pass SearchResourcesTagCriterion
5500
+ # data as a hash:
5501
+ #
5502
+ # {
5503
+ # comparator: "EQ", # accepts EQ, NE
5504
+ # tag_values: [
5505
+ # {
5506
+ # key: "__string",
5507
+ # value: "__string",
5508
+ # },
5509
+ # ],
5510
+ # }
5511
+ #
5512
+ # @!attribute [rw] comparator
5513
+ # The operator to use in a condition that filters the results of a
5514
+ # query. Valid values are:
5515
+ # @return [String]
5516
+ #
5517
+ # @!attribute [rw] tag_values
5518
+ # @return [Array<Types::SearchResourcesTagCriterionPair>]
5519
+ #
5520
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesTagCriterion AWS API Documentation
5521
+ #
5522
+ class SearchResourcesTagCriterion < Struct.new(
5523
+ :comparator,
5524
+ :tag_values)
5525
+ SENSITIVE = []
5526
+ include Aws::Structure
5527
+ end
5528
+
5529
+ # Specifies a tag key, a tag value, or a tag key and value (as a pair)
5530
+ # to use in a tag-based filter condition for a query. Tag keys and
5531
+ # values are case sensitive. Also, Amazon Macie doesn't support use of
5532
+ # partial values or wildcard characters in tag-based filter conditions.
5533
+ #
5534
+ # @note When making an API call, you may pass SearchResourcesTagCriterionPair
5535
+ # data as a hash:
5536
+ #
5537
+ # {
5538
+ # key: "__string",
5539
+ # value: "__string",
5540
+ # }
5541
+ #
5542
+ # @!attribute [rw] key
5543
+ # @return [String]
5544
+ #
5545
+ # @!attribute [rw] value
5546
+ # @return [String]
5547
+ #
5548
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesTagCriterionPair AWS API Documentation
5549
+ #
5550
+ class SearchResourcesTagCriterionPair < Struct.new(
5551
+ :key,
5552
+ :value)
5553
+ SENSITIVE = []
5554
+ include Aws::Structure
5555
+ end
5556
+
5557
+ # Specifies configuration settings that determine which findings are
5558
+ # published to Security Hub automatically. For information about how
5559
+ # Macie publishes findings to Security Hub, see [Amazon Macie
5560
+ # integration with Security Hub][1] in the *Amazon Macie User Guide*.
5561
+ #
5562
+ #
5563
+ #
5564
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/securityhub-integration.html
5565
+ #
5566
+ # @note When making an API call, you may pass SecurityHubConfiguration
5567
+ # data as a hash:
5568
+ #
5569
+ # {
5570
+ # publish_classification_findings: false, # required
5571
+ # publish_policy_findings: false, # required
5572
+ # }
5573
+ #
5574
+ # @!attribute [rw] publish_classification_findings
5575
+ # @return [Boolean]
5576
+ #
5577
+ # @!attribute [rw] publish_policy_findings
5578
+ # @return [Boolean]
5579
+ #
5580
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SecurityHubConfiguration AWS API Documentation
5581
+ #
5582
+ class SecurityHubConfiguration < Struct.new(
5583
+ :publish_classification_findings,
5584
+ :publish_policy_findings)
5585
+ SENSITIVE = []
5586
+ include Aws::Structure
5587
+ end
5588
+
4668
5589
  # Provides information about the category, types, and occurrences of
4669
5590
  # sensitive data that produced a sensitive data finding.
4670
5591
  #
@@ -4838,15 +5759,50 @@ module Aws::Macie2
4838
5759
  include Aws::Structure
4839
5760
  end
4840
5761
 
4841
- # Specifies a property-based condition that determines whether an object
4842
- # is included or excluded from a classification job.
5762
+ # Specifies a property-based condition that determines whether an S3
5763
+ # bucket is included or excluded from a classification job.
5764
+ #
5765
+ # @note When making an API call, you may pass SimpleCriterionForJob
5766
+ # data as a hash:
5767
+ #
5768
+ # {
5769
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
5770
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5771
+ # values: ["__string"],
5772
+ # }
5773
+ #
5774
+ # @!attribute [rw] comparator
5775
+ # The operator to use in a condition. Valid values are:
5776
+ # @return [String]
5777
+ #
5778
+ # @!attribute [rw] key
5779
+ # The property to use in a condition that determines whether an S3
5780
+ # bucket is included or excluded from a classification job. Valid
5781
+ # values are:
5782
+ # @return [String]
5783
+ #
5784
+ # @!attribute [rw] values
5785
+ # @return [Array<String>]
5786
+ #
5787
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SimpleCriterionForJob AWS API Documentation
5788
+ #
5789
+ class SimpleCriterionForJob < Struct.new(
5790
+ :comparator,
5791
+ :key,
5792
+ :values)
5793
+ SENSITIVE = []
5794
+ include Aws::Structure
5795
+ end
5796
+
5797
+ # Specifies a property-based condition that determines whether an S3
5798
+ # object is included or excluded from a classification job.
4843
5799
  #
4844
5800
  # @note When making an API call, you may pass SimpleScopeTerm
4845
5801
  # data as a hash:
4846
5802
  #
4847
5803
  # {
4848
5804
  # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4849
- # key: "BUCKET_CREATION_DATE", # accepts BUCKET_CREATION_DATE, OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, TAG, OBJECT_KEY
5805
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
4850
5806
  # values: ["__string"],
4851
5807
  # }
4852
5808
  #
@@ -4855,8 +5811,9 @@ module Aws::Macie2
4855
5811
  # @return [String]
4856
5812
  #
4857
5813
  # @!attribute [rw] key
4858
- # The property to use in a condition that determines which objects are
4859
- # analyzed by a classification job. Valid values are:
5814
+ # The property to use in a condition that determines whether an S3
5815
+ # object is included or excluded from a classification job. Valid
5816
+ # values are:
4860
5817
  # @return [String]
4861
5818
  #
4862
5819
  # @!attribute [rw] values
@@ -4914,6 +5871,67 @@ module Aws::Macie2
4914
5871
  include Aws::Structure
4915
5872
  end
4916
5873
 
5874
+ # Specifies a tag-based condition that determines whether an S3 bucket
5875
+ # is included or excluded from a classification job.
5876
+ #
5877
+ # @note When making an API call, you may pass TagCriterionForJob
5878
+ # data as a hash:
5879
+ #
5880
+ # {
5881
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
5882
+ # tag_values: [
5883
+ # {
5884
+ # key: "__string",
5885
+ # value: "__string",
5886
+ # },
5887
+ # ],
5888
+ # }
5889
+ #
5890
+ # @!attribute [rw] comparator
5891
+ # The operator to use in a condition. Valid values are:
5892
+ # @return [String]
5893
+ #
5894
+ # @!attribute [rw] tag_values
5895
+ # @return [Array<Types::TagCriterionPairForJob>]
5896
+ #
5897
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/TagCriterionForJob AWS API Documentation
5898
+ #
5899
+ class TagCriterionForJob < Struct.new(
5900
+ :comparator,
5901
+ :tag_values)
5902
+ SENSITIVE = []
5903
+ include Aws::Structure
5904
+ end
5905
+
5906
+ # Specifies a tag key, a tag value, or a tag key and value (as a pair)
5907
+ # to use in a tag-based condition that determines whether an S3 bucket
5908
+ # is included or excluded from a classification job. Tag keys and values
5909
+ # are case sensitive. Also, Amazon Macie doesn't support use of partial
5910
+ # values or wildcard characters in tag-based conditions.
5911
+ #
5912
+ # @note When making an API call, you may pass TagCriterionPairForJob
5913
+ # data as a hash:
5914
+ #
5915
+ # {
5916
+ # key: "__string",
5917
+ # value: "__string",
5918
+ # }
5919
+ #
5920
+ # @!attribute [rw] key
5921
+ # @return [String]
5922
+ #
5923
+ # @!attribute [rw] value
5924
+ # @return [String]
5925
+ #
5926
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/TagCriterionPairForJob AWS API Documentation
5927
+ #
5928
+ class TagCriterionPairForJob < Struct.new(
5929
+ :key,
5930
+ :value)
5931
+ SENSITIVE = []
5932
+ include Aws::Structure
5933
+ end
5934
+
4917
5935
  # Specifies the tags (keys and values) to associate with a
4918
5936
  # classification job, custom data identifier, findings filter, or member
4919
5937
  # account.
@@ -4952,8 +5970,8 @@ module Aws::Macie2
4952
5970
  #
4953
5971
  class TagResourceResponse < Aws::EmptyStructure; end
4954
5972
 
4955
- # Specifies a tag-based condition that determines whether an object is
4956
- # included or excluded from a classification job.
5973
+ # Specifies a tag-based condition that determines whether an S3 object
5974
+ # is included or excluded from a classification job.
4957
5975
  #
4958
5976
  # @note When making an API call, you may pass TagScopeTerm
4959
5977
  # data as a hash:
@@ -4997,7 +6015,10 @@ module Aws::Macie2
4997
6015
  end
4998
6016
 
4999
6017
  # Specifies a tag key or tag key and value pair to use in a tag-based
5000
- # condition for a classification job.
6018
+ # condition that determines whether an S3 object is included or excluded
6019
+ # from a classification job. Tag keys and values are case sensitive.
6020
+ # Also, Amazon Macie doesn't support use of partial values or wildcard
6021
+ # characters in tag-based conditions.
5001
6022
  #
5002
6023
  # @note When making an API call, you may pass TagValuePair
5003
6024
  # data as a hash:
@@ -5143,8 +6164,8 @@ module Aws::Macie2
5143
6164
  class UntagResourceResponse < Aws::EmptyStructure; end
5144
6165
 
5145
6166
  # Changes the status of a classification job. For more information about
5146
- # pausing, resuming, or cancelling jobs, see [Managing and monitoring
5147
- # sensitive data discovery jobs][1] in the *Amazon Macie User Guide*.
6167
+ # pausing, resuming, or cancelling jobs, see [Managing sensitive data
6168
+ # discovery jobs][1] in the *Amazon Macie User Guide*.
5148
6169
  #
5149
6170
  #
5150
6171
  #
@@ -5202,6 +6223,7 @@ module Aws::Macie2
5202
6223
  # id: "__string", # required
5203
6224
  # name: "__string",
5204
6225
  # position: 1,
6226
+ # client_token: "__string",
5205
6227
  # }
5206
6228
  #
5207
6229
  # @!attribute [rw] action
@@ -5227,6 +6249,11 @@ module Aws::Macie2
5227
6249
  # @!attribute [rw] position
5228
6250
  # @return [Integer]
5229
6251
  #
6252
+ # @!attribute [rw] client_token
6253
+ # **A suitable default value is auto-generated.** You should normally
6254
+ # not need to pass this option.
6255
+ # @return [String]
6256
+ #
5230
6257
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UpdateFindingsFilterRequest AWS API Documentation
5231
6258
  #
5232
6259
  class UpdateFindingsFilterRequest < Struct.new(
@@ -5235,7 +6262,8 @@ module Aws::Macie2
5235
6262
  :finding_criteria,
5236
6263
  :id,
5237
6264
  :name,
5238
- :position)
6265
+ :position,
6266
+ :client_token)
5239
6267
  SENSITIVE = []
5240
6268
  include Aws::Structure
5241
6269
  end
@@ -5271,9 +6299,15 @@ module Aws::Macie2
5271
6299
  #
5272
6300
  # @!attribute [rw] finding_publishing_frequency
5273
6301
  # The frequency with which Amazon Macie publishes updates to policy
5274
- # findings for an account. This includes publishing updates to AWS
6302
+ # findings for an account. This includes publishing updates to
5275
6303
  # Security Hub and Amazon EventBridge (formerly called Amazon
5276
- # CloudWatch Events). Valid values are:
6304
+ # CloudWatch Events). For more information, see [Monitoring and
6305
+ # processing findings][1] in the *Amazon Macie User Guide*. Valid
6306
+ # values are:
6307
+ #
6308
+ #
6309
+ #
6310
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/findings-monitor.html
5277
6311
  # @return [String]
5278
6312
  #
5279
6313
  # @!attribute [rw] status
@@ -5324,7 +6358,7 @@ module Aws::Macie2
5324
6358
  class UpdateMemberSessionResponse < Aws::EmptyStructure; end
5325
6359
 
5326
6360
  # Specifies whether to enable Amazon Macie automatically for accounts
5327
- # that are added to an AWS organization.
6361
+ # that are added to an Amazon Web Services organization.
5328
6362
  #
5329
6363
  # @note When making an API call, you may pass UpdateOrganizationConfigurationRequest
5330
6364
  # data as a hash:
@@ -5498,37 +6532,39 @@ module Aws::Macie2
5498
6532
  # @!attribute [rw] assumed_role
5499
6533
  # Provides information about an identity that performed an action on
5500
6534
  # an affected resource by using temporary security credentials. The
5501
- # credentials were obtained using the AssumeRole operation of the AWS
5502
- # Security Token Service (AWS STS) API.
6535
+ # credentials were obtained using the AssumeRole operation of the
6536
+ # Security Token Service (STS) API.
5503
6537
  # @return [Types::AssumedRole]
5504
6538
  #
5505
6539
  # @!attribute [rw] aws_account
5506
- # Provides information about an AWS account and entity that performed
5507
- # an action on an affected resource. The action was performed using
5508
- # the credentials for an AWS account other than your own account.
6540
+ # Provides information about an Amazon Web Services account and entity
6541
+ # that performed an action on an affected resource. The action was
6542
+ # performed using the credentials for an Amazon Web Services account
6543
+ # other than your own account.
5509
6544
  # @return [Types::AwsAccount]
5510
6545
  #
5511
6546
  # @!attribute [rw] aws_service
5512
- # Provides information about an AWS service that performed an action
5513
- # on an affected resource.
6547
+ # Provides information about an Amazon Web Service that performed an
6548
+ # action on an affected resource.
5514
6549
  # @return [Types::AwsService]
5515
6550
  #
5516
6551
  # @!attribute [rw] federated_user
5517
6552
  # Provides information about an identity that performed an action on
5518
6553
  # an affected resource by using temporary security credentials. The
5519
6554
  # credentials were obtained using the GetFederationToken operation of
5520
- # the AWS Security Token Service (AWS STS) API.
6555
+ # the Security Token Service (STS) API.
5521
6556
  # @return [Types::FederatedUser]
5522
6557
  #
5523
6558
  # @!attribute [rw] iam_user
5524
- # Provides information about an AWS Identity and Access Management
5525
- # (IAM) user who performed an action on an affected resource.
6559
+ # Provides information about an Identity and Access Management (IAM)
6560
+ # user who performed an action on an affected resource.
5526
6561
  # @return [Types::IamUser]
5527
6562
  #
5528
6563
  # @!attribute [rw] root
5529
- # Provides information about an AWS account and entity that performed
5530
- # an action on an affected resource. The action was performed using
5531
- # the credentials for your AWS account.
6564
+ # Provides information about an Amazon Web Services account and entity
6565
+ # that performed an action on an affected resource. The action was
6566
+ # performed using the credentials for your Amazon Web Services
6567
+ # account.
5532
6568
  # @return [Types::UserIdentityRoot]
5533
6569
  #
5534
6570
  # @!attribute [rw] type
@@ -5550,9 +6586,9 @@ module Aws::Macie2
5550
6586
  include Aws::Structure
5551
6587
  end
5552
6588
 
5553
- # Provides information about an AWS account and entity that performed an
5554
- # action on an affected resource. The action was performed using the
5555
- # credentials for your AWS account.
6589
+ # Provides information about an Amazon Web Services account and entity
6590
+ # that performed an action on an affected resource. The action was
6591
+ # performed using the credentials for your Amazon Web Services account.
5556
6592
  #
5557
6593
  # @!attribute [rw] account_id
5558
6594
  # @return [String]