aws-sdk-macie2 1.44.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.
@@ -152,6 +152,92 @@ module Aws::Macie2
152
152
  include Aws::Structure
153
153
  end
154
154
 
155
+ # Specifies the criteria for an allow list. The criteria must specify a
156
+ # regular expression (regex) or an S3 object (s3WordsList). It can't
157
+ # specify both.
158
+ #
159
+ # @note When making an API call, you may pass AllowListCriteria
160
+ # data as a hash:
161
+ #
162
+ # {
163
+ # regex: "__stringMin1Max512PatternSS",
164
+ # s3_words_list: {
165
+ # bucket_name: "__stringMin3Max255PatternAZaZ093255", # required
166
+ # object_key: "__stringMin1Max1024PatternSS", # required
167
+ # },
168
+ # }
169
+ #
170
+ # @!attribute [rw] regex
171
+ # @return [String]
172
+ #
173
+ # @!attribute [rw] s3_words_list
174
+ # Provides information about an S3 object that lists specific text to
175
+ # ignore.
176
+ # @return [Types::S3WordsList]
177
+ #
178
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/AllowListCriteria AWS API Documentation
179
+ #
180
+ class AllowListCriteria < Struct.new(
181
+ :regex,
182
+ :s3_words_list)
183
+ SENSITIVE = []
184
+ include Aws::Structure
185
+ end
186
+
187
+ # Provides information about the current status of an allow list, which
188
+ # indicates whether Amazon Macie can access and use the list's
189
+ # criteria.
190
+ #
191
+ # @!attribute [rw] code
192
+ # Indicates the current status of an allow list. Depending on the type
193
+ # of criteria that the list specifies, possible values are:
194
+ # @return [String]
195
+ #
196
+ # @!attribute [rw] description
197
+ # @return [String]
198
+ #
199
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/AllowListStatus AWS API Documentation
200
+ #
201
+ class AllowListStatus < Struct.new(
202
+ :code,
203
+ :description)
204
+ SENSITIVE = []
205
+ include Aws::Structure
206
+ end
207
+
208
+ # Provides a subset of information about an allow list.
209
+ #
210
+ # @!attribute [rw] arn
211
+ # @return [String]
212
+ #
213
+ # @!attribute [rw] created_at
214
+ # @return [Time]
215
+ #
216
+ # @!attribute [rw] description
217
+ # @return [String]
218
+ #
219
+ # @!attribute [rw] id
220
+ # @return [String]
221
+ #
222
+ # @!attribute [rw] name
223
+ # @return [String]
224
+ #
225
+ # @!attribute [rw] updated_at
226
+ # @return [Time]
227
+ #
228
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/AllowListSummary AWS API Documentation
229
+ #
230
+ class AllowListSummary < Struct.new(
231
+ :arn,
232
+ :created_at,
233
+ :description,
234
+ :id,
235
+ :name,
236
+ :updated_at)
237
+ SENSITIVE = []
238
+ include Aws::Structure
239
+ end
240
+
155
241
  # Provides information about an API operation that an entity invoked for
156
242
  # an affected resource.
157
243
  #
@@ -832,8 +918,8 @@ module Aws::Macie2
832
918
  include Aws::Structure
833
919
  end
834
920
 
835
- # Provides information about a sensitive data finding, including the
836
- # classification job that produced the finding.
921
+ # Provides information about a sensitive data finding and the details of
922
+ # the finding.
837
923
  #
838
924
  # @!attribute [rw] detailed_results_location
839
925
  # @return [String]
@@ -844,6 +930,11 @@ module Aws::Macie2
844
930
  # @!attribute [rw] job_id
845
931
  # @return [String]
846
932
  #
933
+ # @!attribute [rw] origin_type
934
+ # Specifies how Amazon Macie found the sensitive data that produced a
935
+ # finding. The only possible value is:
936
+ # @return [String]
937
+ #
847
938
  # @!attribute [rw] result
848
939
  # Provides the details of a sensitive data finding, including the
849
940
  # types, number of occurrences, and locations of the sensitive data
@@ -856,6 +947,7 @@ module Aws::Macie2
856
947
  :detailed_results_location,
857
948
  :job_arn,
858
949
  :job_id,
950
+ :origin_type,
859
951
  :result)
860
952
  SENSITIVE = []
861
953
  include Aws::Structure
@@ -961,6 +1053,82 @@ module Aws::Macie2
961
1053
  include Aws::Structure
962
1054
  end
963
1055
 
1056
+ # Specifies the settings for an allow list. When Amazon Macie processes
1057
+ # the request, Macie tests the list's criteria. If the criteria specify
1058
+ # a regular expression that Macie can't compile or an S3 object that
1059
+ # Macie can't retrieve or parse, an error occurs.
1060
+ #
1061
+ # @note When making an API call, you may pass CreateAllowListRequest
1062
+ # data as a hash:
1063
+ #
1064
+ # {
1065
+ # client_token: "__string", # required
1066
+ # criteria: { # required
1067
+ # regex: "__stringMin1Max512PatternSS",
1068
+ # s3_words_list: {
1069
+ # bucket_name: "__stringMin3Max255PatternAZaZ093255", # required
1070
+ # object_key: "__stringMin1Max1024PatternSS", # required
1071
+ # },
1072
+ # },
1073
+ # description: "__stringMin1Max512PatternSS",
1074
+ # name: "__stringMin1Max128Pattern", # required
1075
+ # tags: {
1076
+ # "__string" => "__string",
1077
+ # },
1078
+ # }
1079
+ #
1080
+ # @!attribute [rw] client_token
1081
+ # **A suitable default value is auto-generated.** You should normally
1082
+ # not need to pass this option.
1083
+ # @return [String]
1084
+ #
1085
+ # @!attribute [rw] criteria
1086
+ # Specifies the criteria for an allow list. The criteria must specify
1087
+ # a regular expression (regex) or an S3 object (s3WordsList). It
1088
+ # can't specify both.
1089
+ # @return [Types::AllowListCriteria]
1090
+ #
1091
+ # @!attribute [rw] description
1092
+ # @return [String]
1093
+ #
1094
+ # @!attribute [rw] name
1095
+ # @return [String]
1096
+ #
1097
+ # @!attribute [rw] tags
1098
+ # A string-to-string map of key-value pairs that specifies the tags
1099
+ # (keys and values) for an Amazon Macie resource.
1100
+ # @return [Hash<String,String>]
1101
+ #
1102
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateAllowListRequest AWS API Documentation
1103
+ #
1104
+ class CreateAllowListRequest < Struct.new(
1105
+ :client_token,
1106
+ :criteria,
1107
+ :description,
1108
+ :name,
1109
+ :tags)
1110
+ SENSITIVE = []
1111
+ include Aws::Structure
1112
+ end
1113
+
1114
+ # Provides information about an allow list that was created in response
1115
+ # to a request.
1116
+ #
1117
+ # @!attribute [rw] arn
1118
+ # @return [String]
1119
+ #
1120
+ # @!attribute [rw] id
1121
+ # @return [String]
1122
+ #
1123
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateAllowListResponse AWS API Documentation
1124
+ #
1125
+ class CreateAllowListResponse < Struct.new(
1126
+ :arn,
1127
+ :id)
1128
+ SENSITIVE = []
1129
+ include Aws::Structure
1130
+ end
1131
+
964
1132
  # Specifies the scope, schedule, and other settings for a classification
965
1133
  # job. You can't change any settings for a classification job after you
966
1134
  # create it. This helps ensure that you have an immutable history of
@@ -971,6 +1139,7 @@ module Aws::Macie2
971
1139
  # data as a hash:
972
1140
  #
973
1141
  # {
1142
+ # allow_list_ids: ["__string"],
974
1143
  # client_token: "__string", # required
975
1144
  # custom_data_identifier_ids: ["__string"],
976
1145
  # description: "__string",
@@ -1091,6 +1260,9 @@ module Aws::Macie2
1091
1260
  # },
1092
1261
  # }
1093
1262
  #
1263
+ # @!attribute [rw] allow_list_ids
1264
+ # @return [Array<String>]
1265
+ #
1094
1266
  # @!attribute [rw] client_token
1095
1267
  # **A suitable default value is auto-generated.** You should normally
1096
1268
  # not need to pass this option.
@@ -1139,13 +1311,13 @@ module Aws::Macie2
1139
1311
  #
1140
1312
  # @!attribute [rw] tags
1141
1313
  # A string-to-string map of key-value pairs that specifies the tags
1142
- # (keys and values) for a classification job, custom data identifier,
1143
- # findings filter, or member account.
1314
+ # (keys and values) for an Amazon Macie resource.
1144
1315
  # @return [Hash<String,String>]
1145
1316
  #
1146
1317
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateClassificationJobRequest AWS API Documentation
1147
1318
  #
1148
1319
  class CreateClassificationJobRequest < Struct.new(
1320
+ :allow_list_ids,
1149
1321
  :client_token,
1150
1322
  :custom_data_identifier_ids,
1151
1323
  :description,
@@ -1250,8 +1422,7 @@ module Aws::Macie2
1250
1422
  #
1251
1423
  # @!attribute [rw] tags
1252
1424
  # A string-to-string map of key-value pairs that specifies the tags
1253
- # (keys and values) for a classification job, custom data identifier,
1254
- # findings filter, or member account.
1425
+ # (keys and values) for an Amazon Macie resource.
1255
1426
  # @return [Hash<String,String>]
1256
1427
  #
1257
1428
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateCustomDataIdentifierRequest AWS API Documentation
@@ -1340,8 +1511,7 @@ module Aws::Macie2
1340
1511
  #
1341
1512
  # @!attribute [rw] tags
1342
1513
  # A string-to-string map of key-value pairs that specifies the tags
1343
- # (keys and values) for a classification job, custom data identifier,
1344
- # findings filter, or member account.
1514
+ # (keys and values) for an Amazon Macie resource.
1345
1515
  # @return [Hash<String,String>]
1346
1516
  #
1347
1517
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateFindingsFilterRequest AWS API Documentation
@@ -1448,8 +1618,7 @@ module Aws::Macie2
1448
1618
  #
1449
1619
  # @!attribute [rw] tags
1450
1620
  # A string-to-string map of key-value pairs that specifies the tags
1451
- # (keys and values) for a classification job, custom data identifier,
1452
- # findings filter, or member account.
1621
+ # (keys and values) for an Amazon Macie resource.
1453
1622
  # @return [Hash<String,String>]
1454
1623
  #
1455
1624
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateMemberRequest AWS API Documentation
@@ -1788,6 +1957,33 @@ module Aws::Macie2
1788
1957
  include Aws::Structure
1789
1958
  end
1790
1959
 
1960
+ # @note When making an API call, you may pass DeleteAllowListRequest
1961
+ # data as a hash:
1962
+ #
1963
+ # {
1964
+ # id: "__string", # required
1965
+ # ignore_job_checks: "__string",
1966
+ # }
1967
+ #
1968
+ # @!attribute [rw] id
1969
+ # @return [String]
1970
+ #
1971
+ # @!attribute [rw] ignore_job_checks
1972
+ # @return [String]
1973
+ #
1974
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DeleteAllowListRequest AWS API Documentation
1975
+ #
1976
+ class DeleteAllowListRequest < Struct.new(
1977
+ :id,
1978
+ :ignore_job_checks)
1979
+ SENSITIVE = []
1980
+ include Aws::Structure
1981
+ end
1982
+
1983
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DeleteAllowListResponse AWS API Documentation
1984
+ #
1985
+ class DeleteAllowListResponse < Aws::EmptyStructure; end
1986
+
1791
1987
  # @note When making an API call, you may pass DeleteCustomDataIdentifierRequest
1792
1988
  # data as a hash:
1793
1989
  #
@@ -1983,6 +2179,9 @@ module Aws::Macie2
1983
2179
  # Provides information about a classification job, including the current
1984
2180
  # configuration settings and status of the job.
1985
2181
  #
2182
+ # @!attribute [rw] allow_list_ids
2183
+ # @return [Array<String>]
2184
+ #
1986
2185
  # @!attribute [rw] client_token
1987
2186
  # **A suitable default value is auto-generated.** You should normally
1988
2187
  # not need to pass this option.
@@ -2062,8 +2261,7 @@ module Aws::Macie2
2062
2261
  #
2063
2262
  # @!attribute [rw] tags
2064
2263
  # A string-to-string map of key-value pairs that specifies the tags
2065
- # (keys and values) for a classification job, custom data identifier,
2066
- # findings filter, or member account.
2264
+ # (keys and values) for an Amazon Macie resource.
2067
2265
  # @return [Hash<String,String>]
2068
2266
  #
2069
2267
  # @!attribute [rw] user_paused_details
@@ -2080,6 +2278,7 @@ module Aws::Macie2
2080
2278
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DescribeClassificationJobResponse AWS API Documentation
2081
2279
  #
2082
2280
  class DescribeClassificationJobResponse < Struct.new(
2281
+ :allow_list_ids,
2083
2282
  :client_token,
2084
2283
  :created_at,
2085
2284
  :custom_data_identifier_ids,
@@ -2128,6 +2327,20 @@ module Aws::Macie2
2128
2327
  include Aws::Structure
2129
2328
  end
2130
2329
 
2330
+ # Specifies 1-10 occurrences of a specific type of sensitive data
2331
+ # reported by a finding.
2332
+ #
2333
+ # @!attribute [rw] value
2334
+ # @return [String]
2335
+ #
2336
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DetectedDataDetails AWS API Documentation
2337
+ #
2338
+ class DetectedDataDetails < Struct.new(
2339
+ :value)
2340
+ SENSITIVE = []
2341
+ include Aws::Structure
2342
+ end
2343
+
2131
2344
  # @api private
2132
2345
  #
2133
2346
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DisableMacieRequest AWS API Documentation
@@ -2243,10 +2456,9 @@ module Aws::Macie2
2243
2456
  # @!attribute [rw] finding_publishing_frequency
2244
2457
  # The frequency with which Amazon Macie publishes updates to policy
2245
2458
  # findings for an account. This includes publishing updates to
2246
- # Security Hub and Amazon EventBridge (formerly called Amazon
2247
- # CloudWatch Events). For more information, see [Monitoring and
2248
- # processing findings][1] in the *Amazon Macie User Guide*. Valid
2249
- # values are:
2459
+ # Security Hub and Amazon EventBridge (formerly Amazon CloudWatch
2460
+ # Events). For more information, see [Monitoring and processing
2461
+ # findings][1] in the *Amazon Macie User Guide*. Valid values are:
2250
2462
  #
2251
2463
  #
2252
2464
  #
@@ -2352,8 +2564,8 @@ module Aws::Macie2
2352
2564
  # @return [String]
2353
2565
  #
2354
2566
  # @!attribute [rw] classification_details
2355
- # Provides information about a sensitive data finding, including the
2356
- # classification job that produced the finding.
2567
+ # Provides information about a sensitive data finding and the details
2568
+ # of the finding.
2357
2569
  # @return [Types::ClassificationDetails]
2358
2570
  #
2359
2571
  # @!attribute [rw] count
@@ -2571,8 +2783,7 @@ module Aws::Macie2
2571
2783
  #
2572
2784
  # @!attribute [rw] tags
2573
2785
  # A string-to-string map of key-value pairs that specifies the tags
2574
- # (keys and values) for a classification job, custom data identifier,
2575
- # findings filter, or member account.
2786
+ # (keys and values) for an Amazon Macie resource.
2576
2787
  # @return [Hash<String,String>]
2577
2788
  #
2578
2789
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/FindingsFilterListItem AWS API Documentation
@@ -2610,6 +2821,77 @@ module Aws::Macie2
2610
2821
  include Aws::Structure
2611
2822
  end
2612
2823
 
2824
+ # @note When making an API call, you may pass GetAllowListRequest
2825
+ # data as a hash:
2826
+ #
2827
+ # {
2828
+ # id: "__string", # required
2829
+ # }
2830
+ #
2831
+ # @!attribute [rw] id
2832
+ # @return [String]
2833
+ #
2834
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetAllowListRequest AWS API Documentation
2835
+ #
2836
+ class GetAllowListRequest < Struct.new(
2837
+ :id)
2838
+ SENSITIVE = []
2839
+ include Aws::Structure
2840
+ end
2841
+
2842
+ # Provides information about the settings and status of an allow list.
2843
+ #
2844
+ # @!attribute [rw] arn
2845
+ # @return [String]
2846
+ #
2847
+ # @!attribute [rw] created_at
2848
+ # @return [Time]
2849
+ #
2850
+ # @!attribute [rw] criteria
2851
+ # Specifies the criteria for an allow list. The criteria must specify
2852
+ # a regular expression (regex) or an S3 object (s3WordsList). It
2853
+ # can't specify both.
2854
+ # @return [Types::AllowListCriteria]
2855
+ #
2856
+ # @!attribute [rw] description
2857
+ # @return [String]
2858
+ #
2859
+ # @!attribute [rw] id
2860
+ # @return [String]
2861
+ #
2862
+ # @!attribute [rw] name
2863
+ # @return [String]
2864
+ #
2865
+ # @!attribute [rw] status
2866
+ # Provides information about the current status of an allow list,
2867
+ # which indicates whether Amazon Macie can access and use the list's
2868
+ # criteria.
2869
+ # @return [Types::AllowListStatus]
2870
+ #
2871
+ # @!attribute [rw] tags
2872
+ # A string-to-string map of key-value pairs that specifies the tags
2873
+ # (keys and values) for an Amazon Macie resource.
2874
+ # @return [Hash<String,String>]
2875
+ #
2876
+ # @!attribute [rw] updated_at
2877
+ # @return [Time]
2878
+ #
2879
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetAllowListResponse AWS API Documentation
2880
+ #
2881
+ class GetAllowListResponse < Struct.new(
2882
+ :arn,
2883
+ :created_at,
2884
+ :criteria,
2885
+ :description,
2886
+ :id,
2887
+ :name,
2888
+ :status,
2889
+ :tags,
2890
+ :updated_at)
2891
+ SENSITIVE = []
2892
+ include Aws::Structure
2893
+ end
2894
+
2613
2895
  # Specifies the account that owns the S3 buckets to retrieve aggregated
2614
2896
  # statistical data for.
2615
2897
  #
@@ -2821,8 +3103,7 @@ module Aws::Macie2
2821
3103
  #
2822
3104
  # @!attribute [rw] tags
2823
3105
  # A string-to-string map of key-value pairs that specifies the tags
2824
- # (keys and values) for a classification job, custom data identifier,
2825
- # findings filter, or member account.
3106
+ # (keys and values) for an Amazon Macie resource.
2826
3107
  # @return [Hash<String,String>]
2827
3108
  #
2828
3109
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetCustomDataIdentifierResponse AWS API Documentation
@@ -2963,8 +3244,7 @@ module Aws::Macie2
2963
3244
  #
2964
3245
  # @!attribute [rw] tags
2965
3246
  # A string-to-string map of key-value pairs that specifies the tags
2966
- # (keys and values) for a classification job, custom data identifier,
2967
- # findings filter, or member account.
3247
+ # (keys and values) for an Amazon Macie resource.
2968
3248
  # @return [Hash<String,String>]
2969
3249
  #
2970
3250
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetFindingsFilterResponse AWS API Documentation
@@ -3089,10 +3369,9 @@ module Aws::Macie2
3089
3369
  # @!attribute [rw] finding_publishing_frequency
3090
3370
  # The frequency with which Amazon Macie publishes updates to policy
3091
3371
  # findings for an account. This includes publishing updates to
3092
- # Security Hub and Amazon EventBridge (formerly called Amazon
3093
- # CloudWatch Events). For more information, see [Monitoring and
3094
- # processing findings][1] in the *Amazon Macie User Guide*. Valid
3095
- # values are:
3372
+ # Security Hub and Amazon EventBridge (formerly Amazon CloudWatch
3373
+ # Events). For more information, see [Monitoring and processing
3374
+ # findings][1] in the *Amazon Macie User Guide*. Valid values are:
3096
3375
  #
3097
3376
  #
3098
3377
  #
@@ -3190,8 +3469,7 @@ module Aws::Macie2
3190
3469
  #
3191
3470
  # @!attribute [rw] tags
3192
3471
  # A string-to-string map of key-value pairs that specifies the tags
3193
- # (keys and values) for a classification job, custom data identifier,
3194
- # findings filter, or member account.
3472
+ # (keys and values) for an Amazon Macie resource.
3195
3473
  # @return [Hash<String,String>]
3196
3474
  #
3197
3475
  # @!attribute [rw] updated_at
@@ -3213,6 +3491,116 @@ module Aws::Macie2
3213
3491
  include Aws::Structure
3214
3492
  end
3215
3493
 
3494
+ # @api private
3495
+ #
3496
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetRevealConfigurationRequest AWS API Documentation
3497
+ #
3498
+ class GetRevealConfigurationRequest < Aws::EmptyStructure; end
3499
+
3500
+ # Provides information about the configuration settings for retrieving
3501
+ # occurrences of sensitive data reported by findings, and the status of
3502
+ # the configuration for an Amazon Macie account.
3503
+ #
3504
+ # @!attribute [rw] configuration
3505
+ # Specifies the configuration settings for retrieving occurrences of
3506
+ # sensitive data reported by findings, and the status of the
3507
+ # configuration for an Amazon Macie account. When you enable the
3508
+ # configuration for the first time, your request must specify an Key
3509
+ # Management Service (KMS) key. Otherwise, an error occurs. Macie uses
3510
+ # the specified key to encrypt the sensitive data that you retrieve.
3511
+ # @return [Types::RevealConfiguration]
3512
+ #
3513
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetRevealConfigurationResponse AWS API Documentation
3514
+ #
3515
+ class GetRevealConfigurationResponse < Struct.new(
3516
+ :configuration)
3517
+ SENSITIVE = []
3518
+ include Aws::Structure
3519
+ end
3520
+
3521
+ # @note When making an API call, you may pass GetSensitiveDataOccurrencesAvailabilityRequest
3522
+ # data as a hash:
3523
+ #
3524
+ # {
3525
+ # finding_id: "__string", # required
3526
+ # }
3527
+ #
3528
+ # @!attribute [rw] finding_id
3529
+ # @return [String]
3530
+ #
3531
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetSensitiveDataOccurrencesAvailabilityRequest AWS API Documentation
3532
+ #
3533
+ class GetSensitiveDataOccurrencesAvailabilityRequest < Struct.new(
3534
+ :finding_id)
3535
+ SENSITIVE = []
3536
+ include Aws::Structure
3537
+ end
3538
+
3539
+ # Provides information about whether occurrences of sensitive data can
3540
+ # be retrieved for a finding and, if not, why the data can't be
3541
+ # retrieved.
3542
+ #
3543
+ # @!attribute [rw] code
3544
+ # Specifies whether occurrences of sensitive data can be retrieved for
3545
+ # a finding. Possible values are:
3546
+ # @return [String]
3547
+ #
3548
+ # @!attribute [rw] reasons
3549
+ # @return [Array<String>]
3550
+ #
3551
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetSensitiveDataOccurrencesAvailabilityResponse AWS API Documentation
3552
+ #
3553
+ class GetSensitiveDataOccurrencesAvailabilityResponse < Struct.new(
3554
+ :code,
3555
+ :reasons)
3556
+ SENSITIVE = []
3557
+ include Aws::Structure
3558
+ end
3559
+
3560
+ # @note When making an API call, you may pass GetSensitiveDataOccurrencesRequest
3561
+ # data as a hash:
3562
+ #
3563
+ # {
3564
+ # finding_id: "__string", # required
3565
+ # }
3566
+ #
3567
+ # @!attribute [rw] finding_id
3568
+ # @return [String]
3569
+ #
3570
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetSensitiveDataOccurrencesRequest AWS API Documentation
3571
+ #
3572
+ class GetSensitiveDataOccurrencesRequest < Struct.new(
3573
+ :finding_id)
3574
+ SENSITIVE = []
3575
+ include Aws::Structure
3576
+ end
3577
+
3578
+ # Provides the results of a request to retrieve occurrences of sensitive
3579
+ # data reported by a finding.
3580
+ #
3581
+ # @!attribute [rw] error
3582
+ # @return [String]
3583
+ #
3584
+ # @!attribute [rw] sensitive_data_occurrences
3585
+ # Specifies a type of sensitive data reported by a finding and
3586
+ # provides occurrences of the specified type of sensitive data.
3587
+ # @return [Hash<String,Array<Types::DetectedDataDetails>>]
3588
+ #
3589
+ # @!attribute [rw] status
3590
+ # The status of a request to retrieve occurrences of sensitive data
3591
+ # reported by a finding. Possible values are:
3592
+ # @return [String]
3593
+ #
3594
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetSensitiveDataOccurrencesResponse AWS API Documentation
3595
+ #
3596
+ class GetSensitiveDataOccurrencesResponse < Struct.new(
3597
+ :error,
3598
+ :sensitive_data_occurrences,
3599
+ :status)
3600
+ SENSITIVE = []
3601
+ include Aws::Structure
3602
+ end
3603
+
3216
3604
  # Specifies criteria for filtering, sorting, and paginating the results
3217
3605
  # of a query for quotas and aggregated usage data for one or more Amazon
3218
3606
  # Macie accounts.
@@ -3791,6 +4179,46 @@ module Aws::Macie2
3791
4179
  include Aws::Structure
3792
4180
  end
3793
4181
 
4182
+ # @note When making an API call, you may pass ListAllowListsRequest
4183
+ # data as a hash:
4184
+ #
4185
+ # {
4186
+ # max_results: 1,
4187
+ # next_token: "__string",
4188
+ # }
4189
+ #
4190
+ # @!attribute [rw] max_results
4191
+ # @return [Integer]
4192
+ #
4193
+ # @!attribute [rw] next_token
4194
+ # @return [String]
4195
+ #
4196
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListAllowListsRequest AWS API Documentation
4197
+ #
4198
+ class ListAllowListsRequest < Struct.new(
4199
+ :max_results,
4200
+ :next_token)
4201
+ SENSITIVE = []
4202
+ include Aws::Structure
4203
+ end
4204
+
4205
+ # Provides the results of a request for information about allow lists.
4206
+ #
4207
+ # @!attribute [rw] allow_lists
4208
+ # @return [Array<Types::AllowListSummary>]
4209
+ #
4210
+ # @!attribute [rw] next_token
4211
+ # @return [String]
4212
+ #
4213
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListAllowListsResponse AWS API Documentation
4214
+ #
4215
+ class ListAllowListsResponse < Struct.new(
4216
+ :allow_lists,
4217
+ :next_token)
4218
+ SENSITIVE = []
4219
+ include Aws::Structure
4220
+ end
4221
+
3794
4222
  # Specifies criteria for filtering, sorting, and paginating the results
3795
4223
  # of a request for information about classification jobs.
3796
4224
  #
@@ -4117,7 +4545,8 @@ module Aws::Macie2
4117
4545
  # }
4118
4546
  #
4119
4547
  # @!attribute [rw] comparator
4120
- # The operator to use in a condition. Valid values are:
4548
+ # The operator to use in a condition. Depending on the type of
4549
+ # condition, possible values are:
4121
4550
  # @return [String]
4122
4551
  #
4123
4552
  # @!attribute [rw] key
@@ -4309,13 +4738,11 @@ module Aws::Macie2
4309
4738
  end
4310
4739
 
4311
4740
  # Provides information about the tags (keys and values) that are
4312
- # associated with a classification job, custom data identifier, findings
4313
- # filter, or member account.
4741
+ # associated with an Amazon Macie resource.
4314
4742
  #
4315
4743
  # @!attribute [rw] tags
4316
4744
  # A string-to-string map of key-value pairs that specifies the tags
4317
- # (keys and values) for a classification job, custom data identifier,
4318
- # findings filter, or member account.
4745
+ # (keys and values) for an Amazon Macie resource.
4319
4746
  # @return [Hash<String,String>]
4320
4747
  #
4321
4748
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListTagsForResourceResponse AWS API Documentation
@@ -4495,8 +4922,7 @@ module Aws::Macie2
4495
4922
  #
4496
4923
  # @!attribute [rw] tags
4497
4924
  # A string-to-string map of key-value pairs that specifies the tags
4498
- # (keys and values) for a classification job, custom data identifier,
4499
- # findings filter, or member account.
4925
+ # (keys and values) for an Amazon Macie resource.
4500
4926
  # @return [Hash<String,String>]
4501
4927
  #
4502
4928
  # @!attribute [rw] updated_at
@@ -4607,9 +5033,13 @@ module Aws::Macie2
4607
5033
  # @return [Array<Types::Cell>]
4608
5034
  #
4609
5035
  # @!attribute [rw] line_ranges
5036
+ # Specifies the locations of occurrences of sensitive data in a
5037
+ # non-binary text file.
4610
5038
  # @return [Array<Types::Range>]
4611
5039
  #
4612
5040
  # @!attribute [rw] offset_ranges
5041
+ # Specifies the locations of occurrences of sensitive data in a
5042
+ # non-binary text file.
4613
5043
  # @return [Array<Types::Range>]
4614
5044
  #
4615
5045
  # @!attribute [rw] pages
@@ -4618,6 +5048,8 @@ module Aws::Macie2
4618
5048
  # @return [Array<Types::Page>]
4619
5049
  #
4620
5050
  # @!attribute [rw] records
5051
+ # Specifies the locations of occurrences of sensitive data in an
5052
+ # Apache Avro object container or a structured data file.
4621
5053
  # @return [Array<Types::Record>]
4622
5054
  #
4623
5055
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/Occurrences AWS API Documentation
@@ -4869,6 +5301,38 @@ module Aws::Macie2
4869
5301
  include Aws::Structure
4870
5302
  end
4871
5303
 
5304
+ # Specifies the configuration settings for retrieving occurrences of
5305
+ # sensitive data reported by findings, and the status of the
5306
+ # configuration for an Amazon Macie account. When you enable the
5307
+ # configuration for the first time, your request must specify an Key
5308
+ # Management Service (KMS) key. Otherwise, an error occurs. Macie uses
5309
+ # the specified key to encrypt the sensitive data that you retrieve.
5310
+ #
5311
+ # @note When making an API call, you may pass RevealConfiguration
5312
+ # data as a hash:
5313
+ #
5314
+ # {
5315
+ # kms_key_id: "__stringMin1Max2048",
5316
+ # status: "ENABLED", # required, accepts ENABLED, DISABLED
5317
+ # }
5318
+ #
5319
+ # @!attribute [rw] kms_key_id
5320
+ # @return [String]
5321
+ #
5322
+ # @!attribute [rw] status
5323
+ # The status of the configuration for retrieving occurrences of
5324
+ # sensitive data reported by findings. Valid values are:
5325
+ # @return [String]
5326
+ #
5327
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/RevealConfiguration AWS API Documentation
5328
+ #
5329
+ class RevealConfiguration < Struct.new(
5330
+ :kms_key_id,
5331
+ :status)
5332
+ SENSITIVE = []
5333
+ include Aws::Structure
5334
+ end
5335
+
4872
5336
  # Provides information about the S3 bucket that a finding applies to.
4873
5337
  #
4874
5338
  # @!attribute [rw] allows_unencrypted_object_uploads
@@ -5262,6 +5726,32 @@ module Aws::Macie2
5262
5726
  include Aws::Structure
5263
5727
  end
5264
5728
 
5729
+ # Provides information about an S3 object that lists specific text to
5730
+ # ignore.
5731
+ #
5732
+ # @note When making an API call, you may pass S3WordsList
5733
+ # data as a hash:
5734
+ #
5735
+ # {
5736
+ # bucket_name: "__stringMin3Max255PatternAZaZ093255", # required
5737
+ # object_key: "__stringMin1Max1024PatternSS", # required
5738
+ # }
5739
+ #
5740
+ # @!attribute [rw] bucket_name
5741
+ # @return [String]
5742
+ #
5743
+ # @!attribute [rw] object_key
5744
+ # @return [String]
5745
+ #
5746
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/S3WordsList AWS API Documentation
5747
+ #
5748
+ class S3WordsList < Struct.new(
5749
+ :bucket_name,
5750
+ :object_key)
5751
+ SENSITIVE = []
5752
+ include Aws::Structure
5753
+ end
5754
+
5265
5755
  # Specifies one or more property- and tag-based conditions that define
5266
5756
  # criteria for including or excluding S3 objects from a classification
5267
5757
  # job. Exclude conditions take precedence over include conditions.
@@ -5973,7 +6463,8 @@ module Aws::Macie2
5973
6463
  # }
5974
6464
  #
5975
6465
  # @!attribute [rw] comparator
5976
- # The operator to use in a condition. Valid values are:
6466
+ # The operator to use in a condition. Depending on the type of
6467
+ # condition, possible values are:
5977
6468
  # @return [String]
5978
6469
  #
5979
6470
  # @!attribute [rw] key
@@ -6008,7 +6499,8 @@ module Aws::Macie2
6008
6499
  # }
6009
6500
  #
6010
6501
  # @!attribute [rw] comparator
6011
- # The operator to use in a condition. Valid values are:
6502
+ # The operator to use in a condition. Depending on the type of
6503
+ # condition, possible values are:
6012
6504
  # @return [String]
6013
6505
  #
6014
6506
  # @!attribute [rw] key
@@ -6089,7 +6581,8 @@ module Aws::Macie2
6089
6581
  # }
6090
6582
  #
6091
6583
  # @!attribute [rw] comparator
6092
- # The operator to use in a condition. Valid values are:
6584
+ # The operator to use in a condition. Depending on the type of
6585
+ # condition, possible values are:
6093
6586
  # @return [String]
6094
6587
  #
6095
6588
  # @!attribute [rw] tag_values
@@ -6133,9 +6626,8 @@ module Aws::Macie2
6133
6626
  include Aws::Structure
6134
6627
  end
6135
6628
 
6136
- # Specifies the tags (keys and values) to associate with a
6137
- # classification job, custom data identifier, findings filter, or member
6138
- # account.
6629
+ # Specifies the tags (keys and values) to associate with an Amazon Macie
6630
+ # resource.
6139
6631
  #
6140
6632
  # @note When making an API call, you may pass TagResourceRequest
6141
6633
  # data as a hash:
@@ -6152,8 +6644,7 @@ module Aws::Macie2
6152
6644
  #
6153
6645
  # @!attribute [rw] tags
6154
6646
  # A string-to-string map of key-value pairs that specifies the tags
6155
- # (keys and values) for a classification job, custom data identifier,
6156
- # findings filter, or member account.
6647
+ # (keys and values) for an Amazon Macie resource.
6157
6648
  # @return [Hash<String,String>]
6158
6649
  #
6159
6650
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/TagResourceRequest AWS API Documentation
@@ -6165,7 +6656,8 @@ module Aws::Macie2
6165
6656
  include Aws::Structure
6166
6657
  end
6167
6658
 
6168
- # The request succeeded. The specified tags were added to the resource.
6659
+ # The request succeeded. The specified tags were added or updated for
6660
+ # the resource.
6169
6661
  #
6170
6662
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/TagResourceResponse AWS API Documentation
6171
6663
  #
@@ -6190,7 +6682,8 @@ module Aws::Macie2
6190
6682
  # }
6191
6683
  #
6192
6684
  # @!attribute [rw] comparator
6193
- # The operator to use in a condition. Valid values are:
6685
+ # The operator to use in a condition. Depending on the type of
6686
+ # condition, possible values are:
6194
6687
  # @return [String]
6195
6688
  #
6196
6689
  # @!attribute [rw] key
@@ -6311,6 +6804,20 @@ module Aws::Macie2
6311
6804
  include Aws::Structure
6312
6805
  end
6313
6806
 
6807
+ # Provides information about an error that occurred due to an
6808
+ # unprocessable entity.
6809
+ #
6810
+ # @!attribute [rw] message
6811
+ # @return [String]
6812
+ #
6813
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UnprocessableEntityException AWS API Documentation
6814
+ #
6815
+ class UnprocessableEntityException < Struct.new(
6816
+ :message)
6817
+ SENSITIVE = []
6818
+ include Aws::Structure
6819
+ end
6820
+
6314
6821
  # Provides information about an account-related request that hasn't
6315
6822
  # been processed.
6316
6823
  #
@@ -6364,6 +6871,72 @@ module Aws::Macie2
6364
6871
  #
6365
6872
  class UntagResourceResponse < Aws::EmptyStructure; end
6366
6873
 
6874
+ # Changes the settings for an allow list. If you change the list's
6875
+ # criteria, Amazon Macie tests the new criteria when it processes your
6876
+ # request. If the criteria specify a regular expression that Macie
6877
+ # can't compile or an S3 object that Macie can't retrieve or parse, an
6878
+ # error occurs.
6879
+ #
6880
+ # @note When making an API call, you may pass UpdateAllowListRequest
6881
+ # data as a hash:
6882
+ #
6883
+ # {
6884
+ # criteria: { # required
6885
+ # regex: "__stringMin1Max512PatternSS",
6886
+ # s3_words_list: {
6887
+ # bucket_name: "__stringMin3Max255PatternAZaZ093255", # required
6888
+ # object_key: "__stringMin1Max1024PatternSS", # required
6889
+ # },
6890
+ # },
6891
+ # description: "__stringMin1Max512PatternSS",
6892
+ # id: "__string", # required
6893
+ # name: "__stringMin1Max128Pattern", # required
6894
+ # }
6895
+ #
6896
+ # @!attribute [rw] criteria
6897
+ # Specifies the criteria for an allow list. The criteria must specify
6898
+ # a regular expression (regex) or an S3 object (s3WordsList). It
6899
+ # can't specify both.
6900
+ # @return [Types::AllowListCriteria]
6901
+ #
6902
+ # @!attribute [rw] description
6903
+ # @return [String]
6904
+ #
6905
+ # @!attribute [rw] id
6906
+ # @return [String]
6907
+ #
6908
+ # @!attribute [rw] name
6909
+ # @return [String]
6910
+ #
6911
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UpdateAllowListRequest AWS API Documentation
6912
+ #
6913
+ class UpdateAllowListRequest < Struct.new(
6914
+ :criteria,
6915
+ :description,
6916
+ :id,
6917
+ :name)
6918
+ SENSITIVE = []
6919
+ include Aws::Structure
6920
+ end
6921
+
6922
+ # Provides information about an allow list whose settings were changed
6923
+ # in response to a request.
6924
+ #
6925
+ # @!attribute [rw] arn
6926
+ # @return [String]
6927
+ #
6928
+ # @!attribute [rw] id
6929
+ # @return [String]
6930
+ #
6931
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UpdateAllowListResponse AWS API Documentation
6932
+ #
6933
+ class UpdateAllowListResponse < Struct.new(
6934
+ :arn,
6935
+ :id)
6936
+ SENSITIVE = []
6937
+ include Aws::Structure
6938
+ end
6939
+
6367
6940
  # Changes the status of a classification job. For more information about
6368
6941
  # pausing, resuming, or cancelling jobs, see [Managing sensitive data
6369
6942
  # discovery jobs][1] in the *Amazon Macie User Guide*.
@@ -6501,10 +7074,9 @@ module Aws::Macie2
6501
7074
  # @!attribute [rw] finding_publishing_frequency
6502
7075
  # The frequency with which Amazon Macie publishes updates to policy
6503
7076
  # findings for an account. This includes publishing updates to
6504
- # Security Hub and Amazon EventBridge (formerly called Amazon
6505
- # CloudWatch Events). For more information, see [Monitoring and
6506
- # processing findings][1] in the *Amazon Macie User Guide*. Valid
6507
- # values are:
7077
+ # Security Hub and Amazon EventBridge (formerly Amazon CloudWatch
7078
+ # Events). For more information, see [Monitoring and processing
7079
+ # findings][1] in the *Amazon Macie User Guide*. Valid values are:
6508
7080
  #
6509
7081
  #
6510
7082
  #
@@ -6583,6 +7155,58 @@ module Aws::Macie2
6583
7155
  #
6584
7156
  class UpdateOrganizationConfigurationResponse < Aws::EmptyStructure; end
6585
7157
 
7158
+ # Specifies the configuration settings for retrieving occurrences of
7159
+ # sensitive data reported by findings, and the status of the
7160
+ # configuration for an Amazon Macie account.
7161
+ #
7162
+ # @note When making an API call, you may pass UpdateRevealConfigurationRequest
7163
+ # data as a hash:
7164
+ #
7165
+ # {
7166
+ # configuration: { # required
7167
+ # kms_key_id: "__stringMin1Max2048",
7168
+ # status: "ENABLED", # required, accepts ENABLED, DISABLED
7169
+ # },
7170
+ # }
7171
+ #
7172
+ # @!attribute [rw] configuration
7173
+ # Specifies the configuration settings for retrieving occurrences of
7174
+ # sensitive data reported by findings, and the status of the
7175
+ # configuration for an Amazon Macie account. When you enable the
7176
+ # configuration for the first time, your request must specify an Key
7177
+ # Management Service (KMS) key. Otherwise, an error occurs. Macie uses
7178
+ # the specified key to encrypt the sensitive data that you retrieve.
7179
+ # @return [Types::RevealConfiguration]
7180
+ #
7181
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UpdateRevealConfigurationRequest AWS API Documentation
7182
+ #
7183
+ class UpdateRevealConfigurationRequest < Struct.new(
7184
+ :configuration)
7185
+ SENSITIVE = []
7186
+ include Aws::Structure
7187
+ end
7188
+
7189
+ # Provides information about updated configuration settings for
7190
+ # retrieving occurrences of sensitive data reported by findings, and the
7191
+ # status of the configuration for an Amazon Macie account.
7192
+ #
7193
+ # @!attribute [rw] configuration
7194
+ # Specifies the configuration settings for retrieving occurrences of
7195
+ # sensitive data reported by findings, and the status of the
7196
+ # configuration for an Amazon Macie account. When you enable the
7197
+ # configuration for the first time, your request must specify an Key
7198
+ # Management Service (KMS) key. Otherwise, an error occurs. Macie uses
7199
+ # the specified key to encrypt the sensitive data that you retrieve.
7200
+ # @return [Types::RevealConfiguration]
7201
+ #
7202
+ # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UpdateRevealConfigurationResponse AWS API Documentation
7203
+ #
7204
+ class UpdateRevealConfigurationResponse < Struct.new(
7205
+ :configuration)
7206
+ SENSITIVE = []
7207
+ include Aws::Structure
7208
+ end
7209
+
6586
7210
  # Provides data for a specific usage metric and the corresponding quota
6587
7211
  # for an Amazon Macie account.
6588
7212
  #