aws-sdk-macie2 1.27.0 → 1.28.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.
@@ -407,7 +407,7 @@ module Aws::Macie2
407
407
  include Aws::Structure
408
408
  end
409
409
 
410
- # Provides information about the number of S3 buckets that are and
410
+ # Provides information about the number of S3 buckets that are or
411
411
  # aren't shared with other AWS accounts.
412
412
  #
413
413
  # @!attribute [rw] external
@@ -434,7 +434,7 @@ module Aws::Macie2
434
434
  end
435
435
 
436
436
  # Provides information about the number of S3 buckets whose bucket
437
- # policies do and don't require server-side encryption of objects when
437
+ # policies do or don't require server-side encryption of objects when
438
438
  # objects are uploaded to the buckets.
439
439
  #
440
440
  # @!attribute [rw] allows_unencrypted_object_uploads
@@ -625,21 +625,23 @@ module Aws::Macie2
625
625
  # @!attribute [rw] unclassifiable_object_count
626
626
  # Provides information about the total storage size (in bytes) or
627
627
  # 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.
628
+ # buckets. In a BucketMetadata or MatchingBucket object, this data is
629
+ # for a specific bucket. In a GetBucketStatisticsResponse object, this
630
+ # data is aggregated for all the buckets in the query results. If
631
+ # versioning is enabled for a bucket, total storage size values are
632
+ # based on the size of the latest version of each applicable object in
633
+ # the bucket.
633
634
  # @return [Types::ObjectLevelStatistics]
634
635
  #
635
636
  # @!attribute [rw] unclassifiable_object_size_in_bytes
636
637
  # Provides information about the total storage size (in bytes) or
637
638
  # 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.
639
+ # buckets. In a BucketMetadata or MatchingBucket object, this data is
640
+ # for a specific bucket. In a GetBucketStatisticsResponse object, this
641
+ # data is aggregated for all the buckets in the query results. If
642
+ # versioning is enabled for a bucket, total storage size values are
643
+ # based on the size of the latest version of each applicable object in
644
+ # the bucket.
643
645
  # @return [Types::ObjectLevelStatistics]
644
646
  #
645
647
  # @!attribute [rw] versioning
@@ -1008,6 +1010,48 @@ module Aws::Macie2
1008
1010
  # ],
1009
1011
  # },
1010
1012
  # },
1013
+ # bucket_criteria: {
1014
+ # excludes: {
1015
+ # and: [
1016
+ # {
1017
+ # simple_criterion: {
1018
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1019
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
1020
+ # values: ["__string"],
1021
+ # },
1022
+ # tag_criterion: {
1023
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1024
+ # tag_values: [
1025
+ # {
1026
+ # key: "__string",
1027
+ # value: "__string",
1028
+ # },
1029
+ # ],
1030
+ # },
1031
+ # },
1032
+ # ],
1033
+ # },
1034
+ # includes: {
1035
+ # and: [
1036
+ # {
1037
+ # simple_criterion: {
1038
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1039
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
1040
+ # values: ["__string"],
1041
+ # },
1042
+ # tag_criterion: {
1043
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1044
+ # tag_values: [
1045
+ # {
1046
+ # key: "__string",
1047
+ # value: "__string",
1048
+ # },
1049
+ # ],
1050
+ # },
1051
+ # },
1052
+ # ],
1053
+ # },
1054
+ # },
1011
1055
  # },
1012
1056
  # sampling_percentage: 1,
1013
1057
  # schedule_frequency: {
@@ -1048,7 +1092,12 @@ module Aws::Macie2
1048
1092
  #
1049
1093
  # @!attribute [rw] s3_job_definition
1050
1094
  # Specifies which S3 buckets contain the objects that a classification
1051
- # job analyzes, and the scope of that analysis.
1095
+ # job analyzes, and the scope of that analysis. The bucket
1096
+ # specification can be static (bucketDefinitions) or dynamic
1097
+ # (bucketCriteria). If it's static, the job analyzes objects in the
1098
+ # same predefined set of buckets each time the job runs. If it's
1099
+ # dynamic, the job analyzes objects in any buckets that match the
1100
+ # specified criteria each time the job starts to run.
1052
1101
  # @return [Types::S3JobDefinition]
1053
1102
  #
1054
1103
  # @!attribute [rw] sampling_percentage
@@ -1390,6 +1439,87 @@ module Aws::Macie2
1390
1439
  #
1391
1440
  class CreateSampleFindingsResponse < Aws::EmptyStructure; end
1392
1441
 
1442
+ # Specifies one or more property- and tag-based conditions that define
1443
+ # criteria for including or excluding S3 buckets from a classification
1444
+ # job.
1445
+ #
1446
+ # @note When making an API call, you may pass CriteriaBlockForJob
1447
+ # data as a hash:
1448
+ #
1449
+ # {
1450
+ # and: [
1451
+ # {
1452
+ # simple_criterion: {
1453
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1454
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
1455
+ # values: ["__string"],
1456
+ # },
1457
+ # tag_criterion: {
1458
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1459
+ # tag_values: [
1460
+ # {
1461
+ # key: "__string",
1462
+ # value: "__string",
1463
+ # },
1464
+ # ],
1465
+ # },
1466
+ # },
1467
+ # ],
1468
+ # }
1469
+ #
1470
+ # @!attribute [rw] and
1471
+ # @return [Array<Types::CriteriaForJob>]
1472
+ #
1473
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CriteriaBlockForJob AWS API Documentation
1474
+ #
1475
+ class CriteriaBlockForJob < Struct.new(
1476
+ :and)
1477
+ SENSITIVE = []
1478
+ include Aws::Structure
1479
+ end
1480
+
1481
+ # Specifies a property- or tag-based condition that defines criteria for
1482
+ # including or excluding S3 buckets from a classification job.
1483
+ #
1484
+ # @note When making an API call, you may pass CriteriaForJob
1485
+ # data as a hash:
1486
+ #
1487
+ # {
1488
+ # simple_criterion: {
1489
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1490
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
1491
+ # values: ["__string"],
1492
+ # },
1493
+ # tag_criterion: {
1494
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
1495
+ # tag_values: [
1496
+ # {
1497
+ # key: "__string",
1498
+ # value: "__string",
1499
+ # },
1500
+ # ],
1501
+ # },
1502
+ # }
1503
+ #
1504
+ # @!attribute [rw] simple_criterion
1505
+ # Specifies a property-based condition that determines whether an S3
1506
+ # bucket is included or excluded from a classification job.
1507
+ # @return [Types::SimpleCriterionForJob]
1508
+ #
1509
+ # @!attribute [rw] tag_criterion
1510
+ # Specifies a tag-based condition that determines whether an S3 bucket
1511
+ # is included or excluded from a classification job.
1512
+ # @return [Types::TagCriterionForJob]
1513
+ #
1514
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CriteriaForJob AWS API Documentation
1515
+ #
1516
+ class CriteriaForJob < Struct.new(
1517
+ :simple_criterion,
1518
+ :tag_criterion)
1519
+ SENSITIVE = []
1520
+ include Aws::Structure
1521
+ end
1522
+
1393
1523
  # Specifies the operator to use in a property-based condition that
1394
1524
  # filters the results of a query for findings. For detailed information
1395
1525
  # and examples of each operator, see [Fundamentals of filtering
@@ -1826,10 +1956,13 @@ module Aws::Macie2
1826
1956
  #
1827
1957
  # @!attribute [rw] last_run_error_status
1828
1958
  # 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.
1959
+ # occurred when a classification job ran. For information about using
1960
+ # logging data to investigate these errors, see [Monitoring sensitive
1961
+ # data discovery jobs][1] in the *Amazon Macie User Guide*.
1962
+ #
1963
+ #
1964
+ #
1965
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/discovery-jobs-monitor-cw-logs.html
1833
1966
  # @return [Types::LastRunErrorStatus]
1834
1967
  #
1835
1968
  # @!attribute [rw] last_run_time
@@ -1840,7 +1973,12 @@ module Aws::Macie2
1840
1973
  #
1841
1974
  # @!attribute [rw] s3_job_definition
1842
1975
  # Specifies which S3 buckets contain the objects that a classification
1843
- # job analyzes, and the scope of that analysis.
1976
+ # job analyzes, and the scope of that analysis. The bucket
1977
+ # specification can be static (bucketDefinitions) or dynamic
1978
+ # (bucketCriteria). If it's static, the job analyzes objects in the
1979
+ # same predefined set of buckets each time the job runs. If it's
1980
+ # dynamic, the job analyzes objects in any buckets that match the
1981
+ # specified criteria each time the job starts to run.
1844
1982
  # @return [Types::S3JobDefinition]
1845
1983
  #
1846
1984
  # @!attribute [rw] sampling_percentage
@@ -2450,12 +2588,12 @@ module Aws::Macie2
2450
2588
  #
2451
2589
  # @!attribute [rw] bucket_count_by_object_encryption_requirement
2452
2590
  # 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.
2591
+ # policies do or don't require server-side encryption of objects when
2592
+ # objects are uploaded to the buckets.
2455
2593
  # @return [Types::BucketCountPolicyAllowsUnencryptedObjectUploads]
2456
2594
  #
2457
2595
  # @!attribute [rw] bucket_count_by_shared_access_type
2458
- # Provides information about the number of S3 buckets that are and
2596
+ # Provides information about the number of S3 buckets that are or
2459
2597
  # aren't shared with other AWS accounts.
2460
2598
  # @return [Types::BucketCountBySharedAccessType]
2461
2599
  #
@@ -2480,21 +2618,23 @@ module Aws::Macie2
2480
2618
  # @!attribute [rw] unclassifiable_object_count
2481
2619
  # Provides information about the total storage size (in bytes) or
2482
2620
  # 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.
2621
+ # buckets. In a BucketMetadata or MatchingBucket object, this data is
2622
+ # for a specific bucket. In a GetBucketStatisticsResponse object, this
2623
+ # data is aggregated for all the buckets in the query results. If
2624
+ # versioning is enabled for a bucket, total storage size values are
2625
+ # based on the size of the latest version of each applicable object in
2626
+ # the bucket.
2488
2627
  # @return [Types::ObjectLevelStatistics]
2489
2628
  #
2490
2629
  # @!attribute [rw] unclassifiable_object_size_in_bytes
2491
2630
  # Provides information about the total storage size (in bytes) or
2492
2631
  # 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.
2632
+ # buckets. In a BucketMetadata or MatchingBucket object, this data is
2633
+ # for a specific bucket. In a GetBucketStatisticsResponse object, this
2634
+ # data is aggregated for all the buckets in the query results. If
2635
+ # versioning is enabled for a bucket, total storage size values are
2636
+ # based on the size of the latest version of each applicable object in
2637
+ # the bucket.
2498
2638
  # @return [Types::ObjectLevelStatistics]
2499
2639
  #
2500
2640
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetBucketStatisticsResponse AWS API Documentation
@@ -3372,7 +3512,7 @@ module Aws::Macie2
3372
3512
  end
3373
3513
 
3374
3514
  # Specifies a property- or tag-based condition that defines criteria for
3375
- # including or excluding objects from a classification job.
3515
+ # including or excluding S3 objects from a classification job.
3376
3516
  #
3377
3517
  # @note When making an API call, you may pass JobScopeTerm
3378
3518
  # data as a hash:
@@ -3397,13 +3537,15 @@ module Aws::Macie2
3397
3537
  # }
3398
3538
  #
3399
3539
  # @!attribute [rw] simple_scope_term
3400
- # Specifies a property-based condition that determines whether an
3540
+ # Specifies a property-based condition that determines whether an S3
3401
3541
  # object is included or excluded from a classification job.
3402
3542
  # @return [Types::SimpleScopeTerm]
3403
3543
  #
3404
3544
  # @!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.
3545
+ # Specifies a tag-based condition that determines whether an S3 object
3546
+ # is included or excluded from a classification job. Tag keys and
3547
+ # values are case sensitive. Also, Amazon Macie doesn't support use
3548
+ # of partial values or wildcard characters in tag-based conditions.
3407
3549
  # @return [Types::TagScopeTerm]
3408
3550
  #
3409
3551
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/JobScopeTerm AWS API Documentation
@@ -3416,9 +3558,8 @@ module Aws::Macie2
3416
3558
  end
3417
3559
 
3418
3560
  # 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.
3561
+ # criteria for including or excluding S3 objects from a classification
3562
+ # job.
3422
3563
  #
3423
3564
  # @note When making an API call, you may pass JobScopingBlock
3424
3565
  # data as a hash:
@@ -3479,10 +3620,13 @@ module Aws::Macie2
3479
3620
  #
3480
3621
  # @!attribute [rw] last_run_error_status
3481
3622
  # 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.
3623
+ # occurred when a classification job ran. For information about using
3624
+ # logging data to investigate these errors, see [Monitoring sensitive
3625
+ # data discovery jobs][1] in the *Amazon Macie User Guide*.
3626
+ #
3627
+ #
3628
+ #
3629
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/discovery-jobs-monitor-cw-logs.html
3486
3630
  # @return [Types::LastRunErrorStatus]
3487
3631
  #
3488
3632
  # @!attribute [rw] name
@@ -3499,6 +3643,12 @@ module Aws::Macie2
3499
3643
  # status of RUNNING.
3500
3644
  # @return [Types::UserPausedDetails]
3501
3645
  #
3646
+ # @!attribute [rw] bucket_criteria
3647
+ # Specifies property- and tag-based conditions that define criteria
3648
+ # for including or excluding S3 buckets from a classification job.
3649
+ # Exclude conditions take precedence over include conditions.
3650
+ # @return [Types::S3BucketCriteriaForJob]
3651
+ #
3502
3652
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/JobSummary AWS API Documentation
3503
3653
  #
3504
3654
  class JobSummary < Struct.new(
@@ -3509,7 +3659,8 @@ module Aws::Macie2
3509
3659
  :job_type,
3510
3660
  :last_run_error_status,
3511
3661
  :name,
3512
- :user_paused_details)
3662
+ :user_paused_details,
3663
+ :bucket_criteria)
3513
3664
  SENSITIVE = []
3514
3665
  include Aws::Structure
3515
3666
  end
@@ -3534,10 +3685,13 @@ module Aws::Macie2
3534
3685
  end
3535
3686
 
3536
3687
  # 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.
3688
+ # when a classification job ran. For information about using logging
3689
+ # data to investigate these errors, see [Monitoring sensitive data
3690
+ # discovery jobs][1] in the *Amazon Macie User Guide*.
3691
+ #
3692
+ #
3693
+ #
3694
+ # [1]: https://docs.aws.amazon.com/macie/latest/user/discovery-jobs-monitor-cw-logs.html
3541
3695
  #
3542
3696
  # @!attribute [rw] code
3543
3697
  # Specifies whether any account- or bucket-level access errors
@@ -4049,6 +4203,98 @@ module Aws::Macie2
4049
4203
  include Aws::Structure
4050
4204
  end
4051
4205
 
4206
+ # Provides statistical data and other information about an S3 bucket
4207
+ # that Amazon Macie monitors and analyzes.
4208
+ #
4209
+ # @!attribute [rw] account_id
4210
+ # @return [String]
4211
+ #
4212
+ # @!attribute [rw] bucket_name
4213
+ # @return [String]
4214
+ #
4215
+ # @!attribute [rw] classifiable_object_count
4216
+ # @return [Integer]
4217
+ #
4218
+ # @!attribute [rw] classifiable_size_in_bytes
4219
+ # @return [Integer]
4220
+ #
4221
+ # @!attribute [rw] job_details
4222
+ # Specifies whether any one-time or recurring classification jobs are
4223
+ # configured to analyze data in an S3 bucket, and, if so, the details
4224
+ # of the job that ran most recently.
4225
+ # @return [Types::JobDetails]
4226
+ #
4227
+ # @!attribute [rw] object_count
4228
+ # @return [Integer]
4229
+ #
4230
+ # @!attribute [rw] object_count_by_encryption_type
4231
+ # Provides information about the number of objects that are in an S3
4232
+ # bucket and use certain types of server-side encryption, use
4233
+ # client-side encryption, or aren't encrypted.
4234
+ # @return [Types::ObjectCountByEncryptionType]
4235
+ #
4236
+ # @!attribute [rw] size_in_bytes
4237
+ # @return [Integer]
4238
+ #
4239
+ # @!attribute [rw] size_in_bytes_compressed
4240
+ # @return [Integer]
4241
+ #
4242
+ # @!attribute [rw] unclassifiable_object_count
4243
+ # Provides information about the total storage size (in bytes) or
4244
+ # number of objects that Amazon Macie can't analyze in one or more S3
4245
+ # buckets. In a BucketMetadata or MatchingBucket object, this data is
4246
+ # for a specific bucket. In a GetBucketStatisticsResponse object, this
4247
+ # data is aggregated for all the buckets in the query results. If
4248
+ # versioning is enabled for a bucket, total storage size values are
4249
+ # based on the size of the latest version of each applicable object in
4250
+ # the bucket.
4251
+ # @return [Types::ObjectLevelStatistics]
4252
+ #
4253
+ # @!attribute [rw] unclassifiable_object_size_in_bytes
4254
+ # Provides information about the total storage size (in bytes) or
4255
+ # number of objects that Amazon Macie can't analyze in one or more S3
4256
+ # buckets. In a BucketMetadata or MatchingBucket object, this data is
4257
+ # for a specific bucket. In a GetBucketStatisticsResponse object, this
4258
+ # data is aggregated for all the buckets in the query results. If
4259
+ # versioning is enabled for a bucket, total storage size values are
4260
+ # based on the size of the latest version of each applicable object in
4261
+ # the bucket.
4262
+ # @return [Types::ObjectLevelStatistics]
4263
+ #
4264
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/MatchingBucket AWS API Documentation
4265
+ #
4266
+ class MatchingBucket < Struct.new(
4267
+ :account_id,
4268
+ :bucket_name,
4269
+ :classifiable_object_count,
4270
+ :classifiable_size_in_bytes,
4271
+ :job_details,
4272
+ :object_count,
4273
+ :object_count_by_encryption_type,
4274
+ :size_in_bytes,
4275
+ :size_in_bytes_compressed,
4276
+ :unclassifiable_object_count,
4277
+ :unclassifiable_object_size_in_bytes)
4278
+ SENSITIVE = []
4279
+ include Aws::Structure
4280
+ end
4281
+
4282
+ # Provides statistical data and other information about an AWS resource
4283
+ # that Amazon Macie monitors and analyzes.
4284
+ #
4285
+ # @!attribute [rw] matching_bucket
4286
+ # Provides statistical data and other information about an S3 bucket
4287
+ # that Amazon Macie monitors and analyzes.
4288
+ # @return [Types::MatchingBucket]
4289
+ #
4290
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/MatchingResource AWS API Documentation
4291
+ #
4292
+ class MatchingResource < Struct.new(
4293
+ :matching_bucket)
4294
+ SENSITIVE = []
4295
+ include Aws::Structure
4296
+ end
4297
+
4052
4298
  # Provides information about an account that's associated with an
4053
4299
  # Amazon Macie administrator account.
4054
4300
  #
@@ -4155,11 +4401,11 @@ module Aws::Macie2
4155
4401
 
4156
4402
  # Provides information about the total storage size (in bytes) or number
4157
4403
  # 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.
4404
+ # In a BucketMetadata or MatchingBucket object, this data is for a
4405
+ # specific bucket. In a GetBucketStatisticsResponse object, this data is
4406
+ # aggregated for all the buckets in the query results. If versioning is
4407
+ # enabled for a bucket, total storage size values are based on the size
4408
+ # of the latest version of each applicable object in the bucket.
4163
4409
  #
4164
4410
  # @!attribute [rw] file_type
4165
4411
  # @return [Integer]
@@ -4511,8 +4757,80 @@ module Aws::Macie2
4511
4757
  include Aws::Structure
4512
4758
  end
4513
4759
 
4514
- # Specifies which AWS account owns the S3 buckets that a classification
4515
- # job analyzes, and the buckets to analyze for the account.
4760
+ # Specifies property- and tag-based conditions that define criteria for
4761
+ # including or excluding S3 buckets from a classification job. Exclude
4762
+ # conditions take precedence over include conditions.
4763
+ #
4764
+ # @note When making an API call, you may pass S3BucketCriteriaForJob
4765
+ # data as a hash:
4766
+ #
4767
+ # {
4768
+ # excludes: {
4769
+ # and: [
4770
+ # {
4771
+ # simple_criterion: {
4772
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4773
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
4774
+ # values: ["__string"],
4775
+ # },
4776
+ # tag_criterion: {
4777
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4778
+ # tag_values: [
4779
+ # {
4780
+ # key: "__string",
4781
+ # value: "__string",
4782
+ # },
4783
+ # ],
4784
+ # },
4785
+ # },
4786
+ # ],
4787
+ # },
4788
+ # includes: {
4789
+ # and: [
4790
+ # {
4791
+ # simple_criterion: {
4792
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4793
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
4794
+ # values: ["__string"],
4795
+ # },
4796
+ # tag_criterion: {
4797
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4798
+ # tag_values: [
4799
+ # {
4800
+ # key: "__string",
4801
+ # value: "__string",
4802
+ # },
4803
+ # ],
4804
+ # },
4805
+ # },
4806
+ # ],
4807
+ # },
4808
+ # }
4809
+ #
4810
+ # @!attribute [rw] excludes
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
+ # @!attribute [rw] includes
4817
+ # Specifies one or more property- and tag-based conditions that define
4818
+ # criteria for including or excluding S3 buckets from a classification
4819
+ # job.
4820
+ # @return [Types::CriteriaBlockForJob]
4821
+ #
4822
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/S3BucketCriteriaForJob AWS API Documentation
4823
+ #
4824
+ class S3BucketCriteriaForJob < Struct.new(
4825
+ :excludes,
4826
+ :includes)
4827
+ SENSITIVE = []
4828
+ include Aws::Structure
4829
+ end
4830
+
4831
+ # Specifies an AWS account that owns S3 buckets for a classification job
4832
+ # to analyze, and one or more specific buckets to analyze for that
4833
+ # account.
4516
4834
  #
4517
4835
  # @note When making an API call, you may pass S3BucketDefinitionForJob
4518
4836
  # data as a hash:
@@ -4586,7 +4904,12 @@ module Aws::Macie2
4586
4904
  end
4587
4905
 
4588
4906
  # Specifies which S3 buckets contain the objects that a classification
4589
- # job analyzes, and the scope of that analysis.
4907
+ # job analyzes, and the scope of that analysis. The bucket specification
4908
+ # can be static (bucketDefinitions) or dynamic (bucketCriteria). If
4909
+ # it's static, the job analyzes objects in the same predefined set of
4910
+ # buckets each time the job runs. If it's dynamic, the job analyzes
4911
+ # objects in any buckets that match the specified criteria each time the
4912
+ # job starts to run.
4590
4913
  #
4591
4914
  # @note When making an API call, you may pass S3JobDefinition
4592
4915
  # data as a hash:
@@ -4644,41 +4967,89 @@ module Aws::Macie2
4644
4967
  # ],
4645
4968
  # },
4646
4969
  # },
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
4680
- # @return [String]
4681
- #
4970
+ # bucket_criteria: {
4971
+ # excludes: {
4972
+ # and: [
4973
+ # {
4974
+ # simple_criterion: {
4975
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4976
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
4977
+ # values: ["__string"],
4978
+ # },
4979
+ # tag_criterion: {
4980
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4981
+ # tag_values: [
4982
+ # {
4983
+ # key: "__string",
4984
+ # value: "__string",
4985
+ # },
4986
+ # ],
4987
+ # },
4988
+ # },
4989
+ # ],
4990
+ # },
4991
+ # includes: {
4992
+ # and: [
4993
+ # {
4994
+ # simple_criterion: {
4995
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
4996
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
4997
+ # values: ["__string"],
4998
+ # },
4999
+ # tag_criterion: {
5000
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
5001
+ # tag_values: [
5002
+ # {
5003
+ # key: "__string",
5004
+ # value: "__string",
5005
+ # },
5006
+ # ],
5007
+ # },
5008
+ # },
5009
+ # ],
5010
+ # },
5011
+ # },
5012
+ # }
5013
+ #
5014
+ # @!attribute [rw] bucket_definitions
5015
+ # @return [Array<Types::S3BucketDefinitionForJob>]
5016
+ #
5017
+ # @!attribute [rw] scoping
5018
+ # Specifies one or more property- and tag-based conditions that define
5019
+ # criteria for including or excluding S3 objects from a classification
5020
+ # job. Exclude conditions take precedence over include conditions.
5021
+ # @return [Types::Scoping]
5022
+ #
5023
+ # @!attribute [rw] bucket_criteria
5024
+ # Specifies property- and tag-based conditions that define criteria
5025
+ # for including or excluding S3 buckets from a classification job.
5026
+ # Exclude conditions take precedence over include conditions.
5027
+ # @return [Types::S3BucketCriteriaForJob]
5028
+ #
5029
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/S3JobDefinition AWS API Documentation
5030
+ #
5031
+ class S3JobDefinition < Struct.new(
5032
+ :bucket_definitions,
5033
+ :scoping,
5034
+ :bucket_criteria)
5035
+ SENSITIVE = []
5036
+ include Aws::Structure
5037
+ end
5038
+
5039
+ # Provides information about an S3 object that a finding applies to.
5040
+ #
5041
+ # @!attribute [rw] bucket_arn
5042
+ # @return [String]
5043
+ #
5044
+ # @!attribute [rw] e_tag
5045
+ # @return [String]
5046
+ #
5047
+ # @!attribute [rw] extension
5048
+ # @return [String]
5049
+ #
5050
+ # @!attribute [rw] key
5051
+ # @return [String]
5052
+ #
4682
5053
  # @!attribute [rw] last_modified
4683
5054
  # @return [Time]
4684
5055
  #
@@ -4728,10 +5099,9 @@ module Aws::Macie2
4728
5099
  include Aws::Structure
4729
5100
  end
4730
5101
 
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.
5102
+ # Specifies one or more property- and tag-based conditions that define
5103
+ # criteria for including or excluding S3 objects from a classification
5104
+ # job. Exclude conditions take precedence over include conditions.
4735
5105
  #
4736
5106
  # @note When making an API call, you may pass Scoping
4737
5107
  # data as a hash:
@@ -4785,16 +5155,14 @@ module Aws::Macie2
4785
5155
  #
4786
5156
  # @!attribute [rw] excludes
4787
5157
  # 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.
5158
+ # criteria for including or excluding S3 objects from a classification
5159
+ # job.
4791
5160
  # @return [Types::JobScopingBlock]
4792
5161
  #
4793
5162
  # @!attribute [rw] includes
4794
5163
  # 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.
5164
+ # criteria for including or excluding S3 objects from a classification
5165
+ # job.
4798
5166
  # @return [Types::JobScopingBlock]
4799
5167
  #
4800
5168
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/Scoping AWS API Documentation
@@ -4806,6 +5174,387 @@ module Aws::Macie2
4806
5174
  include Aws::Structure
4807
5175
  end
4808
5176
 
5177
+ # Specifies property- and tag-based conditions that define filter
5178
+ # criteria for including or excluding S3 buckets from the query results.
5179
+ # Exclude conditions take precedence over include conditions.
5180
+ #
5181
+ # @note When making an API call, you may pass SearchResourcesBucketCriteria
5182
+ # data as a hash:
5183
+ #
5184
+ # {
5185
+ # excludes: {
5186
+ # and: [
5187
+ # {
5188
+ # simple_criterion: {
5189
+ # comparator: "EQ", # accepts EQ, NE
5190
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5191
+ # values: ["__string"],
5192
+ # },
5193
+ # tag_criterion: {
5194
+ # comparator: "EQ", # accepts EQ, NE
5195
+ # tag_values: [
5196
+ # {
5197
+ # key: "__string",
5198
+ # value: "__string",
5199
+ # },
5200
+ # ],
5201
+ # },
5202
+ # },
5203
+ # ],
5204
+ # },
5205
+ # includes: {
5206
+ # and: [
5207
+ # {
5208
+ # simple_criterion: {
5209
+ # comparator: "EQ", # accepts EQ, NE
5210
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5211
+ # values: ["__string"],
5212
+ # },
5213
+ # tag_criterion: {
5214
+ # comparator: "EQ", # accepts EQ, NE
5215
+ # tag_values: [
5216
+ # {
5217
+ # key: "__string",
5218
+ # value: "__string",
5219
+ # },
5220
+ # ],
5221
+ # },
5222
+ # },
5223
+ # ],
5224
+ # },
5225
+ # }
5226
+ #
5227
+ # @!attribute [rw] excludes
5228
+ # Specifies property- and tag-based conditions that define filter
5229
+ # criteria for including or excluding AWS resources from the query
5230
+ # results.
5231
+ # @return [Types::SearchResourcesCriteriaBlock]
5232
+ #
5233
+ # @!attribute [rw] includes
5234
+ # Specifies property- and tag-based conditions that define filter
5235
+ # criteria for including or excluding AWS resources from the query
5236
+ # results.
5237
+ # @return [Types::SearchResourcesCriteriaBlock]
5238
+ #
5239
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesBucketCriteria AWS API Documentation
5240
+ #
5241
+ class SearchResourcesBucketCriteria < Struct.new(
5242
+ :excludes,
5243
+ :includes)
5244
+ SENSITIVE = []
5245
+ include Aws::Structure
5246
+ end
5247
+
5248
+ # Specifies a property- or tag-based filter condition for including or
5249
+ # excluding AWS resources from the query results.
5250
+ #
5251
+ # @note When making an API call, you may pass SearchResourcesCriteria
5252
+ # data as a hash:
5253
+ #
5254
+ # {
5255
+ # simple_criterion: {
5256
+ # comparator: "EQ", # accepts EQ, NE
5257
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5258
+ # values: ["__string"],
5259
+ # },
5260
+ # tag_criterion: {
5261
+ # comparator: "EQ", # accepts EQ, NE
5262
+ # tag_values: [
5263
+ # {
5264
+ # key: "__string",
5265
+ # value: "__string",
5266
+ # },
5267
+ # ],
5268
+ # },
5269
+ # }
5270
+ #
5271
+ # @!attribute [rw] simple_criterion
5272
+ # Specifies a property-based filter condition that determines which
5273
+ # AWS resources are included or excluded from the query results.
5274
+ # @return [Types::SearchResourcesSimpleCriterion]
5275
+ #
5276
+ # @!attribute [rw] tag_criterion
5277
+ # Specifies a tag-based filter condition that determines which AWS
5278
+ # resources are included or excluded from the query results.
5279
+ # @return [Types::SearchResourcesTagCriterion]
5280
+ #
5281
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesCriteria AWS API Documentation
5282
+ #
5283
+ class SearchResourcesCriteria < Struct.new(
5284
+ :simple_criterion,
5285
+ :tag_criterion)
5286
+ SENSITIVE = []
5287
+ include Aws::Structure
5288
+ end
5289
+
5290
+ # Specifies property- and tag-based conditions that define filter
5291
+ # criteria for including or excluding AWS resources from the query
5292
+ # results.
5293
+ #
5294
+ # @note When making an API call, you may pass SearchResourcesCriteriaBlock
5295
+ # data as a hash:
5296
+ #
5297
+ # {
5298
+ # and: [
5299
+ # {
5300
+ # simple_criterion: {
5301
+ # comparator: "EQ", # accepts EQ, NE
5302
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5303
+ # values: ["__string"],
5304
+ # },
5305
+ # tag_criterion: {
5306
+ # comparator: "EQ", # accepts EQ, NE
5307
+ # tag_values: [
5308
+ # {
5309
+ # key: "__string",
5310
+ # value: "__string",
5311
+ # },
5312
+ # ],
5313
+ # },
5314
+ # },
5315
+ # ],
5316
+ # }
5317
+ #
5318
+ # @!attribute [rw] and
5319
+ # @return [Array<Types::SearchResourcesCriteria>]
5320
+ #
5321
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesCriteriaBlock AWS API Documentation
5322
+ #
5323
+ class SearchResourcesCriteriaBlock < Struct.new(
5324
+ :and)
5325
+ SENSITIVE = []
5326
+ include Aws::Structure
5327
+ end
5328
+
5329
+ # Specifies criteria for filtering, sorting, and paginating the results
5330
+ # of a query for statistical data and other information about AWS
5331
+ # resources that Amazon Macie monitors and analyzes.
5332
+ #
5333
+ # @note When making an API call, you may pass SearchResourcesRequest
5334
+ # data as a hash:
5335
+ #
5336
+ # {
5337
+ # bucket_criteria: {
5338
+ # excludes: {
5339
+ # and: [
5340
+ # {
5341
+ # simple_criterion: {
5342
+ # comparator: "EQ", # accepts EQ, NE
5343
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5344
+ # values: ["__string"],
5345
+ # },
5346
+ # tag_criterion: {
5347
+ # comparator: "EQ", # accepts EQ, NE
5348
+ # tag_values: [
5349
+ # {
5350
+ # key: "__string",
5351
+ # value: "__string",
5352
+ # },
5353
+ # ],
5354
+ # },
5355
+ # },
5356
+ # ],
5357
+ # },
5358
+ # includes: {
5359
+ # and: [
5360
+ # {
5361
+ # simple_criterion: {
5362
+ # comparator: "EQ", # accepts EQ, NE
5363
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5364
+ # values: ["__string"],
5365
+ # },
5366
+ # tag_criterion: {
5367
+ # comparator: "EQ", # accepts EQ, NE
5368
+ # tag_values: [
5369
+ # {
5370
+ # key: "__string",
5371
+ # value: "__string",
5372
+ # },
5373
+ # ],
5374
+ # },
5375
+ # },
5376
+ # ],
5377
+ # },
5378
+ # },
5379
+ # max_results: 1,
5380
+ # next_token: "__string",
5381
+ # sort_criteria: {
5382
+ # attribute_name: "ACCOUNT_ID", # accepts ACCOUNT_ID, RESOURCE_NAME, S3_CLASSIFIABLE_OBJECT_COUNT, S3_CLASSIFIABLE_SIZE_IN_BYTES
5383
+ # order_by: "ASC", # accepts ASC, DESC
5384
+ # },
5385
+ # }
5386
+ #
5387
+ # @!attribute [rw] bucket_criteria
5388
+ # Specifies property- and tag-based conditions that define filter
5389
+ # criteria for including or excluding S3 buckets from the query
5390
+ # results. Exclude conditions take precedence over include conditions.
5391
+ # @return [Types::SearchResourcesBucketCriteria]
5392
+ #
5393
+ # @!attribute [rw] max_results
5394
+ # @return [Integer]
5395
+ #
5396
+ # @!attribute [rw] next_token
5397
+ # @return [String]
5398
+ #
5399
+ # @!attribute [rw] sort_criteria
5400
+ # Specifies criteria for sorting the results of a query for
5401
+ # information about AWS resources that Amazon Macie monitors and
5402
+ # analyzes.
5403
+ # @return [Types::SearchResourcesSortCriteria]
5404
+ #
5405
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesRequest AWS API Documentation
5406
+ #
5407
+ class SearchResourcesRequest < Struct.new(
5408
+ :bucket_criteria,
5409
+ :max_results,
5410
+ :next_token,
5411
+ :sort_criteria)
5412
+ SENSITIVE = []
5413
+ include Aws::Structure
5414
+ end
5415
+
5416
+ # Provides the results of a query that retrieved statistical data and
5417
+ # other information about AWS resources that Amazon Macie monitors and
5418
+ # analyzes.
5419
+ #
5420
+ # @!attribute [rw] matching_resources
5421
+ # @return [Array<Types::MatchingResource>]
5422
+ #
5423
+ # @!attribute [rw] next_token
5424
+ # @return [String]
5425
+ #
5426
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesResponse AWS API Documentation
5427
+ #
5428
+ class SearchResourcesResponse < Struct.new(
5429
+ :matching_resources,
5430
+ :next_token)
5431
+ SENSITIVE = []
5432
+ include Aws::Structure
5433
+ end
5434
+
5435
+ # Specifies a property-based filter condition that determines which AWS
5436
+ # resources are included or excluded from the query results.
5437
+ #
5438
+ # @note When making an API call, you may pass SearchResourcesSimpleCriterion
5439
+ # data as a hash:
5440
+ #
5441
+ # {
5442
+ # comparator: "EQ", # accepts EQ, NE
5443
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5444
+ # values: ["__string"],
5445
+ # }
5446
+ #
5447
+ # @!attribute [rw] comparator
5448
+ # The operator to use in a condition that filters the results of a
5449
+ # query. Valid values are:
5450
+ # @return [String]
5451
+ #
5452
+ # @!attribute [rw] key
5453
+ # The property to use in a condition that filters the query results.
5454
+ # Valid values are:
5455
+ # @return [String]
5456
+ #
5457
+ # @!attribute [rw] values
5458
+ # @return [Array<String>]
5459
+ #
5460
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesSimpleCriterion AWS API Documentation
5461
+ #
5462
+ class SearchResourcesSimpleCriterion < Struct.new(
5463
+ :comparator,
5464
+ :key,
5465
+ :values)
5466
+ SENSITIVE = []
5467
+ include Aws::Structure
5468
+ end
5469
+
5470
+ # Specifies criteria for sorting the results of a query for information
5471
+ # about AWS resources that Amazon Macie monitors and analyzes.
5472
+ #
5473
+ # @note When making an API call, you may pass SearchResourcesSortCriteria
5474
+ # data as a hash:
5475
+ #
5476
+ # {
5477
+ # attribute_name: "ACCOUNT_ID", # accepts ACCOUNT_ID, RESOURCE_NAME, S3_CLASSIFIABLE_OBJECT_COUNT, S3_CLASSIFIABLE_SIZE_IN_BYTES
5478
+ # order_by: "ASC", # accepts ASC, DESC
5479
+ # }
5480
+ #
5481
+ # @!attribute [rw] attribute_name
5482
+ # The property to sort the query results by. Valid values are:
5483
+ # @return [String]
5484
+ #
5485
+ # @!attribute [rw] order_by
5486
+ # @return [String]
5487
+ #
5488
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesSortCriteria AWS API Documentation
5489
+ #
5490
+ class SearchResourcesSortCriteria < Struct.new(
5491
+ :attribute_name,
5492
+ :order_by)
5493
+ SENSITIVE = []
5494
+ include Aws::Structure
5495
+ end
5496
+
5497
+ # Specifies a tag-based filter condition that determines which AWS
5498
+ # resources are included or excluded from the query results.
5499
+ #
5500
+ # @note When making an API call, you may pass SearchResourcesTagCriterion
5501
+ # data as a hash:
5502
+ #
5503
+ # {
5504
+ # comparator: "EQ", # accepts EQ, NE
5505
+ # tag_values: [
5506
+ # {
5507
+ # key: "__string",
5508
+ # value: "__string",
5509
+ # },
5510
+ # ],
5511
+ # }
5512
+ #
5513
+ # @!attribute [rw] comparator
5514
+ # The operator to use in a condition that filters the results of a
5515
+ # query. Valid values are:
5516
+ # @return [String]
5517
+ #
5518
+ # @!attribute [rw] tag_values
5519
+ # @return [Array<Types::SearchResourcesTagCriterionPair>]
5520
+ #
5521
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesTagCriterion AWS API Documentation
5522
+ #
5523
+ class SearchResourcesTagCriterion < Struct.new(
5524
+ :comparator,
5525
+ :tag_values)
5526
+ SENSITIVE = []
5527
+ include Aws::Structure
5528
+ end
5529
+
5530
+ # Specifies a tag key, a tag value, or a tag key and value (as a pair)
5531
+ # to use in a tag-based filter condition for a query. Tag keys and
5532
+ # values are case sensitive. Also, Amazon Macie doesn't support use of
5533
+ # partial values or wildcard characters in tag-based filter conditions.
5534
+ #
5535
+ # @note When making an API call, you may pass SearchResourcesTagCriterionPair
5536
+ # data as a hash:
5537
+ #
5538
+ # {
5539
+ # key: "__string",
5540
+ # value: "__string",
5541
+ # }
5542
+ #
5543
+ # @!attribute [rw] key
5544
+ # @return [String]
5545
+ #
5546
+ # @!attribute [rw] value
5547
+ # @return [String]
5548
+ #
5549
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SearchResourcesTagCriterionPair AWS API Documentation
5550
+ #
5551
+ class SearchResourcesTagCriterionPair < Struct.new(
5552
+ :key,
5553
+ :value)
5554
+ SENSITIVE = []
5555
+ include Aws::Structure
5556
+ end
5557
+
4809
5558
  # Specifies configuration settings that determine which findings are
4810
5559
  # published to AWS Security Hub automatically. For information about how
4811
5560
  # Macie publishes findings to Security Hub, see [Amazon Macie
@@ -5011,8 +5760,43 @@ module Aws::Macie2
5011
5760
  include Aws::Structure
5012
5761
  end
5013
5762
 
5014
- # Specifies a property-based condition that determines whether an object
5015
- # is included or excluded from a classification job.
5763
+ # Specifies a property-based condition that determines whether an S3
5764
+ # bucket is included or excluded from a classification job.
5765
+ #
5766
+ # @note When making an API call, you may pass SimpleCriterionForJob
5767
+ # data as a hash:
5768
+ #
5769
+ # {
5770
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
5771
+ # key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
5772
+ # values: ["__string"],
5773
+ # }
5774
+ #
5775
+ # @!attribute [rw] comparator
5776
+ # The operator to use in a condition. Valid values are:
5777
+ # @return [String]
5778
+ #
5779
+ # @!attribute [rw] key
5780
+ # The property to use in a condition that determines whether an S3
5781
+ # bucket is included or excluded from a classification job. Valid
5782
+ # values are:
5783
+ # @return [String]
5784
+ #
5785
+ # @!attribute [rw] values
5786
+ # @return [Array<String>]
5787
+ #
5788
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SimpleCriterionForJob AWS API Documentation
5789
+ #
5790
+ class SimpleCriterionForJob < Struct.new(
5791
+ :comparator,
5792
+ :key,
5793
+ :values)
5794
+ SENSITIVE = []
5795
+ include Aws::Structure
5796
+ end
5797
+
5798
+ # Specifies a property-based condition that determines whether an S3
5799
+ # object is included or excluded from a classification job.
5016
5800
  #
5017
5801
  # @note When making an API call, you may pass SimpleScopeTerm
5018
5802
  # data as a hash:
@@ -5028,8 +5812,9 @@ module Aws::Macie2
5028
5812
  # @return [String]
5029
5813
  #
5030
5814
  # @!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:
5815
+ # The property to use in a condition that determines whether an S3
5816
+ # object is included or excluded from a classification job. Valid
5817
+ # values are:
5033
5818
  # @return [String]
5034
5819
  #
5035
5820
  # @!attribute [rw] values
@@ -5087,6 +5872,67 @@ module Aws::Macie2
5087
5872
  include Aws::Structure
5088
5873
  end
5089
5874
 
5875
+ # Specifies a tag-based condition that determines whether an S3 bucket
5876
+ # is included or excluded from a classification job.
5877
+ #
5878
+ # @note When making an API call, you may pass TagCriterionForJob
5879
+ # data as a hash:
5880
+ #
5881
+ # {
5882
+ # comparator: "EQ", # accepts EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH
5883
+ # tag_values: [
5884
+ # {
5885
+ # key: "__string",
5886
+ # value: "__string",
5887
+ # },
5888
+ # ],
5889
+ # }
5890
+ #
5891
+ # @!attribute [rw] comparator
5892
+ # The operator to use in a condition. Valid values are:
5893
+ # @return [String]
5894
+ #
5895
+ # @!attribute [rw] tag_values
5896
+ # @return [Array<Types::TagCriterionPairForJob>]
5897
+ #
5898
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/TagCriterionForJob AWS API Documentation
5899
+ #
5900
+ class TagCriterionForJob < Struct.new(
5901
+ :comparator,
5902
+ :tag_values)
5903
+ SENSITIVE = []
5904
+ include Aws::Structure
5905
+ end
5906
+
5907
+ # Specifies a tag key, a tag value, or a tag key and value (as a pair)
5908
+ # to use in a tag-based condition that determines whether an S3 bucket
5909
+ # is included or excluded from a classification job. Tag keys and values
5910
+ # are case sensitive. Also, Amazon Macie doesn't support use of partial
5911
+ # values or wildcard characters in tag-based conditions.
5912
+ #
5913
+ # @note When making an API call, you may pass TagCriterionPairForJob
5914
+ # data as a hash:
5915
+ #
5916
+ # {
5917
+ # key: "__string",
5918
+ # value: "__string",
5919
+ # }
5920
+ #
5921
+ # @!attribute [rw] key
5922
+ # @return [String]
5923
+ #
5924
+ # @!attribute [rw] value
5925
+ # @return [String]
5926
+ #
5927
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/TagCriterionPairForJob AWS API Documentation
5928
+ #
5929
+ class TagCriterionPairForJob < Struct.new(
5930
+ :key,
5931
+ :value)
5932
+ SENSITIVE = []
5933
+ include Aws::Structure
5934
+ end
5935
+
5090
5936
  # Specifies the tags (keys and values) to associate with a
5091
5937
  # classification job, custom data identifier, findings filter, or member
5092
5938
  # account.
@@ -5125,8 +5971,10 @@ module Aws::Macie2
5125
5971
  #
5126
5972
  class TagResourceResponse < Aws::EmptyStructure; end
5127
5973
 
5128
- # Specifies a tag-based condition that determines whether an object is
5129
- # included or excluded from a classification job.
5974
+ # Specifies a tag-based condition that determines whether an S3 object
5975
+ # is included or excluded from a classification job. Tag keys and values
5976
+ # are case sensitive. Also, Amazon Macie doesn't support use of partial
5977
+ # values or wildcard characters in tag-based conditions.
5130
5978
  #
5131
5979
  # @note When making an API call, you may pass TagScopeTerm
5132
5980
  # data as a hash:
@@ -5170,7 +6018,10 @@ module Aws::Macie2
5170
6018
  end
5171
6019
 
5172
6020
  # Specifies a tag key or tag key and value pair to use in a tag-based
5173
- # condition for a classification job.
6021
+ # condition that determines whether an S3 object is included or excluded
6022
+ # from a classification job. Tag keys and values are case sensitive.
6023
+ # Also, Amazon Macie doesn't support use of partial values or wildcard
6024
+ # characters in tag-based conditions.
5174
6025
  #
5175
6026
  # @note When making an API call, you may pass TagValuePair
5176
6027
  # data as a hash:
@@ -5316,8 +6167,8 @@ module Aws::Macie2
5316
6167
  class UntagResourceResponse < Aws::EmptyStructure; end
5317
6168
 
5318
6169
  # 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*.
6170
+ # pausing, resuming, or cancelling jobs, see [Managing sensitive data
6171
+ # discovery jobs][1] in the *Amazon Macie User Guide*.
5321
6172
  #
5322
6173
  #
5323
6174
  #