aws-sdk-macie2 1.46.0 → 1.48.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.
@@ -21,6 +21,10 @@ module Aws::Macie2
21
21
  AccountLevelPermissions = Shapes::StructureShape.new(name: 'AccountLevelPermissions')
22
22
  AdminAccount = Shapes::StructureShape.new(name: 'AdminAccount')
23
23
  AdminStatus = Shapes::StringShape.new(name: 'AdminStatus')
24
+ AllowListCriteria = Shapes::StructureShape.new(name: 'AllowListCriteria')
25
+ AllowListStatus = Shapes::StructureShape.new(name: 'AllowListStatus')
26
+ AllowListStatusCode = Shapes::StringShape.new(name: 'AllowListStatusCode')
27
+ AllowListSummary = Shapes::StructureShape.new(name: 'AllowListSummary')
24
28
  AllowsUnencryptedObjectUploads = Shapes::StringShape.new(name: 'AllowsUnencryptedObjectUploads')
25
29
  ApiCallDetails = Shapes::StructureShape.new(name: 'ApiCallDetails')
26
30
  AssumedRole = Shapes::StructureShape.new(name: 'AssumedRole')
@@ -52,6 +56,8 @@ module Aws::Macie2
52
56
  ClassificationResult = Shapes::StructureShape.new(name: 'ClassificationResult')
53
57
  ClassificationResultStatus = Shapes::StructureShape.new(name: 'ClassificationResultStatus')
54
58
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
59
+ CreateAllowListRequest = Shapes::StructureShape.new(name: 'CreateAllowListRequest')
60
+ CreateAllowListResponse = Shapes::StructureShape.new(name: 'CreateAllowListResponse')
55
61
  CreateClassificationJobRequest = Shapes::StructureShape.new(name: 'CreateClassificationJobRequest')
56
62
  CreateClassificationJobResponse = Shapes::StructureShape.new(name: 'CreateClassificationJobResponse')
57
63
  CreateCustomDataIdentifierRequest = Shapes::StructureShape.new(name: 'CreateCustomDataIdentifierRequest')
@@ -80,6 +86,8 @@ module Aws::Macie2
80
86
  DeclineInvitationsResponse = Shapes::StructureShape.new(name: 'DeclineInvitationsResponse')
81
87
  DefaultDetection = Shapes::StructureShape.new(name: 'DefaultDetection')
82
88
  DefaultDetections = Shapes::ListShape.new(name: 'DefaultDetections')
89
+ DeleteAllowListRequest = Shapes::StructureShape.new(name: 'DeleteAllowListRequest')
90
+ DeleteAllowListResponse = Shapes::StructureShape.new(name: 'DeleteAllowListResponse')
83
91
  DeleteCustomDataIdentifierRequest = Shapes::StructureShape.new(name: 'DeleteCustomDataIdentifierRequest')
84
92
  DeleteCustomDataIdentifierResponse = Shapes::StructureShape.new(name: 'DeleteCustomDataIdentifierResponse')
85
93
  DeleteFindingsFilterRequest = Shapes::StructureShape.new(name: 'DeleteFindingsFilterRequest')
@@ -129,6 +137,8 @@ module Aws::Macie2
129
137
  FindingsFilterListItem = Shapes::StructureShape.new(name: 'FindingsFilterListItem')
130
138
  GetAdministratorAccountRequest = Shapes::StructureShape.new(name: 'GetAdministratorAccountRequest')
131
139
  GetAdministratorAccountResponse = Shapes::StructureShape.new(name: 'GetAdministratorAccountResponse')
140
+ GetAllowListRequest = Shapes::StructureShape.new(name: 'GetAllowListRequest')
141
+ GetAllowListResponse = Shapes::StructureShape.new(name: 'GetAllowListResponse')
132
142
  GetBucketStatisticsRequest = Shapes::StructureShape.new(name: 'GetBucketStatisticsRequest')
133
143
  GetBucketStatisticsResponse = Shapes::StructureShape.new(name: 'GetBucketStatisticsResponse')
134
144
  GetClassificationExportConfigurationRequest = Shapes::StructureShape.new(name: 'GetClassificationExportConfigurationRequest')
@@ -185,6 +195,8 @@ module Aws::Macie2
185
195
  KeyValuePairList = Shapes::ListShape.new(name: 'KeyValuePairList')
186
196
  LastRunErrorStatus = Shapes::StructureShape.new(name: 'LastRunErrorStatus')
187
197
  LastRunErrorStatusCode = Shapes::StringShape.new(name: 'LastRunErrorStatusCode')
198
+ ListAllowListsRequest = Shapes::StructureShape.new(name: 'ListAllowListsRequest')
199
+ ListAllowListsResponse = Shapes::StructureShape.new(name: 'ListAllowListsResponse')
188
200
  ListClassificationJobsRequest = Shapes::StructureShape.new(name: 'ListClassificationJobsRequest')
189
201
  ListClassificationJobsResponse = Shapes::StructureShape.new(name: 'ListClassificationJobsResponse')
190
202
  ListCustomDataIdentifiersRequest = Shapes::StructureShape.new(name: 'ListCustomDataIdentifiersRequest')
@@ -246,6 +258,7 @@ module Aws::Macie2
246
258
  S3Destination = Shapes::StructureShape.new(name: 'S3Destination')
247
259
  S3JobDefinition = Shapes::StructureShape.new(name: 'S3JobDefinition')
248
260
  S3Object = Shapes::StructureShape.new(name: 'S3Object')
261
+ S3WordsList = Shapes::StructureShape.new(name: 'S3WordsList')
249
262
  ScopeFilterKey = Shapes::StringShape.new(name: 'ScopeFilterKey')
250
263
  Scoping = Shapes::StructureShape.new(name: 'Scoping')
251
264
  SearchResourcesBucketCriteria = Shapes::StructureShape.new(name: 'SearchResourcesBucketCriteria')
@@ -301,6 +314,8 @@ module Aws::Macie2
301
314
  UnprocessedAccount = Shapes::StructureShape.new(name: 'UnprocessedAccount')
302
315
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
303
316
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
317
+ UpdateAllowListRequest = Shapes::StructureShape.new(name: 'UpdateAllowListRequest')
318
+ UpdateAllowListResponse = Shapes::StructureShape.new(name: 'UpdateAllowListResponse')
304
319
  UpdateClassificationJobRequest = Shapes::StructureShape.new(name: 'UpdateClassificationJobRequest')
305
320
  UpdateClassificationJobResponse = Shapes::StructureShape.new(name: 'UpdateClassificationJobResponse')
306
321
  UpdateFindingsFilterRequest = Shapes::StructureShape.new(name: 'UpdateFindingsFilterRequest')
@@ -332,6 +347,7 @@ module Aws::Macie2
332
347
  __double = Shapes::FloatShape.new(name: '__double')
333
348
  __integer = Shapes::IntegerShape.new(name: '__integer')
334
349
  __listOfAdminAccount = Shapes::ListShape.new(name: '__listOfAdminAccount')
350
+ __listOfAllowListSummary = Shapes::ListShape.new(name: '__listOfAllowListSummary')
335
351
  __listOfBatchGetCustomDataIdentifierSummary = Shapes::ListShape.new(name: '__listOfBatchGetCustomDataIdentifierSummary')
336
352
  __listOfBucketMetadata = Shapes::ListShape.new(name: '__listOfBucketMetadata')
337
353
  __listOfCriteriaForJob = Shapes::ListShape.new(name: '__listOfCriteriaForJob')
@@ -363,8 +379,14 @@ module Aws::Macie2
363
379
  __listOf__string = Shapes::ListShape.new(name: '__listOf__string')
364
380
  __long = Shapes::IntegerShape.new(name: '__long')
365
381
  __string = Shapes::StringShape.new(name: '__string')
382
+ __stringMin1Max1024PatternSS = Shapes::StringShape.new(name: '__stringMin1Max1024PatternSS')
366
383
  __stringMin1Max128 = Shapes::StringShape.new(name: '__stringMin1Max128')
384
+ __stringMin1Max128Pattern = Shapes::StringShape.new(name: '__stringMin1Max128Pattern')
367
385
  __stringMin1Max2048 = Shapes::StringShape.new(name: '__stringMin1Max2048')
386
+ __stringMin1Max512PatternSS = Shapes::StringShape.new(name: '__stringMin1Max512PatternSS')
387
+ __stringMin22Max22PatternAZ0922 = Shapes::StringShape.new(name: '__stringMin22Max22PatternAZ0922')
388
+ __stringMin3Max255PatternAZaZ093255 = Shapes::StringShape.new(name: '__stringMin3Max255PatternAZaZ093255')
389
+ __stringMin71Max89PatternArnAwsAwsCnAwsUsGovMacie2AZ19920D12AllowListAZ0922 = Shapes::StringShape.new(name: '__stringMin71Max89PatternArnAwsAwsCnAwsUsGovMacie2AZ19920D12AllowListAZ0922')
368
390
  __timestampIso8601 = Shapes::TimestampShape.new(name: '__timestampIso8601', timestampFormat: "iso8601")
369
391
  __timestampUnix = Shapes::TimestampShape.new(name: '__timestampUnix', timestampFormat: "unixTimestamp")
370
392
 
@@ -393,6 +415,22 @@ module Aws::Macie2
393
415
  AdminAccount.add_member(:status, Shapes::ShapeRef.new(shape: AdminStatus, location_name: "status"))
394
416
  AdminAccount.struct_class = Types::AdminAccount
395
417
 
418
+ AllowListCriteria.add_member(:regex, Shapes::ShapeRef.new(shape: __stringMin1Max512PatternSS, location_name: "regex"))
419
+ AllowListCriteria.add_member(:s3_words_list, Shapes::ShapeRef.new(shape: S3WordsList, location_name: "s3WordsList"))
420
+ AllowListCriteria.struct_class = Types::AllowListCriteria
421
+
422
+ AllowListStatus.add_member(:code, Shapes::ShapeRef.new(shape: AllowListStatusCode, required: true, location_name: "code"))
423
+ AllowListStatus.add_member(:description, Shapes::ShapeRef.new(shape: __stringMin1Max1024PatternSS, location_name: "description"))
424
+ AllowListStatus.struct_class = Types::AllowListStatus
425
+
426
+ AllowListSummary.add_member(:arn, Shapes::ShapeRef.new(shape: __stringMin71Max89PatternArnAwsAwsCnAwsUsGovMacie2AZ19920D12AllowListAZ0922, location_name: "arn"))
427
+ AllowListSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "createdAt"))
428
+ AllowListSummary.add_member(:description, Shapes::ShapeRef.new(shape: __stringMin1Max512PatternSS, location_name: "description"))
429
+ AllowListSummary.add_member(:id, Shapes::ShapeRef.new(shape: __stringMin22Max22PatternAZ0922, location_name: "id"))
430
+ AllowListSummary.add_member(:name, Shapes::ShapeRef.new(shape: __stringMin1Max128Pattern, location_name: "name"))
431
+ AllowListSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "updatedAt"))
432
+ AllowListSummary.struct_class = Types::AllowListSummary
433
+
396
434
  ApiCallDetails.add_member(:api, Shapes::ShapeRef.new(shape: __string, location_name: "api"))
397
435
  ApiCallDetails.add_member(:api_service_name, Shapes::ShapeRef.new(shape: __string, location_name: "apiServiceName"))
398
436
  ApiCallDetails.add_member(:first_seen, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "firstSeen"))
@@ -553,6 +591,18 @@ module Aws::Macie2
553
591
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message"))
554
592
  ConflictException.struct_class = Types::ConflictException
555
593
 
594
+ CreateAllowListRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
595
+ CreateAllowListRequest.add_member(:criteria, Shapes::ShapeRef.new(shape: AllowListCriteria, required: true, location_name: "criteria"))
596
+ CreateAllowListRequest.add_member(:description, Shapes::ShapeRef.new(shape: __stringMin1Max512PatternSS, location_name: "description"))
597
+ CreateAllowListRequest.add_member(:name, Shapes::ShapeRef.new(shape: __stringMin1Max128Pattern, required: true, location_name: "name"))
598
+ CreateAllowListRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
599
+ CreateAllowListRequest.struct_class = Types::CreateAllowListRequest
600
+
601
+ CreateAllowListResponse.add_member(:arn, Shapes::ShapeRef.new(shape: __stringMin71Max89PatternArnAwsAwsCnAwsUsGovMacie2AZ19920D12AllowListAZ0922, location_name: "arn"))
602
+ CreateAllowListResponse.add_member(:id, Shapes::ShapeRef.new(shape: __stringMin22Max22PatternAZ0922, location_name: "id"))
603
+ CreateAllowListResponse.struct_class = Types::CreateAllowListResponse
604
+
605
+ CreateClassificationJobRequest.add_member(:allow_list_ids, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "allowListIds"))
556
606
  CreateClassificationJobRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
557
607
  CreateClassificationJobRequest.add_member(:custom_data_identifier_ids, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "customDataIdentifierIds"))
558
608
  CreateClassificationJobRequest.add_member(:description, Shapes::ShapeRef.new(shape: __string, location_name: "description"))
@@ -671,6 +721,12 @@ module Aws::Macie2
671
721
 
672
722
  DefaultDetections.member = Shapes::ShapeRef.new(shape: DefaultDetection)
673
723
 
724
+ DeleteAllowListRequest.add_member(:id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "id"))
725
+ DeleteAllowListRequest.add_member(:ignore_job_checks, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "ignoreJobChecks"))
726
+ DeleteAllowListRequest.struct_class = Types::DeleteAllowListRequest
727
+
728
+ DeleteAllowListResponse.struct_class = Types::DeleteAllowListResponse
729
+
674
730
  DeleteCustomDataIdentifierRequest.add_member(:id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "id"))
675
731
  DeleteCustomDataIdentifierRequest.struct_class = Types::DeleteCustomDataIdentifierRequest
676
732
 
@@ -705,6 +761,7 @@ module Aws::Macie2
705
761
  DescribeClassificationJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "jobId"))
706
762
  DescribeClassificationJobRequest.struct_class = Types::DescribeClassificationJobRequest
707
763
 
764
+ DescribeClassificationJobResponse.add_member(:allow_list_ids, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "allowListIds"))
708
765
  DescribeClassificationJobResponse.add_member(:client_token, Shapes::ShapeRef.new(shape: __string, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
709
766
  DescribeClassificationJobResponse.add_member(:created_at, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "createdAt"))
710
767
  DescribeClassificationJobResponse.add_member(:custom_data_identifier_ids, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "customDataIdentifierIds"))
@@ -831,6 +888,20 @@ module Aws::Macie2
831
888
  GetAdministratorAccountResponse.add_member(:administrator, Shapes::ShapeRef.new(shape: Invitation, location_name: "administrator"))
832
889
  GetAdministratorAccountResponse.struct_class = Types::GetAdministratorAccountResponse
833
890
 
891
+ GetAllowListRequest.add_member(:id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "id"))
892
+ GetAllowListRequest.struct_class = Types::GetAllowListRequest
893
+
894
+ GetAllowListResponse.add_member(:arn, Shapes::ShapeRef.new(shape: __stringMin71Max89PatternArnAwsAwsCnAwsUsGovMacie2AZ19920D12AllowListAZ0922, location_name: "arn"))
895
+ GetAllowListResponse.add_member(:created_at, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "createdAt"))
896
+ GetAllowListResponse.add_member(:criteria, Shapes::ShapeRef.new(shape: AllowListCriteria, location_name: "criteria"))
897
+ GetAllowListResponse.add_member(:description, Shapes::ShapeRef.new(shape: __stringMin1Max512PatternSS, location_name: "description"))
898
+ GetAllowListResponse.add_member(:id, Shapes::ShapeRef.new(shape: __stringMin22Max22PatternAZ0922, location_name: "id"))
899
+ GetAllowListResponse.add_member(:name, Shapes::ShapeRef.new(shape: __stringMin1Max128Pattern, location_name: "name"))
900
+ GetAllowListResponse.add_member(:status, Shapes::ShapeRef.new(shape: AllowListStatus, location_name: "status"))
901
+ GetAllowListResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
902
+ GetAllowListResponse.add_member(:updated_at, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "updatedAt"))
903
+ GetAllowListResponse.struct_class = Types::GetAllowListResponse
904
+
834
905
  GetBucketStatisticsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: __string, location_name: "accountId"))
835
906
  GetBucketStatisticsRequest.struct_class = Types::GetBucketStatisticsRequest
836
907
 
@@ -1058,6 +1129,14 @@ module Aws::Macie2
1058
1129
  LastRunErrorStatus.add_member(:code, Shapes::ShapeRef.new(shape: LastRunErrorStatusCode, location_name: "code"))
1059
1130
  LastRunErrorStatus.struct_class = Types::LastRunErrorStatus
1060
1131
 
1132
+ ListAllowListsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
1133
+ ListAllowListsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken"))
1134
+ ListAllowListsRequest.struct_class = Types::ListAllowListsRequest
1135
+
1136
+ ListAllowListsResponse.add_member(:allow_lists, Shapes::ShapeRef.new(shape: __listOfAllowListSummary, location_name: "allowLists"))
1137
+ ListAllowListsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "nextToken"))
1138
+ ListAllowListsResponse.struct_class = Types::ListAllowListsResponse
1139
+
1061
1140
  ListClassificationJobsRequest.add_member(:filter_criteria, Shapes::ShapeRef.new(shape: ListJobsFilterCriteria, location_name: "filterCriteria"))
1062
1141
  ListClassificationJobsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: __integer, location_name: "maxResults"))
1063
1142
  ListClassificationJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "nextToken"))
@@ -1298,6 +1377,10 @@ module Aws::Macie2
1298
1377
  S3Object.add_member(:version_id, Shapes::ShapeRef.new(shape: __string, location_name: "versionId"))
1299
1378
  S3Object.struct_class = Types::S3Object
1300
1379
 
1380
+ S3WordsList.add_member(:bucket_name, Shapes::ShapeRef.new(shape: __stringMin3Max255PatternAZaZ093255, required: true, location_name: "bucketName"))
1381
+ S3WordsList.add_member(:object_key, Shapes::ShapeRef.new(shape: __stringMin1Max1024PatternSS, required: true, location_name: "objectKey"))
1382
+ S3WordsList.struct_class = Types::S3WordsList
1383
+
1301
1384
  Scoping.add_member(:excludes, Shapes::ShapeRef.new(shape: JobScopingBlock, location_name: "excludes"))
1302
1385
  Scoping.add_member(:includes, Shapes::ShapeRef.new(shape: JobScopingBlock, location_name: "includes"))
1303
1386
  Scoping.struct_class = Types::Scoping
@@ -1463,6 +1546,16 @@ module Aws::Macie2
1463
1546
 
1464
1547
  UntagResourceResponse.struct_class = Types::UntagResourceResponse
1465
1548
 
1549
+ UpdateAllowListRequest.add_member(:criteria, Shapes::ShapeRef.new(shape: AllowListCriteria, required: true, location_name: "criteria"))
1550
+ UpdateAllowListRequest.add_member(:description, Shapes::ShapeRef.new(shape: __stringMin1Max512PatternSS, location_name: "description"))
1551
+ UpdateAllowListRequest.add_member(:id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "id"))
1552
+ UpdateAllowListRequest.add_member(:name, Shapes::ShapeRef.new(shape: __stringMin1Max128Pattern, required: true, location_name: "name"))
1553
+ UpdateAllowListRequest.struct_class = Types::UpdateAllowListRequest
1554
+
1555
+ UpdateAllowListResponse.add_member(:arn, Shapes::ShapeRef.new(shape: __stringMin71Max89PatternArnAwsAwsCnAwsUsGovMacie2AZ19920D12AllowListAZ0922, location_name: "arn"))
1556
+ UpdateAllowListResponse.add_member(:id, Shapes::ShapeRef.new(shape: __stringMin22Max22PatternAZ0922, location_name: "id"))
1557
+ UpdateAllowListResponse.struct_class = Types::UpdateAllowListResponse
1558
+
1466
1559
  UpdateClassificationJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "jobId"))
1467
1560
  UpdateClassificationJobRequest.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, required: true, location_name: "jobStatus"))
1468
1561
  UpdateClassificationJobRequest.struct_class = Types::UpdateClassificationJobRequest
@@ -1557,6 +1650,8 @@ module Aws::Macie2
1557
1650
 
1558
1651
  __listOfAdminAccount.member = Shapes::ShapeRef.new(shape: AdminAccount)
1559
1652
 
1653
+ __listOfAllowListSummary.member = Shapes::ShapeRef.new(shape: AllowListSummary)
1654
+
1560
1655
  __listOfBatchGetCustomDataIdentifierSummary.member = Shapes::ShapeRef.new(shape: BatchGetCustomDataIdentifierSummary)
1561
1656
 
1562
1657
  __listOfBucketMetadata.member = Shapes::ShapeRef.new(shape: BucketMetadata)
@@ -1663,6 +1758,21 @@ module Aws::Macie2
1663
1758
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1664
1759
  end)
1665
1760
 
1761
+ api.add_operation(:create_allow_list, Seahorse::Model::Operation.new.tap do |o|
1762
+ o.name = "CreateAllowList"
1763
+ o.http_method = "POST"
1764
+ o.http_request_uri = "/allow-lists"
1765
+ o.input = Shapes::ShapeRef.new(shape: CreateAllowListRequest)
1766
+ o.output = Shapes::ShapeRef.new(shape: CreateAllowListResponse)
1767
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1768
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1769
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1770
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1771
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1772
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1773
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1774
+ end)
1775
+
1666
1776
  api.add_operation(:create_classification_job, Seahorse::Model::Operation.new.tap do |o|
1667
1777
  o.name = "CreateClassificationJob"
1668
1778
  o.http_method = "POST"
@@ -1768,6 +1878,19 @@ module Aws::Macie2
1768
1878
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1769
1879
  end)
1770
1880
 
1881
+ api.add_operation(:delete_allow_list, Seahorse::Model::Operation.new.tap do |o|
1882
+ o.name = "DeleteAllowList"
1883
+ o.http_method = "DELETE"
1884
+ o.http_request_uri = "/allow-lists/{id}"
1885
+ o.input = Shapes::ShapeRef.new(shape: DeleteAllowListRequest)
1886
+ o.output = Shapes::ShapeRef.new(shape: DeleteAllowListResponse)
1887
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1888
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1889
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1890
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1891
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1892
+ end)
1893
+
1771
1894
  api.add_operation(:delete_custom_data_identifier, Seahorse::Model::Operation.new.tap do |o|
1772
1895
  o.name = "DeleteCustomDataIdentifier"
1773
1896
  o.http_method = "DELETE"
@@ -1999,6 +2122,19 @@ module Aws::Macie2
1999
2122
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2000
2123
  end)
2001
2124
 
2125
+ api.add_operation(:get_allow_list, Seahorse::Model::Operation.new.tap do |o|
2126
+ o.name = "GetAllowList"
2127
+ o.http_method = "GET"
2128
+ o.http_request_uri = "/allow-lists/{id}"
2129
+ o.input = Shapes::ShapeRef.new(shape: GetAllowListRequest)
2130
+ o.output = Shapes::ShapeRef.new(shape: GetAllowListResponse)
2131
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2132
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2133
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2134
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2135
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2136
+ end)
2137
+
2002
2138
  api.add_operation(:get_bucket_statistics, Seahorse::Model::Operation.new.tap do |o|
2003
2139
  o.name = "GetBucketStatistics"
2004
2140
  o.http_method = "POST"
@@ -2238,6 +2374,18 @@ module Aws::Macie2
2238
2374
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2239
2375
  end)
2240
2376
 
2377
+ api.add_operation(:list_allow_lists, Seahorse::Model::Operation.new.tap do |o|
2378
+ o.name = "ListAllowLists"
2379
+ o.http_method = "GET"
2380
+ o.http_request_uri = "/allow-lists"
2381
+ o.input = Shapes::ShapeRef.new(shape: ListAllowListsRequest)
2382
+ o.output = Shapes::ShapeRef.new(shape: ListAllowListsResponse)
2383
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2384
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2385
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2386
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2387
+ end)
2388
+
2241
2389
  api.add_operation(:list_classification_jobs, Seahorse::Model::Operation.new.tap do |o|
2242
2390
  o.name = "ListClassificationJobs"
2243
2391
  o.http_method = "POST"
@@ -2483,6 +2631,19 @@ module Aws::Macie2
2483
2631
  o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
2484
2632
  end)
2485
2633
 
2634
+ api.add_operation(:update_allow_list, Seahorse::Model::Operation.new.tap do |o|
2635
+ o.name = "UpdateAllowList"
2636
+ o.http_method = "PUT"
2637
+ o.http_request_uri = "/allow-lists/{id}"
2638
+ o.input = Shapes::ShapeRef.new(shape: UpdateAllowListRequest)
2639
+ o.output = Shapes::ShapeRef.new(shape: UpdateAllowListResponse)
2640
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2641
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2642
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2643
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2644
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2645
+ end)
2646
+
2486
2647
  api.add_operation(:update_classification_job, Seahorse::Model::Operation.new.tap do |o|
2487
2648
  o.name = "UpdateClassificationJob"
2488
2649
  o.http_method = "PATCH"
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::Macie2
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,111 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::Macie2
11
+ class EndpointProvider
12
+ def initialize(rule_set = nil)
13
+ @@rule_set ||= begin
14
+ endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
+ Aws::Endpoints::RuleSet.new(
16
+ version: endpoint_rules['version'],
17
+ service_id: endpoint_rules['serviceId'],
18
+ parameters: endpoint_rules['parameters'],
19
+ rules: endpoint_rules['rules']
20
+ )
21
+ end
22
+ @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
+ end
24
+
25
+ def resolve_endpoint(parameters)
26
+ @provider.resolve_endpoint(parameters)
27
+ end
28
+
29
+ # @api private
30
+ RULES = <<-JSON
31
+ eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
+ bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
+ dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34
+ cmVxdWVzdC4iLCJ0eXBlI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