aws-sdk-macie2 1.2.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9323daf274a3d568f2587d30798fea1e8dd726c5a83ece2b968b8bba4b71085b
4
- data.tar.gz: 4d13643f0955b4e8e1045ca7172d42febd0d7ef6a0f219e27cb754765593864a
3
+ metadata.gz: ee2cde70f8885abb6f361b9b9ffdaf0fe735e9b71b220b81a0b3a3ff1d064c28
4
+ data.tar.gz: 6059d20a0e6834f00bc0da5366bccab9509d42f0607ec61b837d35c4fef15124
5
5
  SHA512:
6
- metadata.gz: 76943a9f4e73c41574238508d5eae62d69f71ed2f2aebb8a133675357795ccca899bcde950f6805ae1c4d9ebef3d466161009dab8d92133071a674d9fdf22b62
7
- data.tar.gz: 2f07951cfdc7318fdd8b540db89f04b317d208091b6e58eebf0ffd5429a3d53d3ce03df8dcc96718a4bbaaa5190e7a95923b86a57b7dac792b3931362d02b66b
6
+ metadata.gz: 8db40a4546a5e6da768c159bc8373e0c353219b1669240a400fa2ebcecd67f37c00ee545e59e0cc33466b9f33ab2f44312b84f2a7f2b37fd9ea112f9f11231d6
7
+ data.tar.gz: be2b727cc11bcf0f22fca2ca95fb7ddc716c787966b09f6b8919a46306899e6f40555b417da63c546c0cd82b568c201b685a088fe89e5bc290f7260504f454b2
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -45,6 +47,6 @@ require_relative 'aws-sdk-macie2/customizations'
45
47
  # @service
46
48
  module Aws::Macie2
47
49
 
48
- GEM_VERSION = '1.2.0'
50
+ GEM_VERSION = '1.7.0'
49
51
 
50
52
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
26
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
30
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
31
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
29
32
 
@@ -69,6 +72,7 @@ module Aws::Macie2
69
72
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
70
73
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
71
74
  add_plugin(Aws::Plugins::TransferEncoding)
75
+ add_plugin(Aws::Plugins::HttpChecksum)
72
76
  add_plugin(Aws::Plugins::SignatureV4)
73
77
  add_plugin(Aws::Plugins::Protocols::RestJson)
74
78
 
@@ -161,7 +165,7 @@ module Aws::Macie2
161
165
  # @option options [String] :endpoint
162
166
  # The client endpoint is normally constructed from the `:region`
163
167
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be a valid HTTP(S) URI.
168
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
165
169
  #
166
170
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
171
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -333,27 +337,6 @@ module Aws::Macie2
333
337
  req.send_request(options)
334
338
  end
335
339
 
336
- # Archives one or more findings.
337
- #
338
- # @option params [required, Array<String>] :finding_ids
339
- #
340
- # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
341
- #
342
- # @example Request syntax with placeholder values
343
- #
344
- # resp = client.archive_findings({
345
- # finding_ids: ["__string"], # required
346
- # })
347
- #
348
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ArchiveFindings AWS API Documentation
349
- #
350
- # @overload archive_findings(params = {})
351
- # @param [Hash] params ({})
352
- def archive_findings(params = {}, options = {})
353
- req = build_request(:archive_findings, params)
354
- req.send_request(options)
355
- end
356
-
357
340
  # Retrieves information about one or more custom data identifiers.
358
341
  #
359
342
  # @option params [Array<String>] :ids
@@ -579,8 +562,9 @@ module Aws::Macie2
579
562
  # filter.
580
563
  #
581
564
  # @option params [required, String] :action
582
- # The action to perform on findings that meet the filter criteria. Valid
583
- # values are:
565
+ # The action to perform on findings that meet the filter criteria. To
566
+ # suppress (automatically archive) findings that meet the criteria, set
567
+ # this value to ARCHIVE. Valid values are:
584
568
  #
585
569
  # @option params [String] :client_token
586
570
  # **A suitable default value is auto-generated.** You should normally
@@ -773,7 +757,7 @@ module Aws::Macie2
773
757
  req.send_request(options)
774
758
  end
775
759
 
776
- # Deletes a custom data identifier.
760
+ # Soft deletes a custom data identifier.
777
761
  #
778
762
  # @option params [required, String] :id
779
763
  #
@@ -888,6 +872,8 @@ module Aws::Macie2
888
872
  # * {Types::DescribeBucketsResponse#buckets #buckets} => Array&lt;Types::BucketMetadata&gt;
889
873
  # * {Types::DescribeBucketsResponse#next_token #next_token} => String
890
874
  #
875
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
876
+ #
891
877
  # @example Request syntax with placeholder values
892
878
  #
893
879
  # resp = client.describe_buckets({
@@ -1147,9 +1133,10 @@ module Aws::Macie2
1147
1133
  # not need to pass this option.**
1148
1134
  #
1149
1135
  # @option params [String] :finding_publishing_frequency
1150
- # The frequency with which Amazon Macie publishes findings for an
1151
- # account. This includes adding findings to AWS Security Hub and
1152
- # exporting finding events to Amazon CloudWatch. Valid values are:
1136
+ # The frequency with which Amazon Macie publishes updates to policy
1137
+ # findings for an account. This includes publishing updates to AWS
1138
+ # Security Hub and Amazon EventBridge (formerly called Amazon CloudWatch
1139
+ # Events). Valid values are:
1153
1140
  #
1154
1141
  # @option params [String] :status
1155
1142
  # The status of an Amazon Macie account. Valid values are:
@@ -1250,7 +1237,7 @@ module Aws::Macie2
1250
1237
  req.send_request(options)
1251
1238
  end
1252
1239
 
1253
- # Retrieves the configuration settings for exporting data classification
1240
+ # Retrieves the configuration settings for storing data classification
1254
1241
  # results.
1255
1242
  #
1256
1243
  # @return [Types::GetClassificationExportConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -1334,8 +1321,8 @@ module Aws::Macie2
1334
1321
  # @option params [Integer] :size
1335
1322
  #
1336
1323
  # @option params [Types::FindingStatisticsSortCriteria] :sort_criteria
1337
- # Specifies criteria for sorting the results of a query for information
1338
- # about findings.
1324
+ # Specifies criteria for sorting the results of a query that retrieves
1325
+ # aggregated statistical data about findings.
1339
1326
  #
1340
1327
  # @return [Types::GetFindingStatisticsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1341
1328
  #
@@ -1482,7 +1469,7 @@ module Aws::Macie2
1482
1469
  # resp.findings[0].region #=> String
1483
1470
  # resp.findings[0].resources_affected.s3_bucket.arn #=> String
1484
1471
  # resp.findings[0].resources_affected.s3_bucket.created_at #=> Time
1485
- # resp.findings[0].resources_affected.s3_bucket.default_server_side_encryption.encryption_type #=> String, one of "NONE", "AES256", "aws:kms"
1472
+ # resp.findings[0].resources_affected.s3_bucket.default_server_side_encryption.encryption_type #=> String, one of "NONE", "AES256", "aws:kms", "UNKNOWN"
1486
1473
  # resp.findings[0].resources_affected.s3_bucket.default_server_side_encryption.kms_master_key_id #=> String
1487
1474
  # resp.findings[0].resources_affected.s3_bucket.name #=> String
1488
1475
  # resp.findings[0].resources_affected.s3_bucket.owner.display_name #=> String
@@ -1510,7 +1497,7 @@ module Aws::Macie2
1510
1497
  # resp.findings[0].resources_affected.s3_object.last_modified #=> Time
1511
1498
  # resp.findings[0].resources_affected.s3_object.path #=> String
1512
1499
  # resp.findings[0].resources_affected.s3_object.public_access #=> Boolean
1513
- # resp.findings[0].resources_affected.s3_object.server_side_encryption.encryption_type #=> String, one of "NONE", "AES256", "aws:kms"
1500
+ # resp.findings[0].resources_affected.s3_object.server_side_encryption.encryption_type #=> String, one of "NONE", "AES256", "aws:kms", "UNKNOWN"
1514
1501
  # resp.findings[0].resources_affected.s3_object.server_side_encryption.kms_master_key_id #=> String
1515
1502
  # resp.findings[0].resources_affected.s3_object.size #=> Integer
1516
1503
  # resp.findings[0].resources_affected.s3_object.storage_class #=> String, one of "STANDARD", "REDUCED_REDUNDANCY", "STANDARD_IA", "INTELLIGENT_TIERING", "DEEP_ARCHIVE", "ONEZONE_IA", "GLACIER"
@@ -1646,7 +1633,7 @@ module Aws::Macie2
1646
1633
  # resp.master.account_id #=> String
1647
1634
  # resp.master.invitation_id #=> String
1648
1635
  # resp.master.invited_at #=> Time
1649
- # resp.master.relationship_status #=> String, one of "Enabled", "Paused", "Invited", "Created", "Removed", "Resigned", "EmailVerificationInProgress", "EmailVerificationFailed"
1636
+ # resp.master.relationship_status #=> String, one of "Enabled", "Paused", "Invited", "Created", "Removed", "Resigned", "EmailVerificationInProgress", "EmailVerificationFailed", "RegionDisabled", "AccountSuspended"
1650
1637
  #
1651
1638
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetMasterAccount AWS API Documentation
1652
1639
  #
@@ -1686,7 +1673,7 @@ module Aws::Macie2
1686
1673
  # resp.email #=> String
1687
1674
  # resp.invited_at #=> Time
1688
1675
  # resp.master_account_id #=> String
1689
- # resp.relationship_status #=> String, one of "Enabled", "Paused", "Invited", "Created", "Removed", "Resigned", "EmailVerificationInProgress", "EmailVerificationFailed"
1676
+ # resp.relationship_status #=> String, one of "Enabled", "Paused", "Invited", "Created", "Removed", "Resigned", "EmailVerificationInProgress", "EmailVerificationFailed", "RegionDisabled", "AccountSuspended"
1690
1677
  # resp.tags #=> Hash
1691
1678
  # resp.tags["__string"] #=> String
1692
1679
  # resp.updated_at #=> Time
@@ -1718,19 +1705,22 @@ module Aws::Macie2
1718
1705
  # * {Types::GetUsageStatisticsResponse#next_token #next_token} => String
1719
1706
  # * {Types::GetUsageStatisticsResponse#records #records} => Array&lt;Types::UsageRecord&gt;
1720
1707
  #
1708
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1709
+ #
1721
1710
  # @example Request syntax with placeholder values
1722
1711
  #
1723
1712
  # resp = client.get_usage_statistics({
1724
1713
  # filter_by: [
1725
1714
  # {
1726
- # key: "accountId", # accepts accountId
1715
+ # comparator: "GT", # accepts GT, GTE, LT, LTE, EQ, NE, CONTAINS
1716
+ # key: "accountId", # accepts accountId, serviceLimit, freeTrialStartDate, total
1727
1717
  # values: ["__string"],
1728
1718
  # },
1729
1719
  # ],
1730
1720
  # max_results: 1,
1731
1721
  # next_token: "__string",
1732
1722
  # sort_by: {
1733
- # key: "accountId", # accepts accountId, total
1723
+ # key: "accountId", # accepts accountId, total, serviceLimitValue, freeTrialStartDate
1734
1724
  # order_by: "ASC", # accepts ASC, DESC
1735
1725
  # },
1736
1726
  # })
@@ -1780,8 +1770,8 @@ module Aws::Macie2
1780
1770
  req.send_request(options)
1781
1771
  end
1782
1772
 
1783
- # Retrieves information about the status and settings for one or more
1784
- # classification jobs.
1773
+ # Retrieves a subset of information about one or more classification
1774
+ # jobs.
1785
1775
  #
1786
1776
  # @option params [Types::ListJobsFilterCriteria] :filter_criteria
1787
1777
  # Specifies criteria for filtering the results of a request for
@@ -1800,6 +1790,8 @@ module Aws::Macie2
1800
1790
  # * {Types::ListClassificationJobsResponse#items #items} => Array&lt;Types::JobSummary&gt;
1801
1791
  # * {Types::ListClassificationJobsResponse#next_token #next_token} => String
1802
1792
  #
1793
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1794
+ #
1803
1795
  # @example Request syntax with placeholder values
1804
1796
  #
1805
1797
  # resp = client.list_classification_jobs({
@@ -1862,6 +1854,8 @@ module Aws::Macie2
1862
1854
  # * {Types::ListCustomDataIdentifiersResponse#items #items} => Array&lt;Types::CustomDataIdentifierSummary&gt;
1863
1855
  # * {Types::ListCustomDataIdentifiersResponse#next_token #next_token} => String
1864
1856
  #
1857
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1858
+ #
1865
1859
  # @example Request syntax with placeholder values
1866
1860
  #
1867
1861
  # resp = client.list_custom_data_identifiers({
@@ -1907,6 +1901,8 @@ module Aws::Macie2
1907
1901
  # * {Types::ListFindingsResponse#finding_ids #finding_ids} => Array&lt;String&gt;
1908
1902
  # * {Types::ListFindingsResponse#next_token #next_token} => String
1909
1903
  #
1904
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1905
+ #
1910
1906
  # @example Request syntax with placeholder values
1911
1907
  #
1912
1908
  # resp = client.list_findings({
@@ -1957,6 +1953,8 @@ module Aws::Macie2
1957
1953
  # * {Types::ListFindingsFiltersResponse#findings_filter_list_items #findings_filter_list_items} => Array&lt;Types::FindingsFilterListItem&gt;
1958
1954
  # * {Types::ListFindingsFiltersResponse#next_token #next_token} => String
1959
1955
  #
1956
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1957
+ #
1960
1958
  # @example Request syntax with placeholder values
1961
1959
  #
1962
1960
  # resp = client.list_findings_filters({
@@ -1967,6 +1965,7 @@ module Aws::Macie2
1967
1965
  # @example Response structure
1968
1966
  #
1969
1967
  # resp.findings_filter_list_items #=> Array
1968
+ # resp.findings_filter_list_items[0].action #=> String, one of "ARCHIVE", "NOOP"
1970
1969
  # resp.findings_filter_list_items[0].arn #=> String
1971
1970
  # resp.findings_filter_list_items[0].id #=> String
1972
1971
  # resp.findings_filter_list_items[0].name #=> String
@@ -1995,6 +1994,8 @@ module Aws::Macie2
1995
1994
  # * {Types::ListInvitationsResponse#invitations #invitations} => Array&lt;Types::Invitation&gt;
1996
1995
  # * {Types::ListInvitationsResponse#next_token #next_token} => String
1997
1996
  #
1997
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1998
+ #
1998
1999
  # @example Request syntax with placeholder values
1999
2000
  #
2000
2001
  # resp = client.list_invitations({
@@ -2008,7 +2009,7 @@ module Aws::Macie2
2008
2009
  # resp.invitations[0].account_id #=> String
2009
2010
  # resp.invitations[0].invitation_id #=> String
2010
2011
  # resp.invitations[0].invited_at #=> Time
2011
- # resp.invitations[0].relationship_status #=> String, one of "Enabled", "Paused", "Invited", "Created", "Removed", "Resigned", "EmailVerificationInProgress", "EmailVerificationFailed"
2012
+ # resp.invitations[0].relationship_status #=> String, one of "Enabled", "Paused", "Invited", "Created", "Removed", "Resigned", "EmailVerificationInProgress", "EmailVerificationFailed", "RegionDisabled", "AccountSuspended"
2012
2013
  # resp.next_token #=> String
2013
2014
  #
2014
2015
  # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListInvitations AWS API Documentation
@@ -2034,6 +2035,8 @@ module Aws::Macie2
2034
2035
  # * {Types::ListMembersResponse#members #members} => Array&lt;Types::Member&gt;
2035
2036
  # * {Types::ListMembersResponse#next_token #next_token} => String
2036
2037
  #
2038
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2039
+ #
2037
2040
  # @example Request syntax with placeholder values
2038
2041
  #
2039
2042
  # resp = client.list_members({
@@ -2050,7 +2053,7 @@ module Aws::Macie2
2050
2053
  # resp.members[0].email #=> String
2051
2054
  # resp.members[0].invited_at #=> Time
2052
2055
  # resp.members[0].master_account_id #=> String
2053
- # resp.members[0].relationship_status #=> String, one of "Enabled", "Paused", "Invited", "Created", "Removed", "Resigned", "EmailVerificationInProgress", "EmailVerificationFailed"
2056
+ # resp.members[0].relationship_status #=> String, one of "Enabled", "Paused", "Invited", "Created", "Removed", "Resigned", "EmailVerificationInProgress", "EmailVerificationFailed", "RegionDisabled", "AccountSuspended"
2054
2057
  # resp.members[0].tags #=> Hash
2055
2058
  # resp.members[0].tags["__string"] #=> String
2056
2059
  # resp.members[0].updated_at #=> Time
@@ -2077,6 +2080,8 @@ module Aws::Macie2
2077
2080
  # * {Types::ListOrganizationAdminAccountsResponse#admin_accounts #admin_accounts} => Array&lt;Types::AdminAccount&gt;
2078
2081
  # * {Types::ListOrganizationAdminAccountsResponse#next_token #next_token} => String
2079
2082
  #
2083
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2084
+ #
2080
2085
  # @example Request syntax with placeholder values
2081
2086
  #
2082
2087
  # resp = client.list_organization_admin_accounts({
@@ -2130,13 +2135,13 @@ module Aws::Macie2
2130
2135
  req.send_request(options)
2131
2136
  end
2132
2137
 
2133
- # Creates or updates the configuration settings for exporting data
2138
+ # Creates or updates the configuration settings for storing data
2134
2139
  # classification results.
2135
2140
  #
2136
2141
  # @option params [required, Types::ClassificationExportConfiguration] :configuration
2137
- # Specifies where to export data classification results to, and the
2142
+ # Specifies where to store data classification results, and the
2138
2143
  # encryption settings to use when storing results in that location.
2139
- # Currently, you can export classification results only to an S3 bucket.
2144
+ # Currently, you can store classification results only in an S3 bucket.
2140
2145
  #
2141
2146
  # @return [Types::PutClassificationExportConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2142
2147
  #
@@ -2239,27 +2244,6 @@ module Aws::Macie2
2239
2244
  req.send_request(options)
2240
2245
  end
2241
2246
 
2242
- # Reactivates (unarchives) one or more findings.
2243
- #
2244
- # @option params [required, Array<String>] :finding_ids
2245
- #
2246
- # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2247
- #
2248
- # @example Request syntax with placeholder values
2249
- #
2250
- # resp = client.unarchive_findings({
2251
- # finding_ids: ["__string"], # required
2252
- # })
2253
- #
2254
- # @see http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UnarchiveFindings AWS API Documentation
2255
- #
2256
- # @overload unarchive_findings(params = {})
2257
- # @param [Hash] params ({})
2258
- def unarchive_findings(params = {}, options = {})
2259
- req = build_request(:unarchive_findings, params)
2260
- req.send_request(options)
2261
- end
2262
-
2263
2247
  # Removes one or more tags (keys and values) from a classification job,
2264
2248
  # custom data identifier, findings filter, or member account.
2265
2249
  #
@@ -2290,7 +2274,7 @@ module Aws::Macie2
2290
2274
  # @option params [required, String] :job_id
2291
2275
  #
2292
2276
  # @option params [required, String] :job_status
2293
- # The current status of a classification job. Valid values are:
2277
+ # The current status of a classification job. Possible values are:
2294
2278
  #
2295
2279
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2296
2280
  #
@@ -2313,8 +2297,9 @@ module Aws::Macie2
2313
2297
  # Updates the criteria and other settings for a findings filter.
2314
2298
  #
2315
2299
  # @option params [String] :action
2316
- # The action to perform on findings that meet the filter criteria. Valid
2317
- # values are:
2300
+ # The action to perform on findings that meet the filter criteria. To
2301
+ # suppress (automatically archive) findings that meet the criteria, set
2302
+ # this value to ARCHIVE. Valid values are:
2318
2303
  #
2319
2304
  # @option params [String] :description
2320
2305
  #
@@ -2373,9 +2358,10 @@ module Aws::Macie2
2373
2358
  # configuration settings for a Macie account.
2374
2359
  #
2375
2360
  # @option params [String] :finding_publishing_frequency
2376
- # The frequency with which Amazon Macie publishes findings for an
2377
- # account. This includes adding findings to AWS Security Hub and
2378
- # exporting finding events to Amazon CloudWatch. Valid values are:
2361
+ # The frequency with which Amazon Macie publishes updates to policy
2362
+ # findings for an account. This includes publishing updates to AWS
2363
+ # Security Hub and Amazon EventBridge (formerly called Amazon CloudWatch
2364
+ # Events). Valid values are:
2379
2365
  #
2380
2366
  # @option params [String] :status
2381
2367
  # The status of an Amazon Macie account. Valid values are:
@@ -2458,7 +2444,7 @@ module Aws::Macie2
2458
2444
  params: params,
2459
2445
  config: config)
2460
2446
  context[:gem_name] = 'aws-sdk-macie2'
2461
- context[:gem_version] = '1.2.0'
2447
+ context[:gem_version] = '1.7.0'
2462
2448
  Seahorse::Client::Request.new(handlers, context)
2463
2449
  end
2464
2450
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -20,8 +22,6 @@ module Aws::Macie2
20
22
  AdminAccount = Shapes::StructureShape.new(name: 'AdminAccount')
21
23
  AdminStatus = Shapes::StringShape.new(name: 'AdminStatus')
22
24
  ApiCallDetails = Shapes::StructureShape.new(name: 'ApiCallDetails')
23
- ArchiveFindingsRequest = Shapes::StructureShape.new(name: 'ArchiveFindingsRequest')
24
- ArchiveFindingsResponse = Shapes::StructureShape.new(name: 'ArchiveFindingsResponse')
25
25
  AssumedRole = Shapes::StructureShape.new(name: 'AssumedRole')
26
26
  AwsAccount = Shapes::StructureShape.new(name: 'AwsAccount')
27
27
  AwsService = Shapes::StructureShape.new(name: 'AwsService')
@@ -224,8 +224,6 @@ module Aws::Macie2
224
224
  TestCustomDataIdentifierRequest = Shapes::StructureShape.new(name: 'TestCustomDataIdentifierRequest')
225
225
  TestCustomDataIdentifierResponse = Shapes::StructureShape.new(name: 'TestCustomDataIdentifierResponse')
226
226
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
227
- UnarchiveFindingsRequest = Shapes::StructureShape.new(name: 'UnarchiveFindingsRequest')
228
- UnarchiveFindingsResponse = Shapes::StructureShape.new(name: 'UnarchiveFindingsResponse')
229
227
  Unit = Shapes::StringShape.new(name: 'Unit')
230
228
  UnprocessedAccount = Shapes::StructureShape.new(name: 'UnprocessedAccount')
231
229
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
@@ -243,6 +241,7 @@ module Aws::Macie2
243
241
  UsageByAccount = Shapes::StructureShape.new(name: 'UsageByAccount')
244
242
  UsageRecord = Shapes::StructureShape.new(name: 'UsageRecord')
245
243
  UsageStatisticsFilter = Shapes::StructureShape.new(name: 'UsageStatisticsFilter')
244
+ UsageStatisticsFilterComparator = Shapes::StringShape.new(name: 'UsageStatisticsFilterComparator')
246
245
  UsageStatisticsFilterKey = Shapes::StringShape.new(name: 'UsageStatisticsFilterKey')
247
246
  UsageStatisticsSortBy = Shapes::StructureShape.new(name: 'UsageStatisticsSortBy')
248
247
  UsageStatisticsSortKey = Shapes::StringShape.new(name: 'UsageStatisticsSortKey')
@@ -313,11 +312,6 @@ module Aws::Macie2
313
312
  ApiCallDetails.add_member(:last_seen, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "lastSeen"))
314
313
  ApiCallDetails.struct_class = Types::ApiCallDetails
315
314
 
316
- ArchiveFindingsRequest.add_member(:finding_ids, Shapes::ShapeRef.new(shape: __listOf__string, required: true, location_name: "findingIds"))
317
- ArchiveFindingsRequest.struct_class = Types::ArchiveFindingsRequest
318
-
319
- ArchiveFindingsResponse.struct_class = Types::ArchiveFindingsResponse
320
-
321
315
  AssumedRole.add_member(:access_key_id, Shapes::ShapeRef.new(shape: __string, location_name: "accessKeyId"))
322
316
  AssumedRole.add_member(:account_id, Shapes::ShapeRef.new(shape: __string, location_name: "accountId"))
323
317
  AssumedRole.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "arn"))
@@ -684,6 +678,7 @@ module Aws::Macie2
684
678
  FindingStatisticsSortCriteria.add_member(:order_by, Shapes::ShapeRef.new(shape: OrderBy, location_name: "orderBy"))
685
679
  FindingStatisticsSortCriteria.struct_class = Types::FindingStatisticsSortCriteria
686
680
 
681
+ FindingsFilterListItem.add_member(:action, Shapes::ShapeRef.new(shape: FindingsFilterAction, location_name: "action"))
687
682
  FindingsFilterListItem.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "arn"))
688
683
  FindingsFilterListItem.add_member(:id, Shapes::ShapeRef.new(shape: __string, location_name: "id"))
689
684
  FindingsFilterListItem.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "name"))
@@ -1118,11 +1113,6 @@ module Aws::Macie2
1118
1113
  ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message"))
1119
1114
  ThrottlingException.struct_class = Types::ThrottlingException
1120
1115
 
1121
- UnarchiveFindingsRequest.add_member(:finding_ids, Shapes::ShapeRef.new(shape: __listOf__string, required: true, location_name: "findingIds"))
1122
- UnarchiveFindingsRequest.struct_class = Types::UnarchiveFindingsRequest
1123
-
1124
- UnarchiveFindingsResponse.struct_class = Types::UnarchiveFindingsResponse
1125
-
1126
1116
  UnprocessedAccount.add_member(:account_id, Shapes::ShapeRef.new(shape: __string, location_name: "accountId"))
1127
1117
  UnprocessedAccount.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "errorCode"))
1128
1118
  UnprocessedAccount.add_member(:error_message, Shapes::ShapeRef.new(shape: __string, location_name: "errorMessage"))
@@ -1180,6 +1170,7 @@ module Aws::Macie2
1180
1170
  UsageRecord.add_member(:usage, Shapes::ShapeRef.new(shape: __listOfUsageByAccount, location_name: "usage"))
1181
1171
  UsageRecord.struct_class = Types::UsageRecord
1182
1172
 
1173
+ UsageStatisticsFilter.add_member(:comparator, Shapes::ShapeRef.new(shape: UsageStatisticsFilterComparator, location_name: "comparator"))
1183
1174
  UsageStatisticsFilter.add_member(:key, Shapes::ShapeRef.new(shape: UsageStatisticsFilterKey, location_name: "key"))
1184
1175
  UsageStatisticsFilter.add_member(:values, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "values"))
1185
1176
  UsageStatisticsFilter.struct_class = Types::UsageStatisticsFilter
@@ -1290,21 +1281,6 @@ module Aws::Macie2
1290
1281
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1291
1282
  end)
1292
1283
 
1293
- api.add_operation(:archive_findings, Seahorse::Model::Operation.new.tap do |o|
1294
- o.name = "ArchiveFindings"
1295
- o.http_method = "POST"
1296
- o.http_request_uri = "/findings/archive"
1297
- o.input = Shapes::ShapeRef.new(shape: ArchiveFindingsRequest)
1298
- o.output = Shapes::ShapeRef.new(shape: ArchiveFindingsResponse)
1299
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1300
- o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1301
- o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1302
- o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1303
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1304
- o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1305
- o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1306
- end)
1307
-
1308
1284
  api.add_operation(:batch_get_custom_data_identifiers, Seahorse::Model::Operation.new.tap do |o|
1309
1285
  o.name = "BatchGetCustomDataIdentifiers"
1310
1286
  o.http_method = "POST"
@@ -1498,6 +1474,12 @@ module Aws::Macie2
1498
1474
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1499
1475
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1500
1476
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1477
+ o[:pager] = Aws::Pager.new(
1478
+ limit_key: "max_results",
1479
+ tokens: {
1480
+ "next_token" => "next_token"
1481
+ }
1482
+ )
1501
1483
  end)
1502
1484
 
1503
1485
  api.add_operation(:describe_classification_job, Seahorse::Model::Operation.new.tap do |o|
@@ -1783,6 +1765,12 @@ module Aws::Macie2
1783
1765
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1784
1766
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1785
1767
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1768
+ o[:pager] = Aws::Pager.new(
1769
+ limit_key: "max_results",
1770
+ tokens: {
1771
+ "next_token" => "next_token"
1772
+ }
1773
+ )
1786
1774
  end)
1787
1775
 
1788
1776
  api.add_operation(:get_usage_totals, Seahorse::Model::Operation.new.tap do |o|
@@ -1813,6 +1801,12 @@ module Aws::Macie2
1813
1801
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1814
1802
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1815
1803
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1804
+ o[:pager] = Aws::Pager.new(
1805
+ limit_key: "max_results",
1806
+ tokens: {
1807
+ "next_token" => "next_token"
1808
+ }
1809
+ )
1816
1810
  end)
1817
1811
 
1818
1812
  api.add_operation(:list_custom_data_identifiers, Seahorse::Model::Operation.new.tap do |o|
@@ -1828,6 +1822,12 @@ module Aws::Macie2
1828
1822
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1829
1823
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1830
1824
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1825
+ o[:pager] = Aws::Pager.new(
1826
+ limit_key: "max_results",
1827
+ tokens: {
1828
+ "next_token" => "next_token"
1829
+ }
1830
+ )
1831
1831
  end)
1832
1832
 
1833
1833
  api.add_operation(:list_findings, Seahorse::Model::Operation.new.tap do |o|
@@ -1843,6 +1843,12 @@ module Aws::Macie2
1843
1843
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1844
1844
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1845
1845
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1846
+ o[:pager] = Aws::Pager.new(
1847
+ limit_key: "max_results",
1848
+ tokens: {
1849
+ "next_token" => "next_token"
1850
+ }
1851
+ )
1846
1852
  end)
1847
1853
 
1848
1854
  api.add_operation(:list_findings_filters, Seahorse::Model::Operation.new.tap do |o|
@@ -1858,6 +1864,12 @@ module Aws::Macie2
1858
1864
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1859
1865
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1860
1866
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1867
+ o[:pager] = Aws::Pager.new(
1868
+ limit_key: "max_results",
1869
+ tokens: {
1870
+ "next_token" => "next_token"
1871
+ }
1872
+ )
1861
1873
  end)
1862
1874
 
1863
1875
  api.add_operation(:list_invitations, Seahorse::Model::Operation.new.tap do |o|
@@ -1873,6 +1885,12 @@ module Aws::Macie2
1873
1885
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1874
1886
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1875
1887
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1888
+ o[:pager] = Aws::Pager.new(
1889
+ limit_key: "max_results",
1890
+ tokens: {
1891
+ "next_token" => "next_token"
1892
+ }
1893
+ )
1876
1894
  end)
1877
1895
 
1878
1896
  api.add_operation(:list_members, Seahorse::Model::Operation.new.tap do |o|
@@ -1888,6 +1906,12 @@ module Aws::Macie2
1888
1906
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1889
1907
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1890
1908
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1909
+ o[:pager] = Aws::Pager.new(
1910
+ limit_key: "max_results",
1911
+ tokens: {
1912
+ "next_token" => "next_token"
1913
+ }
1914
+ )
1891
1915
  end)
1892
1916
 
1893
1917
  api.add_operation(:list_organization_admin_accounts, Seahorse::Model::Operation.new.tap do |o|
@@ -1903,6 +1927,12 @@ module Aws::Macie2
1903
1927
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1904
1928
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1905
1929
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1930
+ o[:pager] = Aws::Pager.new(
1931
+ limit_key: "max_results",
1932
+ tokens: {
1933
+ "next_token" => "next_token"
1934
+ }
1935
+ )
1906
1936
  end)
1907
1937
 
1908
1938
  api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
@@ -1951,21 +1981,6 @@ module Aws::Macie2
1951
1981
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1952
1982
  end)
1953
1983
 
1954
- api.add_operation(:unarchive_findings, Seahorse::Model::Operation.new.tap do |o|
1955
- o.name = "UnarchiveFindings"
1956
- o.http_method = "POST"
1957
- o.http_request_uri = "/findings/unarchive"
1958
- o.input = Shapes::ShapeRef.new(shape: UnarchiveFindingsRequest)
1959
- o.output = Shapes::ShapeRef.new(shape: UnarchiveFindingsResponse)
1960
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1961
- o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1962
- o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1963
- o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1964
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1965
- o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1966
- o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1967
- end)
1968
-
1969
1984
  api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
1970
1985
  o.name = "UntagResource"
1971
1986
  o.http_method = "DELETE"