aws-sdk-macie2 1.69.0 → 1.70.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-macie2/client.rb +107 -22
- data/lib/aws-sdk-macie2/client_api.rb +84 -0
- data/lib/aws-sdk-macie2/endpoints.rb +28 -0
- data/lib/aws-sdk-macie2/plugins/endpoints.rb +4 -0
- data/lib/aws-sdk-macie2/types.rb +249 -104
- data/lib/aws-sdk-macie2.rb +1 -1
- data/sig/client.rbs +32 -2
- data/sig/types.rbs +46 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8e5cc29f86410526239da3cc7aa43fdfe1ee90632b785108dce1d436dfb7243
|
4
|
+
data.tar.gz: ebdfcccab0d21df02571e0e10c07eecff7d0f3ef9d86ba43a24ac87d7009086a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ade688cc5c97ab545ee5fc31a88adcc898d77ca9a97d22d400ba02672cc285fbf5c0d276c39f52548542965d90375eca34983c8d1f48dd443bad31748b8b732
|
7
|
+
data.tar.gz: 60e0b65e07adf114e35c9f4e31548b8c61a2cfb9d06c628ed2caacce42ff570c90a6f08fe44ba8fdf860b14d4b7742a3021e430900acc58c3f26c84568125f86
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.70.0 (2024-06-14)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds support for managing the status of automated sensitive data discovery for individual accounts in an organization, and determining whether individual S3 buckets are included in the scope of the analyses.
|
8
|
+
|
4
9
|
1.69.0 (2024-06-05)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.70.0
|
@@ -477,6 +477,41 @@ module Aws::Macie2
|
|
477
477
|
req.send_request(options)
|
478
478
|
end
|
479
479
|
|
480
|
+
# Changes the status of automated sensitive data discovery for one or
|
481
|
+
# more accounts.
|
482
|
+
#
|
483
|
+
# @option params [Array<Types::AutomatedDiscoveryAccountUpdate>] :accounts
|
484
|
+
#
|
485
|
+
# @return [Types::BatchUpdateAutomatedDiscoveryAccountsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
486
|
+
#
|
487
|
+
# * {Types::BatchUpdateAutomatedDiscoveryAccountsResponse#errors #errors} => Array<Types::AutomatedDiscoveryAccountUpdateError>
|
488
|
+
#
|
489
|
+
# @example Request syntax with placeholder values
|
490
|
+
#
|
491
|
+
# resp = client.batch_update_automated_discovery_accounts({
|
492
|
+
# accounts: [
|
493
|
+
# {
|
494
|
+
# account_id: "__string",
|
495
|
+
# status: "ENABLED", # accepts ENABLED, DISABLED
|
496
|
+
# },
|
497
|
+
# ],
|
498
|
+
# })
|
499
|
+
#
|
500
|
+
# @example Response structure
|
501
|
+
#
|
502
|
+
# resp.errors #=> Array
|
503
|
+
# resp.errors[0].account_id #=> String
|
504
|
+
# resp.errors[0].error_code #=> String, one of "ACCOUNT_PAUSED", "ACCOUNT_NOT_FOUND"
|
505
|
+
#
|
506
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/BatchUpdateAutomatedDiscoveryAccounts AWS API Documentation
|
507
|
+
#
|
508
|
+
# @overload batch_update_automated_discovery_accounts(params = {})
|
509
|
+
# @param [Hash] params ({})
|
510
|
+
def batch_update_automated_discovery_accounts(params = {}, options = {})
|
511
|
+
req = build_request(:batch_update_automated_discovery_accounts, params)
|
512
|
+
req.send_request(options)
|
513
|
+
end
|
514
|
+
|
480
515
|
# Creates and defines the settings for an allow list.
|
481
516
|
#
|
482
517
|
# @option params [required, String] :client_token
|
@@ -1163,6 +1198,7 @@ module Aws::Macie2
|
|
1163
1198
|
# resp.buckets #=> Array
|
1164
1199
|
# resp.buckets[0].account_id #=> String
|
1165
1200
|
# resp.buckets[0].allows_unencrypted_object_uploads #=> String, one of "TRUE", "FALSE", "UNKNOWN"
|
1201
|
+
# resp.buckets[0].automated_discovery_monitoring_status #=> String, one of "MONITORED", "NOT_MONITORED"
|
1166
1202
|
# resp.buckets[0].bucket_arn #=> String
|
1167
1203
|
# resp.buckets[0].bucket_created_at #=> Time
|
1168
1204
|
# resp.buckets[0].bucket_name #=> String
|
@@ -1594,10 +1630,11 @@ module Aws::Macie2
|
|
1594
1630
|
end
|
1595
1631
|
|
1596
1632
|
# Retrieves the configuration settings and status of automated sensitive
|
1597
|
-
# data discovery for an account.
|
1633
|
+
# data discovery for an organization or standalone account.
|
1598
1634
|
#
|
1599
1635
|
# @return [Types::GetAutomatedDiscoveryConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1600
1636
|
#
|
1637
|
+
# * {Types::GetAutomatedDiscoveryConfigurationResponse#auto_enable_organization_members #auto_enable_organization_members} => String
|
1601
1638
|
# * {Types::GetAutomatedDiscoveryConfigurationResponse#classification_scope_id #classification_scope_id} => String
|
1602
1639
|
# * {Types::GetAutomatedDiscoveryConfigurationResponse#disabled_at #disabled_at} => Time
|
1603
1640
|
# * {Types::GetAutomatedDiscoveryConfigurationResponse#first_enabled_at #first_enabled_at} => Time
|
@@ -1607,6 +1644,7 @@ module Aws::Macie2
|
|
1607
1644
|
#
|
1608
1645
|
# @example Response structure
|
1609
1646
|
#
|
1647
|
+
# resp.auto_enable_organization_members #=> String, one of "ALL", "NEW", "NONE"
|
1610
1648
|
# resp.classification_scope_id #=> String
|
1611
1649
|
# resp.disabled_at #=> Time
|
1612
1650
|
# resp.first_enabled_at #=> Time
|
@@ -2591,6 +2629,46 @@ module Aws::Macie2
|
|
2591
2629
|
req.send_request(options)
|
2592
2630
|
end
|
2593
2631
|
|
2632
|
+
# Retrieves the status of automated sensitive data discovery for one or
|
2633
|
+
# more accounts.
|
2634
|
+
#
|
2635
|
+
# @option params [Array<String>] :account_ids
|
2636
|
+
#
|
2637
|
+
# @option params [Integer] :max_results
|
2638
|
+
#
|
2639
|
+
# @option params [String] :next_token
|
2640
|
+
#
|
2641
|
+
# @return [Types::ListAutomatedDiscoveryAccountsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2642
|
+
#
|
2643
|
+
# * {Types::ListAutomatedDiscoveryAccountsResponse#items #items} => Array<Types::AutomatedDiscoveryAccount>
|
2644
|
+
# * {Types::ListAutomatedDiscoveryAccountsResponse#next_token #next_token} => String
|
2645
|
+
#
|
2646
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2647
|
+
#
|
2648
|
+
# @example Request syntax with placeholder values
|
2649
|
+
#
|
2650
|
+
# resp = client.list_automated_discovery_accounts({
|
2651
|
+
# account_ids: ["__string"],
|
2652
|
+
# max_results: 1,
|
2653
|
+
# next_token: "__string",
|
2654
|
+
# })
|
2655
|
+
#
|
2656
|
+
# @example Response structure
|
2657
|
+
#
|
2658
|
+
# resp.items #=> Array
|
2659
|
+
# resp.items[0].account_id #=> String
|
2660
|
+
# resp.items[0].status #=> String, one of "ENABLED", "DISABLED"
|
2661
|
+
# resp.next_token #=> String
|
2662
|
+
#
|
2663
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListAutomatedDiscoveryAccounts AWS API Documentation
|
2664
|
+
#
|
2665
|
+
# @overload list_automated_discovery_accounts(params = {})
|
2666
|
+
# @param [Hash] params ({})
|
2667
|
+
def list_automated_discovery_accounts(params = {}, options = {})
|
2668
|
+
req = build_request(:list_automated_discovery_accounts, params)
|
2669
|
+
req.send_request(options)
|
2670
|
+
end
|
2671
|
+
|
2594
2672
|
# Retrieves a subset of information about one or more classification
|
2595
2673
|
# jobs.
|
2596
2674
|
#
|
@@ -2862,8 +2940,8 @@ module Aws::Macie2
|
|
2862
2940
|
req.send_request(options)
|
2863
2941
|
end
|
2864
2942
|
|
2865
|
-
# Retrieves information about
|
2866
|
-
#
|
2943
|
+
# Retrieves information about Amazon Macie membership invitations that
|
2944
|
+
# were received by an account.
|
2867
2945
|
#
|
2868
2946
|
# @option params [Integer] :max_results
|
2869
2947
|
#
|
@@ -3020,8 +3098,8 @@ module Aws::Macie2
|
|
3020
3098
|
req.send_request(options)
|
3021
3099
|
end
|
3022
3100
|
|
3023
|
-
# Retrieves information about objects that
|
3024
|
-
# bucket for automated sensitive data discovery.
|
3101
|
+
# Retrieves information about objects that Amazon Macie selected from an
|
3102
|
+
# S3 bucket for automated sensitive data discovery.
|
3025
3103
|
#
|
3026
3104
|
# @option params [String] :next_token
|
3027
3105
|
#
|
@@ -3168,13 +3246,13 @@ module Aws::Macie2
|
|
3168
3246
|
req.send_request(options)
|
3169
3247
|
end
|
3170
3248
|
|
3171
|
-
#
|
3249
|
+
# Adds or updates the configuration settings for storing data
|
3172
3250
|
# classification results.
|
3173
3251
|
#
|
3174
3252
|
# @option params [required, Types::ClassificationExportConfiguration] :configuration
|
3175
3253
|
# Specifies where to store data classification results, and the
|
3176
3254
|
# encryption settings to use when storing results in that location. The
|
3177
|
-
# location must be an S3 bucket.
|
3255
|
+
# location must be an S3 general purpose bucket.
|
3178
3256
|
#
|
3179
3257
|
# @return [Types::PutClassificationExportConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3180
3258
|
#
|
@@ -3278,7 +3356,7 @@ module Aws::Macie2
|
|
3278
3356
|
# {
|
3279
3357
|
# simple_criterion: {
|
3280
3358
|
# comparator: "EQ", # accepts EQ, NE
|
3281
|
-
# key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
|
3359
|
+
# key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS, AUTOMATED_DISCOVERY_MONITORING_STATUS
|
3282
3360
|
# values: ["__string"],
|
3283
3361
|
# },
|
3284
3362
|
# tag_criterion: {
|
@@ -3298,7 +3376,7 @@ module Aws::Macie2
|
|
3298
3376
|
# {
|
3299
3377
|
# simple_criterion: {
|
3300
3378
|
# comparator: "EQ", # accepts EQ, NE
|
3301
|
-
# key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS
|
3379
|
+
# key: "ACCOUNT_ID", # accepts ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS, AUTOMATED_DISCOVERY_MONITORING_STATUS
|
3302
3380
|
# values: ["__string"],
|
3303
3381
|
# },
|
3304
3382
|
# tag_criterion: {
|
@@ -3326,6 +3404,7 @@ module Aws::Macie2
|
|
3326
3404
|
#
|
3327
3405
|
# resp.matching_resources #=> Array
|
3328
3406
|
# resp.matching_resources[0].matching_bucket.account_id #=> String
|
3407
|
+
# resp.matching_resources[0].matching_bucket.automated_discovery_monitoring_status #=> String, one of "MONITORED", "NOT_MONITORED"
|
3329
3408
|
# resp.matching_resources[0].matching_bucket.bucket_name #=> String
|
3330
3409
|
# resp.matching_resources[0].matching_bucket.classifiable_object_count #=> Integer
|
3331
3410
|
# resp.matching_resources[0].matching_bucket.classifiable_size_in_bytes #=> Integer
|
@@ -3391,7 +3470,7 @@ module Aws::Macie2
|
|
3391
3470
|
req.send_request(options)
|
3392
3471
|
end
|
3393
3472
|
|
3394
|
-
# Tests a custom data identifier.
|
3473
|
+
# Tests criteria for a custom data identifier.
|
3395
3474
|
#
|
3396
3475
|
# @option params [Array<String>] :ignore_words
|
3397
3476
|
#
|
@@ -3502,17 +3581,25 @@ module Aws::Macie2
|
|
3502
3581
|
req.send_request(options)
|
3503
3582
|
end
|
3504
3583
|
|
3505
|
-
#
|
3584
|
+
# Changes the configuration settings and status of automated sensitive
|
3585
|
+
# data discovery for an organization or standalone account.
|
3586
|
+
#
|
3587
|
+
# @option params [String] :auto_enable_organization_members
|
3588
|
+
# Specifies whether to automatically enable automated sensitive data
|
3589
|
+
# discovery for accounts that are part of an organization in Amazon
|
3590
|
+
# Macie. Valid values are:
|
3506
3591
|
#
|
3507
3592
|
# @option params [required, String] :status
|
3508
3593
|
# The status of the automated sensitive data discovery configuration for
|
3509
|
-
# an Amazon Macie account. Valid
|
3594
|
+
# an organization in Amazon Macie or a standalone Macie account. Valid
|
3595
|
+
# values are:
|
3510
3596
|
#
|
3511
3597
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
3512
3598
|
#
|
3513
3599
|
# @example Request syntax with placeholder values
|
3514
3600
|
#
|
3515
3601
|
# resp = client.update_automated_discovery_configuration({
|
3602
|
+
# auto_enable_organization_members: "ALL", # accepts ALL, NEW, NONE
|
3516
3603
|
# status: "ENABLED", # required, accepts ENABLED, DISABLED
|
3517
3604
|
# })
|
3518
3605
|
#
|
@@ -3849,10 +3936,9 @@ module Aws::Macie2
|
|
3849
3936
|
#
|
3850
3937
|
# @option params [Types::SensitivityInspectionTemplateExcludes] :excludes
|
3851
3938
|
# Specifies managed data identifiers to exclude (not use) when
|
3852
|
-
# performing automated sensitive data discovery
|
3853
|
-
#
|
3854
|
-
#
|
3855
|
-
# identifiers][1] in the *Amazon Macie User Guide*.
|
3939
|
+
# performing automated sensitive data discovery. For information about
|
3940
|
+
# the managed data identifiers that Amazon Macie currently provides, see
|
3941
|
+
# [Using managed data identifiers][1] in the *Amazon Macie User Guide*.
|
3856
3942
|
#
|
3857
3943
|
#
|
3858
3944
|
#
|
@@ -3863,11 +3949,10 @@ module Aws::Macie2
|
|
3863
3949
|
# @option params [Types::SensitivityInspectionTemplateIncludes] :includes
|
3864
3950
|
# Specifies the allow lists, custom data identifiers, and managed data
|
3865
3951
|
# identifiers to include (use) when performing automated sensitive data
|
3866
|
-
# discovery
|
3867
|
-
#
|
3868
|
-
#
|
3869
|
-
#
|
3870
|
-
# *Amazon Macie User Guide*.
|
3952
|
+
# discovery. The configuration must specify at least one custom data
|
3953
|
+
# identifier or managed data identifier. For information about the
|
3954
|
+
# managed data identifiers that Amazon Macie currently provides, see
|
3955
|
+
# [Using managed data identifiers][1] in the *Amazon Macie User Guide*.
|
3871
3956
|
#
|
3872
3957
|
#
|
3873
3958
|
#
|
@@ -3912,7 +3997,7 @@ module Aws::Macie2
|
|
3912
3997
|
params: params,
|
3913
3998
|
config: config)
|
3914
3999
|
context[:gem_name] = 'aws-sdk-macie2'
|
3915
|
-
context[:gem_version] = '1.
|
4000
|
+
context[:gem_version] = '1.70.0'
|
3916
4001
|
Seahorse::Client::Request.new(handlers, context)
|
3917
4002
|
end
|
3918
4003
|
|
@@ -28,6 +28,13 @@ module Aws::Macie2
|
|
28
28
|
AllowsUnencryptedObjectUploads = Shapes::StringShape.new(name: 'AllowsUnencryptedObjectUploads')
|
29
29
|
ApiCallDetails = Shapes::StructureShape.new(name: 'ApiCallDetails')
|
30
30
|
AssumedRole = Shapes::StructureShape.new(name: 'AssumedRole')
|
31
|
+
AutoEnableMode = Shapes::StringShape.new(name: 'AutoEnableMode')
|
32
|
+
AutomatedDiscoveryAccount = Shapes::StructureShape.new(name: 'AutomatedDiscoveryAccount')
|
33
|
+
AutomatedDiscoveryAccountStatus = Shapes::StringShape.new(name: 'AutomatedDiscoveryAccountStatus')
|
34
|
+
AutomatedDiscoveryAccountUpdate = Shapes::StructureShape.new(name: 'AutomatedDiscoveryAccountUpdate')
|
35
|
+
AutomatedDiscoveryAccountUpdateError = Shapes::StructureShape.new(name: 'AutomatedDiscoveryAccountUpdateError')
|
36
|
+
AutomatedDiscoveryAccountUpdateErrorCode = Shapes::StringShape.new(name: 'AutomatedDiscoveryAccountUpdateErrorCode')
|
37
|
+
AutomatedDiscoveryMonitoringStatus = Shapes::StringShape.new(name: 'AutomatedDiscoveryMonitoringStatus')
|
31
38
|
AutomatedDiscoveryStatus = Shapes::StringShape.new(name: 'AutomatedDiscoveryStatus')
|
32
39
|
AvailabilityCode = Shapes::StringShape.new(name: 'AvailabilityCode')
|
33
40
|
AwsAccount = Shapes::StructureShape.new(name: 'AwsAccount')
|
@@ -35,6 +42,8 @@ module Aws::Macie2
|
|
35
42
|
BatchGetCustomDataIdentifierSummary = Shapes::StructureShape.new(name: 'BatchGetCustomDataIdentifierSummary')
|
36
43
|
BatchGetCustomDataIdentifiersRequest = Shapes::StructureShape.new(name: 'BatchGetCustomDataIdentifiersRequest')
|
37
44
|
BatchGetCustomDataIdentifiersResponse = Shapes::StructureShape.new(name: 'BatchGetCustomDataIdentifiersResponse')
|
45
|
+
BatchUpdateAutomatedDiscoveryAccountsRequest = Shapes::StructureShape.new(name: 'BatchUpdateAutomatedDiscoveryAccountsRequest')
|
46
|
+
BatchUpdateAutomatedDiscoveryAccountsResponse = Shapes::StructureShape.new(name: 'BatchUpdateAutomatedDiscoveryAccountsResponse')
|
38
47
|
BlockPublicAccess = Shapes::StructureShape.new(name: 'BlockPublicAccess')
|
39
48
|
BucketCountByEffectivePermission = Shapes::StructureShape.new(name: 'BucketCountByEffectivePermission')
|
40
49
|
BucketCountByEncryptionType = Shapes::StructureShape.new(name: 'BucketCountByEncryptionType')
|
@@ -213,6 +222,8 @@ module Aws::Macie2
|
|
213
222
|
LastRunErrorStatusCode = Shapes::StringShape.new(name: 'LastRunErrorStatusCode')
|
214
223
|
ListAllowListsRequest = Shapes::StructureShape.new(name: 'ListAllowListsRequest')
|
215
224
|
ListAllowListsResponse = Shapes::StructureShape.new(name: 'ListAllowListsResponse')
|
225
|
+
ListAutomatedDiscoveryAccountsRequest = Shapes::StructureShape.new(name: 'ListAutomatedDiscoveryAccountsRequest')
|
226
|
+
ListAutomatedDiscoveryAccountsResponse = Shapes::StructureShape.new(name: 'ListAutomatedDiscoveryAccountsResponse')
|
216
227
|
ListClassificationJobsRequest = Shapes::StructureShape.new(name: 'ListClassificationJobsRequest')
|
217
228
|
ListClassificationJobsResponse = Shapes::StructureShape.new(name: 'ListClassificationJobsResponse')
|
218
229
|
ListClassificationScopesRequest = Shapes::StructureShape.new(name: 'ListClassificationScopesRequest')
|
@@ -400,6 +411,9 @@ module Aws::Macie2
|
|
400
411
|
__integer = Shapes::IntegerShape.new(name: '__integer')
|
401
412
|
__listOfAdminAccount = Shapes::ListShape.new(name: '__listOfAdminAccount')
|
402
413
|
__listOfAllowListSummary = Shapes::ListShape.new(name: '__listOfAllowListSummary')
|
414
|
+
__listOfAutomatedDiscoveryAccount = Shapes::ListShape.new(name: '__listOfAutomatedDiscoveryAccount')
|
415
|
+
__listOfAutomatedDiscoveryAccountUpdate = Shapes::ListShape.new(name: '__listOfAutomatedDiscoveryAccountUpdate')
|
416
|
+
__listOfAutomatedDiscoveryAccountUpdateError = Shapes::ListShape.new(name: '__listOfAutomatedDiscoveryAccountUpdateError')
|
403
417
|
__listOfBatchGetCustomDataIdentifierSummary = Shapes::ListShape.new(name: '__listOfBatchGetCustomDataIdentifierSummary')
|
404
418
|
__listOfBucketMetadata = Shapes::ListShape.new(name: '__listOfBucketMetadata')
|
405
419
|
__listOfClassificationScopeSummary = Shapes::ListShape.new(name: '__listOfClassificationScopeSummary')
|
@@ -503,6 +517,18 @@ module Aws::Macie2
|
|
503
517
|
AssumedRole.add_member(:session_context, Shapes::ShapeRef.new(shape: SessionContext, location_name: "sessionContext"))
|
504
518
|
AssumedRole.struct_class = Types::AssumedRole
|
505
519
|
|
520
|
+
AutomatedDiscoveryAccount.add_member(:account_id, Shapes::ShapeRef.new(shape: __string, location_name: "accountId"))
|
521
|
+
AutomatedDiscoveryAccount.add_member(:status, Shapes::ShapeRef.new(shape: AutomatedDiscoveryAccountStatus, location_name: "status"))
|
522
|
+
AutomatedDiscoveryAccount.struct_class = Types::AutomatedDiscoveryAccount
|
523
|
+
|
524
|
+
AutomatedDiscoveryAccountUpdate.add_member(:account_id, Shapes::ShapeRef.new(shape: __string, location_name: "accountId"))
|
525
|
+
AutomatedDiscoveryAccountUpdate.add_member(:status, Shapes::ShapeRef.new(shape: AutomatedDiscoveryAccountStatus, location_name: "status"))
|
526
|
+
AutomatedDiscoveryAccountUpdate.struct_class = Types::AutomatedDiscoveryAccountUpdate
|
527
|
+
|
528
|
+
AutomatedDiscoveryAccountUpdateError.add_member(:account_id, Shapes::ShapeRef.new(shape: __string, location_name: "accountId"))
|
529
|
+
AutomatedDiscoveryAccountUpdateError.add_member(:error_code, Shapes::ShapeRef.new(shape: AutomatedDiscoveryAccountUpdateErrorCode, location_name: "errorCode"))
|
530
|
+
AutomatedDiscoveryAccountUpdateError.struct_class = Types::AutomatedDiscoveryAccountUpdateError
|
531
|
+
|
506
532
|
AwsAccount.add_member(:account_id, Shapes::ShapeRef.new(shape: __string, location_name: "accountId"))
|
507
533
|
AwsAccount.add_member(:principal_id, Shapes::ShapeRef.new(shape: __string, location_name: "principalId"))
|
508
534
|
AwsAccount.struct_class = Types::AwsAccount
|
@@ -525,6 +551,12 @@ module Aws::Macie2
|
|
525
551
|
BatchGetCustomDataIdentifiersResponse.add_member(:not_found_identifier_ids, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "notFoundIdentifierIds"))
|
526
552
|
BatchGetCustomDataIdentifiersResponse.struct_class = Types::BatchGetCustomDataIdentifiersResponse
|
527
553
|
|
554
|
+
BatchUpdateAutomatedDiscoveryAccountsRequest.add_member(:accounts, Shapes::ShapeRef.new(shape: __listOfAutomatedDiscoveryAccountUpdate, location_name: "accounts"))
|
555
|
+
BatchUpdateAutomatedDiscoveryAccountsRequest.struct_class = Types::BatchUpdateAutomatedDiscoveryAccountsRequest
|
556
|
+
|
557
|
+
BatchUpdateAutomatedDiscoveryAccountsResponse.add_member(:errors, Shapes::ShapeRef.new(shape: __listOfAutomatedDiscoveryAccountUpdateError, location_name: "errors"))
|
558
|
+
BatchUpdateAutomatedDiscoveryAccountsResponse.struct_class = Types::BatchUpdateAutomatedDiscoveryAccountsResponse
|
559
|
+
|
528
560
|
BlockPublicAccess.add_member(:block_public_acls, Shapes::ShapeRef.new(shape: __boolean, location_name: "blockPublicAcls"))
|
529
561
|
BlockPublicAccess.add_member(:block_public_policy, Shapes::ShapeRef.new(shape: __boolean, location_name: "blockPublicPolicy"))
|
530
562
|
BlockPublicAccess.add_member(:ignore_public_acls, Shapes::ShapeRef.new(shape: __boolean, location_name: "ignorePublicAcls"))
|
@@ -573,6 +605,7 @@ module Aws::Macie2
|
|
573
605
|
|
574
606
|
BucketMetadata.add_member(:account_id, Shapes::ShapeRef.new(shape: __string, location_name: "accountId"))
|
575
607
|
BucketMetadata.add_member(:allows_unencrypted_object_uploads, Shapes::ShapeRef.new(shape: AllowsUnencryptedObjectUploads, location_name: "allowsUnencryptedObjectUploads"))
|
608
|
+
BucketMetadata.add_member(:automated_discovery_monitoring_status, Shapes::ShapeRef.new(shape: AutomatedDiscoveryMonitoringStatus, location_name: "automatedDiscoveryMonitoringStatus"))
|
576
609
|
BucketMetadata.add_member(:bucket_arn, Shapes::ShapeRef.new(shape: __string, location_name: "bucketArn"))
|
577
610
|
BucketMetadata.add_member(:bucket_created_at, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "bucketCreatedAt"))
|
578
611
|
BucketMetadata.add_member(:bucket_name, Shapes::ShapeRef.new(shape: __string, location_name: "bucketName"))
|
@@ -983,6 +1016,7 @@ module Aws::Macie2
|
|
983
1016
|
|
984
1017
|
GetAutomatedDiscoveryConfigurationRequest.struct_class = Types::GetAutomatedDiscoveryConfigurationRequest
|
985
1018
|
|
1019
|
+
GetAutomatedDiscoveryConfigurationResponse.add_member(:auto_enable_organization_members, Shapes::ShapeRef.new(shape: AutoEnableMode, location_name: "autoEnableOrganizationMembers"))
|
986
1020
|
GetAutomatedDiscoveryConfigurationResponse.add_member(:classification_scope_id, Shapes::ShapeRef.new(shape: ClassificationScopeId, location_name: "classificationScopeId"))
|
987
1021
|
GetAutomatedDiscoveryConfigurationResponse.add_member(:disabled_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "disabledAt"))
|
988
1022
|
GetAutomatedDiscoveryConfigurationResponse.add_member(:first_enabled_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "firstEnabledAt"))
|
@@ -1255,6 +1289,15 @@ module Aws::Macie2
|
|
1255
1289
|
ListAllowListsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "nextToken"))
|
1256
1290
|
ListAllowListsResponse.struct_class = Types::ListAllowListsResponse
|
1257
1291
|
|
1292
|
+
ListAutomatedDiscoveryAccountsRequest.add_member(:account_ids, Shapes::ShapeRef.new(shape: __listOf__string, location: "querystring", location_name: "accountIds"))
|
1293
|
+
ListAutomatedDiscoveryAccountsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
1294
|
+
ListAutomatedDiscoveryAccountsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken"))
|
1295
|
+
ListAutomatedDiscoveryAccountsRequest.struct_class = Types::ListAutomatedDiscoveryAccountsRequest
|
1296
|
+
|
1297
|
+
ListAutomatedDiscoveryAccountsResponse.add_member(:items, Shapes::ShapeRef.new(shape: __listOfAutomatedDiscoveryAccount, location_name: "items"))
|
1298
|
+
ListAutomatedDiscoveryAccountsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "nextToken"))
|
1299
|
+
ListAutomatedDiscoveryAccountsResponse.struct_class = Types::ListAutomatedDiscoveryAccountsResponse
|
1300
|
+
|
1258
1301
|
ListClassificationJobsRequest.add_member(:filter_criteria, Shapes::ShapeRef.new(shape: ListJobsFilterCriteria, location_name: "filterCriteria"))
|
1259
1302
|
ListClassificationJobsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: __integer, location_name: "maxResults"))
|
1260
1303
|
ListClassificationJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "nextToken"))
|
@@ -1380,6 +1423,7 @@ module Aws::Macie2
|
|
1380
1423
|
ManagedDataIdentifierSummary.struct_class = Types::ManagedDataIdentifierSummary
|
1381
1424
|
|
1382
1425
|
MatchingBucket.add_member(:account_id, Shapes::ShapeRef.new(shape: __string, location_name: "accountId"))
|
1426
|
+
MatchingBucket.add_member(:automated_discovery_monitoring_status, Shapes::ShapeRef.new(shape: AutomatedDiscoveryMonitoringStatus, location_name: "automatedDiscoveryMonitoringStatus"))
|
1383
1427
|
MatchingBucket.add_member(:bucket_name, Shapes::ShapeRef.new(shape: __string, location_name: "bucketName"))
|
1384
1428
|
MatchingBucket.add_member(:classifiable_object_count, Shapes::ShapeRef.new(shape: __long, location_name: "classifiableObjectCount"))
|
1385
1429
|
MatchingBucket.add_member(:classifiable_size_in_bytes, Shapes::ShapeRef.new(shape: __long, location_name: "classifiableSizeInBytes"))
|
@@ -1765,6 +1809,7 @@ module Aws::Macie2
|
|
1765
1809
|
UpdateAllowListResponse.add_member(:id, Shapes::ShapeRef.new(shape: __stringMin22Max22PatternAZ0922, location_name: "id"))
|
1766
1810
|
UpdateAllowListResponse.struct_class = Types::UpdateAllowListResponse
|
1767
1811
|
|
1812
|
+
UpdateAutomatedDiscoveryConfigurationRequest.add_member(:auto_enable_organization_members, Shapes::ShapeRef.new(shape: AutoEnableMode, location_name: "autoEnableOrganizationMembers"))
|
1768
1813
|
UpdateAutomatedDiscoveryConfigurationRequest.add_member(:status, Shapes::ShapeRef.new(shape: AutomatedDiscoveryStatus, required: true, location_name: "status"))
|
1769
1814
|
UpdateAutomatedDiscoveryConfigurationRequest.struct_class = Types::UpdateAutomatedDiscoveryConfigurationRequest
|
1770
1815
|
|
@@ -1899,6 +1944,12 @@ module Aws::Macie2
|
|
1899
1944
|
|
1900
1945
|
__listOfAllowListSummary.member = Shapes::ShapeRef.new(shape: AllowListSummary)
|
1901
1946
|
|
1947
|
+
__listOfAutomatedDiscoveryAccount.member = Shapes::ShapeRef.new(shape: AutomatedDiscoveryAccount)
|
1948
|
+
|
1949
|
+
__listOfAutomatedDiscoveryAccountUpdate.member = Shapes::ShapeRef.new(shape: AutomatedDiscoveryAccountUpdate)
|
1950
|
+
|
1951
|
+
__listOfAutomatedDiscoveryAccountUpdateError.member = Shapes::ShapeRef.new(shape: AutomatedDiscoveryAccountUpdateError)
|
1952
|
+
|
1902
1953
|
__listOfBatchGetCustomDataIdentifierSummary.member = Shapes::ShapeRef.new(shape: BatchGetCustomDataIdentifierSummary)
|
1903
1954
|
|
1904
1955
|
__listOfBucketMetadata.member = Shapes::ShapeRef.new(shape: BucketMetadata)
|
@@ -1977,6 +2028,7 @@ module Aws::Macie2
|
|
1977
2028
|
|
1978
2029
|
api.metadata = {
|
1979
2030
|
"apiVersion" => "2020-01-01",
|
2031
|
+
"auth" => ["aws.auth#sigv4"],
|
1980
2032
|
"endpointPrefix" => "macie2",
|
1981
2033
|
"jsonVersion" => "1.1",
|
1982
2034
|
"protocol" => "rest-json",
|
@@ -2017,6 +2069,19 @@ module Aws::Macie2
|
|
2017
2069
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
2018
2070
|
end)
|
2019
2071
|
|
2072
|
+
api.add_operation(:batch_update_automated_discovery_accounts, Seahorse::Model::Operation.new.tap do |o|
|
2073
|
+
o.name = "BatchUpdateAutomatedDiscoveryAccounts"
|
2074
|
+
o.http_method = "PATCH"
|
2075
|
+
o.http_request_uri = "/automated-discovery/accounts"
|
2076
|
+
o.input = Shapes::ShapeRef.new(shape: BatchUpdateAutomatedDiscoveryAccountsRequest)
|
2077
|
+
o.output = Shapes::ShapeRef.new(shape: BatchUpdateAutomatedDiscoveryAccountsResponse)
|
2078
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
2079
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
2080
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
2081
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
2082
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
2083
|
+
end)
|
2084
|
+
|
2020
2085
|
api.add_operation(:create_allow_list, Seahorse::Model::Operation.new.tap do |o|
|
2021
2086
|
o.name = "CreateAllowList"
|
2022
2087
|
o.http_method = "POST"
|
@@ -2703,6 +2768,25 @@ module Aws::Macie2
|
|
2703
2768
|
)
|
2704
2769
|
end)
|
2705
2770
|
|
2771
|
+
api.add_operation(:list_automated_discovery_accounts, Seahorse::Model::Operation.new.tap do |o|
|
2772
|
+
o.name = "ListAutomatedDiscoveryAccounts"
|
2773
|
+
o.http_method = "GET"
|
2774
|
+
o.http_request_uri = "/automated-discovery/accounts"
|
2775
|
+
o.input = Shapes::ShapeRef.new(shape: ListAutomatedDiscoveryAccountsRequest)
|
2776
|
+
o.output = Shapes::ShapeRef.new(shape: ListAutomatedDiscoveryAccountsResponse)
|
2777
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
2778
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
2779
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
2780
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
2781
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
2782
|
+
o[:pager] = Aws::Pager.new(
|
2783
|
+
limit_key: "max_results",
|
2784
|
+
tokens: {
|
2785
|
+
"next_token" => "next_token"
|
2786
|
+
}
|
2787
|
+
)
|
2788
|
+
end)
|
2789
|
+
|
2706
2790
|
api.add_operation(:list_classification_jobs, Seahorse::Model::Operation.new.tap do |o|
|
2707
2791
|
o.name = "ListClassificationJobs"
|
2708
2792
|
o.http_method = "POST"
|
@@ -40,6 +40,20 @@ module Aws::Macie2
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
43
|
+
class BatchUpdateAutomatedDiscoveryAccounts
|
44
|
+
def self.build(context)
|
45
|
+
unless context.config.regional_endpoint
|
46
|
+
endpoint = context.config.endpoint.to_s
|
47
|
+
end
|
48
|
+
Aws::Macie2::EndpointParameters.new(
|
49
|
+
region: context.config.region,
|
50
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
51
|
+
use_fips: context.config.use_fips_endpoint,
|
52
|
+
endpoint: endpoint,
|
53
|
+
)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
43
57
|
class CreateAllowList
|
44
58
|
def self.build(context)
|
45
59
|
unless context.config.regional_endpoint
|
@@ -684,6 +698,20 @@ module Aws::Macie2
|
|
684
698
|
end
|
685
699
|
end
|
686
700
|
|
701
|
+
class ListAutomatedDiscoveryAccounts
|
702
|
+
def self.build(context)
|
703
|
+
unless context.config.regional_endpoint
|
704
|
+
endpoint = context.config.endpoint.to_s
|
705
|
+
end
|
706
|
+
Aws::Macie2::EndpointParameters.new(
|
707
|
+
region: context.config.region,
|
708
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
709
|
+
use_fips: context.config.use_fips_endpoint,
|
710
|
+
endpoint: endpoint,
|
711
|
+
)
|
712
|
+
end
|
713
|
+
end
|
714
|
+
|
687
715
|
class ListClassificationJobs
|
688
716
|
def self.build(context)
|
689
717
|
unless context.config.regional_endpoint
|
@@ -62,6 +62,8 @@ module Aws::Macie2
|
|
62
62
|
Aws::Macie2::Endpoints::AcceptInvitation.build(context)
|
63
63
|
when :batch_get_custom_data_identifiers
|
64
64
|
Aws::Macie2::Endpoints::BatchGetCustomDataIdentifiers.build(context)
|
65
|
+
when :batch_update_automated_discovery_accounts
|
66
|
+
Aws::Macie2::Endpoints::BatchUpdateAutomatedDiscoveryAccounts.build(context)
|
65
67
|
when :create_allow_list
|
66
68
|
Aws::Macie2::Endpoints::CreateAllowList.build(context)
|
67
69
|
when :create_classification_job
|
@@ -154,6 +156,8 @@ module Aws::Macie2
|
|
154
156
|
Aws::Macie2::Endpoints::GetUsageTotals.build(context)
|
155
157
|
when :list_allow_lists
|
156
158
|
Aws::Macie2::Endpoints::ListAllowLists.build(context)
|
159
|
+
when :list_automated_discovery_accounts
|
160
|
+
Aws::Macie2::Endpoints::ListAutomatedDiscoveryAccounts.build(context)
|
157
161
|
when :list_classification_jobs
|
158
162
|
Aws::Macie2::Endpoints::ListClassificationJobs.build(context)
|
159
163
|
when :list_classification_scopes
|