aws-sdk-macie2 1.27.0 → 1.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -62,6 +62,8 @@ module Aws::Macie2
62
62
  CreateMemberResponse = Shapes::StructureShape.new(name: 'CreateMemberResponse')
63
63
  CreateSampleFindingsRequest = Shapes::StructureShape.new(name: 'CreateSampleFindingsRequest')
64
64
  CreateSampleFindingsResponse = Shapes::StructureShape.new(name: 'CreateSampleFindingsResponse')
65
+ CriteriaBlockForJob = Shapes::StructureShape.new(name: 'CriteriaBlockForJob')
66
+ CriteriaForJob = Shapes::StructureShape.new(name: 'CriteriaForJob')
65
67
  Criterion = Shapes::MapShape.new(name: 'Criterion')
66
68
  CriterionAdditionalProperties = Shapes::StructureShape.new(name: 'CriterionAdditionalProperties')
67
69
  Currency = Shapes::StringShape.new(name: 'Currency')
@@ -195,6 +197,8 @@ module Aws::Macie2
195
197
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
196
198
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
197
199
  MacieStatus = Shapes::StringShape.new(name: 'MacieStatus')
200
+ MatchingBucket = Shapes::StructureShape.new(name: 'MatchingBucket')
201
+ MatchingResource = Shapes::StructureShape.new(name: 'MatchingResource')
198
202
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
199
203
  Member = Shapes::StructureShape.new(name: 'Member')
200
204
  MonthlySchedule = Shapes::StructureShape.new(name: 'MonthlySchedule')
@@ -218,6 +222,7 @@ module Aws::Macie2
218
222
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
219
223
  ResourcesAffected = Shapes::StructureShape.new(name: 'ResourcesAffected')
220
224
  S3Bucket = Shapes::StructureShape.new(name: 'S3Bucket')
225
+ S3BucketCriteriaForJob = Shapes::StructureShape.new(name: 'S3BucketCriteriaForJob')
221
226
  S3BucketDefinitionForJob = Shapes::StructureShape.new(name: 'S3BucketDefinitionForJob')
222
227
  S3BucketOwner = Shapes::StructureShape.new(name: 'S3BucketOwner')
223
228
  S3Destination = Shapes::StructureShape.new(name: 'S3Destination')
@@ -225,6 +230,18 @@ module Aws::Macie2
225
230
  S3Object = Shapes::StructureShape.new(name: 'S3Object')
226
231
  ScopeFilterKey = Shapes::StringShape.new(name: 'ScopeFilterKey')
227
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')
228
245
  SecurityHubConfiguration = Shapes::StructureShape.new(name: 'SecurityHubConfiguration')
229
246
  SensitiveData = Shapes::ListShape.new(name: 'SensitiveData')
230
247
  SensitiveDataItem = Shapes::StructureShape.new(name: 'SensitiveDataItem')
@@ -238,10 +255,14 @@ module Aws::Macie2
238
255
  Severity = Shapes::StructureShape.new(name: 'Severity')
239
256
  SeverityDescription = Shapes::StringShape.new(name: 'SeverityDescription')
240
257
  SharedAccess = Shapes::StringShape.new(name: 'SharedAccess')
258
+ SimpleCriterionForJob = Shapes::StructureShape.new(name: 'SimpleCriterionForJob')
259
+ SimpleCriterionKeyForJob = Shapes::StringShape.new(name: 'SimpleCriterionKeyForJob')
241
260
  SimpleScopeTerm = Shapes::StructureShape.new(name: 'SimpleScopeTerm')
242
261
  SortCriteria = Shapes::StructureShape.new(name: 'SortCriteria')
243
262
  Statistics = Shapes::StructureShape.new(name: 'Statistics')
244
263
  StorageClass = Shapes::StringShape.new(name: 'StorageClass')
264
+ TagCriterionForJob = Shapes::StructureShape.new(name: 'TagCriterionForJob')
265
+ TagCriterionPairForJob = Shapes::StructureShape.new(name: 'TagCriterionPairForJob')
245
266
  TagMap = Shapes::MapShape.new(name: 'TagMap')
246
267
  TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
247
268
  TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
@@ -288,6 +309,7 @@ module Aws::Macie2
288
309
  __listOfAdminAccount = Shapes::ListShape.new(name: '__listOfAdminAccount')
289
310
  __listOfBatchGetCustomDataIdentifierSummary = Shapes::ListShape.new(name: '__listOfBatchGetCustomDataIdentifierSummary')
290
311
  __listOfBucketMetadata = Shapes::ListShape.new(name: '__listOfBucketMetadata')
312
+ __listOfCriteriaForJob = Shapes::ListShape.new(name: '__listOfCriteriaForJob')
291
313
  __listOfCustomDataIdentifierSummary = Shapes::ListShape.new(name: '__listOfCustomDataIdentifierSummary')
292
314
  __listOfFinding = Shapes::ListShape.new(name: '__listOfFinding')
293
315
  __listOfFindingType = Shapes::ListShape.new(name: '__listOfFindingType')
@@ -298,8 +320,12 @@ module Aws::Macie2
298
320
  __listOfJobSummary = Shapes::ListShape.new(name: '__listOfJobSummary')
299
321
  __listOfKeyValuePair = Shapes::ListShape.new(name: '__listOfKeyValuePair')
300
322
  __listOfListJobsFilterTerm = Shapes::ListShape.new(name: '__listOfListJobsFilterTerm')
323
+ __listOfMatchingResource = Shapes::ListShape.new(name: '__listOfMatchingResource')
301
324
  __listOfMember = Shapes::ListShape.new(name: '__listOfMember')
302
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')
303
329
  __listOfTagValuePair = Shapes::ListShape.new(name: '__listOfTagValuePair')
304
330
  __listOfUnprocessedAccount = Shapes::ListShape.new(name: '__listOfUnprocessedAccount')
305
331
  __listOfUsageByAccount = Shapes::ListShape.new(name: '__listOfUsageByAccount')
@@ -556,6 +582,13 @@ module Aws::Macie2
556
582
 
557
583
  CreateSampleFindingsResponse.struct_class = Types::CreateSampleFindingsResponse
558
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
+
559
592
  Criterion.key = Shapes::ShapeRef.new(shape: __string)
560
593
  Criterion.value = Shapes::ShapeRef.new(shape: CriterionAdditionalProperties)
561
594
 
@@ -951,6 +984,7 @@ module Aws::Macie2
951
984
  JobSummary.add_member(:last_run_error_status, Shapes::ShapeRef.new(shape: LastRunErrorStatus, location_name: "lastRunErrorStatus"))
952
985
  JobSummary.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "name"))
953
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"))
954
988
  JobSummary.struct_class = Types::JobSummary
955
989
 
956
990
  KeyValuePair.add_member(:key, Shapes::ShapeRef.new(shape: __string, location_name: "key"))
@@ -1042,6 +1076,22 @@ module Aws::Macie2
1042
1076
  ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
1043
1077
  ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
1044
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
+
1045
1095
  Member.add_member(:account_id, Shapes::ShapeRef.new(shape: __string, location_name: "accountId"))
1046
1096
  Member.add_member(:administrator_account_id, Shapes::ShapeRef.new(shape: __string, location_name: "administratorAccountId"))
1047
1097
  Member.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "arn"))
@@ -1133,6 +1183,10 @@ module Aws::Macie2
1133
1183
  S3Bucket.add_member(:tags, Shapes::ShapeRef.new(shape: KeyValuePairList, location_name: "tags"))
1134
1184
  S3Bucket.struct_class = Types::S3Bucket
1135
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
+
1136
1190
  S3BucketDefinitionForJob.add_member(:account_id, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "accountId"))
1137
1191
  S3BucketDefinitionForJob.add_member(:buckets, Shapes::ShapeRef.new(shape: __listOf__string, required: true, location_name: "buckets"))
1138
1192
  S3BucketDefinitionForJob.struct_class = Types::S3BucketDefinitionForJob
@@ -1148,6 +1202,7 @@ module Aws::Macie2
1148
1202
 
1149
1203
  S3JobDefinition.add_member(:bucket_definitions, Shapes::ShapeRef.new(shape: __listOfS3BucketDefinitionForJob, location_name: "bucketDefinitions"))
1150
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"))
1151
1206
  S3JobDefinition.struct_class = Types::S3JobDefinition
1152
1207
 
1153
1208
  S3Object.add_member(:bucket_arn, Shapes::ShapeRef.new(shape: __string, location_name: "bucketArn"))
@@ -1168,6 +1223,44 @@ module Aws::Macie2
1168
1223
  Scoping.add_member(:includes, Shapes::ShapeRef.new(shape: JobScopingBlock, location_name: "includes"))
1169
1224
  Scoping.struct_class = Types::Scoping
1170
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
+
1171
1264
  SecurityHubConfiguration.add_member(:publish_classification_findings, Shapes::ShapeRef.new(shape: __boolean, required: true, location_name: "publishClassificationFindings"))
1172
1265
  SecurityHubConfiguration.add_member(:publish_policy_findings, Shapes::ShapeRef.new(shape: __boolean, required: true, location_name: "publishPolicyFindings"))
1173
1266
  SecurityHubConfiguration.struct_class = Types::SecurityHubConfiguration
@@ -1210,6 +1303,11 @@ module Aws::Macie2
1210
1303
  Severity.add_member(:score, Shapes::ShapeRef.new(shape: __long, location_name: "score"))
1211
1304
  Severity.struct_class = Types::Severity
1212
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
+
1213
1311
  SimpleScopeTerm.add_member(:comparator, Shapes::ShapeRef.new(shape: JobComparator, location_name: "comparator"))
1214
1312
  SimpleScopeTerm.add_member(:key, Shapes::ShapeRef.new(shape: ScopeFilterKey, location_name: "key"))
1215
1313
  SimpleScopeTerm.add_member(:values, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "values"))
@@ -1223,6 +1321,14 @@ module Aws::Macie2
1223
1321
  Statistics.add_member(:number_of_runs, Shapes::ShapeRef.new(shape: __double, location_name: "numberOfRuns"))
1224
1322
  Statistics.struct_class = Types::Statistics
1225
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
+
1226
1332
  TagMap.key = Shapes::ShapeRef.new(shape: __string)
1227
1333
  TagMap.value = Shapes::ShapeRef.new(shape: __string)
1228
1334
 
@@ -1278,6 +1384,7 @@ module Aws::Macie2
1278
1384
  UpdateFindingsFilterRequest.add_member(:id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "id"))
1279
1385
  UpdateFindingsFilterRequest.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "name"))
1280
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}))
1281
1388
  UpdateFindingsFilterRequest.struct_class = Types::UpdateFindingsFilterRequest
1282
1389
 
1283
1390
  UpdateFindingsFilterResponse.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "arn"))
@@ -1357,6 +1464,8 @@ module Aws::Macie2
1357
1464
 
1358
1465
  __listOfBucketMetadata.member = Shapes::ShapeRef.new(shape: BucketMetadata)
1359
1466
 
1467
+ __listOfCriteriaForJob.member = Shapes::ShapeRef.new(shape: CriteriaForJob)
1468
+
1360
1469
  __listOfCustomDataIdentifierSummary.member = Shapes::ShapeRef.new(shape: CustomDataIdentifierSummary)
1361
1470
 
1362
1471
  __listOfFinding.member = Shapes::ShapeRef.new(shape: Finding)
@@ -1377,10 +1486,18 @@ module Aws::Macie2
1377
1486
 
1378
1487
  __listOfListJobsFilterTerm.member = Shapes::ShapeRef.new(shape: ListJobsFilterTerm)
1379
1488
 
1489
+ __listOfMatchingResource.member = Shapes::ShapeRef.new(shape: MatchingResource)
1490
+
1380
1491
  __listOfMember.member = Shapes::ShapeRef.new(shape: Member)
1381
1492
 
1382
1493
  __listOfS3BucketDefinitionForJob.member = Shapes::ShapeRef.new(shape: S3BucketDefinitionForJob)
1383
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
+
1384
1501
  __listOfTagValuePair.member = Shapes::ShapeRef.new(shape: TagValuePair)
1385
1502
 
1386
1503
  __listOfUnprocessedAccount.member = Shapes::ShapeRef.new(shape: UnprocessedAccount)
@@ -2165,6 +2282,27 @@ module Aws::Macie2
2165
2282
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2166
2283
  end)
2167
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
+
2168
2306
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
2169
2307
  o.name = "TagResource"
2170
2308
  o.http_method = "POST"
@@ -11,11 +11,12 @@ module Aws::Macie2
11
11
  module Types
12
12
 
13
13
  # Specifies an Amazon Macie membership invitation to accept. In the
14
- # request, you have to specify the ID for the AWS account that sent the
15
- # invitation. Otherwise, a validation error occurs. To specify this ID,
16
- # we recommend that you use the administratorAccountId property instead
17
- # of the masterAccount property. The masterAccount property has been
18
- # deprecated and is retained only for backward compatibility.
14
+ # request, you have to specify the ID for the Amazon Web Services
15
+ # account that sent the invitation. Otherwise, a validation error
16
+ # occurs. To specify this ID, we recommend that you use the
17
+ # administratorAccountId property instead of the masterAccount property.
18
+ # The masterAccount property has been deprecated and is retained only
19
+ # for backward compatibility.
19
20
  #
20
21
  # @note When making an API call, you may pass AcceptInvitationRequest
21
22
  # data as a hash:
@@ -81,7 +82,7 @@ module Aws::Macie2
81
82
  include Aws::Structure
82
83
  end
83
84
 
84
- # Specifies details for an account to associate with an Amazon Macie
85
+ # Specifies the details of an account to associate with an Amazon Macie
85
86
  # administrator account.
86
87
  #
87
88
  # @note When making an API call, you may pass AccountDetail
@@ -131,14 +132,15 @@ module Aws::Macie2
131
132
  end
132
133
 
133
134
  # Provides information about the delegated Amazon Macie administrator
134
- # account for an AWS organization.
135
+ # account for an Amazon Web Services organization.
135
136
  #
136
137
  # @!attribute [rw] account_id
137
138
  # @return [String]
138
139
  #
139
140
  # @!attribute [rw] status
140
141
  # The current status of an account as the delegated Amazon Macie
141
- # administrator account for an AWS organization. Possible values are:
142
+ # administrator account for an Amazon Web Services organization.
143
+ # Possible values are:
142
144
  # @return [String]
143
145
  #
144
146
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/AdminAccount AWS API Documentation
@@ -178,8 +180,8 @@ module Aws::Macie2
178
180
 
179
181
  # Provides information about an identity that performed an action on an
180
182
  # affected resource by using temporary security credentials. The
181
- # credentials were obtained using the AssumeRole operation of the AWS
182
- # Security Token Service (AWS STS) API.
183
+ # credentials were obtained using the AssumeRole operation of the
184
+ # Security Token Service (STS) API.
183
185
  #
184
186
  # @!attribute [rw] access_key_id
185
187
  # @return [String]
@@ -210,9 +212,10 @@ module Aws::Macie2
210
212
  include Aws::Structure
211
213
  end
212
214
 
213
- # Provides information about an AWS account and entity that performed an
214
- # action on an affected resource. The action was performed using the
215
- # credentials for an AWS account other than your own account.
215
+ # Provides information about an Amazon Web Services account and entity
216
+ # that performed an action on an affected resource. The action was
217
+ # performed using the credentials for an Amazon Web Services account
218
+ # other than your own account.
216
219
  #
217
220
  # @!attribute [rw] account_id
218
221
  # @return [String]
@@ -229,8 +232,8 @@ module Aws::Macie2
229
232
  include Aws::Structure
230
233
  end
231
234
 
232
- # Provides information about an AWS service that performed an action on
233
- # an affected resource.
235
+ # Provides information about an Amazon Web Service that performed an
236
+ # action on an affected resource.
234
237
  #
235
238
  # @!attribute [rw] invoked_by
236
239
  # @return [String]
@@ -407,8 +410,8 @@ module Aws::Macie2
407
410
  include Aws::Structure
408
411
  end
409
412
 
410
- # Provides information about the number of S3 buckets that are and
411
- # aren't shared with other AWS accounts.
413
+ # Provides information about the number of S3 buckets that are or
414
+ # aren't shared with other Amazon Web Services accounts.
412
415
  #
413
416
  # @!attribute [rw] external
414
417
  # @return [Integer]
@@ -434,7 +437,7 @@ module Aws::Macie2
434
437
  end
435
438
 
436
439
  # Provides information about the number of S3 buckets whose bucket
437
- # policies do and don't require server-side encryption of objects when
440
+ # policies do or don't require server-side encryption of objects when
438
441
  # objects are uploaded to the buckets.
439
442
  #
440
443
  # @!attribute [rw] allows_unencrypted_object_uploads
@@ -594,8 +597,8 @@ module Aws::Macie2
594
597
  #
595
598
  # @!attribute [rw] replication_details
596
599
  # Provides information about settings that define whether one or more
597
- # objects in an S3 bucket are replicated to S3 buckets for other AWS
598
- # accounts and, if so, which accounts.
600
+ # objects in an S3 bucket are replicated to S3 buckets for other
601
+ # Amazon Web Services accounts and, if so, which accounts.
599
602
  # @return [Types::ReplicationDetails]
600
603
  #
601
604
  # @!attribute [rw] server_side_encryption
@@ -625,21 +628,23 @@ module Aws::Macie2
625
628
  # @!attribute [rw] unclassifiable_object_count
626
629
  # Provides information about the total storage size (in bytes) or
627
630
  # number of objects that Amazon Macie can't analyze in one or more S3
628
- # buckets. In a BucketMetadata object, this data is for a specific
629
- # bucket. In a GetBucketStatisticsResponse object, this data is
630
- # aggregated for all the buckets in the query results. If versioning
631
- # is enabled for a bucket, total storage size values are based on the
632
- # size of the latest version of each applicable object in the bucket.
631
+ # buckets. In a BucketMetadata or MatchingBucket object, this data is
632
+ # for a specific bucket. In a GetBucketStatisticsResponse object, this
633
+ # data is aggregated for all the buckets in the query results. If
634
+ # versioning is enabled for a bucket, total storage size values are
635
+ # based on the size of the latest version of each applicable object in
636
+ # the bucket.
633
637
  # @return [Types::ObjectLevelStatistics]
634
638
  #
635
639
  # @!attribute [rw] unclassifiable_object_size_in_bytes
636
640
  # Provides information about the total storage size (in bytes) or
637
641
  # number of objects that Amazon Macie can't analyze in one or more S3
638
- # buckets. In a BucketMetadata object, this data is for a specific
639
- # bucket. In a GetBucketStatisticsResponse object, this data is
640
- # aggregated for all the buckets in the query results. If versioning
641
- # is enabled for a bucket, total storage size values are based on the
642
- # size of the latest version of each applicable object in the bucket.
642
+ # buckets. In a BucketMetadata or MatchingBucket object, this data is
643
+ # for a specific bucket. In a GetBucketStatisticsResponse object, this
644
+ # data is aggregated for all the buckets in the query results. If
645
+ # versioning is enabled for a bucket, total storage size values are
646
+ # based on the size of the latest version of each applicable object in
647
+ # the bucket.
643
648
  # @return [Types::ObjectLevelStatistics]
644
649
  #
645
650
  # @!attribute [rw] versioning
@@ -968,7 +973,7 @@ module Aws::Macie2
968
973
  # {
969
974
  # simple_scope_term: {
970
975
  # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
971
- # key: "BUCKET_CREATION_DATE", # accepts BUCKET_CREATION_DATE, OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, TAG, OBJECT_KEY
976
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
972
977
  # values: ["__string"],
973
978
  # },
974
979
  # tag_scope_term: {
@@ -990,7 +995,7 @@ module Aws::Macie2
990
995
  # {
991
996
  # simple_scope_term: {
992
997
  # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
993
- # key: "BUCKET_CREATION_DATE", # accepts BUCKET_CREATION_DATE, OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, TAG, OBJECT_KEY
998
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
994
999
  # values: ["__string"],
995
1000
  # },
996
1001
  # tag_scope_term: {
@@ -1008,6 +1013,48 @@ module Aws::Macie2
1008
1013
  # ],
1009
1014
  # },
1010
1015
  # },
1016
+ # bucket_criteria: {
1017
+ # excludes: {
1018
+ # and: [
1019
+ # {
1020
+ # simple_criterion: {
1021
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1022
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
1023
+ # values: ["__string"],
1024
+ # },
1025
+ # tag_criterion: {
1026
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1027
+ # tag_values: [
1028
+ # {
1029
+ # key: "__string",
1030
+ # value: "__string",
1031
+ # },
1032
+ # ],
1033
+ # },
1034
+ # },
1035
+ # ],
1036
+ # },
1037
+ # includes: {
1038
+ # and: [
1039
+ # {
1040
+ # simple_criterion: {
1041
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1042
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
1043
+ # values: ["__string"],
1044
+ # },
1045
+ # tag_criterion: {
1046
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1047
+ # tag_values: [
1048
+ # {
1049
+ # key: "__string",
1050
+ # value: "__string",
1051
+ # },
1052
+ # ],
1053
+ # },
1054
+ # },
1055
+ # ],
1056
+ # },
1057
+ # },
1011
1058
  # },
1012
1059
  # sampling_percentage: 1,
1013
1060
  # schedule_frequency: {
@@ -1048,7 +1095,12 @@ module Aws::Macie2
1048
1095
  #
1049
1096
  # @!attribute [rw] s3_job_definition
1050
1097
  # Specifies which S3 buckets contain the objects that a classification
1051
- # job analyzes, and the scope of that analysis.
1098
+ # job analyzes, and the scope of that analysis. The bucket
1099
+ # specification can be static (bucketDefinitions) or dynamic
1100
+ # (bucketCriteria). If it's static, the job analyzes objects in the
1101
+ # same predefined set of buckets each time the job runs. If it's
1102
+ # dynamic, the job analyzes objects in any buckets that match the
1103
+ # specified criteria each time the job starts to run.
1052
1104
  # @return [Types::S3JobDefinition]
1053
1105
  #
1054
1106
  # @!attribute [rw] sampling_percentage
@@ -1315,8 +1367,8 @@ module Aws::Macie2
1315
1367
  include Aws::Structure
1316
1368
  end
1317
1369
 
1318
- # Specifies an AWS account to associate with an Amazon Macie
1319
- # administrator account.
1370
+ # Specifies an Amazon Web Services account to associate with an Amazon
1371
+ # Macie administrator account.
1320
1372
  #
1321
1373
  # @note When making an API call, you may pass CreateMemberRequest
1322
1374
  # data as a hash:
@@ -1332,8 +1384,8 @@ module Aws::Macie2
1332
1384
  # }
1333
1385
  #
1334
1386
  # @!attribute [rw] account
1335
- # Specifies details for an account to associate with an Amazon Macie
1336
- # administrator account.
1387
+ # Specifies the details of an account to associate with an Amazon
1388
+ # Macie administrator account.
1337
1389
  # @return [Types::AccountDetail]
1338
1390
  #
1339
1391
  # @!attribute [rw] tags
@@ -1390,6 +1442,87 @@ module Aws::Macie2
1390
1442
  #
1391
1443
  class CreateSampleFindingsResponse < Aws::EmptyStructure; end
1392
1444
 
1445
+ # Specifies one or more property- and tag-based conditions that define
1446
+ # criteria for including or excluding S3 buckets from a classification
1447
+ # job.
1448
+ #
1449
+ # @note When making an API call, you may pass CriteriaBlockForJob
1450
+ # data as a hash:
1451
+ #
1452
+ # {
1453
+ # and: [
1454
+ # {
1455
+ # simple_criterion: {
1456
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1457
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
1458
+ # values: ["__string"],
1459
+ # },
1460
+ # tag_criterion: {
1461
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1462
+ # tag_values: [
1463
+ # {
1464
+ # key: "__string",
1465
+ # value: "__string",
1466
+ # },
1467
+ # ],
1468
+ # },
1469
+ # },
1470
+ # ],
1471
+ # }
1472
+ #
1473
+ # @!attribute [rw] and
1474
+ # @return [Array<Types::CriteriaForJob>]
1475
+ #
1476
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CriteriaBlockForJob AWS API Documentation
1477
+ #
1478
+ class CriteriaBlockForJob < Struct.new(
1479
+ :and)
1480
+ SENSITIVE = []
1481
+ include Aws::Structure
1482
+ end
1483
+
1484
+ # Specifies a property- or tag-based condition that defines criteria for
1485
+ # including or excluding S3 buckets from a classification job.
1486
+ #
1487
+ # @note When making an API call, you may pass CriteriaForJob
1488
+ # data as a hash:
1489
+ #
1490
+ # {
1491
+ # simple_criterion: {
1492
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1493
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
1494
+ # values: ["__string"],
1495
+ # },
1496
+ # tag_criterion: {
1497
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1498
+ # tag_values: [
1499
+ # {
1500
+ # key: "__string",
1501
+ # value: "__string",
1502
+ # },
1503
+ # ],
1504
+ # },
1505
+ # }
1506
+ #
1507
+ # @!attribute [rw] simple_criterion
1508
+ # Specifies a property-based condition that determines whether an S3
1509
+ # bucket is included or excluded from a classification job.
1510
+ # @return [Types::SimpleCriterionForJob]
1511
+ #
1512
+ # @!attribute [rw] tag_criterion
1513
+ # Specifies a tag-based condition that determines whether an S3 bucket
1514
+ # is included or excluded from a classification job.
1515
+ # @return [Types::TagCriterionForJob]
1516
+ #
1517
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CriteriaForJob AWS API Documentation
1518
+ #
1519
+ class CriteriaForJob < Struct.new(
1520
+ :simple_criterion,
1521
+ :tag_criterion)
1522
+ SENSITIVE = []
1523
+ include Aws::Structure
1524
+ end
1525
+
1393
1526
  # Specifies the operator to use in a property-based condition that
1394
1527
  # filters the results of a query for findings. For detailed information
1395
1528
  # and examples of each operator, see [Fundamentals of filtering
@@ -1512,9 +1645,9 @@ module Aws::Macie2
1512
1645
  # @return [String]
1513
1646
  #
1514
1647
  # @!attribute [rw] occurrences
1515
- # Provides the location of 1-15 occurrences of sensitive data that was
1516
- # detected by managed data identifiers or a custom data identifier and
1517
- # produced a sensitive data finding.
1648
+ # Specifies the location of 1-15 occurrences of sensitive data that
1649
+ # was detected by managed data identifiers or a custom data identifier
1650
+ # and produced a sensitive data finding.
1518
1651
  # @return [Types::Occurrences]
1519
1652
  #
1520
1653
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CustomDetection AWS API Documentation
@@ -1580,9 +1713,9 @@ module Aws::Macie2
1580
1713
  # @return [Integer]
1581
1714
  #
1582
1715
  # @!attribute [rw] occurrences
1583
- # Provides the location of 1-15 occurrences of sensitive data that was
1584
- # detected by managed data identifiers or a custom data identifier and
1585
- # produced a sensitive data finding.
1716
+ # Specifies the location of 1-15 occurrences of sensitive data that
1717
+ # was detected by managed data identifiers or a custom data identifier
1718
+ # and produced a sensitive data finding.
1586
1719
  # @return [Types::Occurrences]
1587
1720
  #
1588
1721
  # @!attribute [rw] type
@@ -1826,10 +1959,13 @@ module Aws::Macie2
1826
1959
  #
1827
1960
  # @!attribute [rw] last_run_error_status
1828
1961
  # Specifies whether any account- or bucket-level access errors
1829
- # occurred when a classification job ran. For example, the job is
1830
- # configured to analyze data for a member account that was suspended,
1831
- # or the job is configured to analyze an S3 bucket that Amazon Macie
1832
- # isn't allowed to access.
1962
+ # occurred when a classification job ran. For information about using
1963
+ # logging data to investigate these errors, see [Monitoring sensitive
1964
+ # data discovery jobs][1] in the *Amazon Macie User Guide*.
1965
+ #
1966
+ #
1967
+ #
1968
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/discovery-jobs-monitor-cw-logs.html
1833
1969
  # @return [Types::LastRunErrorStatus]
1834
1970
  #
1835
1971
  # @!attribute [rw] last_run_time
@@ -1840,7 +1976,12 @@ module Aws::Macie2
1840
1976
  #
1841
1977
  # @!attribute [rw] s3_job_definition
1842
1978
  # Specifies which S3 buckets contain the objects that a classification
1843
- # job analyzes, and the scope of that analysis.
1979
+ # job analyzes, and the scope of that analysis. The bucket
1980
+ # specification can be static (bucketDefinitions) or dynamic
1981
+ # (bucketCriteria). If it's static, the job analyzes objects in the
1982
+ # same predefined set of buckets each time the job runs. If it's
1983
+ # dynamic, the job analyzes objects in any buckets that match the
1984
+ # specified criteria each time the job starts to run.
1844
1985
  # @return [Types::S3JobDefinition]
1845
1986
  #
1846
1987
  # @!attribute [rw] sampling_percentage
@@ -1903,7 +2044,7 @@ module Aws::Macie2
1903
2044
  class DescribeOrganizationConfigurationRequest < Aws::EmptyStructure; end
1904
2045
 
1905
2046
  # Provides information about the Amazon Macie configuration settings for
1906
- # an AWS organization.
2047
+ # an Amazon Web Services organization.
1907
2048
  #
1908
2049
  # @!attribute [rw] auto_enable
1909
2050
  # @return [Boolean]
@@ -2034,7 +2175,7 @@ module Aws::Macie2
2034
2175
  #
2035
2176
  # @!attribute [rw] finding_publishing_frequency
2036
2177
  # The frequency with which Amazon Macie publishes updates to policy
2037
- # findings for an account. This includes publishing updates to AWS
2178
+ # findings for an account. This includes publishing updates to
2038
2179
  # Security Hub and Amazon EventBridge (formerly called Amazon
2039
2180
  # CloudWatch Events). For more information, see [Monitoring and
2040
2181
  # processing findings][1] in the *Amazon Macie User Guide*. Valid
@@ -2064,8 +2205,9 @@ module Aws::Macie2
2064
2205
  class EnableMacieResponse < Aws::EmptyStructure; end
2065
2206
 
2066
2207
  # Specifies an account to designate as a delegated Amazon Macie
2067
- # administrator account for an AWS organization. To submit this request,
2068
- # you must be a user of the management account for the AWS organization.
2208
+ # administrator account for an Amazon Web Services organization. To
2209
+ # submit this request, you must be a user of the management account for
2210
+ # the Amazon Web Services organization.
2069
2211
  #
2070
2212
  # @note When making an API call, you may pass EnableOrganizationAdminAccountRequest
2071
2213
  # data as a hash:
@@ -2099,7 +2241,7 @@ module Aws::Macie2
2099
2241
  # Provides information about an identity that performed an action on an
2100
2242
  # affected resource by using temporary security credentials. The
2101
2243
  # credentials were obtained using the GetFederationToken operation of
2102
- # the AWS Security Token Service (AWS STS) API.
2244
+ # the Security Token Service (STS) API.
2103
2245
  #
2104
2246
  # @!attribute [rw] access_key_id
2105
2247
  # @return [String]
@@ -2450,13 +2592,13 @@ module Aws::Macie2
2450
2592
  #
2451
2593
  # @!attribute [rw] bucket_count_by_object_encryption_requirement
2452
2594
  # Provides information about the number of S3 buckets whose bucket
2453
- # policies do and don't require server-side encryption of objects
2454
- # when objects are uploaded to the buckets.
2595
+ # policies do or don't require server-side encryption of objects when
2596
+ # objects are uploaded to the buckets.
2455
2597
  # @return [Types::BucketCountPolicyAllowsUnencryptedObjectUploads]
2456
2598
  #
2457
2599
  # @!attribute [rw] bucket_count_by_shared_access_type
2458
- # Provides information about the number of S3 buckets that are and
2459
- # aren't shared with other AWS accounts.
2600
+ # Provides information about the number of S3 buckets that are or
2601
+ # aren't shared with other Amazon Web Services accounts.
2460
2602
  # @return [Types::BucketCountBySharedAccessType]
2461
2603
  #
2462
2604
  # @!attribute [rw] classifiable_object_count
@@ -2480,21 +2622,23 @@ module Aws::Macie2
2480
2622
  # @!attribute [rw] unclassifiable_object_count
2481
2623
  # Provides information about the total storage size (in bytes) or
2482
2624
  # number of objects that Amazon Macie can't analyze in one or more S3
2483
- # buckets. In a BucketMetadata object, this data is for a specific
2484
- # bucket. In a GetBucketStatisticsResponse object, this data is
2485
- # aggregated for all the buckets in the query results. If versioning
2486
- # is enabled for a bucket, total storage size values are based on the
2487
- # size of the latest version of each applicable object in the bucket.
2625
+ # buckets. In a BucketMetadata or MatchingBucket object, this data is
2626
+ # for a specific bucket. In a GetBucketStatisticsResponse object, this
2627
+ # data is aggregated for all the buckets in the query results. If
2628
+ # versioning is enabled for a bucket, total storage size values are
2629
+ # based on the size of the latest version of each applicable object in
2630
+ # the bucket.
2488
2631
  # @return [Types::ObjectLevelStatistics]
2489
2632
  #
2490
2633
  # @!attribute [rw] unclassifiable_object_size_in_bytes
2491
2634
  # Provides information about the total storage size (in bytes) or
2492
2635
  # number of objects that Amazon Macie can't analyze in one or more S3
2493
- # buckets. In a BucketMetadata object, this data is for a specific
2494
- # bucket. In a GetBucketStatisticsResponse object, this data is
2495
- # aggregated for all the buckets in the query results. If versioning
2496
- # is enabled for a bucket, total storage size values are based on the
2497
- # size of the latest version of each applicable object in the bucket.
2636
+ # buckets. In a BucketMetadata or MatchingBucket object, this data is
2637
+ # for a specific bucket. In a GetBucketStatisticsResponse object, this
2638
+ # data is aggregated for all the buckets in the query results. If
2639
+ # versioning is enabled for a bucket, total storage size values are
2640
+ # based on the size of the latest version of each applicable object in
2641
+ # the bucket.
2498
2642
  # @return [Types::ObjectLevelStatistics]
2499
2643
  #
2500
2644
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetBucketStatisticsResponse AWS API Documentation
@@ -2761,12 +2905,12 @@ module Aws::Macie2
2761
2905
  class GetFindingsPublicationConfigurationRequest < Aws::EmptyStructure; end
2762
2906
 
2763
2907
  # Provides information about the current configuration settings for
2764
- # publishing findings to AWS Security Hub automatically.
2908
+ # publishing findings to Security Hub automatically.
2765
2909
  #
2766
2910
  # @!attribute [rw] security_hub_configuration
2767
2911
  # Specifies configuration settings that determine which findings are
2768
- # published to AWS Security Hub automatically. For information about
2769
- # how Macie publishes findings to Security Hub, see [Amazon Macie
2912
+ # published to Security Hub automatically. For information about how
2913
+ # Macie publishes findings to Security Hub, see [Amazon Macie
2770
2914
  # integration with Security Hub][1] in the *Amazon Macie User Guide*.
2771
2915
  #
2772
2916
  #
@@ -2860,7 +3004,7 @@ module Aws::Macie2
2860
3004
  #
2861
3005
  # @!attribute [rw] finding_publishing_frequency
2862
3006
  # The frequency with which Amazon Macie publishes updates to policy
2863
- # findings for an account. This includes publishing updates to AWS
3007
+ # findings for an account. This includes publishing updates to
2864
3008
  # Security Hub and Amazon EventBridge (formerly called Amazon
2865
3009
  # CloudWatch Events). For more information, see [Monitoring and
2866
3010
  # processing findings][1] in the *Amazon Macie User Guide*. Valid
@@ -3122,7 +3266,7 @@ module Aws::Macie2
3122
3266
  include Aws::Structure
3123
3267
  end
3124
3268
 
3125
- # Provides information about an AWS Identity and Access Management (IAM)
3269
+ # Provides information about an Identity and Access Management (IAM)
3126
3270
  # user who performed an action on an affected resource.
3127
3271
  #
3128
3272
  # @!attribute [rw] account_id
@@ -3372,7 +3516,9 @@ module Aws::Macie2
3372
3516
  end
3373
3517
 
3374
3518
  # Specifies a property- or tag-based condition that defines criteria for
3375
- # including or excluding objects from a classification job.
3519
+ # including or excluding S3 objects from a classification job. A
3520
+ # JobScopeTerm object can contain only one simpleScopeTerm object or one
3521
+ # tagScopeTerm object.
3376
3522
  #
3377
3523
  # @note When making an API call, you may pass JobScopeTerm
3378
3524
  # data as a hash:
@@ -3380,7 +3526,7 @@ module Aws::Macie2
3380
3526
  # {
3381
3527
  # simple_scope_term: {
3382
3528
  # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
3383
- # key: "BUCKET_CREATION_DATE", # accepts BUCKET_CREATION_DATE, OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, TAG, OBJECT_KEY
3529
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
3384
3530
  # values: ["__string"],
3385
3531
  # },
3386
3532
  # tag_scope_term: {
@@ -3397,13 +3543,13 @@ module Aws::Macie2
3397
3543
  # }
3398
3544
  #
3399
3545
  # @!attribute [rw] simple_scope_term
3400
- # Specifies a property-based condition that determines whether an
3546
+ # Specifies a property-based condition that determines whether an S3
3401
3547
  # object is included or excluded from a classification job.
3402
3548
  # @return [Types::SimpleScopeTerm]
3403
3549
  #
3404
3550
  # @!attribute [rw] tag_scope_term
3405
- # Specifies a tag-based condition that determines whether an object is
3406
- # included or excluded from a classification job.
3551
+ # Specifies a tag-based condition that determines whether an S3 object
3552
+ # is included or excluded from a classification job.
3407
3553
  # @return [Types::TagScopeTerm]
3408
3554
  #
3409
3555
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/JobScopeTerm AWS API Documentation
@@ -3416,9 +3562,8 @@ module Aws::Macie2
3416
3562
  end
3417
3563
 
3418
3564
  # Specifies one or more property- and tag-based conditions that define
3419
- # criteria for including or excluding objects from a classification job.
3420
- # If you specify more than one condition, Amazon Macie uses an AND
3421
- # operator to join the conditions.
3565
+ # criteria for including or excluding S3 objects from a classification
3566
+ # job.
3422
3567
  #
3423
3568
  # @note When making an API call, you may pass JobScopingBlock
3424
3569
  # data as a hash:
@@ -3428,7 +3573,7 @@ module Aws::Macie2
3428
3573
  # {
3429
3574
  # simple_scope_term: {
3430
3575
  # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
3431
- # key: "BUCKET_CREATION_DATE", # accepts BUCKET_CREATION_DATE, OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, TAG, OBJECT_KEY
3576
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
3432
3577
  # values: ["__string"],
3433
3578
  # },
3434
3579
  # tag_scope_term: {
@@ -3479,10 +3624,13 @@ module Aws::Macie2
3479
3624
  #
3480
3625
  # @!attribute [rw] last_run_error_status
3481
3626
  # Specifies whether any account- or bucket-level access errors
3482
- # occurred when a classification job ran. For example, the job is
3483
- # configured to analyze data for a member account that was suspended,
3484
- # or the job is configured to analyze an S3 bucket that Amazon Macie
3485
- # isn't allowed to access.
3627
+ # occurred when a classification job ran. For information about using
3628
+ # logging data to investigate these errors, see [Monitoring sensitive
3629
+ # data discovery jobs][1] in the *Amazon Macie User Guide*.
3630
+ #
3631
+ #
3632
+ #
3633
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/discovery-jobs-monitor-cw-logs.html
3486
3634
  # @return [Types::LastRunErrorStatus]
3487
3635
  #
3488
3636
  # @!attribute [rw] name
@@ -3499,6 +3647,12 @@ module Aws::Macie2
3499
3647
  # status of RUNNING.
3500
3648
  # @return [Types::UserPausedDetails]
3501
3649
  #
3650
+ # @!attribute [rw] bucket_criteria
3651
+ # Specifies property- and tag-based conditions that define criteria
3652
+ # for including or excluding S3 buckets from a classification job.
3653
+ # Exclude conditions take precedence over include conditions.
3654
+ # @return [Types::S3BucketCriteriaForJob]
3655
+ #
3502
3656
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/JobSummary AWS API Documentation
3503
3657
  #
3504
3658
  class JobSummary < Struct.new(
@@ -3509,7 +3663,8 @@ module Aws::Macie2
3509
3663
  :job_type,
3510
3664
  :last_run_error_status,
3511
3665
  :name,
3512
- :user_paused_details)
3666
+ :user_paused_details,
3667
+ :bucket_criteria)
3513
3668
  SENSITIVE = []
3514
3669
  include Aws::Structure
3515
3670
  end
@@ -3534,10 +3689,13 @@ module Aws::Macie2
3534
3689
  end
3535
3690
 
3536
3691
  # Specifies whether any account- or bucket-level access errors occurred
3537
- # when a classification job ran. For example, the job is configured to
3538
- # analyze data for a member account that was suspended, or the job is
3539
- # configured to analyze an S3 bucket that Amazon Macie isn't allowed to
3540
- # access.
3692
+ # when a classification job ran. For information about using logging
3693
+ # data to investigate these errors, see [Monitoring sensitive data
3694
+ # discovery jobs][1] in the *Amazon Macie User Guide*.
3695
+ #
3696
+ #
3697
+ #
3698
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/discovery-jobs-monitor-cw-logs.html
3541
3699
  #
3542
3700
  # @!attribute [rw] code
3543
3701
  # Specifies whether any account- or bucket-level access errors
@@ -3996,7 +4154,7 @@ module Aws::Macie2
3996
4154
  end
3997
4155
 
3998
4156
  # Provides information about the delegated Amazon Macie administrator
3999
- # accounts for an AWS organization.
4157
+ # accounts for an Amazon Web Services organization.
4000
4158
  #
4001
4159
  # @!attribute [rw] admin_accounts
4002
4160
  # @return [Array<Types::AdminAccount>]
@@ -4049,6 +4207,98 @@ module Aws::Macie2
4049
4207
  include Aws::Structure
4050
4208
  end
4051
4209
 
4210
+ # Provides statistical data and other information about an S3 bucket
4211
+ # that Amazon Macie monitors and analyzes.
4212
+ #
4213
+ # @!attribute [rw] account_id
4214
+ # @return [String]
4215
+ #
4216
+ # @!attribute [rw] bucket_name
4217
+ # @return [String]
4218
+ #
4219
+ # @!attribute [rw] classifiable_object_count
4220
+ # @return [Integer]
4221
+ #
4222
+ # @!attribute [rw] classifiable_size_in_bytes
4223
+ # @return [Integer]
4224
+ #
4225
+ # @!attribute [rw] job_details
4226
+ # Specifies whether any one-time or recurring classification jobs are
4227
+ # configured to analyze data in an S3 bucket, and, if so, the details
4228
+ # of the job that ran most recently.
4229
+ # @return [Types::JobDetails]
4230
+ #
4231
+ # @!attribute [rw] object_count
4232
+ # @return [Integer]
4233
+ #
4234
+ # @!attribute [rw] object_count_by_encryption_type
4235
+ # Provides information about the number of objects that are in an S3
4236
+ # bucket and use certain types of server-side encryption, use
4237
+ # client-side encryption, or aren't encrypted.
4238
+ # @return [Types::ObjectCountByEncryptionType]
4239
+ #
4240
+ # @!attribute [rw] size_in_bytes
4241
+ # @return [Integer]
4242
+ #
4243
+ # @!attribute [rw] size_in_bytes_compressed
4244
+ # @return [Integer]
4245
+ #
4246
+ # @!attribute [rw] unclassifiable_object_count
4247
+ # Provides information about the total storage size (in bytes) or
4248
+ # number of objects that Amazon Macie can't analyze in one or more S3
4249
+ # buckets. In a BucketMetadata or MatchingBucket object, this data is
4250
+ # for a specific bucket. In a GetBucketStatisticsResponse object, this
4251
+ # data is aggregated for all the buckets in the query results. If
4252
+ # versioning is enabled for a bucket, total storage size values are
4253
+ # based on the size of the latest version of each applicable object in
4254
+ # the bucket.
4255
+ # @return [Types::ObjectLevelStatistics]
4256
+ #
4257
+ # @!attribute [rw] unclassifiable_object_size_in_bytes
4258
+ # Provides information about the total storage size (in bytes) or
4259
+ # number of objects that Amazon Macie can't analyze in one or more S3
4260
+ # buckets. In a BucketMetadata or MatchingBucket object, this data is
4261
+ # for a specific bucket. In a GetBucketStatisticsResponse object, this
4262
+ # data is aggregated for all the buckets in the query results. If
4263
+ # versioning is enabled for a bucket, total storage size values are
4264
+ # based on the size of the latest version of each applicable object in
4265
+ # the bucket.
4266
+ # @return [Types::ObjectLevelStatistics]
4267
+ #
4268
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/MatchingBucket AWS API Documentation
4269
+ #
4270
+ class MatchingBucket < Struct.new(
4271
+ :account_id,
4272
+ :bucket_name,
4273
+ :classifiable_object_count,
4274
+ :classifiable_size_in_bytes,
4275
+ :job_details,
4276
+ :object_count,
4277
+ :object_count_by_encryption_type,
4278
+ :size_in_bytes,
4279
+ :size_in_bytes_compressed,
4280
+ :unclassifiable_object_count,
4281
+ :unclassifiable_object_size_in_bytes)
4282
+ SENSITIVE = []
4283
+ include Aws::Structure
4284
+ end
4285
+
4286
+ # Provides statistical data and other information about an Amazon Web
4287
+ # Services resource that Amazon Macie monitors and analyzes.
4288
+ #
4289
+ # @!attribute [rw] matching_bucket
4290
+ # Provides statistical data and other information about an S3 bucket
4291
+ # that Amazon Macie monitors and analyzes.
4292
+ # @return [Types::MatchingBucket]
4293
+ #
4294
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/MatchingResource AWS API Documentation
4295
+ #
4296
+ class MatchingResource < Struct.new(
4297
+ :matching_bucket)
4298
+ SENSITIVE = []
4299
+ include Aws::Structure
4300
+ end
4301
+
4052
4302
  # Provides information about an account that's associated with an
4053
4303
  # Amazon Macie administrator account.
4054
4304
  #
@@ -4155,11 +4405,11 @@ module Aws::Macie2
4155
4405
 
4156
4406
  # Provides information about the total storage size (in bytes) or number
4157
4407
  # of objects that Amazon Macie can't analyze in one or more S3 buckets.
4158
- # In a BucketMetadata object, this data is for a specific bucket. In a
4159
- # GetBucketStatisticsResponse object, this data is aggregated for all
4160
- # the buckets in the query results. If versioning is enabled for a
4161
- # bucket, total storage size values are based on the size of the latest
4162
- # version of each applicable object in the bucket.
4408
+ # In a BucketMetadata or MatchingBucket object, this data is for a
4409
+ # specific bucket. In a GetBucketStatisticsResponse object, this data is
4410
+ # aggregated for all the buckets in the query results. If versioning is
4411
+ # enabled for a bucket, total storage size values are based on the size
4412
+ # of the latest version of each applicable object in the bucket.
4163
4413
  #
4164
4414
  # @!attribute [rw] file_type
4165
4415
  # @return [Integer]
@@ -4180,7 +4430,7 @@ module Aws::Macie2
4180
4430
  include Aws::Structure
4181
4431
  end
4182
4432
 
4183
- # Provides the location of 1-15 occurrences of sensitive data that was
4433
+ # Specifies the location of 1-15 occurrences of sensitive data that was
4184
4434
  # detected by managed data identifiers or a custom data identifier and
4185
4435
  # produced a sensitive data finding.
4186
4436
  #
@@ -4190,15 +4440,9 @@ module Aws::Macie2
4190
4440
  # @return [Array<Types::Cell>]
4191
4441
  #
4192
4442
  # @!attribute [rw] line_ranges
4193
- # Provides details about the location of occurrences of sensitive data
4194
- # in an Adobe Portable Document Format file, Microsoft Word document,
4195
- # or non-binary text file.
4196
4443
  # @return [Array<Types::Range>]
4197
4444
  #
4198
4445
  # @!attribute [rw] offset_ranges
4199
- # Provides details about the location of occurrences of sensitive data
4200
- # in an Adobe Portable Document Format file, Microsoft Word document,
4201
- # or non-binary text file.
4202
4446
  # @return [Array<Types::Range>]
4203
4447
  #
4204
4448
  # @!attribute [rw] pages
@@ -4207,8 +4451,6 @@ module Aws::Macie2
4207
4451
  # @return [Array<Types::Page>]
4208
4452
  #
4209
4453
  # @!attribute [rw] records
4210
- # Specifies the location of occurrences of sensitive data in an Apache
4211
- # Parquet file.
4212
4454
  # @return [Array<Types::Record>]
4213
4455
  #
4214
4456
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/Occurrences AWS API Documentation
@@ -4227,15 +4469,13 @@ module Aws::Macie2
4227
4469
  # Portable Document Format file.
4228
4470
  #
4229
4471
  # @!attribute [rw] line_range
4230
- # Provides details about the location of an occurrence of sensitive
4231
- # data in an Adobe Portable Document Format file, Microsoft Word
4232
- # document, or non-binary text file.
4472
+ # Specifies the location of an occurrence of sensitive data in a
4473
+ # non-binary text file, such as an HTML, TXT, or XML file.
4233
4474
  # @return [Types::Range]
4234
4475
  #
4235
4476
  # @!attribute [rw] offset_range
4236
- # Provides details about the location of an occurrence of sensitive
4237
- # data in an Adobe Portable Document Format file, Microsoft Word
4238
- # document, or non-binary text file.
4477
+ # Specifies the location of an occurrence of sensitive data in a
4478
+ # non-binary text file, such as an HTML, TXT, or XML file.
4239
4479
  # @return [Types::Range]
4240
4480
  #
4241
4481
  # @!attribute [rw] page_number
@@ -4322,8 +4562,8 @@ module Aws::Macie2
4322
4562
  include Aws::Structure
4323
4563
  end
4324
4564
 
4325
- # Specifies configuration settings for publishing findings to AWS
4326
- # Security Hub automatically.
4565
+ # Specifies configuration settings for publishing findings to Security
4566
+ # Hub automatically.
4327
4567
  #
4328
4568
  # @note When making an API call, you may pass PutFindingsPublicationConfigurationRequest
4329
4569
  # data as a hash:
@@ -4343,8 +4583,8 @@ module Aws::Macie2
4343
4583
  #
4344
4584
  # @!attribute [rw] security_hub_configuration
4345
4585
  # Specifies configuration settings that determine which findings are
4346
- # published to AWS Security Hub automatically. For information about
4347
- # how Macie publishes findings to Security Hub, see [Amazon Macie
4586
+ # published to Security Hub automatically. For information about how
4587
+ # Macie publishes findings to Security Hub, see [Amazon Macie
4348
4588
  # integration with Security Hub][1] in the *Amazon Macie User Guide*.
4349
4589
  #
4350
4590
  #
@@ -4365,9 +4605,8 @@ module Aws::Macie2
4365
4605
  #
4366
4606
  class PutFindingsPublicationConfigurationResponse < Aws::EmptyStructure; end
4367
4607
 
4368
- # Provides details about the location of an occurrence of sensitive data
4369
- # in an Adobe Portable Document Format file, Microsoft Word document, or
4370
- # non-binary text file.
4608
+ # Specifies the location of an occurrence of sensitive data in a
4609
+ # non-binary text file, such as an HTML, TXT, or XML file.
4371
4610
  #
4372
4611
  # @!attribute [rw] end
4373
4612
  # @return [Integer]
@@ -4389,7 +4628,8 @@ module Aws::Macie2
4389
4628
  end
4390
4629
 
4391
4630
  # Specifies the location of an occurrence of sensitive data in an Apache
4392
- # Avro object container or Apache Parquet file.
4631
+ # Avro object container, Apache Parquet file, JSON file, or JSON Lines
4632
+ # file.
4393
4633
  #
4394
4634
  # @!attribute [rw] json_path
4395
4635
  # @return [String]
@@ -4407,8 +4647,8 @@ module Aws::Macie2
4407
4647
  end
4408
4648
 
4409
4649
  # Provides information about settings that define whether one or more
4410
- # objects in an S3 bucket are replicated to S3 buckets for other AWS
4411
- # accounts and, if so, which accounts.
4650
+ # objects in an S3 bucket are replicated to S3 buckets for other Amazon
4651
+ # Web Services accounts and, if so, which accounts.
4412
4652
  #
4413
4653
  # @!attribute [rw] replicated
4414
4654
  # @return [Boolean]
@@ -4446,11 +4686,11 @@ module Aws::Macie2
4446
4686
  # Provides information about the resources that a finding applies to.
4447
4687
  #
4448
4688
  # @!attribute [rw] s3_bucket
4449
- # Provides information about an S3 bucket that a finding applies to.
4689
+ # Provides information about the S3 bucket that a finding applies to.
4450
4690
  # @return [Types::S3Bucket]
4451
4691
  #
4452
4692
  # @!attribute [rw] s3_object
4453
- # Provides information about an S3 object that a finding applies to.
4693
+ # Provides information about the S3 object that a finding applies to.
4454
4694
  # @return [Types::S3Object]
4455
4695
  #
4456
4696
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ResourcesAffected AWS API Documentation
@@ -4462,7 +4702,7 @@ module Aws::Macie2
4462
4702
  include Aws::Structure
4463
4703
  end
4464
4704
 
4465
- # Provides information about an S3 bucket that a finding applies to.
4705
+ # Provides information about the S3 bucket that a finding applies to.
4466
4706
  #
4467
4707
  # @!attribute [rw] allows_unencrypted_object_uploads
4468
4708
  # @return [String]
@@ -4511,8 +4751,80 @@ module Aws::Macie2
4511
4751
  include Aws::Structure
4512
4752
  end
4513
4753
 
4514
- # Specifies which AWS account owns the S3 buckets that a classification
4515
- # job analyzes, and the buckets to analyze for the account.
4754
+ # Specifies property- and tag-based conditions that define criteria for
4755
+ # including or excluding S3 buckets from a classification job. Exclude
4756
+ # conditions take precedence over include conditions.
4757
+ #
4758
+ # @note When making an API call, you may pass S3BucketCriteriaForJob
4759
+ # data as a hash:
4760
+ #
4761
+ # {
4762
+ # excludes: {
4763
+ # and: [
4764
+ # {
4765
+ # simple_criterion: {
4766
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4767
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
4768
+ # values: ["__string"],
4769
+ # },
4770
+ # tag_criterion: {
4771
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4772
+ # tag_values: [
4773
+ # {
4774
+ # key: "__string",
4775
+ # value: "__string",
4776
+ # },
4777
+ # ],
4778
+ # },
4779
+ # },
4780
+ # ],
4781
+ # },
4782
+ # includes: {
4783
+ # and: [
4784
+ # {
4785
+ # simple_criterion: {
4786
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4787
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
4788
+ # values: ["__string"],
4789
+ # },
4790
+ # tag_criterion: {
4791
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4792
+ # tag_values: [
4793
+ # {
4794
+ # key: "__string",
4795
+ # value: "__string",
4796
+ # },
4797
+ # ],
4798
+ # },
4799
+ # },
4800
+ # ],
4801
+ # },
4802
+ # }
4803
+ #
4804
+ # @!attribute [rw] excludes
4805
+ # Specifies one or more property- and tag-based conditions that define
4806
+ # criteria for including or excluding S3 buckets from a classification
4807
+ # job.
4808
+ # @return [Types::CriteriaBlockForJob]
4809
+ #
4810
+ # @!attribute [rw] includes
4811
+ # Specifies one or more property- and tag-based conditions that define
4812
+ # criteria for including or excluding S3 buckets from a classification
4813
+ # job.
4814
+ # @return [Types::CriteriaBlockForJob]
4815
+ #
4816
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/S3BucketCriteriaForJob AWS API Documentation
4817
+ #
4818
+ class S3BucketCriteriaForJob < Struct.new(
4819
+ :excludes,
4820
+ :includes)
4821
+ SENSITIVE = []
4822
+ include Aws::Structure
4823
+ end
4824
+
4825
+ # Specifies an Amazon Web Services account that owns S3 buckets for a
4826
+ # classification job to analyze, and one or more specific buckets to
4827
+ # analyze for that account.
4516
4828
  #
4517
4829
  # @note When making an API call, you may pass S3BucketDefinitionForJob
4518
4830
  # data as a hash:
@@ -4586,7 +4898,12 @@ module Aws::Macie2
4586
4898
  end
4587
4899
 
4588
4900
  # Specifies which S3 buckets contain the objects that a classification
4589
- # job analyzes, and the scope of that analysis.
4901
+ # job analyzes, and the scope of that analysis. The bucket specification
4902
+ # can be static (bucketDefinitions) or dynamic (bucketCriteria). If
4903
+ # it's static, the job analyzes objects in the same predefined set of
4904
+ # buckets each time the job runs. If it's dynamic, the job analyzes
4905
+ # objects in any buckets that match the specified criteria each time the
4906
+ # job starts to run.
4590
4907
  #
4591
4908
  # @note When making an API call, you may pass S3JobDefinition
4592
4909
  # data as a hash:
@@ -4604,7 +4921,7 @@ module Aws::Macie2
4604
4921
  # {
4605
4922
  # simple_scope_term: {
4606
4923
  # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4607
- # key: "BUCKET_CREATION_DATE", # accepts BUCKET_CREATION_DATE, OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, TAG, OBJECT_KEY
4924
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
4608
4925
  # values: ["__string"],
4609
4926
  # },
4610
4927
  # tag_scope_term: {
@@ -4626,7 +4943,7 @@ module Aws::Macie2
4626
4943
  # {
4627
4944
  # simple_scope_term: {
4628
4945
  # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4629
- # key: "BUCKET_CREATION_DATE", # accepts BUCKET_CREATION_DATE, OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, TAG, OBJECT_KEY
4946
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
4630
4947
  # values: ["__string"],
4631
4948
  # },
4632
4949
  # tag_scope_term: {
@@ -4644,39 +4961,87 @@ module Aws::Macie2
4644
4961
  # ],
4645
4962
  # },
4646
4963
  # },
4647
- # }
4648
- #
4649
- # @!attribute [rw] bucket_definitions
4650
- # @return [Array<Types::S3BucketDefinitionForJob>]
4651
- #
4652
- # @!attribute [rw] scoping
4653
- # Specifies one or more property- and tag-based conditions that refine
4654
- # the scope of a classification job. These conditions define criteria
4655
- # that determine which objects a job analyzes. Exclude conditions take
4656
- # precedence over include conditions.
4657
- # @return [Types::Scoping]
4658
- #
4659
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/S3JobDefinition AWS API Documentation
4660
- #
4661
- class S3JobDefinition < Struct.new(
4662
- :bucket_definitions,
4663
- :scoping)
4664
- SENSITIVE = []
4665
- include Aws::Structure
4666
- end
4667
-
4668
- # Provides information about an S3 object that a finding applies to.
4669
- #
4670
- # @!attribute [rw] bucket_arn
4671
- # @return [String]
4672
- #
4673
- # @!attribute [rw] e_tag
4674
- # @return [String]
4675
- #
4676
- # @!attribute [rw] extension
4677
- # @return [String]
4678
- #
4679
- # @!attribute [rw] key
4964
+ # bucket_criteria: {
4965
+ # excludes: {
4966
+ # and: [
4967
+ # {
4968
+ # simple_criterion: {
4969
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4970
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
4971
+ # values: ["__string"],
4972
+ # },
4973
+ # tag_criterion: {
4974
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4975
+ # tag_values: [
4976
+ # {
4977
+ # key: "__string",
4978
+ # value: "__string",
4979
+ # },
4980
+ # ],
4981
+ # },
4982
+ # },
4983
+ # ],
4984
+ # },
4985
+ # includes: {
4986
+ # and: [
4987
+ # {
4988
+ # simple_criterion: {
4989
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4990
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
4991
+ # values: ["__string"],
4992
+ # },
4993
+ # tag_criterion: {
4994
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4995
+ # tag_values: [
4996
+ # {
4997
+ # key: "__string",
4998
+ # value: "__string",
4999
+ # },
5000
+ # ],
5001
+ # },
5002
+ # },
5003
+ # ],
5004
+ # },
5005
+ # },
5006
+ # }
5007
+ #
5008
+ # @!attribute [rw] bucket_definitions
5009
+ # @return [Array<Types::S3BucketDefinitionForJob>]
5010
+ #
5011
+ # @!attribute [rw] scoping
5012
+ # Specifies one or more property- and tag-based conditions that define
5013
+ # criteria for including or excluding S3 objects from a classification
5014
+ # job. Exclude conditions take precedence over include conditions.
5015
+ # @return [Types::Scoping]
5016
+ #
5017
+ # @!attribute [rw] bucket_criteria
5018
+ # Specifies property- and tag-based conditions that define criteria
5019
+ # for including or excluding S3 buckets from a classification job.
5020
+ # Exclude conditions take precedence over include conditions.
5021
+ # @return [Types::S3BucketCriteriaForJob]
5022
+ #
5023
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/S3JobDefinition AWS API Documentation
5024
+ #
5025
+ class S3JobDefinition < Struct.new(
5026
+ :bucket_definitions,
5027
+ :scoping,
5028
+ :bucket_criteria)
5029
+ SENSITIVE = []
5030
+ include Aws::Structure
5031
+ end
5032
+
5033
+ # Provides information about the S3 object that a finding applies to.
5034
+ #
5035
+ # @!attribute [rw] bucket_arn
5036
+ # @return [String]
5037
+ #
5038
+ # @!attribute [rw] e_tag
5039
+ # @return [String]
5040
+ #
5041
+ # @!attribute [rw] extension
5042
+ # @return [String]
5043
+ #
5044
+ # @!attribute [rw] key
4680
5045
  # @return [String]
4681
5046
  #
4682
5047
  # @!attribute [rw] last_modified
@@ -4728,10 +5093,9 @@ module Aws::Macie2
4728
5093
  include Aws::Structure
4729
5094
  end
4730
5095
 
4731
- # Specifies one or more property- and tag-based conditions that refine
4732
- # the scope of a classification job. These conditions define criteria
4733
- # that determine which objects a job analyzes. Exclude conditions take
4734
- # precedence over include conditions.
5096
+ # Specifies one or more property- and tag-based conditions that define
5097
+ # criteria for including or excluding S3 objects from a classification
5098
+ # job. Exclude conditions take precedence over include conditions.
4735
5099
  #
4736
5100
  # @note When making an API call, you may pass Scoping
4737
5101
  # data as a hash:
@@ -4742,7 +5106,7 @@ module Aws::Macie2
4742
5106
  # {
4743
5107
  # simple_scope_term: {
4744
5108
  # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4745
- # key: "BUCKET_CREATION_DATE", # accepts BUCKET_CREATION_DATE, OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, TAG, OBJECT_KEY
5109
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
4746
5110
  # values: ["__string"],
4747
5111
  # },
4748
5112
  # tag_scope_term: {
@@ -4764,7 +5128,7 @@ module Aws::Macie2
4764
5128
  # {
4765
5129
  # simple_scope_term: {
4766
5130
  # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4767
- # key: "BUCKET_CREATION_DATE", # accepts BUCKET_CREATION_DATE, OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, TAG, OBJECT_KEY
5131
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
4768
5132
  # values: ["__string"],
4769
5133
  # },
4770
5134
  # tag_scope_term: {
@@ -4785,16 +5149,14 @@ module Aws::Macie2
4785
5149
  #
4786
5150
  # @!attribute [rw] excludes
4787
5151
  # Specifies one or more property- and tag-based conditions that define
4788
- # criteria for including or excluding objects from a classification
4789
- # job. If you specify more than one condition, Amazon Macie uses an
4790
- # AND operator to join the conditions.
5152
+ # criteria for including or excluding S3 objects from a classification
5153
+ # job.
4791
5154
  # @return [Types::JobScopingBlock]
4792
5155
  #
4793
5156
  # @!attribute [rw] includes
4794
5157
  # Specifies one or more property- and tag-based conditions that define
4795
- # criteria for including or excluding objects from a classification
4796
- # job. If you specify more than one condition, Amazon Macie uses an
4797
- # AND operator to join the conditions.
5158
+ # criteria for including or excluding S3 objects from a classification
5159
+ # job.
4798
5160
  # @return [Types::JobScopingBlock]
4799
5161
  #
4800
5162
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/Scoping AWS API Documentation
@@ -4806,8 +5168,394 @@ module Aws::Macie2
4806
5168
  include Aws::Structure
4807
5169
  end
4808
5170
 
5171
+ # Specifies property- and tag-based conditions that define filter
5172
+ # criteria for including or excluding S3 buckets from the query results.
5173
+ # Exclude conditions take precedence over include conditions.
5174
+ #
5175
+ # @note When making an API call, you may pass SearchResourcesBucketCriteria
5176
+ # data as a hash:
5177
+ #
5178
+ # {
5179
+ # excludes: {
5180
+ # and: [
5181
+ # {
5182
+ # simple_criterion: {
5183
+ # comparator: "EQ", # accepts EQ, NE
5184
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5185
+ # values: ["__string"],
5186
+ # },
5187
+ # tag_criterion: {
5188
+ # comparator: "EQ", # accepts EQ, NE
5189
+ # tag_values: [
5190
+ # {
5191
+ # key: "__string",
5192
+ # value: "__string",
5193
+ # },
5194
+ # ],
5195
+ # },
5196
+ # },
5197
+ # ],
5198
+ # },
5199
+ # includes: {
5200
+ # and: [
5201
+ # {
5202
+ # simple_criterion: {
5203
+ # comparator: "EQ", # accepts EQ, NE
5204
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5205
+ # values: ["__string"],
5206
+ # },
5207
+ # tag_criterion: {
5208
+ # comparator: "EQ", # accepts EQ, NE
5209
+ # tag_values: [
5210
+ # {
5211
+ # key: "__string",
5212
+ # value: "__string",
5213
+ # },
5214
+ # ],
5215
+ # },
5216
+ # },
5217
+ # ],
5218
+ # },
5219
+ # }
5220
+ #
5221
+ # @!attribute [rw] excludes
5222
+ # Specifies property- and tag-based conditions that define filter
5223
+ # criteria for including or excluding Amazon Web Services resources
5224
+ # from the query results.
5225
+ # @return [Types::SearchResourcesCriteriaBlock]
5226
+ #
5227
+ # @!attribute [rw] includes
5228
+ # Specifies property- and tag-based conditions that define filter
5229
+ # criteria for including or excluding Amazon Web Services resources
5230
+ # from the query results.
5231
+ # @return [Types::SearchResourcesCriteriaBlock]
5232
+ #
5233
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesBucketCriteria AWS API Documentation
5234
+ #
5235
+ class SearchResourcesBucketCriteria < Struct.new(
5236
+ :excludes,
5237
+ :includes)
5238
+ SENSITIVE = []
5239
+ include Aws::Structure
5240
+ end
5241
+
5242
+ # Specifies a property- or tag-based filter condition for including or
5243
+ # excluding Amazon Web Services resources from the query results.
5244
+ #
5245
+ # @note When making an API call, you may pass SearchResourcesCriteria
5246
+ # data as a hash:
5247
+ #
5248
+ # {
5249
+ # simple_criterion: {
5250
+ # comparator: "EQ", # accepts EQ, NE
5251
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5252
+ # values: ["__string"],
5253
+ # },
5254
+ # tag_criterion: {
5255
+ # comparator: "EQ", # accepts EQ, NE
5256
+ # tag_values: [
5257
+ # {
5258
+ # key: "__string",
5259
+ # value: "__string",
5260
+ # },
5261
+ # ],
5262
+ # },
5263
+ # }
5264
+ #
5265
+ # @!attribute [rw] simple_criterion
5266
+ # Specifies a property-based filter condition that determines which
5267
+ # Amazon Web Services resources are included or excluded from the
5268
+ # query results.
5269
+ # @return [Types::SearchResourcesSimpleCriterion]
5270
+ #
5271
+ # @!attribute [rw] tag_criterion
5272
+ # Specifies a tag-based filter condition that determines which Amazon
5273
+ # Web Services resources are included or excluded from the query
5274
+ # results.
5275
+ # @return [Types::SearchResourcesTagCriterion]
5276
+ #
5277
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesCriteria AWS API Documentation
5278
+ #
5279
+ class SearchResourcesCriteria < Struct.new(
5280
+ :simple_criterion,
5281
+ :tag_criterion)
5282
+ SENSITIVE = []
5283
+ include Aws::Structure
5284
+ end
5285
+
5286
+ # Specifies property- and tag-based conditions that define filter
5287
+ # criteria for including or excluding Amazon Web Services resources from
5288
+ # the query results.
5289
+ #
5290
+ # @note When making an API call, you may pass SearchResourcesCriteriaBlock
5291
+ # data as a hash:
5292
+ #
5293
+ # {
5294
+ # and: [
5295
+ # {
5296
+ # simple_criterion: {
5297
+ # comparator: "EQ", # accepts EQ, NE
5298
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5299
+ # values: ["__string"],
5300
+ # },
5301
+ # tag_criterion: {
5302
+ # comparator: "EQ", # accepts EQ, NE
5303
+ # tag_values: [
5304
+ # {
5305
+ # key: "__string",
5306
+ # value: "__string",
5307
+ # },
5308
+ # ],
5309
+ # },
5310
+ # },
5311
+ # ],
5312
+ # }
5313
+ #
5314
+ # @!attribute [rw] and
5315
+ # @return [Array<Types::SearchResourcesCriteria>]
5316
+ #
5317
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesCriteriaBlock AWS API Documentation
5318
+ #
5319
+ class SearchResourcesCriteriaBlock < Struct.new(
5320
+ :and)
5321
+ SENSITIVE = []
5322
+ include Aws::Structure
5323
+ end
5324
+
5325
+ # Specifies criteria for filtering, sorting, and paginating the results
5326
+ # of a query for statistical data and other information about Amazon Web
5327
+ # Services resources that Amazon Macie monitors and analyzes.
5328
+ #
5329
+ # @note When making an API call, you may pass SearchResourcesRequest
5330
+ # data as a hash:
5331
+ #
5332
+ # {
5333
+ # bucket_criteria: {
5334
+ # excludes: {
5335
+ # and: [
5336
+ # {
5337
+ # simple_criterion: {
5338
+ # comparator: "EQ", # accepts EQ, NE
5339
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5340
+ # values: ["__string"],
5341
+ # },
5342
+ # tag_criterion: {
5343
+ # comparator: "EQ", # accepts EQ, NE
5344
+ # tag_values: [
5345
+ # {
5346
+ # key: "__string",
5347
+ # value: "__string",
5348
+ # },
5349
+ # ],
5350
+ # },
5351
+ # },
5352
+ # ],
5353
+ # },
5354
+ # includes: {
5355
+ # and: [
5356
+ # {
5357
+ # simple_criterion: {
5358
+ # comparator: "EQ", # accepts EQ, NE
5359
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5360
+ # values: ["__string"],
5361
+ # },
5362
+ # tag_criterion: {
5363
+ # comparator: "EQ", # accepts EQ, NE
5364
+ # tag_values: [
5365
+ # {
5366
+ # key: "__string",
5367
+ # value: "__string",
5368
+ # },
5369
+ # ],
5370
+ # },
5371
+ # },
5372
+ # ],
5373
+ # },
5374
+ # },
5375
+ # max_results: 1,
5376
+ # next_token: "__string",
5377
+ # sort_criteria: {
5378
+ # attribute_name: "ACCOUNT_ID", # accepts ACCOUNT_ID, RESOURCE_NAME, S3_CLASSIFIABLE_OBJECT_COUNT, S3_CLASSIFIABLE_SIZE_IN_BYTES
5379
+ # order_by: "ASC", # accepts ASC, DESC
5380
+ # },
5381
+ # }
5382
+ #
5383
+ # @!attribute [rw] bucket_criteria
5384
+ # Specifies property- and tag-based conditions that define filter
5385
+ # criteria for including or excluding S3 buckets from the query
5386
+ # results. Exclude conditions take precedence over include conditions.
5387
+ # @return [Types::SearchResourcesBucketCriteria]
5388
+ #
5389
+ # @!attribute [rw] max_results
5390
+ # @return [Integer]
5391
+ #
5392
+ # @!attribute [rw] next_token
5393
+ # @return [String]
5394
+ #
5395
+ # @!attribute [rw] sort_criteria
5396
+ # Specifies criteria for sorting the results of a query for
5397
+ # information about Amazon Web Services resources that Amazon Macie
5398
+ # monitors and analyzes.
5399
+ # @return [Types::SearchResourcesSortCriteria]
5400
+ #
5401
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesRequest AWS API Documentation
5402
+ #
5403
+ class SearchResourcesRequest < Struct.new(
5404
+ :bucket_criteria,
5405
+ :max_results,
5406
+ :next_token,
5407
+ :sort_criteria)
5408
+ SENSITIVE = []
5409
+ include Aws::Structure
5410
+ end
5411
+
5412
+ # Provides the results of a query that retrieved statistical data and
5413
+ # other information about Amazon Web Services resources that Amazon
5414
+ # Macie monitors and analyzes.
5415
+ #
5416
+ # @!attribute [rw] matching_resources
5417
+ # @return [Array<Types::MatchingResource>]
5418
+ #
5419
+ # @!attribute [rw] next_token
5420
+ # @return [String]
5421
+ #
5422
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesResponse AWS API Documentation
5423
+ #
5424
+ class SearchResourcesResponse < Struct.new(
5425
+ :matching_resources,
5426
+ :next_token)
5427
+ SENSITIVE = []
5428
+ include Aws::Structure
5429
+ end
5430
+
5431
+ # Specifies a property-based filter condition that determines which
5432
+ # Amazon Web Services resources are included or excluded from the query
5433
+ # results.
5434
+ #
5435
+ # @note When making an API call, you may pass SearchResourcesSimpleCriterion
5436
+ # data as a hash:
5437
+ #
5438
+ # {
5439
+ # comparator: "EQ", # accepts EQ, NE
5440
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5441
+ # values: ["__string"],
5442
+ # }
5443
+ #
5444
+ # @!attribute [rw] comparator
5445
+ # The operator to use in a condition that filters the results of a
5446
+ # query. Valid values are:
5447
+ # @return [String]
5448
+ #
5449
+ # @!attribute [rw] key
5450
+ # The property to use in a condition that filters the query results.
5451
+ # Valid values are:
5452
+ # @return [String]
5453
+ #
5454
+ # @!attribute [rw] values
5455
+ # @return [Array<String>]
5456
+ #
5457
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesSimpleCriterion AWS API Documentation
5458
+ #
5459
+ class SearchResourcesSimpleCriterion < Struct.new(
5460
+ :comparator,
5461
+ :key,
5462
+ :values)
5463
+ SENSITIVE = []
5464
+ include Aws::Structure
5465
+ end
5466
+
5467
+ # Specifies criteria for sorting the results of a query for information
5468
+ # about Amazon Web Services resources that Amazon Macie monitors and
5469
+ # analyzes.
5470
+ #
5471
+ # @note When making an API call, you may pass SearchResourcesSortCriteria
5472
+ # data as a hash:
5473
+ #
5474
+ # {
5475
+ # attribute_name: "ACCOUNT_ID", # accepts ACCOUNT_ID, RESOURCE_NAME, S3_CLASSIFIABLE_OBJECT_COUNT, S3_CLASSIFIABLE_SIZE_IN_BYTES
5476
+ # order_by: "ASC", # accepts ASC, DESC
5477
+ # }
5478
+ #
5479
+ # @!attribute [rw] attribute_name
5480
+ # The property to sort the query results by. Valid values are:
5481
+ # @return [String]
5482
+ #
5483
+ # @!attribute [rw] order_by
5484
+ # @return [String]
5485
+ #
5486
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesSortCriteria AWS API Documentation
5487
+ #
5488
+ class SearchResourcesSortCriteria < Struct.new(
5489
+ :attribute_name,
5490
+ :order_by)
5491
+ SENSITIVE = []
5492
+ include Aws::Structure
5493
+ end
5494
+
5495
+ # Specifies a tag-based filter condition that determines which Amazon
5496
+ # Web Services resources are included or excluded from the query
5497
+ # results.
5498
+ #
5499
+ # @note When making an API call, you may pass SearchResourcesTagCriterion
5500
+ # data as a hash:
5501
+ #
5502
+ # {
5503
+ # comparator: "EQ", # accepts EQ, NE
5504
+ # tag_values: [
5505
+ # {
5506
+ # key: "__string",
5507
+ # value: "__string",
5508
+ # },
5509
+ # ],
5510
+ # }
5511
+ #
5512
+ # @!attribute [rw] comparator
5513
+ # The operator to use in a condition that filters the results of a
5514
+ # query. Valid values are:
5515
+ # @return [String]
5516
+ #
5517
+ # @!attribute [rw] tag_values
5518
+ # @return [Array<Types::SearchResourcesTagCriterionPair>]
5519
+ #
5520
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesTagCriterion AWS API Documentation
5521
+ #
5522
+ class SearchResourcesTagCriterion < Struct.new(
5523
+ :comparator,
5524
+ :tag_values)
5525
+ SENSITIVE = []
5526
+ include Aws::Structure
5527
+ end
5528
+
5529
+ # Specifies a tag key, a tag value, or a tag key and value (as a pair)
5530
+ # to use in a tag-based filter condition for a query. Tag keys and
5531
+ # values are case sensitive. Also, Amazon Macie doesn't support use of
5532
+ # partial values or wildcard characters in tag-based filter conditions.
5533
+ #
5534
+ # @note When making an API call, you may pass SearchResourcesTagCriterionPair
5535
+ # data as a hash:
5536
+ #
5537
+ # {
5538
+ # key: "__string",
5539
+ # value: "__string",
5540
+ # }
5541
+ #
5542
+ # @!attribute [rw] key
5543
+ # @return [String]
5544
+ #
5545
+ # @!attribute [rw] value
5546
+ # @return [String]
5547
+ #
5548
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesTagCriterionPair AWS API Documentation
5549
+ #
5550
+ class SearchResourcesTagCriterionPair < Struct.new(
5551
+ :key,
5552
+ :value)
5553
+ SENSITIVE = []
5554
+ include Aws::Structure
5555
+ end
5556
+
4809
5557
  # Specifies configuration settings that determine which findings are
4810
- # published to AWS Security Hub automatically. For information about how
5558
+ # published to Security Hub automatically. For information about how
4811
5559
  # Macie publishes findings to Security Hub, see [Amazon Macie
4812
5560
  # integration with Security Hub][1] in the *Amazon Macie User Guide*.
4813
5561
  #
@@ -5011,15 +5759,50 @@ module Aws::Macie2
5011
5759
  include Aws::Structure
5012
5760
  end
5013
5761
 
5014
- # Specifies a property-based condition that determines whether an object
5015
- # is included or excluded from a classification job.
5762
+ # Specifies a property-based condition that determines whether an S3
5763
+ # bucket is included or excluded from a classification job.
5764
+ #
5765
+ # @note When making an API call, you may pass SimpleCriterionForJob
5766
+ # data as a hash:
5767
+ #
5768
+ # {
5769
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
5770
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5771
+ # values: ["__string"],
5772
+ # }
5773
+ #
5774
+ # @!attribute [rw] comparator
5775
+ # The operator to use in a condition. Valid values are:
5776
+ # @return [String]
5777
+ #
5778
+ # @!attribute [rw] key
5779
+ # The property to use in a condition that determines whether an S3
5780
+ # bucket is included or excluded from a classification job. Valid
5781
+ # values are:
5782
+ # @return [String]
5783
+ #
5784
+ # @!attribute [rw] values
5785
+ # @return [Array<String>]
5786
+ #
5787
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SimpleCriterionForJob AWS API Documentation
5788
+ #
5789
+ class SimpleCriterionForJob < Struct.new(
5790
+ :comparator,
5791
+ :key,
5792
+ :values)
5793
+ SENSITIVE = []
5794
+ include Aws::Structure
5795
+ end
5796
+
5797
+ # Specifies a property-based condition that determines whether an S3
5798
+ # object is included or excluded from a classification job.
5016
5799
  #
5017
5800
  # @note When making an API call, you may pass SimpleScopeTerm
5018
5801
  # data as a hash:
5019
5802
  #
5020
5803
  # {
5021
5804
  # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
5022
- # key: "BUCKET_CREATION_DATE", # accepts BUCKET_CREATION_DATE, OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, TAG, OBJECT_KEY
5805
+ # key: "OBJECT_EXTENSION", # accepts OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, OBJECT_KEY
5023
5806
  # values: ["__string"],
5024
5807
  # }
5025
5808
  #
@@ -5028,8 +5811,9 @@ module Aws::Macie2
5028
5811
  # @return [String]
5029
5812
  #
5030
5813
  # @!attribute [rw] key
5031
- # The property to use in a condition that determines which objects are
5032
- # analyzed by a classification job. Valid values are:
5814
+ # The property to use in a condition that determines whether an S3
5815
+ # object is included or excluded from a classification job. Valid
5816
+ # values are:
5033
5817
  # @return [String]
5034
5818
  #
5035
5819
  # @!attribute [rw] values
@@ -5087,6 +5871,67 @@ module Aws::Macie2
5087
5871
  include Aws::Structure
5088
5872
  end
5089
5873
 
5874
+ # Specifies a tag-based condition that determines whether an S3 bucket
5875
+ # is included or excluded from a classification job.
5876
+ #
5877
+ # @note When making an API call, you may pass TagCriterionForJob
5878
+ # data as a hash:
5879
+ #
5880
+ # {
5881
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
5882
+ # tag_values: [
5883
+ # {
5884
+ # key: "__string",
5885
+ # value: "__string",
5886
+ # },
5887
+ # ],
5888
+ # }
5889
+ #
5890
+ # @!attribute [rw] comparator
5891
+ # The operator to use in a condition. Valid values are:
5892
+ # @return [String]
5893
+ #
5894
+ # @!attribute [rw] tag_values
5895
+ # @return [Array<Types::TagCriterionPairForJob>]
5896
+ #
5897
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/TagCriterionForJob AWS API Documentation
5898
+ #
5899
+ class TagCriterionForJob < Struct.new(
5900
+ :comparator,
5901
+ :tag_values)
5902
+ SENSITIVE = []
5903
+ include Aws::Structure
5904
+ end
5905
+
5906
+ # Specifies a tag key, a tag value, or a tag key and value (as a pair)
5907
+ # to use in a tag-based condition that determines whether an S3 bucket
5908
+ # is included or excluded from a classification job. Tag keys and values
5909
+ # are case sensitive. Also, Amazon Macie doesn't support use of partial
5910
+ # values or wildcard characters in tag-based conditions.
5911
+ #
5912
+ # @note When making an API call, you may pass TagCriterionPairForJob
5913
+ # data as a hash:
5914
+ #
5915
+ # {
5916
+ # key: "__string",
5917
+ # value: "__string",
5918
+ # }
5919
+ #
5920
+ # @!attribute [rw] key
5921
+ # @return [String]
5922
+ #
5923
+ # @!attribute [rw] value
5924
+ # @return [String]
5925
+ #
5926
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/TagCriterionPairForJob AWS API Documentation
5927
+ #
5928
+ class TagCriterionPairForJob < Struct.new(
5929
+ :key,
5930
+ :value)
5931
+ SENSITIVE = []
5932
+ include Aws::Structure
5933
+ end
5934
+
5090
5935
  # Specifies the tags (keys and values) to associate with a
5091
5936
  # classification job, custom data identifier, findings filter, or member
5092
5937
  # account.
@@ -5125,8 +5970,8 @@ module Aws::Macie2
5125
5970
  #
5126
5971
  class TagResourceResponse < Aws::EmptyStructure; end
5127
5972
 
5128
- # Specifies a tag-based condition that determines whether an object is
5129
- # included or excluded from a classification job.
5973
+ # Specifies a tag-based condition that determines whether an S3 object
5974
+ # is included or excluded from a classification job.
5130
5975
  #
5131
5976
  # @note When making an API call, you may pass TagScopeTerm
5132
5977
  # data as a hash:
@@ -5170,7 +6015,10 @@ module Aws::Macie2
5170
6015
  end
5171
6016
 
5172
6017
  # Specifies a tag key or tag key and value pair to use in a tag-based
5173
- # condition for a classification job.
6018
+ # condition that determines whether an S3 object is included or excluded
6019
+ # from a classification job. Tag keys and values are case sensitive.
6020
+ # Also, Amazon Macie doesn't support use of partial values or wildcard
6021
+ # characters in tag-based conditions.
5174
6022
  #
5175
6023
  # @note When making an API call, you may pass TagValuePair
5176
6024
  # data as a hash:
@@ -5316,8 +6164,8 @@ module Aws::Macie2
5316
6164
  class UntagResourceResponse < Aws::EmptyStructure; end
5317
6165
 
5318
6166
  # Changes the status of a classification job. For more information about
5319
- # pausing, resuming, or cancelling jobs, see [Managing and monitoring
5320
- # sensitive data discovery jobs][1] in the *Amazon Macie User Guide*.
6167
+ # pausing, resuming, or cancelling jobs, see [Managing sensitive data
6168
+ # discovery jobs][1] in the *Amazon Macie User Guide*.
5321
6169
  #
5322
6170
  #
5323
6171
  #
@@ -5375,6 +6223,7 @@ module Aws::Macie2
5375
6223
  # id: "__string", # required
5376
6224
  # name: "__string",
5377
6225
  # position: 1,
6226
+ # client_token: "__string",
5378
6227
  # }
5379
6228
  #
5380
6229
  # @!attribute [rw] action
@@ -5400,6 +6249,11 @@ module Aws::Macie2
5400
6249
  # @!attribute [rw] position
5401
6250
  # @return [Integer]
5402
6251
  #
6252
+ # @!attribute [rw] client_token
6253
+ # **A suitable default value is auto-generated.** You should normally
6254
+ # not need to pass this option.
6255
+ # @return [String]
6256
+ #
5403
6257
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UpdateFindingsFilterRequest AWS API Documentation
5404
6258
  #
5405
6259
  class UpdateFindingsFilterRequest < Struct.new(
@@ -5408,7 +6262,8 @@ module Aws::Macie2
5408
6262
  :finding_criteria,
5409
6263
  :id,
5410
6264
  :name,
5411
- :position)
6265
+ :position,
6266
+ :client_token)
5412
6267
  SENSITIVE = []
5413
6268
  include Aws::Structure
5414
6269
  end
@@ -5444,7 +6299,7 @@ module Aws::Macie2
5444
6299
  #
5445
6300
  # @!attribute [rw] finding_publishing_frequency
5446
6301
  # The frequency with which Amazon Macie publishes updates to policy
5447
- # findings for an account. This includes publishing updates to AWS
6302
+ # findings for an account. This includes publishing updates to
5448
6303
  # Security Hub and Amazon EventBridge (formerly called Amazon
5449
6304
  # CloudWatch Events). For more information, see [Monitoring and
5450
6305
  # processing findings][1] in the *Amazon Macie User Guide*. Valid
@@ -5503,7 +6358,7 @@ module Aws::Macie2
5503
6358
  class UpdateMemberSessionResponse < Aws::EmptyStructure; end
5504
6359
 
5505
6360
  # Specifies whether to enable Amazon Macie automatically for accounts
5506
- # that are added to an AWS organization.
6361
+ # that are added to an Amazon Web Services organization.
5507
6362
  #
5508
6363
  # @note When making an API call, you may pass UpdateOrganizationConfigurationRequest
5509
6364
  # data as a hash:
@@ -5677,37 +6532,39 @@ module Aws::Macie2
5677
6532
  # @!attribute [rw] assumed_role
5678
6533
  # Provides information about an identity that performed an action on
5679
6534
  # an affected resource by using temporary security credentials. The
5680
- # credentials were obtained using the AssumeRole operation of the AWS
5681
- # Security Token Service (AWS STS) API.
6535
+ # credentials were obtained using the AssumeRole operation of the
6536
+ # Security Token Service (STS) API.
5682
6537
  # @return [Types::AssumedRole]
5683
6538
  #
5684
6539
  # @!attribute [rw] aws_account
5685
- # Provides information about an AWS account and entity that performed
5686
- # an action on an affected resource. The action was performed using
5687
- # the credentials for an AWS account other than your own account.
6540
+ # Provides information about an Amazon Web Services account and entity
6541
+ # that performed an action on an affected resource. The action was
6542
+ # performed using the credentials for an Amazon Web Services account
6543
+ # other than your own account.
5688
6544
  # @return [Types::AwsAccount]
5689
6545
  #
5690
6546
  # @!attribute [rw] aws_service
5691
- # Provides information about an AWS service that performed an action
5692
- # on an affected resource.
6547
+ # Provides information about an Amazon Web Service that performed an
6548
+ # action on an affected resource.
5693
6549
  # @return [Types::AwsService]
5694
6550
  #
5695
6551
  # @!attribute [rw] federated_user
5696
6552
  # Provides information about an identity that performed an action on
5697
6553
  # an affected resource by using temporary security credentials. The
5698
6554
  # credentials were obtained using the GetFederationToken operation of
5699
- # the AWS Security Token Service (AWS STS) API.
6555
+ # the Security Token Service (STS) API.
5700
6556
  # @return [Types::FederatedUser]
5701
6557
  #
5702
6558
  # @!attribute [rw] iam_user
5703
- # Provides information about an AWS Identity and Access Management
5704
- # (IAM) user who performed an action on an affected resource.
6559
+ # Provides information about an Identity and Access Management (IAM)
6560
+ # user who performed an action on an affected resource.
5705
6561
  # @return [Types::IamUser]
5706
6562
  #
5707
6563
  # @!attribute [rw] root
5708
- # Provides information about an AWS account and entity that performed
5709
- # an action on an affected resource. The action was performed using
5710
- # the credentials for your AWS account.
6564
+ # Provides information about an Amazon Web Services account and entity
6565
+ # that performed an action on an affected resource. The action was
6566
+ # performed using the credentials for your Amazon Web Services
6567
+ # account.
5711
6568
  # @return [Types::UserIdentityRoot]
5712
6569
  #
5713
6570
  # @!attribute [rw] type
@@ -5729,9 +6586,9 @@ module Aws::Macie2
5729
6586
  include Aws::Structure
5730
6587
  end
5731
6588
 
5732
- # Provides information about an AWS account and entity that performed an
5733
- # action on an affected resource. The action was performed using the
5734
- # credentials for your AWS account.
6589
+ # Provides information about an Amazon Web Services account and entity
6590
+ # that performed an action on an affected resource. The action was
6591
+ # performed using the credentials for your Amazon Web Services account.
5735
6592
  #
5736
6593
  # @!attribute [rw] account_id
5737
6594
  # @return [String]