aws-sdk-auditmanager 1.26.0 → 1.28.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: 85293e710b9fde06bc424368aedd260eba403da7e2ad96071c25303749becc72
4
- data.tar.gz: 8e3cea7674bcd05eab13df691f5a34273ee08d6ce435b11c82d6ddd746424d6f
3
+ metadata.gz: 14c9a2bbba11aa4991946da8d6a60d605977a49c1b5a66e6dd8cfe1bd4d497c4
4
+ data.tar.gz: 0135c251504249a65941fa1b72f2305b699860d26777f731a96d8ef2459aa797
5
5
  SHA512:
6
- metadata.gz: e0d3c2bd3224884f3e73aa29f0ade496dfbe545442c9ba22b29070f5ff77b8fdbc1d4ab28bdd1bf736d10dcf64eaa63d7474ddd1c380eea3e473390360a3cd8b
7
- data.tar.gz: 607ef3f41f13ac29557a612a8cb81f14396e88cb94e166c6a2a7354e3db10cdbad4a5baea50122134fe9c8a3fdf8854b8d807a01cb86285026d9ff48d4bcdd4b
6
+ metadata.gz: 1f3240882caa2165a12ad980d32aac132cebb882785a6a86b7bc355050a7d912363d96cef586d2e6f6ac35fe26a1490c4edf7d2f7acc6e47b164f7581156c5e1
7
+ data.tar.gz: d0db54b1830a2f41a9f80a29780a2033d8c1c620ffea16ee120579090bb2fa40c7680207ff00cdbae12b142a52228a0867844bbc14b9f162d57f742081df590c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.28.0 (2022-11-18)
5
+ ------------------
6
+
7
+ * Feature - This release introduces a new feature for Audit Manager: Evidence finder. You can now use evidence finder to quickly query your evidence, and add the matching evidence results to an assessment report.
8
+
9
+ 1.27.0 (2022-10-25)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.26.0 (2022-07-27)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.26.0
1
+ 1.28.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:auditmanager)
@@ -79,8 +79,9 @@ module Aws::AuditManager
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::RestJson)
84
+ add_plugin(Aws::AuditManager::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -287,6 +288,19 @@ module Aws::AuditManager
287
288
  # ** Please note ** When response stubbing is enabled, no HTTP
288
289
  # requests are made, and retries are disabled.
289
290
  #
291
+ # @option options [Aws::TokenProvider] :token_provider
292
+ # A Bearer Token Provider. This can be an instance of any one of the
293
+ # following classes:
294
+ #
295
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
296
+ # tokens.
297
+ #
298
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
299
+ # access token generated from `aws login`.
300
+ #
301
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
302
+ # will be used to search for tokens configured for your profile in shared configuration files.
303
+ #
290
304
  # @option options [Boolean] :use_dualstack_endpoint
291
305
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
306
  # will be used if available.
@@ -300,6 +314,9 @@ module Aws::AuditManager
300
314
  # When `true`, request parameters are validated before
301
315
  # sending the request.
302
316
  #
317
+ # @option options [Aws::AuditManager::EndpointProvider] :endpoint_provider
318
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::AuditManager::EndpointParameters`
319
+ #
303
320
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
304
321
  # requests through. Formatted like 'http://proxy.com:123'.
305
322
  #
@@ -558,7 +575,33 @@ module Aws::AuditManager
558
575
  end
559
576
 
560
577
  # Uploads one or more pieces of evidence to a control in an Audit
561
- # Manager assessment.
578
+ # Manager assessment. You can upload manual evidence from any Amazon
579
+ # Simple Storage Service (Amazon S3) bucket by specifying the S3 URI of
580
+ # the evidence.
581
+ #
582
+ # You must upload manual evidence to your S3 bucket before you can
583
+ # upload it to your assessment. For instructions, see [CreateBucket][1]
584
+ # and [PutObject][2] in the *Amazon Simple Storage Service API
585
+ # Reference.*
586
+ #
587
+ # The following restrictions apply to this action:
588
+ #
589
+ # * Maximum size of an individual evidence file: 100 MB
590
+ #
591
+ # * Number of daily manual evidence uploads per control: 100
592
+ #
593
+ # * Supported file formats: See [Supported file types for manual
594
+ # evidence][3] in the *Audit Manager User Guide*
595
+ #
596
+ # For more information about Audit Manager service restrictions, see
597
+ # [Quotas and restrictions for Audit Manager][4].
598
+ #
599
+ #
600
+ #
601
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html
602
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html
603
+ # [3]: https://docs.aws.amazon.com/audit-manager/latest/userguide/upload-evidence.html#supported-manual-evidence-files
604
+ # [4]: https://docs.aws.amazon.com/audit-manager/latest/userguide/service-quotas.html
562
605
  #
563
606
  # @option params [required, String] :assessment_id
564
607
  # The identifier for the assessment.
@@ -868,6 +911,30 @@ module Aws::AuditManager
868
911
  # @option params [required, String] :assessment_id
869
912
  # The identifier for the assessment.
870
913
  #
914
+ # @option params [String] :query_statement
915
+ # A SQL statement that represents an evidence finder query.
916
+ #
917
+ # Provide this parameter when you want to generate an assessment report
918
+ # from the results of an evidence finder search query. When you use this
919
+ # parameter, Audit Manager generates a one-time report using only the
920
+ # evidence from the query output. This report does not include any
921
+ # assessment evidence that was manually [added to a report using the
922
+ # console][1], or [associated with a report using the API][2].
923
+ #
924
+ # To use this parameter, the [enablementStatus][3] of evidence finder
925
+ # must be `ENABLED`.
926
+ #
927
+ # For examples and help resolving `queryStatement` validation
928
+ # exceptions, see [Troubleshooting evidence finder issues][4] in the AWS
929
+ # Audit Manager User Guide.
930
+ #
931
+ #
932
+ #
933
+ # [1]: https://docs.aws.amazon.com/userguide/generate-assessment-report.html#generate-assessment-report-include-evidence
934
+ # [2]: https://docs.aws.amazon.com/APIReference-evidenceFinder/API_BatchAssociateAssessmentReportEvidence.html
935
+ # [3]: https://docs.aws.amazon.com/APIReference-evidenceFinder/API_EvidenceFinderSetup.html#auditmanager-Type-EvidenceFinderSetup-enablementStatus
936
+ # [4]: https://docs.aws.amazon.com/audit-manager/latest/userguide/evidence-finder-issues.html#querystatement-exceptions
937
+ #
871
938
  # @return [Types::CreateAssessmentReportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
872
939
  #
873
940
  # * {Types::CreateAssessmentReportResponse#assessment_report #assessment_report} => Types::AssessmentReport
@@ -878,6 +945,7 @@ module Aws::AuditManager
878
945
  # name: "AssessmentReportName", # required
879
946
  # description: "AssessmentReportDescription",
880
947
  # assessment_id: "UUID", # required
948
+ # query_statement: "QueryStatement",
881
949
  # })
882
950
  #
883
951
  # @example Response structure
@@ -1210,48 +1278,65 @@ module Aws::AuditManager
1210
1278
  # Audit Manager will stop collecting and attaching evidence to that
1211
1279
  # delegated administrator account moving forward.
1212
1280
  #
1213
- # <note markdown="1"> When you deregister a delegated administrator account for Audit
1281
+ # Keep in mind the following cleanup task if you use evidence finder:
1282
+ #
1283
+ # Before you use your management account to remove a delegated
1284
+ # administrator, make sure that the current delegated administrator
1285
+ # account signs in to Audit Manager and disables evidence finder first.
1286
+ # Disabling evidence finder automatically deletes the event data store
1287
+ # that was created in their account when they enabled evidence finder.
1288
+ # If this task isn’t completed, the event data store remains in their
1289
+ # account. In this case, we recommend that the original delegated
1290
+ # administrator goes to CloudTrail Lake and manually [deletes the event
1291
+ # data store][1].
1292
+ #
1293
+ # This cleanup task is necessary to ensure that you don't end up with
1294
+ # multiple event data stores. Audit Manager will ignore an unused event
1295
+ # data store after you remove or change a delegated administrator
1296
+ # account. However, the unused event data store continues to incur
1297
+ # storage costs from CloudTrail Lake if you don't delete it.
1298
+ #
1299
+ # When you deregister a delegated administrator account for Audit
1214
1300
  # Manager, the data for that account isn’t deleted. If you want to
1215
1301
  # delete resource data for a delegated administrator account, you must
1216
1302
  # perform that task separately before you deregister the account.
1217
1303
  # Either, you can do this in the Audit Manager console. Or, you can use
1218
1304
  # one of the delete API operations that are provided by Audit Manager.
1219
1305
  #
1220
- # To delete your Audit Manager resource data, see the following
1306
+ # To delete your Audit Manager resource data, see the following
1221
1307
  # instructions:
1222
1308
  #
1223
- # * [DeleteAssessment][1] (see also: [Deleting an assessment][2] in the
1309
+ # * [DeleteAssessment][2] (see also: [Deleting an assessment][3] in the
1224
1310
  # *Audit Manager User Guide*)
1225
1311
  #
1226
- # * [DeleteAssessmentFramework][3] (see also: [Deleting a custom
1227
- # framework][4] in the *Audit Manager User Guide*)
1312
+ # * [DeleteAssessmentFramework][4] (see also: [Deleting a custom
1313
+ # framework][5] in the *Audit Manager User Guide*)
1228
1314
  #
1229
- # * [DeleteAssessmentFrameworkShare][5] (see also: [Deleting a share
1230
- # request][6] in the *Audit Manager User Guide*)
1315
+ # * [DeleteAssessmentFrameworkShare][6] (see also: [Deleting a share
1316
+ # request][7] in the *Audit Manager User Guide*)
1231
1317
  #
1232
- # * [DeleteAssessmentReport][7] (see also: [Deleting an assessment
1233
- # report][8] in the *Audit Manager User Guide*)
1318
+ # * [DeleteAssessmentReport][8] (see also: [Deleting an assessment
1319
+ # report][9] in the *Audit Manager User Guide*)
1234
1320
  #
1235
- # * [DeleteControl][9] (see also: [Deleting a custom control][10] in the
1236
- # *Audit Manager User Guide*)
1321
+ # * [DeleteControl][10] (see also: [Deleting a custom control][11] in
1322
+ # the *Audit Manager User Guide*)
1237
1323
  #
1238
- # At this time, Audit Manager doesn't provide an option to delete
1324
+ # At this time, Audit Manager doesn't provide an option to delete
1239
1325
  # evidence. All available delete operations are listed above.
1240
1326
  #
1241
- # </note>
1242
- #
1243
1327
  #
1244
1328
  #
1245
- # [1]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteAssessment.html
1246
- # [2]: https://docs.aws.amazon.com/audit-manager/latest/userguide/delete-assessment.html
1247
- # [3]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteAssessmentFramework.html
1248
- # [4]: https://docs.aws.amazon.com/audit-manager/latest/userguide/delete-custom-framework.html
1249
- # [5]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteAssessmentFrameworkShare.html
1250
- # [6]: https://docs.aws.amazon.com/audit-manager/latest/userguide/deleting-shared-framework-requests.html
1251
- # [7]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteAssessmentReport.html
1252
- # [8]: https://docs.aws.amazon.com/audit-manager/latest/userguide/generate-assessment-report.html#delete-assessment-report-steps
1253
- # [9]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteControl.html
1254
- # [10]: https://docs.aws.amazon.com/audit-manager/latest/userguide/delete-controls.html
1329
+ # [1]: https://docs.aws.amazon.com/userguide/awscloudtrail/latest/userguide/query-eds-disable-termination.html
1330
+ # [2]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteAssessment.html
1331
+ # [3]: https://docs.aws.amazon.com/audit-manager/latest/userguide/delete-assessment.html
1332
+ # [4]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteAssessmentFramework.html
1333
+ # [5]: https://docs.aws.amazon.com/audit-manager/latest/userguide/delete-custom-framework.html
1334
+ # [6]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteAssessmentFrameworkShare.html
1335
+ # [7]: https://docs.aws.amazon.com/audit-manager/latest/userguide/deleting-shared-framework-requests.html
1336
+ # [8]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteAssessmentReport.html
1337
+ # [9]: https://docs.aws.amazon.com/audit-manager/latest/userguide/generate-assessment-report.html#delete-assessment-report-steps
1338
+ # [10]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteControl.html
1339
+ # [11]: https://docs.aws.amazon.com/audit-manager/latest/userguide/delete-controls.html
1255
1340
  #
1256
1341
  # @option params [String] :admin_account_id
1257
1342
  # The identifier for the administrator account.
@@ -1717,6 +1802,7 @@ module Aws::AuditManager
1717
1802
  # resp.evidence.resources_included #=> Array
1718
1803
  # resp.evidence.resources_included[0].arn #=> String
1719
1804
  # resp.evidence.resources_included[0].value #=> String
1805
+ # resp.evidence.resources_included[0].compliance_check #=> String
1720
1806
  # resp.evidence.attributes #=> Hash
1721
1807
  # resp.evidence.attributes["EvidenceAttributeKey"] #=> String
1722
1808
  # resp.evidence.iam_id #=> String
@@ -1784,6 +1870,7 @@ module Aws::AuditManager
1784
1870
  # resp.evidence[0].resources_included #=> Array
1785
1871
  # resp.evidence[0].resources_included[0].arn #=> String
1786
1872
  # resp.evidence[0].resources_included[0].value #=> String
1873
+ # resp.evidence[0].resources_included[0].compliance_check #=> String
1787
1874
  # resp.evidence[0].attributes #=> Hash
1788
1875
  # resp.evidence[0].attributes["EvidenceAttributeKey"] #=> String
1789
1876
  # resp.evidence[0].iam_id #=> String
@@ -2067,8 +2154,15 @@ module Aws::AuditManager
2067
2154
  req.send_request(options)
2068
2155
  end
2069
2156
 
2070
- # Returns a list of the in-scope Amazon Web Services for the specified
2071
- # assessment.
2157
+ # Returns a list of all of the Amazon Web Services that you can choose
2158
+ # to include in your assessment. When you [create an assessment][1],
2159
+ # specify which of these services you want to include to narrow the
2160
+ # assessment's [scope][2].
2161
+ #
2162
+ #
2163
+ #
2164
+ # [1]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_CreateAssessment.html
2165
+ # [2]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_Scope.html
2072
2166
  #
2073
2167
  # @return [Types::GetServicesInScopeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2074
2168
  #
@@ -2103,7 +2197,7 @@ module Aws::AuditManager
2103
2197
  # @example Request syntax with placeholder values
2104
2198
  #
2105
2199
  # resp = client.get_settings({
2106
- # attribute: "ALL", # required, accepts ALL, IS_AWS_ORG_ENABLED, SNS_TOPIC, DEFAULT_ASSESSMENT_REPORTS_DESTINATION, DEFAULT_PROCESS_OWNERS
2200
+ # attribute: "ALL", # required, accepts ALL, IS_AWS_ORG_ENABLED, SNS_TOPIC, DEFAULT_ASSESSMENT_REPORTS_DESTINATION, DEFAULT_PROCESS_OWNERS, EVIDENCE_FINDER_ENABLEMENT
2107
2201
  # })
2108
2202
  #
2109
2203
  # @example Response structure
@@ -2116,6 +2210,10 @@ module Aws::AuditManager
2116
2210
  # resp.settings.default_process_owners[0].role_type #=> String, one of "PROCESS_OWNER", "RESOURCE_OWNER"
2117
2211
  # resp.settings.default_process_owners[0].role_arn #=> String
2118
2212
  # resp.settings.kms_key #=> String
2213
+ # resp.settings.evidence_finder_enablement.event_data_store_arn #=> String
2214
+ # resp.settings.evidence_finder_enablement.enablement_status #=> String, one of "ENABLED", "DISABLED", "ENABLE_IN_PROGRESS", "DISABLE_IN_PROGRESS"
2215
+ # resp.settings.evidence_finder_enablement.backfill_status #=> String, one of "NOT_STARTED", "IN_PROGRESS", "COMPLETED"
2216
+ # resp.settings.evidence_finder_enablement.error #=> String
2119
2217
  #
2120
2218
  # @see http://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetSettings AWS API Documentation
2121
2219
  #
@@ -3586,6 +3684,26 @@ module Aws::AuditManager
3586
3684
  # @option params [String] :kms_key
3587
3685
  # The KMS key details.
3588
3686
  #
3687
+ # @option params [Boolean] :evidence_finder_enabled
3688
+ # Specifies whether the evidence finder feature is enabled. Change this
3689
+ # attribute to enable or disable evidence finder.
3690
+ #
3691
+ # When you use this attribute to disable evidence finder, Audit Manager
3692
+ # deletes the event data store that’s used to query your evidence data.
3693
+ # As a result, you can’t re-enable evidence finder and use the feature
3694
+ # again. Your only alternative is to [deregister][1] and then
3695
+ # [re-register][2] Audit Manager.
3696
+ #
3697
+ # Disabling evidence finder is permanent, so consider this decision
3698
+ # carefully before you proceed. If you’re using Audit Manager as a
3699
+ # delegated administrator, keep in mind that this action applies to all
3700
+ # member accounts in your organization.
3701
+ #
3702
+ #
3703
+ #
3704
+ # [1]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeregisterAccount.html
3705
+ # [2]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_RegisterAccount.html
3706
+ #
3589
3707
  # @return [Types::UpdateSettingsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3590
3708
  #
3591
3709
  # * {Types::UpdateSettingsResponse#settings #settings} => Types::Settings
@@ -3605,6 +3723,7 @@ module Aws::AuditManager
3605
3723
  # },
3606
3724
  # ],
3607
3725
  # kms_key: "KmsKey",
3726
+ # evidence_finder_enabled: false,
3608
3727
  # })
3609
3728
  #
3610
3729
  # @example Response structure
@@ -3617,6 +3736,10 @@ module Aws::AuditManager
3617
3736
  # resp.settings.default_process_owners[0].role_type #=> String, one of "PROCESS_OWNER", "RESOURCE_OWNER"
3618
3737
  # resp.settings.default_process_owners[0].role_arn #=> String
3619
3738
  # resp.settings.kms_key #=> String
3739
+ # resp.settings.evidence_finder_enablement.event_data_store_arn #=> String
3740
+ # resp.settings.evidence_finder_enablement.enablement_status #=> String, one of "ENABLED", "DISABLED", "ENABLE_IN_PROGRESS", "DISABLE_IN_PROGRESS"
3741
+ # resp.settings.evidence_finder_enablement.backfill_status #=> String, one of "NOT_STARTED", "IN_PROGRESS", "COMPLETED"
3742
+ # resp.settings.evidence_finder_enablement.error #=> String
3620
3743
  #
3621
3744
  # @see http://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/UpdateSettings AWS API Documentation
3622
3745
  #
@@ -3678,7 +3801,7 @@ module Aws::AuditManager
3678
3801
  params: params,
3679
3802
  config: config)
3680
3803
  context[:gem_name] = 'aws-sdk-auditmanager'
3681
- context[:gem_version] = '1.26.0'
3804
+ context[:gem_version] = '1.28.0'
3682
3805
  Seahorse::Client::Request.new(handlers, context)
3683
3806
  end
3684
3807
 
@@ -75,6 +75,7 @@ module Aws::AuditManager
75
75
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
76
76
  ChangeLog = Shapes::StructureShape.new(name: 'ChangeLog')
77
77
  ChangeLogs = Shapes::ListShape.new(name: 'ChangeLogs')
78
+ CloudTrailArn = Shapes::StringShape.new(name: 'CloudTrailArn')
78
79
  ComplianceType = Shapes::StringShape.new(name: 'ComplianceType')
79
80
  Control = Shapes::StructureShape.new(name: 'Control')
80
81
  ControlComment = Shapes::StructureShape.new(name: 'ControlComment')
@@ -152,6 +153,9 @@ module Aws::AuditManager
152
153
  EvidenceAttributeKey = Shapes::StringShape.new(name: 'EvidenceAttributeKey')
153
154
  EvidenceAttributeValue = Shapes::StringShape.new(name: 'EvidenceAttributeValue')
154
155
  EvidenceAttributes = Shapes::MapShape.new(name: 'EvidenceAttributes')
156
+ EvidenceFinderBackfillStatus = Shapes::StringShape.new(name: 'EvidenceFinderBackfillStatus')
157
+ EvidenceFinderEnablement = Shapes::StructureShape.new(name: 'EvidenceFinderEnablement')
158
+ EvidenceFinderEnablementStatus = Shapes::StringShape.new(name: 'EvidenceFinderEnablementStatus')
155
159
  EvidenceIds = Shapes::ListShape.new(name: 'EvidenceIds')
156
160
  EvidenceInsights = Shapes::StructureShape.new(name: 'EvidenceInsights')
157
161
  EvidenceList = Shapes::ListShape.new(name: 'EvidenceList')
@@ -242,6 +246,7 @@ module Aws::AuditManager
242
246
  Notifications = Shapes::ListShape.new(name: 'Notifications')
243
247
  NullableInteger = Shapes::IntegerShape.new(name: 'NullableInteger')
244
248
  ObjectTypeEnum = Shapes::StringShape.new(name: 'ObjectTypeEnum')
249
+ QueryStatement = Shapes::StringShape.new(name: 'QueryStatement')
245
250
  Region = Shapes::StringShape.new(name: 'Region')
246
251
  RegisterAccountRequest = Shapes::StructureShape.new(name: 'RegisterAccountRequest')
247
252
  RegisterAccountResponse = Shapes::StructureShape.new(name: 'RegisterAccountResponse')
@@ -668,6 +673,7 @@ module Aws::AuditManager
668
673
  CreateAssessmentReportRequest.add_member(:name, Shapes::ShapeRef.new(shape: AssessmentReportName, required: true, location_name: "name"))
669
674
  CreateAssessmentReportRequest.add_member(:description, Shapes::ShapeRef.new(shape: AssessmentReportDescription, location_name: "description"))
670
675
  CreateAssessmentReportRequest.add_member(:assessment_id, Shapes::ShapeRef.new(shape: UUID, required: true, location: "uri", location_name: "assessmentId"))
676
+ CreateAssessmentReportRequest.add_member(:query_statement, Shapes::ShapeRef.new(shape: QueryStatement, location_name: "queryStatement"))
671
677
  CreateAssessmentReportRequest.struct_class = Types::CreateAssessmentReportRequest
672
678
 
673
679
  CreateAssessmentReportResponse.add_member(:assessment_report, Shapes::ShapeRef.new(shape: AssessmentReport, location_name: "assessmentReport"))
@@ -807,6 +813,12 @@ module Aws::AuditManager
807
813
  EvidenceAttributes.key = Shapes::ShapeRef.new(shape: EvidenceAttributeKey)
808
814
  EvidenceAttributes.value = Shapes::ShapeRef.new(shape: EvidenceAttributeValue)
809
815
 
816
+ EvidenceFinderEnablement.add_member(:event_data_store_arn, Shapes::ShapeRef.new(shape: CloudTrailArn, location_name: "eventDataStoreArn"))
817
+ EvidenceFinderEnablement.add_member(:enablement_status, Shapes::ShapeRef.new(shape: EvidenceFinderEnablementStatus, location_name: "enablementStatus"))
818
+ EvidenceFinderEnablement.add_member(:backfill_status, Shapes::ShapeRef.new(shape: EvidenceFinderBackfillStatus, location_name: "backfillStatus"))
819
+ EvidenceFinderEnablement.add_member(:error, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "error"))
820
+ EvidenceFinderEnablement.struct_class = Types::EvidenceFinderEnablement
821
+
810
822
  EvidenceIds.member = Shapes::ShapeRef.new(shape: UUID)
811
823
 
812
824
  EvidenceInsights.add_member(:noncompliant_evidence_count, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "noncompliantEvidenceCount"))
@@ -1128,6 +1140,7 @@ module Aws::AuditManager
1128
1140
 
1129
1141
  Resource.add_member(:arn, Shapes::ShapeRef.new(shape: GenericArn, location_name: "arn"))
1130
1142
  Resource.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "value"))
1143
+ Resource.add_member(:compliance_check, Shapes::ShapeRef.new(shape: String, location_name: "complianceCheck"))
1131
1144
  Resource.struct_class = Types::Resource
1132
1145
 
1133
1146
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
@@ -1163,6 +1176,7 @@ module Aws::AuditManager
1163
1176
  Settings.add_member(:default_assessment_reports_destination, Shapes::ShapeRef.new(shape: AssessmentReportsDestination, location_name: "defaultAssessmentReportsDestination"))
1164
1177
  Settings.add_member(:default_process_owners, Shapes::ShapeRef.new(shape: Roles, location_name: "defaultProcessOwners"))
1165
1178
  Settings.add_member(:kms_key, Shapes::ShapeRef.new(shape: KmsKey, location_name: "kmsKey"))
1179
+ Settings.add_member(:evidence_finder_enablement, Shapes::ShapeRef.new(shape: EvidenceFinderEnablement, location_name: "evidenceFinderEnablement"))
1166
1180
  Settings.struct_class = Types::Settings
1167
1181
 
1168
1182
  SourceKeyword.add_member(:keyword_input_type, Shapes::ShapeRef.new(shape: KeywordInputType, location_name: "keywordInputType"))
@@ -1280,6 +1294,7 @@ module Aws::AuditManager
1280
1294
  UpdateSettingsRequest.add_member(:default_assessment_reports_destination, Shapes::ShapeRef.new(shape: AssessmentReportsDestination, location_name: "defaultAssessmentReportsDestination"))
1281
1295
  UpdateSettingsRequest.add_member(:default_process_owners, Shapes::ShapeRef.new(shape: Roles, location_name: "defaultProcessOwners"))
1282
1296
  UpdateSettingsRequest.add_member(:kms_key, Shapes::ShapeRef.new(shape: KmsKey, location_name: "kmsKey"))
1297
+ UpdateSettingsRequest.add_member(:evidence_finder_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "evidenceFinderEnabled"))
1283
1298
  UpdateSettingsRequest.struct_class = Types::UpdateSettingsRequest
1284
1299
 
1285
1300
  UpdateSettingsResponse.add_member(:settings, Shapes::ShapeRef.new(shape: Settings, location_name: "settings"))
@@ -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::AuditManager
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,112 @@
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::AuditManager
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
+ dGF0aW9uIjoiVGhlIE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