aws-sdk-macie2 1.24.0 → 1.29.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -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"
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -376,7 +376,13 @@ module Aws::Macie2
376
376
 
377
377
  # Provides information about the number of S3 buckets that use certain
378
378
  # types of server-side encryption by default or don't encrypt new
379
- # objects by default.
379
+ # objects by default. For detailed information about these settings, see
380
+ # [Setting default server-side encryption behavior for Amazon S3
381
+ # buckets][1] in the *Amazon Simple Storage Service User Guide*.
382
+ #
383
+ #
384
+ #
385
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-encryption.html
380
386
  #
381
387
  # @!attribute [rw] kms_managed
382
388
  # @return [Integer]
@@ -387,18 +393,22 @@ module Aws::Macie2
387
393
  # @!attribute [rw] unencrypted
388
394
  # @return [Integer]
389
395
  #
396
+ # @!attribute [rw] unknown
397
+ # @return [Integer]
398
+ #
390
399
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/BucketCountByEncryptionType AWS API Documentation
391
400
  #
392
401
  class BucketCountByEncryptionType < Struct.new(
393
402
  :kms_managed,
394
403
  :s3_managed,
395
- :unencrypted)
404
+ :unencrypted,
405
+ :unknown)
396
406
  SENSITIVE = []
397
407
  include Aws::Structure
398
408
  end
399
409
 
400
- # Provides information about the number of S3 buckets that are shared
401
- # with other AWS accounts.
410
+ # Provides information about the number of S3 buckets that are or
411
+ # aren't shared with other AWS accounts.
402
412
  #
403
413
  # @!attribute [rw] external
404
414
  # @return [Integer]
@@ -423,6 +433,29 @@ module Aws::Macie2
423
433
  include Aws::Structure
424
434
  end
425
435
 
436
+ # Provides information about the number of S3 buckets whose bucket
437
+ # policies do or don't require server-side encryption of objects when
438
+ # objects are uploaded to the buckets.
439
+ #
440
+ # @!attribute [rw] allows_unencrypted_object_uploads
441
+ # @return [Integer]
442
+ #
443
+ # @!attribute [rw] denies_unencrypted_object_uploads
444
+ # @return [Integer]
445
+ #
446
+ # @!attribute [rw] unknown
447
+ # @return [Integer]
448
+ #
449
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/BucketCountPolicyAllowsUnencryptedObjectUploads AWS API Documentation
450
+ #
451
+ class BucketCountPolicyAllowsUnencryptedObjectUploads < Struct.new(
452
+ :allows_unencrypted_object_uploads,
453
+ :denies_unencrypted_object_uploads,
454
+ :unknown)
455
+ SENSITIVE = []
456
+ include Aws::Structure
457
+ end
458
+
426
459
  # Specifies the operator to use in a property-based condition that
427
460
  # filters the results of a query for information about S3 buckets.
428
461
  #
@@ -495,7 +528,7 @@ module Aws::Macie2
495
528
  # @return [Types::BlockPublicAccess]
496
529
  #
497
530
  # @!attribute [rw] bucket_policy
498
- # Provides information about the permissions settings of a bucket
531
+ # Provides information about the permissions settings of the bucket
499
532
  # policy for an S3 bucket.
500
533
  # @return [Types::BucketPolicy]
501
534
  #
@@ -515,6 +548,9 @@ module Aws::Macie2
515
548
  # @!attribute [rw] account_id
516
549
  # @return [String]
517
550
  #
551
+ # @!attribute [rw] allows_unencrypted_object_uploads
552
+ # @return [String]
553
+ #
518
554
  # @!attribute [rw] bucket_arn
519
555
  # @return [String]
520
556
  #
@@ -589,21 +625,23 @@ module Aws::Macie2
589
625
  # @!attribute [rw] unclassifiable_object_count
590
626
  # Provides information about the total storage size (in bytes) or
591
627
  # 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.
628
+ # buckets. In a BucketMetadata or MatchingBucket object, this data is
629
+ # for a specific bucket. In a GetBucketStatisticsResponse object, this
630
+ # data is aggregated for all the buckets in the query results. If
631
+ # versioning is enabled for a bucket, total storage size values are
632
+ # based on the size of the latest version of each applicable object in
633
+ # the bucket.
597
634
  # @return [Types::ObjectLevelStatistics]
598
635
  #
599
636
  # @!attribute [rw] unclassifiable_object_size_in_bytes
600
637
  # Provides information about the total storage size (in bytes) or
601
638
  # 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.
639
+ # buckets. In a BucketMetadata or MatchingBucket object, this data is
640
+ # for a specific bucket. In a GetBucketStatisticsResponse object, this
641
+ # data is aggregated for all the buckets in the query results. If
642
+ # versioning is enabled for a bucket, total storage size values are
643
+ # based on the size of the latest version of each applicable object in
644
+ # the bucket.
607
645
  # @return [Types::ObjectLevelStatistics]
608
646
  #
609
647
  # @!attribute [rw] versioning
@@ -613,6 +651,7 @@ module Aws::Macie2
613
651
  #
614
652
  class BucketMetadata < Struct.new(
615
653
  :account_id,
654
+ :allows_unencrypted_object_uploads,
616
655
  :bucket_arn,
617
656
  :bucket_created_at,
618
657
  :bucket_name,
@@ -659,8 +698,8 @@ module Aws::Macie2
659
698
  include Aws::Structure
660
699
  end
661
700
 
662
- # Provides information about the permissions settings of a bucket policy
663
- # for an S3 bucket.
701
+ # Provides information about the permissions settings of the bucket
702
+ # policy for an S3 bucket.
664
703
  #
665
704
  # @!attribute [rw] allows_public_read_access
666
705
  # @return [Boolean]
@@ -931,7 +970,7 @@ module Aws::Macie2
931
970
  # {
932
971
  # simple_scope_term: {
933
972
  # 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
973
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
935
974
  # values: ["__string"],
936
975
  # },
937
976
  # tag_scope_term: {
@@ -953,7 +992,7 @@ module Aws::Macie2
953
992
  # {
954
993
  # simple_scope_term: {
955
994
  # 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
995
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
957
996
  # values: ["__string"],
958
997
  # },
959
998
  # tag_scope_term: {
@@ -971,6 +1010,48 @@ module Aws::Macie2
971
1010
  # ],
972
1011
  # },
973
1012
  # },
1013
+ # bucket_criteria: {
1014
+ # excludes: {
1015
+ # and: [
1016
+ # {
1017
+ # simple_criterion: {
1018
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1019
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
1020
+ # values: ["__string"],
1021
+ # },
1022
+ # tag_criterion: {
1023
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1024
+ # tag_values: [
1025
+ # {
1026
+ # key: "__string",
1027
+ # value: "__string",
1028
+ # },
1029
+ # ],
1030
+ # },
1031
+ # },
1032
+ # ],
1033
+ # },
1034
+ # includes: {
1035
+ # and: [
1036
+ # {
1037
+ # simple_criterion: {
1038
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1039
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
1040
+ # values: ["__string"],
1041
+ # },
1042
+ # tag_criterion: {
1043
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1044
+ # tag_values: [
1045
+ # {
1046
+ # key: "__string",
1047
+ # value: "__string",
1048
+ # },
1049
+ # ],
1050
+ # },
1051
+ # },
1052
+ # ],
1053
+ # },
1054
+ # },
974
1055
  # },
975
1056
  # sampling_percentage: 1,
976
1057
  # schedule_frequency: {
@@ -1011,7 +1092,12 @@ module Aws::Macie2
1011
1092
  #
1012
1093
  # @!attribute [rw] s3_job_definition
1013
1094
  # Specifies which S3 buckets contain the objects that a classification
1014
- # job analyzes, and the scope of that analysis.
1095
+ # job analyzes, and the scope of that analysis. The bucket
1096
+ # specification can be static (bucketDefinitions) or dynamic
1097
+ # (bucketCriteria). If it's static, the job analyzes objects in the
1098
+ # same predefined set of buckets each time the job runs. If it's
1099
+ # dynamic, the job analyzes objects in any buckets that match the
1100
+ # specified criteria each time the job starts to run.
1015
1101
  # @return [Types::S3JobDefinition]
1016
1102
  #
1017
1103
  # @!attribute [rw] sampling_percentage
@@ -1353,6 +1439,87 @@ module Aws::Macie2
1353
1439
  #
1354
1440
  class CreateSampleFindingsResponse < Aws::EmptyStructure; end
1355
1441
 
1442
+ # Specifies one or more property- and tag-based conditions that define
1443
+ # criteria for including or excluding S3 buckets from a classification
1444
+ # job.
1445
+ #
1446
+ # @note When making an API call, you may pass CriteriaBlockForJob
1447
+ # data as a hash:
1448
+ #
1449
+ # {
1450
+ # and: [
1451
+ # {
1452
+ # simple_criterion: {
1453
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1454
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
1455
+ # values: ["__string"],
1456
+ # },
1457
+ # tag_criterion: {
1458
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1459
+ # tag_values: [
1460
+ # {
1461
+ # key: "__string",
1462
+ # value: "__string",
1463
+ # },
1464
+ # ],
1465
+ # },
1466
+ # },
1467
+ # ],
1468
+ # }
1469
+ #
1470
+ # @!attribute [rw] and
1471
+ # @return [Array<Types::CriteriaForJob>]
1472
+ #
1473
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CriteriaBlockForJob AWS API Documentation
1474
+ #
1475
+ class CriteriaBlockForJob < Struct.new(
1476
+ :and)
1477
+ SENSITIVE = []
1478
+ include Aws::Structure
1479
+ end
1480
+
1481
+ # Specifies a property- or tag-based condition that defines criteria for
1482
+ # including or excluding S3 buckets from a classification job.
1483
+ #
1484
+ # @note When making an API call, you may pass CriteriaForJob
1485
+ # data as a hash:
1486
+ #
1487
+ # {
1488
+ # simple_criterion: {
1489
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1490
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
1491
+ # values: ["__string"],
1492
+ # },
1493
+ # tag_criterion: {
1494
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1495
+ # tag_values: [
1496
+ # {
1497
+ # key: "__string",
1498
+ # value: "__string",
1499
+ # },
1500
+ # ],
1501
+ # },
1502
+ # }
1503
+ #
1504
+ # @!attribute [rw] simple_criterion
1505
+ # Specifies a property-based condition that determines whether an S3
1506
+ # bucket is included or excluded from a classification job.
1507
+ # @return [Types::SimpleCriterionForJob]
1508
+ #
1509
+ # @!attribute [rw] tag_criterion
1510
+ # Specifies a tag-based condition that determines whether an S3 bucket
1511
+ # is included or excluded from a classification job.
1512
+ # @return [Types::TagCriterionForJob]
1513
+ #
1514
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CriteriaForJob AWS API Documentation
1515
+ #
1516
+ class CriteriaForJob < Struct.new(
1517
+ :simple_criterion,
1518
+ :tag_criterion)
1519
+ SENSITIVE = []
1520
+ include Aws::Structure
1521
+ end
1522
+
1356
1523
  # Specifies the operator to use in a property-based condition that
1357
1524
  # filters the results of a query for findings. For detailed information
1358
1525
  # and examples of each operator, see [Fundamentals of filtering
@@ -1475,9 +1642,9 @@ module Aws::Macie2
1475
1642
  # @return [String]
1476
1643
  #
1477
1644
  # @!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.
1645
+ # Specifies the location of 1-15 occurrences of sensitive data that
1646
+ # was detected by managed data identifiers or a custom data identifier
1647
+ # and produced a sensitive data finding.
1481
1648
  # @return [Types::Occurrences]
1482
1649
  #
1483
1650
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CustomDetection AWS API Documentation
@@ -1543,9 +1710,9 @@ module Aws::Macie2
1543
1710
  # @return [Integer]
1544
1711
  #
1545
1712
  # @!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.
1713
+ # Specifies the location of 1-15 occurrences of sensitive data that
1714
+ # was detected by managed data identifiers or a custom data identifier
1715
+ # and produced a sensitive data finding.
1549
1716
  # @return [Types::Occurrences]
1550
1717
  #
1551
1718
  # @!attribute [rw] type
@@ -1789,10 +1956,13 @@ module Aws::Macie2
1789
1956
  #
1790
1957
  # @!attribute [rw] last_run_error_status
1791
1958
  # 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.
1959
+ # occurred when a classification job ran. For information about using
1960
+ # logging data to investigate these errors, see [Monitoring sensitive
1961
+ # data discovery jobs][1] in the *Amazon Macie User Guide*.
1962
+ #
1963
+ #
1964
+ #
1965
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/discovery-jobs-monitor-cw-logs.html
1796
1966
  # @return [Types::LastRunErrorStatus]
1797
1967
  #
1798
1968
  # @!attribute [rw] last_run_time
@@ -1803,7 +1973,12 @@ module Aws::Macie2
1803
1973
  #
1804
1974
  # @!attribute [rw] s3_job_definition
1805
1975
  # Specifies which S3 buckets contain the objects that a classification
1806
- # job analyzes, and the scope of that analysis.
1976
+ # job analyzes, and the scope of that analysis. The bucket
1977
+ # specification can be static (bucketDefinitions) or dynamic
1978
+ # (bucketCriteria). If it's static, the job analyzes objects in the
1979
+ # same predefined set of buckets each time the job runs. If it's
1980
+ # dynamic, the job analyzes objects in any buckets that match the
1981
+ # specified criteria each time the job starts to run.
1807
1982
  # @return [Types::S3JobDefinition]
1808
1983
  #
1809
1984
  # @!attribute [rw] sampling_percentage
@@ -1999,7 +2174,13 @@ module Aws::Macie2
1999
2174
  # The frequency with which Amazon Macie publishes updates to policy
2000
2175
  # findings for an account. This includes publishing updates to AWS
2001
2176
  # Security Hub and Amazon EventBridge (formerly called Amazon
2002
- # CloudWatch Events). Valid values are:
2177
+ # CloudWatch Events). For more information, see [Monitoring and
2178
+ # processing findings][1] in the *Amazon Macie User Guide*. Valid
2179
+ # values are:
2180
+ #
2181
+ #
2182
+ #
2183
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/findings-monitor.html
2003
2184
  # @return [String]
2004
2185
  #
2005
2186
  # @!attribute [rw] status
@@ -2396,12 +2577,24 @@ module Aws::Macie2
2396
2577
  # @!attribute [rw] bucket_count_by_encryption_type
2397
2578
  # Provides information about the number of S3 buckets that use certain
2398
2579
  # types of server-side encryption by default or don't encrypt new
2399
- # objects by default.
2580
+ # objects by default. For detailed information about these settings,
2581
+ # see [Setting default server-side encryption behavior for Amazon S3
2582
+ # buckets][1] in the *Amazon Simple Storage Service User Guide*.
2583
+ #
2584
+ #
2585
+ #
2586
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-encryption.html
2400
2587
  # @return [Types::BucketCountByEncryptionType]
2401
2588
  #
2589
+ # @!attribute [rw] bucket_count_by_object_encryption_requirement
2590
+ # Provides information about the number of S3 buckets whose bucket
2591
+ # policies do or don't require server-side encryption of objects when
2592
+ # objects are uploaded to the buckets.
2593
+ # @return [Types::BucketCountPolicyAllowsUnencryptedObjectUploads]
2594
+ #
2402
2595
  # @!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.
2596
+ # Provides information about the number of S3 buckets that are or
2597
+ # aren't shared with other AWS accounts.
2405
2598
  # @return [Types::BucketCountBySharedAccessType]
2406
2599
  #
2407
2600
  # @!attribute [rw] classifiable_object_count
@@ -2425,21 +2618,23 @@ module Aws::Macie2
2425
2618
  # @!attribute [rw] unclassifiable_object_count
2426
2619
  # Provides information about the total storage size (in bytes) or
2427
2620
  # 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.
2621
+ # buckets. In a BucketMetadata or MatchingBucket object, this data is
2622
+ # for a specific bucket. In a GetBucketStatisticsResponse object, this
2623
+ # data is aggregated for all the buckets in the query results. If
2624
+ # versioning is enabled for a bucket, total storage size values are
2625
+ # based on the size of the latest version of each applicable object in
2626
+ # the bucket.
2433
2627
  # @return [Types::ObjectLevelStatistics]
2434
2628
  #
2435
2629
  # @!attribute [rw] unclassifiable_object_size_in_bytes
2436
2630
  # Provides information about the total storage size (in bytes) or
2437
2631
  # 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.
2632
+ # buckets. In a BucketMetadata or MatchingBucket object, this data is
2633
+ # for a specific bucket. In a GetBucketStatisticsResponse object, this
2634
+ # data is aggregated for all the buckets in the query results. If
2635
+ # versioning is enabled for a bucket, total storage size values are
2636
+ # based on the size of the latest version of each applicable object in
2637
+ # the bucket.
2443
2638
  # @return [Types::ObjectLevelStatistics]
2444
2639
  #
2445
2640
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetBucketStatisticsResponse AWS API Documentation
@@ -2448,6 +2643,7 @@ module Aws::Macie2
2448
2643
  :bucket_count,
2449
2644
  :bucket_count_by_effective_permission,
2450
2645
  :bucket_count_by_encryption_type,
2646
+ :bucket_count_by_object_encryption_requirement,
2451
2647
  :bucket_count_by_shared_access_type,
2452
2648
  :classifiable_object_count,
2453
2649
  :classifiable_size_in_bytes,
@@ -2698,6 +2894,34 @@ module Aws::Macie2
2698
2894
  include Aws::Structure
2699
2895
  end
2700
2896
 
2897
+ # @api private
2898
+ #
2899
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetFindingsPublicationConfigurationRequest AWS API Documentation
2900
+ #
2901
+ class GetFindingsPublicationConfigurationRequest < Aws::EmptyStructure; end
2902
+
2903
+ # Provides information about the current configuration settings for
2904
+ # publishing findings to AWS Security Hub automatically.
2905
+ #
2906
+ # @!attribute [rw] security_hub_configuration
2907
+ # Specifies configuration settings that determine which findings are
2908
+ # published to AWS Security Hub automatically. For information about
2909
+ # how Macie publishes findings to Security Hub, see [Amazon Macie
2910
+ # integration with Security Hub][1] in the *Amazon Macie User Guide*.
2911
+ #
2912
+ #
2913
+ #
2914
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/securityhub-integration.html
2915
+ # @return [Types::SecurityHubConfiguration]
2916
+ #
2917
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetFindingsPublicationConfigurationResponse AWS API Documentation
2918
+ #
2919
+ class GetFindingsPublicationConfigurationResponse < Struct.new(
2920
+ :security_hub_configuration)
2921
+ SENSITIVE = []
2922
+ include Aws::Structure
2923
+ end
2924
+
2701
2925
  # Specifies one or more findings to retrieve.
2702
2926
  #
2703
2927
  # @note When making an API call, you may pass GetFindingsRequest
@@ -2778,7 +3002,13 @@ module Aws::Macie2
2778
3002
  # The frequency with which Amazon Macie publishes updates to policy
2779
3003
  # findings for an account. This includes publishing updates to AWS
2780
3004
  # Security Hub and Amazon EventBridge (formerly called Amazon
2781
- # CloudWatch Events). Valid values are:
3005
+ # CloudWatch Events). For more information, see [Monitoring and
3006
+ # processing findings][1] in the *Amazon Macie User Guide*. Valid
3007
+ # values are:
3008
+ #
3009
+ #
3010
+ #
3011
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/findings-monitor.html
2782
3012
  # @return [String]
2783
3013
  #
2784
3014
  # @!attribute [rw] service_role
@@ -3282,7 +3512,9 @@ module Aws::Macie2
3282
3512
  end
3283
3513
 
3284
3514
  # Specifies a property- or tag-based condition that defines criteria for
3285
- # including or excluding objects from a classification job.
3515
+ # including or excluding S3 objects from a classification job. A
3516
+ # JobScopeTerm object can contain only one simpleScopeTerm object or one
3517
+ # tagScopeTerm object.
3286
3518
  #
3287
3519
  # @note When making an API call, you may pass JobScopeTerm
3288
3520
  # data as a hash:
@@ -3290,7 +3522,7 @@ module Aws::Macie2
3290
3522
  # {
3291
3523
  # simple_scope_term: {
3292
3524
  # 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
3525
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
3294
3526
  # values: ["__string"],
3295
3527
  # },
3296
3528
  # tag_scope_term: {
@@ -3307,13 +3539,13 @@ module Aws::Macie2
3307
3539
  # }
3308
3540
  #
3309
3541
  # @!attribute [rw] simple_scope_term
3310
- # Specifies a property-based condition that determines whether an
3542
+ # Specifies a property-based condition that determines whether an S3
3311
3543
  # object is included or excluded from a classification job.
3312
3544
  # @return [Types::SimpleScopeTerm]
3313
3545
  #
3314
3546
  # @!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.
3547
+ # Specifies a tag-based condition that determines whether an S3 object
3548
+ # is included or excluded from a classification job.
3317
3549
  # @return [Types::TagScopeTerm]
3318
3550
  #
3319
3551
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/JobScopeTerm AWS API Documentation
@@ -3326,9 +3558,8 @@ module Aws::Macie2
3326
3558
  end
3327
3559
 
3328
3560
  # 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.
3561
+ # criteria for including or excluding S3 objects from a classification
3562
+ # job.
3332
3563
  #
3333
3564
  # @note When making an API call, you may pass JobScopingBlock
3334
3565
  # data as a hash:
@@ -3338,7 +3569,7 @@ module Aws::Macie2
3338
3569
  # {
3339
3570
  # simple_scope_term: {
3340
3571
  # 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
3572
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
3342
3573
  # values: ["__string"],
3343
3574
  # },
3344
3575
  # tag_scope_term: {
@@ -3389,10 +3620,13 @@ module Aws::Macie2
3389
3620
  #
3390
3621
  # @!attribute [rw] last_run_error_status
3391
3622
  # 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.
3623
+ # occurred when a classification job ran. For information about using
3624
+ # logging data to investigate these errors, see [Monitoring sensitive
3625
+ # data discovery jobs][1] in the *Amazon Macie User Guide*.
3626
+ #
3627
+ #
3628
+ #
3629
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/discovery-jobs-monitor-cw-logs.html
3396
3630
  # @return [Types::LastRunErrorStatus]
3397
3631
  #
3398
3632
  # @!attribute [rw] name
@@ -3409,6 +3643,12 @@ module Aws::Macie2
3409
3643
  # status of RUNNING.
3410
3644
  # @return [Types::UserPausedDetails]
3411
3645
  #
3646
+ # @!attribute [rw] bucket_criteria
3647
+ # Specifies property- and tag-based conditions that define criteria
3648
+ # for including or excluding S3 buckets from a classification job.
3649
+ # Exclude conditions take precedence over include conditions.
3650
+ # @return [Types::S3BucketCriteriaForJob]
3651
+ #
3412
3652
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/JobSummary AWS API Documentation
3413
3653
  #
3414
3654
  class JobSummary < Struct.new(
@@ -3419,7 +3659,8 @@ module Aws::Macie2
3419
3659
  :job_type,
3420
3660
  :last_run_error_status,
3421
3661
  :name,
3422
- :user_paused_details)
3662
+ :user_paused_details,
3663
+ :bucket_criteria)
3423
3664
  SENSITIVE = []
3424
3665
  include Aws::Structure
3425
3666
  end
@@ -3444,10 +3685,13 @@ module Aws::Macie2
3444
3685
  end
3445
3686
 
3446
3687
  # 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.
3688
+ # when a classification job ran. For information about using logging
3689
+ # data to investigate these errors, see [Monitoring sensitive data
3690
+ # discovery jobs][1] in the *Amazon Macie User Guide*.
3691
+ #
3692
+ #
3693
+ #
3694
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/discovery-jobs-monitor-cw-logs.html
3451
3695
  #
3452
3696
  # @!attribute [rw] code
3453
3697
  # Specifies whether any account- or bucket-level access errors
@@ -3959,6 +4203,98 @@ module Aws::Macie2
3959
4203
  include Aws::Structure
3960
4204
  end
3961
4205
 
4206
+ # Provides statistical data and other information about an S3 bucket
4207
+ # that Amazon Macie monitors and analyzes.
4208
+ #
4209
+ # @!attribute [rw] account_id
4210
+ # @return [String]
4211
+ #
4212
+ # @!attribute [rw] bucket_name
4213
+ # @return [String]
4214
+ #
4215
+ # @!attribute [rw] classifiable_object_count
4216
+ # @return [Integer]
4217
+ #
4218
+ # @!attribute [rw] classifiable_size_in_bytes
4219
+ # @return [Integer]
4220
+ #
4221
+ # @!attribute [rw] job_details
4222
+ # Specifies whether any one-time or recurring classification jobs are
4223
+ # configured to analyze data in an S3 bucket, and, if so, the details
4224
+ # of the job that ran most recently.
4225
+ # @return [Types::JobDetails]
4226
+ #
4227
+ # @!attribute [rw] object_count
4228
+ # @return [Integer]
4229
+ #
4230
+ # @!attribute [rw] object_count_by_encryption_type
4231
+ # Provides information about the number of objects that are in an S3
4232
+ # bucket and use certain types of server-side encryption, use
4233
+ # client-side encryption, or aren't encrypted.
4234
+ # @return [Types::ObjectCountByEncryptionType]
4235
+ #
4236
+ # @!attribute [rw] size_in_bytes
4237
+ # @return [Integer]
4238
+ #
4239
+ # @!attribute [rw] size_in_bytes_compressed
4240
+ # @return [Integer]
4241
+ #
4242
+ # @!attribute [rw] unclassifiable_object_count
4243
+ # Provides information about the total storage size (in bytes) or
4244
+ # number of objects that Amazon Macie can't analyze in one or more S3
4245
+ # buckets. In a BucketMetadata or MatchingBucket object, this data is
4246
+ # for a specific bucket. In a GetBucketStatisticsResponse object, this
4247
+ # data is aggregated for all the buckets in the query results. If
4248
+ # versioning is enabled for a bucket, total storage size values are
4249
+ # based on the size of the latest version of each applicable object in
4250
+ # the bucket.
4251
+ # @return [Types::ObjectLevelStatistics]
4252
+ #
4253
+ # @!attribute [rw] unclassifiable_object_size_in_bytes
4254
+ # Provides information about the total storage size (in bytes) or
4255
+ # number of objects that Amazon Macie can't analyze in one or more S3
4256
+ # buckets. In a BucketMetadata or MatchingBucket object, this data is
4257
+ # for a specific bucket. In a GetBucketStatisticsResponse object, this
4258
+ # data is aggregated for all the buckets in the query results. If
4259
+ # versioning is enabled for a bucket, total storage size values are
4260
+ # based on the size of the latest version of each applicable object in
4261
+ # the bucket.
4262
+ # @return [Types::ObjectLevelStatistics]
4263
+ #
4264
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/MatchingBucket AWS API Documentation
4265
+ #
4266
+ class MatchingBucket < Struct.new(
4267
+ :account_id,
4268
+ :bucket_name,
4269
+ :classifiable_object_count,
4270
+ :classifiable_size_in_bytes,
4271
+ :job_details,
4272
+ :object_count,
4273
+ :object_count_by_encryption_type,
4274
+ :size_in_bytes,
4275
+ :size_in_bytes_compressed,
4276
+ :unclassifiable_object_count,
4277
+ :unclassifiable_object_size_in_bytes)
4278
+ SENSITIVE = []
4279
+ include Aws::Structure
4280
+ end
4281
+
4282
+ # Provides statistical data and other information about an AWS resource
4283
+ # that Amazon Macie monitors and analyzes.
4284
+ #
4285
+ # @!attribute [rw] matching_bucket
4286
+ # Provides statistical data and other information about an S3 bucket
4287
+ # that Amazon Macie monitors and analyzes.
4288
+ # @return [Types::MatchingBucket]
4289
+ #
4290
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/MatchingResource AWS API Documentation
4291
+ #
4292
+ class MatchingResource < Struct.new(
4293
+ :matching_bucket)
4294
+ SENSITIVE = []
4295
+ include Aws::Structure
4296
+ end
4297
+
3962
4298
  # Provides information about an account that's associated with an
3963
4299
  # Amazon Macie administrator account.
3964
4300
  #
@@ -4048,24 +4384,28 @@ module Aws::Macie2
4048
4384
  # @!attribute [rw] unencrypted
4049
4385
  # @return [Integer]
4050
4386
  #
4387
+ # @!attribute [rw] unknown
4388
+ # @return [Integer]
4389
+ #
4051
4390
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ObjectCountByEncryptionType AWS API Documentation
4052
4391
  #
4053
4392
  class ObjectCountByEncryptionType < Struct.new(
4054
4393
  :customer_managed,
4055
4394
  :kms_managed,
4056
4395
  :s3_managed,
4057
- :unencrypted)
4396
+ :unencrypted,
4397
+ :unknown)
4058
4398
  SENSITIVE = []
4059
4399
  include Aws::Structure
4060
4400
  end
4061
4401
 
4062
4402
  # Provides information about the total storage size (in bytes) or number
4063
4403
  # 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.
4404
+ # In a BucketMetadata or MatchingBucket object, this data is for a
4405
+ # specific bucket. In a GetBucketStatisticsResponse object, this data is
4406
+ # aggregated for all the buckets in the query results. If versioning is
4407
+ # enabled for a bucket, total storage size values are based on the size
4408
+ # of the latest version of each applicable object in the bucket.
4069
4409
  #
4070
4410
  # @!attribute [rw] file_type
4071
4411
  # @return [Integer]
@@ -4086,7 +4426,7 @@ module Aws::Macie2
4086
4426
  include Aws::Structure
4087
4427
  end
4088
4428
 
4089
- # Provides the location of 1-15 occurrences of sensitive data that was
4429
+ # Specifies the location of 1-15 occurrences of sensitive data that was
4090
4430
  # detected by managed data identifiers or a custom data identifier and
4091
4431
  # produced a sensitive data finding.
4092
4432
  #
@@ -4134,14 +4474,12 @@ module Aws::Macie2
4134
4474
  #
4135
4475
  # @!attribute [rw] line_range
4136
4476
  # 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.
4477
+ # data in a Microsoft Word document or non-binary text file.
4139
4478
  # @return [Types::Range]
4140
4479
  #
4141
4480
  # @!attribute [rw] offset_range
4142
4481
  # 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.
4482
+ # data in a Microsoft Word document or non-binary text file.
4145
4483
  # @return [Types::Range]
4146
4484
  #
4147
4485
  # @!attribute [rw] page_number
@@ -4228,9 +4566,51 @@ module Aws::Macie2
4228
4566
  include Aws::Structure
4229
4567
  end
4230
4568
 
4569
+ # Specifies configuration settings for publishing findings to AWS
4570
+ # Security Hub automatically.
4571
+ #
4572
+ # @note When making an API call, you may pass PutFindingsPublicationConfigurationRequest
4573
+ # data as a hash:
4574
+ #
4575
+ # {
4576
+ # client_token: "__string",
4577
+ # security_hub_configuration: {
4578
+ # publish_classification_findings: false, # required
4579
+ # publish_policy_findings: false, # required
4580
+ # },
4581
+ # }
4582
+ #
4583
+ # @!attribute [rw] client_token
4584
+ # **A suitable default value is auto-generated.** You should normally
4585
+ # not need to pass this option.
4586
+ # @return [String]
4587
+ #
4588
+ # @!attribute [rw] security_hub_configuration
4589
+ # Specifies configuration settings that determine which findings are
4590
+ # published to AWS Security Hub automatically. For information about
4591
+ # how Macie publishes findings to Security Hub, see [Amazon Macie
4592
+ # integration with Security Hub][1] in the *Amazon Macie User Guide*.
4593
+ #
4594
+ #
4595
+ #
4596
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/securityhub-integration.html
4597
+ # @return [Types::SecurityHubConfiguration]
4598
+ #
4599
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/PutFindingsPublicationConfigurationRequest AWS API Documentation
4600
+ #
4601
+ class PutFindingsPublicationConfigurationRequest < Struct.new(
4602
+ :client_token,
4603
+ :security_hub_configuration)
4604
+ SENSITIVE = []
4605
+ include Aws::Structure
4606
+ end
4607
+
4608
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/PutFindingsPublicationConfigurationResponse AWS API Documentation
4609
+ #
4610
+ class PutFindingsPublicationConfigurationResponse < Aws::EmptyStructure; end
4611
+
4231
4612
  # 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.
4613
+ # in a Microsoft Word document or non-binary text file.
4234
4614
  #
4235
4615
  # @!attribute [rw] end
4236
4616
  # @return [Integer]
@@ -4327,6 +4707,9 @@ module Aws::Macie2
4327
4707
 
4328
4708
  # Provides information about an S3 bucket that a finding applies to.
4329
4709
  #
4710
+ # @!attribute [rw] allows_unencrypted_object_uploads
4711
+ # @return [String]
4712
+ #
4330
4713
  # @!attribute [rw] arn
4331
4714
  # @return [String]
4332
4715
  #
@@ -4359,6 +4742,7 @@ module Aws::Macie2
4359
4742
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/S3Bucket AWS API Documentation
4360
4743
  #
4361
4744
  class S3Bucket < Struct.new(
4745
+ :allows_unencrypted_object_uploads,
4362
4746
  :arn,
4363
4747
  :created_at,
4364
4748
  :default_server_side_encryption,
@@ -4370,10 +4754,82 @@ module Aws::Macie2
4370
4754
  include Aws::Structure
4371
4755
  end
4372
4756
 
4373
- # Specifies which AWS account owns the S3 buckets that a classification
4374
- # job analyzes, and the buckets to analyze for the account.
4757
+ # Specifies property- and tag-based conditions that define criteria for
4758
+ # including or excluding S3 buckets from a classification job. Exclude
4759
+ # conditions take precedence over include conditions.
4375
4760
  #
4376
- # @note When making an API call, you may pass S3BucketDefinitionForJob
4761
+ # @note When making an API call, you may pass S3BucketCriteriaForJob
4762
+ # data as a hash:
4763
+ #
4764
+ # {
4765
+ # excludes: {
4766
+ # and: [
4767
+ # {
4768
+ # simple_criterion: {
4769
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4770
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
4771
+ # values: ["__string"],
4772
+ # },
4773
+ # tag_criterion: {
4774
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4775
+ # tag_values: [
4776
+ # {
4777
+ # key: "__string",
4778
+ # value: "__string",
4779
+ # },
4780
+ # ],
4781
+ # },
4782
+ # },
4783
+ # ],
4784
+ # },
4785
+ # includes: {
4786
+ # and: [
4787
+ # {
4788
+ # simple_criterion: {
4789
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4790
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
4791
+ # values: ["__string"],
4792
+ # },
4793
+ # tag_criterion: {
4794
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4795
+ # tag_values: [
4796
+ # {
4797
+ # key: "__string",
4798
+ # value: "__string",
4799
+ # },
4800
+ # ],
4801
+ # },
4802
+ # },
4803
+ # ],
4804
+ # },
4805
+ # }
4806
+ #
4807
+ # @!attribute [rw] excludes
4808
+ # Specifies one or more property- and tag-based conditions that define
4809
+ # criteria for including or excluding S3 buckets from a classification
4810
+ # job.
4811
+ # @return [Types::CriteriaBlockForJob]
4812
+ #
4813
+ # @!attribute [rw] includes
4814
+ # Specifies one or more property- and tag-based conditions that define
4815
+ # criteria for including or excluding S3 buckets from a classification
4816
+ # job.
4817
+ # @return [Types::CriteriaBlockForJob]
4818
+ #
4819
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/S3BucketCriteriaForJob AWS API Documentation
4820
+ #
4821
+ class S3BucketCriteriaForJob < Struct.new(
4822
+ :excludes,
4823
+ :includes)
4824
+ SENSITIVE = []
4825
+ include Aws::Structure
4826
+ end
4827
+
4828
+ # Specifies an AWS account that owns S3 buckets for a classification job
4829
+ # to analyze, and one or more specific buckets to analyze for that
4830
+ # account.
4831
+ #
4832
+ # @note When making an API call, you may pass S3BucketDefinitionForJob
4377
4833
  # data as a hash:
4378
4834
  #
4379
4835
  # {
@@ -4445,7 +4901,12 @@ module Aws::Macie2
4445
4901
  end
4446
4902
 
4447
4903
  # Specifies which S3 buckets contain the objects that a classification
4448
- # job analyzes, and the scope of that analysis.
4904
+ # job analyzes, and the scope of that analysis. The bucket specification
4905
+ # can be static (bucketDefinitions) or dynamic (bucketCriteria). If
4906
+ # it's static, the job analyzes objects in the same predefined set of
4907
+ # buckets each time the job runs. If it's dynamic, the job analyzes
4908
+ # objects in any buckets that match the specified criteria each time the
4909
+ # job starts to run.
4449
4910
  #
4450
4911
  # @note When making an API call, you may pass S3JobDefinition
4451
4912
  # data as a hash:
@@ -4463,7 +4924,7 @@ module Aws::Macie2
4463
4924
  # {
4464
4925
  # simple_scope_term: {
4465
4926
  # 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
4927
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
4467
4928
  # values: ["__string"],
4468
4929
  # },
4469
4930
  # tag_scope_term: {
@@ -4485,7 +4946,7 @@ module Aws::Macie2
4485
4946
  # {
4486
4947
  # simple_scope_term: {
4487
4948
  # 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
4949
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
4489
4950
  # values: ["__string"],
4490
4951
  # },
4491
4952
  # tag_scope_term: {
@@ -4503,23 +4964,71 @@ module Aws::Macie2
4503
4964
  # ],
4504
4965
  # },
4505
4966
  # },
4967
+ # bucket_criteria: {
4968
+ # excludes: {
4969
+ # and: [
4970
+ # {
4971
+ # simple_criterion: {
4972
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4973
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
4974
+ # values: ["__string"],
4975
+ # },
4976
+ # tag_criterion: {
4977
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4978
+ # tag_values: [
4979
+ # {
4980
+ # key: "__string",
4981
+ # value: "__string",
4982
+ # },
4983
+ # ],
4984
+ # },
4985
+ # },
4986
+ # ],
4987
+ # },
4988
+ # includes: {
4989
+ # and: [
4990
+ # {
4991
+ # simple_criterion: {
4992
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4993
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
4994
+ # values: ["__string"],
4995
+ # },
4996
+ # tag_criterion: {
4997
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4998
+ # tag_values: [
4999
+ # {
5000
+ # key: "__string",
5001
+ # value: "__string",
5002
+ # },
5003
+ # ],
5004
+ # },
5005
+ # },
5006
+ # ],
5007
+ # },
5008
+ # },
4506
5009
  # }
4507
5010
  #
4508
5011
  # @!attribute [rw] bucket_definitions
4509
5012
  # @return [Array<Types::S3BucketDefinitionForJob>]
4510
5013
  #
4511
5014
  # @!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.
5015
+ # Specifies one or more property- and tag-based conditions that define
5016
+ # criteria for including or excluding S3 objects from a classification
5017
+ # job. Exclude conditions take precedence over include conditions.
4516
5018
  # @return [Types::Scoping]
4517
5019
  #
5020
+ # @!attribute [rw] bucket_criteria
5021
+ # Specifies property- and tag-based conditions that define criteria
5022
+ # for including or excluding S3 buckets from a classification job.
5023
+ # Exclude conditions take precedence over include conditions.
5024
+ # @return [Types::S3BucketCriteriaForJob]
5025
+ #
4518
5026
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/S3JobDefinition AWS API Documentation
4519
5027
  #
4520
5028
  class S3JobDefinition < Struct.new(
4521
5029
  :bucket_definitions,
4522
- :scoping)
5030
+ :scoping,
5031
+ :bucket_criteria)
4523
5032
  SENSITIVE = []
4524
5033
  include Aws::Structure
4525
5034
  end
@@ -4587,10 +5096,9 @@ module Aws::Macie2
4587
5096
  include Aws::Structure
4588
5097
  end
4589
5098
 
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.
5099
+ # Specifies one or more property- and tag-based conditions that define
5100
+ # criteria for including or excluding S3 objects from a classification
5101
+ # job. Exclude conditions take precedence over include conditions.
4594
5102
  #
4595
5103
  # @note When making an API call, you may pass Scoping
4596
5104
  # data as a hash:
@@ -4601,7 +5109,7 @@ module Aws::Macie2
4601
5109
  # {
4602
5110
  # simple_scope_term: {
4603
5111
  # 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
5112
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
4605
5113
  # values: ["__string"],
4606
5114
  # },
4607
5115
  # tag_scope_term: {
@@ -4623,7 +5131,7 @@ module Aws::Macie2
4623
5131
  # {
4624
5132
  # simple_scope_term: {
4625
5133
  # 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
5134
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
4627
5135
  # values: ["__string"],
4628
5136
  # },
4629
5137
  # tag_scope_term: {
@@ -4644,16 +5152,14 @@ module Aws::Macie2
4644
5152
  #
4645
5153
  # @!attribute [rw] excludes
4646
5154
  # 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.
5155
+ # criteria for including or excluding S3 objects from a classification
5156
+ # job.
4650
5157
  # @return [Types::JobScopingBlock]
4651
5158
  #
4652
5159
  # @!attribute [rw] includes
4653
5160
  # 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.
5161
+ # criteria for including or excluding S3 objects from a classification
5162
+ # job.
4657
5163
  # @return [Types::JobScopingBlock]
4658
5164
  #
4659
5165
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/Scoping AWS API Documentation
@@ -4665,6 +5171,419 @@ module Aws::Macie2
4665
5171
  include Aws::Structure
4666
5172
  end
4667
5173
 
5174
+ # Specifies property- and tag-based conditions that define filter
5175
+ # criteria for including or excluding S3 buckets from the query results.
5176
+ # Exclude conditions take precedence over include conditions.
5177
+ #
5178
+ # @note When making an API call, you may pass SearchResourcesBucketCriteria
5179
+ # data as a hash:
5180
+ #
5181
+ # {
5182
+ # excludes: {
5183
+ # and: [
5184
+ # {
5185
+ # simple_criterion: {
5186
+ # comparator: "EQ", # accepts EQ, NE
5187
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5188
+ # values: ["__string"],
5189
+ # },
5190
+ # tag_criterion: {
5191
+ # comparator: "EQ", # accepts EQ, NE
5192
+ # tag_values: [
5193
+ # {
5194
+ # key: "__string",
5195
+ # value: "__string",
5196
+ # },
5197
+ # ],
5198
+ # },
5199
+ # },
5200
+ # ],
5201
+ # },
5202
+ # includes: {
5203
+ # and: [
5204
+ # {
5205
+ # simple_criterion: {
5206
+ # comparator: "EQ", # accepts EQ, NE
5207
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5208
+ # values: ["__string"],
5209
+ # },
5210
+ # tag_criterion: {
5211
+ # comparator: "EQ", # accepts EQ, NE
5212
+ # tag_values: [
5213
+ # {
5214
+ # key: "__string",
5215
+ # value: "__string",
5216
+ # },
5217
+ # ],
5218
+ # },
5219
+ # },
5220
+ # ],
5221
+ # },
5222
+ # }
5223
+ #
5224
+ # @!attribute [rw] excludes
5225
+ # Specifies property- and tag-based conditions that define filter
5226
+ # criteria for including or excluding AWS resources from the query
5227
+ # results.
5228
+ # @return [Types::SearchResourcesCriteriaBlock]
5229
+ #
5230
+ # @!attribute [rw] includes
5231
+ # Specifies property- and tag-based conditions that define filter
5232
+ # criteria for including or excluding AWS resources from the query
5233
+ # results.
5234
+ # @return [Types::SearchResourcesCriteriaBlock]
5235
+ #
5236
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesBucketCriteria AWS API Documentation
5237
+ #
5238
+ class SearchResourcesBucketCriteria < Struct.new(
5239
+ :excludes,
5240
+ :includes)
5241
+ SENSITIVE = []
5242
+ include Aws::Structure
5243
+ end
5244
+
5245
+ # Specifies a property- or tag-based filter condition for including or
5246
+ # excluding AWS resources from the query results.
5247
+ #
5248
+ # @note When making an API call, you may pass SearchResourcesCriteria
5249
+ # data as a hash:
5250
+ #
5251
+ # {
5252
+ # simple_criterion: {
5253
+ # comparator: "EQ", # accepts EQ, NE
5254
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5255
+ # values: ["__string"],
5256
+ # },
5257
+ # tag_criterion: {
5258
+ # comparator: "EQ", # accepts EQ, NE
5259
+ # tag_values: [
5260
+ # {
5261
+ # key: "__string",
5262
+ # value: "__string",
5263
+ # },
5264
+ # ],
5265
+ # },
5266
+ # }
5267
+ #
5268
+ # @!attribute [rw] simple_criterion
5269
+ # Specifies a property-based filter condition that determines which
5270
+ # AWS resources are included or excluded from the query results.
5271
+ # @return [Types::SearchResourcesSimpleCriterion]
5272
+ #
5273
+ # @!attribute [rw] tag_criterion
5274
+ # Specifies a tag-based filter condition that determines which AWS
5275
+ # resources are included or excluded from the query results.
5276
+ # @return [Types::SearchResourcesTagCriterion]
5277
+ #
5278
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesCriteria AWS API Documentation
5279
+ #
5280
+ class SearchResourcesCriteria < Struct.new(
5281
+ :simple_criterion,
5282
+ :tag_criterion)
5283
+ SENSITIVE = []
5284
+ include Aws::Structure
5285
+ end
5286
+
5287
+ # Specifies property- and tag-based conditions that define filter
5288
+ # criteria for including or excluding AWS resources from the query
5289
+ # results.
5290
+ #
5291
+ # @note When making an API call, you may pass SearchResourcesCriteriaBlock
5292
+ # data as a hash:
5293
+ #
5294
+ # {
5295
+ # and: [
5296
+ # {
5297
+ # simple_criterion: {
5298
+ # comparator: "EQ", # accepts EQ, NE
5299
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5300
+ # values: ["__string"],
5301
+ # },
5302
+ # tag_criterion: {
5303
+ # comparator: "EQ", # accepts EQ, NE
5304
+ # tag_values: [
5305
+ # {
5306
+ # key: "__string",
5307
+ # value: "__string",
5308
+ # },
5309
+ # ],
5310
+ # },
5311
+ # },
5312
+ # ],
5313
+ # }
5314
+ #
5315
+ # @!attribute [rw] and
5316
+ # @return [Array<Types::SearchResourcesCriteria>]
5317
+ #
5318
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesCriteriaBlock AWS API Documentation
5319
+ #
5320
+ class SearchResourcesCriteriaBlock < Struct.new(
5321
+ :and)
5322
+ SENSITIVE = []
5323
+ include Aws::Structure
5324
+ end
5325
+
5326
+ # Specifies criteria for filtering, sorting, and paginating the results
5327
+ # of a query for statistical data and other information about AWS
5328
+ # resources that Amazon Macie monitors and analyzes.
5329
+ #
5330
+ # @note When making an API call, you may pass SearchResourcesRequest
5331
+ # data as a hash:
5332
+ #
5333
+ # {
5334
+ # bucket_criteria: {
5335
+ # excludes: {
5336
+ # and: [
5337
+ # {
5338
+ # simple_criterion: {
5339
+ # comparator: "EQ", # accepts EQ, NE
5340
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5341
+ # values: ["__string"],
5342
+ # },
5343
+ # tag_criterion: {
5344
+ # comparator: "EQ", # accepts EQ, NE
5345
+ # tag_values: [
5346
+ # {
5347
+ # key: "__string",
5348
+ # value: "__string",
5349
+ # },
5350
+ # ],
5351
+ # },
5352
+ # },
5353
+ # ],
5354
+ # },
5355
+ # includes: {
5356
+ # and: [
5357
+ # {
5358
+ # simple_criterion: {
5359
+ # comparator: "EQ", # accepts EQ, NE
5360
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5361
+ # values: ["__string"],
5362
+ # },
5363
+ # tag_criterion: {
5364
+ # comparator: "EQ", # accepts EQ, NE
5365
+ # tag_values: [
5366
+ # {
5367
+ # key: "__string",
5368
+ # value: "__string",
5369
+ # },
5370
+ # ],
5371
+ # },
5372
+ # },
5373
+ # ],
5374
+ # },
5375
+ # },
5376
+ # max_results: 1,
5377
+ # next_token: "__string",
5378
+ # sort_criteria: {
5379
+ # attribute_name: "ACCOUNT_ID", # accepts ACCOUNT_ID, RESOURCE_NAME, S3_CLASSIFIABLE_OBJECT_COUNT, S3_CLASSIFIABLE_SIZE_IN_BYTES
5380
+ # order_by: "ASC", # accepts ASC, DESC
5381
+ # },
5382
+ # }
5383
+ #
5384
+ # @!attribute [rw] bucket_criteria
5385
+ # Specifies property- and tag-based conditions that define filter
5386
+ # criteria for including or excluding S3 buckets from the query
5387
+ # results. Exclude conditions take precedence over include conditions.
5388
+ # @return [Types::SearchResourcesBucketCriteria]
5389
+ #
5390
+ # @!attribute [rw] max_results
5391
+ # @return [Integer]
5392
+ #
5393
+ # @!attribute [rw] next_token
5394
+ # @return [String]
5395
+ #
5396
+ # @!attribute [rw] sort_criteria
5397
+ # Specifies criteria for sorting the results of a query for
5398
+ # information about AWS resources that Amazon Macie monitors and
5399
+ # analyzes.
5400
+ # @return [Types::SearchResourcesSortCriteria]
5401
+ #
5402
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesRequest AWS API Documentation
5403
+ #
5404
+ class SearchResourcesRequest < Struct.new(
5405
+ :bucket_criteria,
5406
+ :max_results,
5407
+ :next_token,
5408
+ :sort_criteria)
5409
+ SENSITIVE = []
5410
+ include Aws::Structure
5411
+ end
5412
+
5413
+ # Provides the results of a query that retrieved statistical data and
5414
+ # other information about AWS resources that Amazon Macie monitors and
5415
+ # analyzes.
5416
+ #
5417
+ # @!attribute [rw] matching_resources
5418
+ # @return [Array<Types::MatchingResource>]
5419
+ #
5420
+ # @!attribute [rw] next_token
5421
+ # @return [String]
5422
+ #
5423
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesResponse AWS API Documentation
5424
+ #
5425
+ class SearchResourcesResponse < Struct.new(
5426
+ :matching_resources,
5427
+ :next_token)
5428
+ SENSITIVE = []
5429
+ include Aws::Structure
5430
+ end
5431
+
5432
+ # Specifies a property-based filter condition that determines which AWS
5433
+ # resources are included or excluded from the query 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 AWS resources that Amazon Macie monitors and analyzes.
5469
+ #
5470
+ # @note When making an API call, you may pass SearchResourcesSortCriteria
5471
+ # data as a hash:
5472
+ #
5473
+ # {
5474
+ # attribute_name: "ACCOUNT_ID", # accepts ACCOUNT_ID, RESOURCE_NAME, S3_CLASSIFIABLE_OBJECT_COUNT, S3_CLASSIFIABLE_SIZE_IN_BYTES
5475
+ # order_by: "ASC", # accepts ASC, DESC
5476
+ # }
5477
+ #
5478
+ # @!attribute [rw] attribute_name
5479
+ # The property to sort the query results by. Valid values are:
5480
+ # @return [String]
5481
+ #
5482
+ # @!attribute [rw] order_by
5483
+ # @return [String]
5484
+ #
5485
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesSortCriteria AWS API Documentation
5486
+ #
5487
+ class SearchResourcesSortCriteria < Struct.new(
5488
+ :attribute_name,
5489
+ :order_by)
5490
+ SENSITIVE = []
5491
+ include Aws::Structure
5492
+ end
5493
+
5494
+ # Specifies a tag-based filter condition that determines which AWS
5495
+ # resources are included or excluded from the query results.
5496
+ #
5497
+ # @note When making an API call, you may pass SearchResourcesTagCriterion
5498
+ # data as a hash:
5499
+ #
5500
+ # {
5501
+ # comparator: "EQ", # accepts EQ, NE
5502
+ # tag_values: [
5503
+ # {
5504
+ # key: "__string",
5505
+ # value: "__string",
5506
+ # },
5507
+ # ],
5508
+ # }
5509
+ #
5510
+ # @!attribute [rw] comparator
5511
+ # The operator to use in a condition that filters the results of a
5512
+ # query. Valid values are:
5513
+ # @return [String]
5514
+ #
5515
+ # @!attribute [rw] tag_values
5516
+ # @return [Array<Types::SearchResourcesTagCriterionPair>]
5517
+ #
5518
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesTagCriterion AWS API Documentation
5519
+ #
5520
+ class SearchResourcesTagCriterion < Struct.new(
5521
+ :comparator,
5522
+ :tag_values)
5523
+ SENSITIVE = []
5524
+ include Aws::Structure
5525
+ end
5526
+
5527
+ # Specifies a tag key, a tag value, or a tag key and value (as a pair)
5528
+ # to use in a tag-based filter condition for a query. Tag keys and
5529
+ # values are case sensitive. Also, Amazon Macie doesn't support use of
5530
+ # partial values or wildcard characters in tag-based filter conditions.
5531
+ #
5532
+ # @note When making an API call, you may pass SearchResourcesTagCriterionPair
5533
+ # data as a hash:
5534
+ #
5535
+ # {
5536
+ # key: "__string",
5537
+ # value: "__string",
5538
+ # }
5539
+ #
5540
+ # @!attribute [rw] key
5541
+ # @return [String]
5542
+ #
5543
+ # @!attribute [rw] value
5544
+ # @return [String]
5545
+ #
5546
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesTagCriterionPair AWS API Documentation
5547
+ #
5548
+ class SearchResourcesTagCriterionPair < Struct.new(
5549
+ :key,
5550
+ :value)
5551
+ SENSITIVE = []
5552
+ include Aws::Structure
5553
+ end
5554
+
5555
+ # Specifies configuration settings that determine which findings are
5556
+ # published to AWS Security Hub automatically. For information about how
5557
+ # Macie publishes findings to Security Hub, see [Amazon Macie
5558
+ # integration with Security Hub][1] in the *Amazon Macie User Guide*.
5559
+ #
5560
+ #
5561
+ #
5562
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/securityhub-integration.html
5563
+ #
5564
+ # @note When making an API call, you may pass SecurityHubConfiguration
5565
+ # data as a hash:
5566
+ #
5567
+ # {
5568
+ # publish_classification_findings: false, # required
5569
+ # publish_policy_findings: false, # required
5570
+ # }
5571
+ #
5572
+ # @!attribute [rw] publish_classification_findings
5573
+ # @return [Boolean]
5574
+ #
5575
+ # @!attribute [rw] publish_policy_findings
5576
+ # @return [Boolean]
5577
+ #
5578
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SecurityHubConfiguration AWS API Documentation
5579
+ #
5580
+ class SecurityHubConfiguration < Struct.new(
5581
+ :publish_classification_findings,
5582
+ :publish_policy_findings)
5583
+ SENSITIVE = []
5584
+ include Aws::Structure
5585
+ end
5586
+
4668
5587
  # Provides information about the category, types, and occurrences of
4669
5588
  # sensitive data that produced a sensitive data finding.
4670
5589
  #
@@ -4838,15 +5757,50 @@ module Aws::Macie2
4838
5757
  include Aws::Structure
4839
5758
  end
4840
5759
 
4841
- # Specifies a property-based condition that determines whether an object
4842
- # is included or excluded from a classification job.
5760
+ # Specifies a property-based condition that determines whether an S3
5761
+ # bucket is included or excluded from a classification job.
5762
+ #
5763
+ # @note When making an API call, you may pass SimpleCriterionForJob
5764
+ # data as a hash:
5765
+ #
5766
+ # {
5767
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
5768
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5769
+ # values: ["__string"],
5770
+ # }
5771
+ #
5772
+ # @!attribute [rw] comparator
5773
+ # The operator to use in a condition. Valid values are:
5774
+ # @return [String]
5775
+ #
5776
+ # @!attribute [rw] key
5777
+ # The property to use in a condition that determines whether an S3
5778
+ # bucket is included or excluded from a classification job. Valid
5779
+ # values are:
5780
+ # @return [String]
5781
+ #
5782
+ # @!attribute [rw] values
5783
+ # @return [Array<String>]
5784
+ #
5785
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SimpleCriterionForJob AWS API Documentation
5786
+ #
5787
+ class SimpleCriterionForJob < Struct.new(
5788
+ :comparator,
5789
+ :key,
5790
+ :values)
5791
+ SENSITIVE = []
5792
+ include Aws::Structure
5793
+ end
5794
+
5795
+ # Specifies a property-based condition that determines whether an S3
5796
+ # object is included or excluded from a classification job.
4843
5797
  #
4844
5798
  # @note When making an API call, you may pass SimpleScopeTerm
4845
5799
  # data as a hash:
4846
5800
  #
4847
5801
  # {
4848
5802
  # 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
5803
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
4850
5804
  # values: ["__string"],
4851
5805
  # }
4852
5806
  #
@@ -4855,8 +5809,9 @@ module Aws::Macie2
4855
5809
  # @return [String]
4856
5810
  #
4857
5811
  # @!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:
5812
+ # The property to use in a condition that determines whether an S3
5813
+ # object is included or excluded from a classification job. Valid
5814
+ # values are:
4860
5815
  # @return [String]
4861
5816
  #
4862
5817
  # @!attribute [rw] values
@@ -4914,6 +5869,67 @@ module Aws::Macie2
4914
5869
  include Aws::Structure
4915
5870
  end
4916
5871
 
5872
+ # Specifies a tag-based condition that determines whether an S3 bucket
5873
+ # is included or excluded from a classification job.
5874
+ #
5875
+ # @note When making an API call, you may pass TagCriterionForJob
5876
+ # data as a hash:
5877
+ #
5878
+ # {
5879
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
5880
+ # tag_values: [
5881
+ # {
5882
+ # key: "__string",
5883
+ # value: "__string",
5884
+ # },
5885
+ # ],
5886
+ # }
5887
+ #
5888
+ # @!attribute [rw] comparator
5889
+ # The operator to use in a condition. Valid values are:
5890
+ # @return [String]
5891
+ #
5892
+ # @!attribute [rw] tag_values
5893
+ # @return [Array<Types::TagCriterionPairForJob>]
5894
+ #
5895
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/TagCriterionForJob AWS API Documentation
5896
+ #
5897
+ class TagCriterionForJob < Struct.new(
5898
+ :comparator,
5899
+ :tag_values)
5900
+ SENSITIVE = []
5901
+ include Aws::Structure
5902
+ end
5903
+
5904
+ # Specifies a tag key, a tag value, or a tag key and value (as a pair)
5905
+ # to use in a tag-based condition that determines whether an S3 bucket
5906
+ # is included or excluded from a classification job. Tag keys and values
5907
+ # are case sensitive. Also, Amazon Macie doesn't support use of partial
5908
+ # values or wildcard characters in tag-based conditions.
5909
+ #
5910
+ # @note When making an API call, you may pass TagCriterionPairForJob
5911
+ # data as a hash:
5912
+ #
5913
+ # {
5914
+ # key: "__string",
5915
+ # value: "__string",
5916
+ # }
5917
+ #
5918
+ # @!attribute [rw] key
5919
+ # @return [String]
5920
+ #
5921
+ # @!attribute [rw] value
5922
+ # @return [String]
5923
+ #
5924
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/TagCriterionPairForJob AWS API Documentation
5925
+ #
5926
+ class TagCriterionPairForJob < Struct.new(
5927
+ :key,
5928
+ :value)
5929
+ SENSITIVE = []
5930
+ include Aws::Structure
5931
+ end
5932
+
4917
5933
  # Specifies the tags (keys and values) to associate with a
4918
5934
  # classification job, custom data identifier, findings filter, or member
4919
5935
  # account.
@@ -4952,8 +5968,8 @@ module Aws::Macie2
4952
5968
  #
4953
5969
  class TagResourceResponse < Aws::EmptyStructure; end
4954
5970
 
4955
- # Specifies a tag-based condition that determines whether an object is
4956
- # included or excluded from a classification job.
5971
+ # Specifies a tag-based condition that determines whether an S3 object
5972
+ # is included or excluded from a classification job.
4957
5973
  #
4958
5974
  # @note When making an API call, you may pass TagScopeTerm
4959
5975
  # data as a hash:
@@ -4997,7 +6013,10 @@ module Aws::Macie2
4997
6013
  end
4998
6014
 
4999
6015
  # Specifies a tag key or tag key and value pair to use in a tag-based
5000
- # condition for a classification job.
6016
+ # condition that determines whether an S3 object is included or excluded
6017
+ # from a classification job. Tag keys and values are case sensitive.
6018
+ # Also, Amazon Macie doesn't support use of partial values or wildcard
6019
+ # characters in tag-based conditions.
5001
6020
  #
5002
6021
  # @note When making an API call, you may pass TagValuePair
5003
6022
  # data as a hash:
@@ -5143,8 +6162,8 @@ module Aws::Macie2
5143
6162
  class UntagResourceResponse < Aws::EmptyStructure; end
5144
6163
 
5145
6164
  # 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*.
6165
+ # pausing, resuming, or cancelling jobs, see [Managing sensitive data
6166
+ # discovery jobs][1] in the *Amazon Macie User Guide*.
5148
6167
  #
5149
6168
  #
5150
6169
  #
@@ -5202,6 +6221,7 @@ module Aws::Macie2
5202
6221
  # id: "__string", # required
5203
6222
  # name: "__string",
5204
6223
  # position: 1,
6224
+ # client_token: "__string",
5205
6225
  # }
5206
6226
  #
5207
6227
  # @!attribute [rw] action
@@ -5227,6 +6247,11 @@ module Aws::Macie2
5227
6247
  # @!attribute [rw] position
5228
6248
  # @return [Integer]
5229
6249
  #
6250
+ # @!attribute [rw] client_token
6251
+ # **A suitable default value is auto-generated.** You should normally
6252
+ # not need to pass this option.
6253
+ # @return [String]
6254
+ #
5230
6255
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UpdateFindingsFilterRequest AWS API Documentation
5231
6256
  #
5232
6257
  class UpdateFindingsFilterRequest < Struct.new(
@@ -5235,7 +6260,8 @@ module Aws::Macie2
5235
6260
  :finding_criteria,
5236
6261
  :id,
5237
6262
  :name,
5238
- :position)
6263
+ :position,
6264
+ :client_token)
5239
6265
  SENSITIVE = []
5240
6266
  include Aws::Structure
5241
6267
  end
@@ -5273,7 +6299,13 @@ module Aws::Macie2
5273
6299
  # The frequency with which Amazon Macie publishes updates to policy
5274
6300
  # findings for an account. This includes publishing updates to AWS
5275
6301
  # Security Hub and Amazon EventBridge (formerly called Amazon
5276
- # CloudWatch Events). Valid values are:
6302
+ # CloudWatch Events). For more information, see [Monitoring and
6303
+ # processing findings][1] in the *Amazon Macie User Guide*. Valid
6304
+ # values are:
6305
+ #
6306
+ #
6307
+ #
6308
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/findings-monitor.html
5277
6309
  # @return [String]
5278
6310
  #
5279
6311
  # @!attribute [rw] status