aws-sdk-macie2 1.46.0 → 1.47.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a317528c809964c80728a1cac6b20a43b636dc0d6aa975f0ff0ec9b586ed8d83
4
- data.tar.gz: 2e5807f4b3a33234006f4768255b34bcfeec044cefddd895e8f2a6afa5155d8b
3
+ metadata.gz: 8df284a3b860f522a6cf30162ea116c6de3dabeb05da3ac7307646d3a1f2a9cc
4
+ data.tar.gz: c295ed59840153e2743c8d1a7d3d6f1928912721bbd0b960b1200c3fd476f40d
5
5
  SHA512:
6
- metadata.gz: aa4dfacc438d4eb250dc94c607d3656a702b2a1256689dfea15d291751a3c22d09a4e5c58d2d5fcf8307f633c90d44d0dde59bc92524d413724fa64dc42853de
7
- data.tar.gz: f272b9eb4b3c9a3b33bfb256855a315712ba79a909ca49bca6ba579b0bbf35bf7a55a32263e38a219d344b62a3cf7e255c6ea75e5e3fcc6fcc8afe9cff290154
6
+ metadata.gz: 4f3ba214231641fe3ecbc05bcc4ebf61154dfe297caf50f81f1f73d0028dc1d10129df6e682d0a9bfeff1066350e8224b49581d9d3cba7eca259208c556fca5c
7
+ data.tar.gz: 6f254895a42c8426cf8b6525cd30a9d37926f940609bf2a3b360fb78c0089bc72113325a035d81b144f47850c058226a050c871d5f634b89be004dcc07a33544
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.47.0 (2022-08-30)
5
+ ------------------
6
+
7
+ * Feature - This release of the Amazon Macie API adds support for using allow lists to define specific text and text patterns to ignore when inspecting data sources for sensitive data.
8
+
4
9
  1.46.0 (2022-07-26)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.46.0
1
+ 1.47.0
@@ -415,8 +415,66 @@ module Aws::Macie2
415
415
  req.send_request(options)
416
416
  end
417
417
 
418
+ # Creates and defines the settings for an allow list.
419
+ #
420
+ # @option params [required, String] :client_token
421
+ # **A suitable default value is auto-generated.** You should normally
422
+ # not need to pass this option.**
423
+ #
424
+ # @option params [required, Types::AllowListCriteria] :criteria
425
+ # Specifies the criteria for an allow list. The criteria must specify a
426
+ # regular expression (regex) or an S3 object (s3WordsList). It can't
427
+ # specify both.
428
+ #
429
+ # @option params [String] :description
430
+ #
431
+ # @option params [required, String] :name
432
+ #
433
+ # @option params [Hash<String,String>] :tags
434
+ # A string-to-string map of key-value pairs that specifies the tags
435
+ # (keys and values) for an Amazon Macie resource.
436
+ #
437
+ # @return [Types::CreateAllowListResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
438
+ #
439
+ # * {Types::CreateAllowListResponse#arn #arn} => String
440
+ # * {Types::CreateAllowListResponse#id #id} => String
441
+ #
442
+ # @example Request syntax with placeholder values
443
+ #
444
+ # resp = client.create_allow_list({
445
+ # client_token: "__string", # required
446
+ # criteria: { # required
447
+ # regex: "__stringMin1Max512PatternSS",
448
+ # s3_words_list: {
449
+ # bucket_name: "__stringMin3Max255PatternAZaZ093255", # required
450
+ # object_key: "__stringMin1Max1024PatternSS", # required
451
+ # },
452
+ # },
453
+ # description: "__stringMin1Max512PatternSS",
454
+ # name: "__stringMin1Max128Pattern", # required
455
+ # tags: {
456
+ # "__string" => "__string",
457
+ # },
458
+ # })
459
+ #
460
+ # @example Response structure
461
+ #
462
+ # resp.arn #=> String
463
+ # resp.id #=> String
464
+ #
465
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateAllowList AWS API Documentation
466
+ #
467
+ # @overload create_allow_list(params = {})
468
+ # @param [Hash] params ({})
469
+ def create_allow_list(params = {}, options = {})
470
+ req = build_request(:create_allow_list, params)
471
+ req.send_request(options)
472
+ end
473
+
418
474
  # Creates and defines the settings for a classification job.
419
475
  #
476
+ # @option params [Array<String>] :allow_list_ids
477
+ #
420
478
  # @option params [required, String] :client_token
421
479
  # **A suitable default value is auto-generated.** You should normally
422
480
  # not need to pass this option.**
@@ -454,8 +512,7 @@ module Aws::Macie2
454
512
  #
455
513
  # @option params [Hash<String,String>] :tags
456
514
  # A string-to-string map of key-value pairs that specifies the tags
457
- # (keys and values) for a classification job, custom data identifier,
458
- # findings filter, or member account.
515
+ # (keys and values) for an Amazon Macie resource.
459
516
  #
460
517
  # @return [Types::CreateClassificationJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
461
518
  #
@@ -465,6 +522,7 @@ module Aws::Macie2
465
522
  # @example Request syntax with placeholder values
466
523
  #
467
524
  # resp = client.create_classification_job({
525
+ # allow_list_ids: ["__string"],
468
526
  # client_token: "__string", # required
469
527
  # custom_data_identifier_ids: ["__string"],
470
528
  # description: "__string",
@@ -636,8 +694,7 @@ module Aws::Macie2
636
694
  #
637
695
  # @option params [Hash<String,String>] :tags
638
696
  # A string-to-string map of key-value pairs that specifies the tags
639
- # (keys and values) for a classification job, custom data identifier,
640
- # findings filter, or member account.
697
+ # (keys and values) for an Amazon Macie resource.
641
698
  #
642
699
  # @return [Types::CreateCustomDataIdentifierResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
643
700
  #
@@ -701,8 +758,7 @@ module Aws::Macie2
701
758
  #
702
759
  # @option params [Hash<String,String>] :tags
703
760
  # A string-to-string map of key-value pairs that specifies the tags
704
- # (keys and values) for a classification job, custom data identifier,
705
- # findings filter, or member account.
761
+ # (keys and values) for an Amazon Macie resource.
706
762
  #
707
763
  # @return [Types::CreateFindingsFilterResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
708
764
  #
@@ -793,8 +849,7 @@ module Aws::Macie2
793
849
  #
794
850
  # @option params [Hash<String,String>] :tags
795
851
  # A string-to-string map of key-value pairs that specifies the tags
796
- # (keys and values) for a classification job, custom data identifier,
797
- # findings filter, or member account.
852
+ # (keys and values) for an Amazon Macie resource.
798
853
  #
799
854
  # @return [Types::CreateMemberResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
800
855
  #
@@ -877,6 +932,30 @@ module Aws::Macie2
877
932
  req.send_request(options)
878
933
  end
879
934
 
935
+ # Deletes an allow list.
936
+ #
937
+ # @option params [required, String] :id
938
+ #
939
+ # @option params [String] :ignore_job_checks
940
+ #
941
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
942
+ #
943
+ # @example Request syntax with placeholder values
944
+ #
945
+ # resp = client.delete_allow_list({
946
+ # id: "__string", # required
947
+ # ignore_job_checks: "__string",
948
+ # })
949
+ #
950
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DeleteAllowList AWS API Documentation
951
+ #
952
+ # @overload delete_allow_list(params = {})
953
+ # @param [Hash] params ({})
954
+ def delete_allow_list(params = {}, options = {})
955
+ req = build_request(:delete_allow_list, params)
956
+ req.send_request(options)
957
+ end
958
+
880
959
  # Soft deletes a custom data identifier.
881
960
  #
882
961
  # @option params [required, String] :id
@@ -1089,6 +1168,7 @@ module Aws::Macie2
1089
1168
  #
1090
1169
  # @return [Types::DescribeClassificationJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1091
1170
  #
1171
+ # * {Types::DescribeClassificationJobResponse#allow_list_ids #allow_list_ids} => Array&lt;String&gt;
1092
1172
  # * {Types::DescribeClassificationJobResponse#client_token #client_token} => String
1093
1173
  # * {Types::DescribeClassificationJobResponse#created_at #created_at} => Time
1094
1174
  # * {Types::DescribeClassificationJobResponse#custom_data_identifier_ids #custom_data_identifier_ids} => Array&lt;String&gt;
@@ -1118,6 +1198,8 @@ module Aws::Macie2
1118
1198
  #
1119
1199
  # @example Response structure
1120
1200
  #
1201
+ # resp.allow_list_ids #=> Array
1202
+ # resp.allow_list_ids[0] #=> String
1121
1203
  # resp.client_token #=> String
1122
1204
  # resp.created_at #=> Time
1123
1205
  # resp.custom_data_identifier_ids #=> Array
@@ -1319,9 +1401,9 @@ module Aws::Macie2
1319
1401
  # @option params [String] :finding_publishing_frequency
1320
1402
  # The frequency with which Amazon Macie publishes updates to policy
1321
1403
  # findings for an account. This includes publishing updates to Security
1322
- # Hub and Amazon EventBridge (formerly called Amazon CloudWatch Events).
1323
- # For more information, see [Monitoring and processing findings][1] in
1324
- # the *Amazon Macie User Guide*. Valid values are:
1404
+ # Hub and Amazon EventBridge (formerly Amazon CloudWatch Events). For
1405
+ # more information, see [Monitoring and processing findings][1] in the
1406
+ # *Amazon Macie User Guide*. Valid values are:
1325
1407
  #
1326
1408
  #
1327
1409
  #
@@ -1399,6 +1481,53 @@ module Aws::Macie2
1399
1481
  req.send_request(options)
1400
1482
  end
1401
1483
 
1484
+ # Retrieves the settings and status of an allow list.
1485
+ #
1486
+ # @option params [required, String] :id
1487
+ #
1488
+ # @return [Types::GetAllowListResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1489
+ #
1490
+ # * {Types::GetAllowListResponse#arn #arn} => String
1491
+ # * {Types::GetAllowListResponse#created_at #created_at} => Time
1492
+ # * {Types::GetAllowListResponse#criteria #criteria} => Types::AllowListCriteria
1493
+ # * {Types::GetAllowListResponse#description #description} => String
1494
+ # * {Types::GetAllowListResponse#id #id} => String
1495
+ # * {Types::GetAllowListResponse#name #name} => String
1496
+ # * {Types::GetAllowListResponse#status #status} => Types::AllowListStatus
1497
+ # * {Types::GetAllowListResponse#tags #tags} => Hash&lt;String,String&gt;
1498
+ # * {Types::GetAllowListResponse#updated_at #updated_at} => Time
1499
+ #
1500
+ # @example Request syntax with placeholder values
1501
+ #
1502
+ # resp = client.get_allow_list({
1503
+ # id: "__string", # required
1504
+ # })
1505
+ #
1506
+ # @example Response structure
1507
+ #
1508
+ # resp.arn #=> String
1509
+ # resp.created_at #=> Time
1510
+ # resp.criteria.regex #=> String
1511
+ # resp.criteria.s3_words_list.bucket_name #=> String
1512
+ # resp.criteria.s3_words_list.object_key #=> String
1513
+ # resp.description #=> String
1514
+ # resp.id #=> String
1515
+ # resp.name #=> String
1516
+ # resp.status.code #=> String, one of "OK", "S3_OBJECT_NOT_FOUND", "S3_USER_ACCESS_DENIED", "S3_OBJECT_ACCESS_DENIED", "S3_THROTTLED", "S3_OBJECT_OVERSIZE", "S3_OBJECT_EMPTY", "UNKNOWN_ERROR"
1517
+ # resp.status.description #=> String
1518
+ # resp.tags #=> Hash
1519
+ # resp.tags["__string"] #=> String
1520
+ # resp.updated_at #=> Time
1521
+ #
1522
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetAllowList AWS API Documentation
1523
+ #
1524
+ # @overload get_allow_list(params = {})
1525
+ # @param [Hash] params ({})
1526
+ def get_allow_list(params = {}, options = {})
1527
+ req = build_request(:get_allow_list, params)
1528
+ req.send_request(options)
1529
+ end
1530
+
1402
1531
  # Retrieves (queries) aggregated statistical data about S3 buckets that
1403
1532
  # Amazon Macie monitors and analyzes.
1404
1533
  #
@@ -1999,7 +2128,7 @@ module Aws::Macie2
1999
2128
  end
2000
2129
 
2001
2130
  # Retrieves the status and configuration settings for retrieving
2002
- # (revealing) occurrences of sensitive data reported by findings.
2131
+ # occurrences of sensitive data reported by findings.
2003
2132
  #
2004
2133
  # @return [Types::GetRevealConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2005
2134
  #
@@ -2019,8 +2148,7 @@ module Aws::Macie2
2019
2148
  req.send_request(options)
2020
2149
  end
2021
2150
 
2022
- # Retrieves (reveals) occurrences of sensitive data reported by a
2023
- # finding.
2151
+ # Retrieves occurrences of sensitive data reported by a finding.
2024
2152
  #
2025
2153
  # @option params [required, String] :finding_id
2026
2154
  #
@@ -2058,8 +2186,8 @@ module Aws::Macie2
2058
2186
  req.send_request(options)
2059
2187
  end
2060
2188
 
2061
- # Checks whether occurrences of sensitive data can be retrieved
2062
- # (revealed) for a finding.
2189
+ # Checks whether occurrences of sensitive data can be retrieved for a
2190
+ # finding.
2063
2191
  #
2064
2192
  # @option params [required, String] :finding_id
2065
2193
  #
@@ -2189,6 +2317,45 @@ module Aws::Macie2
2189
2317
  req.send_request(options)
2190
2318
  end
2191
2319
 
2320
+ # Retrieves a subset of information about all the allow lists for an
2321
+ # account.
2322
+ #
2323
+ # @option params [Integer] :max_results
2324
+ #
2325
+ # @option params [String] :next_token
2326
+ #
2327
+ # @return [Types::ListAllowListsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2328
+ #
2329
+ # * {Types::ListAllowListsResponse#allow_lists #allow_lists} => Array&lt;Types::AllowListSummary&gt;
2330
+ # * {Types::ListAllowListsResponse#next_token #next_token} => String
2331
+ #
2332
+ # @example Request syntax with placeholder values
2333
+ #
2334
+ # resp = client.list_allow_lists({
2335
+ # max_results: 1,
2336
+ # next_token: "__string",
2337
+ # })
2338
+ #
2339
+ # @example Response structure
2340
+ #
2341
+ # resp.allow_lists #=> Array
2342
+ # resp.allow_lists[0].arn #=> String
2343
+ # resp.allow_lists[0].created_at #=> Time
2344
+ # resp.allow_lists[0].description #=> String
2345
+ # resp.allow_lists[0].id #=> String
2346
+ # resp.allow_lists[0].name #=> String
2347
+ # resp.allow_lists[0].updated_at #=> Time
2348
+ # resp.next_token #=> String
2349
+ #
2350
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListAllowLists AWS API Documentation
2351
+ #
2352
+ # @overload list_allow_lists(params = {})
2353
+ # @param [Hash] params ({})
2354
+ def list_allow_lists(params = {}, options = {})
2355
+ req = build_request(:list_allow_lists, params)
2356
+ req.send_request(options)
2357
+ end
2358
+
2192
2359
  # Retrieves a subset of information about one or more classification
2193
2360
  # jobs.
2194
2361
  #
@@ -2579,9 +2746,8 @@ module Aws::Macie2
2579
2746
  req.send_request(options)
2580
2747
  end
2581
2748
 
2582
- # Retrieves the tags (keys and values) that are associated with a
2583
- # classification job, custom data identifier, findings filter, or member
2584
- # account.
2749
+ # Retrieves the tags (keys and values) that are associated with an
2750
+ # Amazon Macie resource.
2585
2751
  #
2586
2752
  # @option params [required, String] :resource_arn
2587
2753
  #
@@ -2802,15 +2968,13 @@ module Aws::Macie2
2802
2968
  end
2803
2969
 
2804
2970
  # Adds or updates one or more tags (keys and values) that are associated
2805
- # with a classification job, custom data identifier, findings filter, or
2806
- # member account.
2971
+ # with an Amazon Macie resource.
2807
2972
  #
2808
2973
  # @option params [required, String] :resource_arn
2809
2974
  #
2810
2975
  # @option params [required, Hash<String,String>] :tags
2811
2976
  # A string-to-string map of key-value pairs that specifies the tags
2812
- # (keys and values) for a classification job, custom data identifier,
2813
- # findings filter, or member account.
2977
+ # (keys and values) for an Amazon Macie resource.
2814
2978
  #
2815
2979
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2816
2980
  #
@@ -2871,8 +3035,8 @@ module Aws::Macie2
2871
3035
  req.send_request(options)
2872
3036
  end
2873
3037
 
2874
- # Removes one or more tags (keys and values) from a classification job,
2875
- # custom data identifier, findings filter, or member account.
3038
+ # Removes one or more tags (keys and values) from an Amazon Macie
3039
+ # resource.
2876
3040
  #
2877
3041
  # @option params [required, String] :resource_arn
2878
3042
  #
@@ -2896,6 +3060,53 @@ module Aws::Macie2
2896
3060
  req.send_request(options)
2897
3061
  end
2898
3062
 
3063
+ # Updates the settings for an allow list.
3064
+ #
3065
+ # @option params [required, Types::AllowListCriteria] :criteria
3066
+ # Specifies the criteria for an allow list. The criteria must specify a
3067
+ # regular expression (regex) or an S3 object (s3WordsList). It can't
3068
+ # specify both.
3069
+ #
3070
+ # @option params [String] :description
3071
+ #
3072
+ # @option params [required, String] :id
3073
+ #
3074
+ # @option params [required, String] :name
3075
+ #
3076
+ # @return [Types::UpdateAllowListResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3077
+ #
3078
+ # * {Types::UpdateAllowListResponse#arn #arn} => String
3079
+ # * {Types::UpdateAllowListResponse#id #id} => String
3080
+ #
3081
+ # @example Request syntax with placeholder values
3082
+ #
3083
+ # resp = client.update_allow_list({
3084
+ # criteria: { # required
3085
+ # regex: "__stringMin1Max512PatternSS",
3086
+ # s3_words_list: {
3087
+ # bucket_name: "__stringMin3Max255PatternAZaZ093255", # required
3088
+ # object_key: "__stringMin1Max1024PatternSS", # required
3089
+ # },
3090
+ # },
3091
+ # description: "__stringMin1Max512PatternSS",
3092
+ # id: "__string", # required
3093
+ # name: "__stringMin1Max128Pattern", # required
3094
+ # })
3095
+ #
3096
+ # @example Response structure
3097
+ #
3098
+ # resp.arn #=> String
3099
+ # resp.id #=> String
3100
+ #
3101
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UpdateAllowList AWS API Documentation
3102
+ #
3103
+ # @overload update_allow_list(params = {})
3104
+ # @param [Hash] params ({})
3105
+ def update_allow_list(params = {}, options = {})
3106
+ req = build_request(:update_allow_list, params)
3107
+ req.send_request(options)
3108
+ end
3109
+
2899
3110
  # Changes the status of a classification job.
2900
3111
  #
2901
3112
  # @option params [required, String] :job_id
@@ -2993,9 +3204,9 @@ module Aws::Macie2
2993
3204
  # @option params [String] :finding_publishing_frequency
2994
3205
  # The frequency with which Amazon Macie publishes updates to policy
2995
3206
  # findings for an account. This includes publishing updates to Security
2996
- # Hub and Amazon EventBridge (formerly called Amazon CloudWatch Events).
2997
- # For more information, see [Monitoring and processing findings][1] in
2998
- # the *Amazon Macie User Guide*. Valid values are:
3207
+ # Hub and Amazon EventBridge (formerly Amazon CloudWatch Events). For
3208
+ # more information, see [Monitoring and processing findings][1] in the
3209
+ # *Amazon Macie User Guide*. Valid values are:
2999
3210
  #
3000
3211
  #
3001
3212
  #
@@ -3071,16 +3282,15 @@ module Aws::Macie2
3071
3282
  end
3072
3283
 
3073
3284
  # Updates the status and configuration settings for retrieving
3074
- # (revealing) occurrences of sensitive data reported by findings.
3285
+ # occurrences of sensitive data reported by findings.
3075
3286
  #
3076
3287
  # @option params [required, Types::RevealConfiguration] :configuration
3077
3288
  # Specifies the configuration settings for retrieving occurrences of
3078
3289
  # sensitive data reported by findings, and the status of the
3079
3290
  # configuration for an Amazon Macie account. When you enable the
3080
- # configuration for the first time, your request must specify an AWS Key
3081
- # Management Service (AWS KMS) key. Otherwise, an error occurs. Macie
3082
- # uses the specified key to encrypt the sensitive data that you
3083
- # retrieve.
3291
+ # configuration for the first time, your request must specify an Key
3292
+ # Management Service (KMS) key. Otherwise, an error occurs. Macie uses
3293
+ # the specified key to encrypt the sensitive data that you retrieve.
3084
3294
  #
3085
3295
  # @return [Types::UpdateRevealConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3086
3296
  #
@@ -3122,7 +3332,7 @@ module Aws::Macie2
3122
3332
  params: params,
3123
3333
  config: config)
3124
3334
  context[:gem_name] = 'aws-sdk-macie2'
3125
- context[:gem_version] = '1.46.0'
3335
+ context[:gem_version] = '1.47.0'
3126
3336
  Seahorse::Client::Request.new(handlers, context)
3127
3337
  end
3128
3338