aws-sdk-auditmanager 1.28.0 → 1.30.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 +4 -4
- data/CHANGELOG.md +12 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-auditmanager/client.rb +39 -57
- data/lib/aws-sdk-auditmanager/client_api.rb +7 -0
- data/lib/aws-sdk-auditmanager/endpoint_parameters.rb +3 -0
- data/lib/aws-sdk-auditmanager/endpoint_provider.rb +35 -96
- data/lib/aws-sdk-auditmanager/types.rb +89 -789
- data/lib/aws-sdk-auditmanager.rb +1 -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: 468b77c33330cb9f390af844685d7ce89fc6d7968015eb040278817df1949e58
|
4
|
+
data.tar.gz: bf14fe70d750763f6120b6c5f6142918fe53517919563bf89ff71ef7062644f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89f634603acb51a938941753ca852905e9a75d0207a0299915fe884cd251c4346e8622b216f72f5e397e017b54d6632be6499168617141fa6c0543e5b16ee333
|
7
|
+
data.tar.gz: 53a7afe5ed1cccd895daea850d4323937f4140c1f7ba77657aeba98c0a80dcbb496472ad97853375140b00eff0da7492ea223d1a9ce1280ee15dfdbe0f7587b1
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.30.0 (2023-01-18)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
* Issue - Replace runtime endpoint resolution approach with generated ruby code.
|
10
|
+
|
11
|
+
1.29.0 (2023-01-06)
|
12
|
+
------------------
|
13
|
+
|
14
|
+
* Feature - This release introduces a new data retention option in your Audit Manager settings. You can now use the DeregistrationPolicy parameter to specify if you want to delete your data when you deregister Audit Manager.
|
15
|
+
|
4
16
|
1.28.0 (2022-11-18)
|
5
17
|
------------------
|
6
18
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.30.0
|
@@ -368,7 +368,7 @@ module Aws::AuditManager
|
|
368
368
|
|
369
369
|
# @!group API Operations
|
370
370
|
|
371
|
-
# Associates an evidence folder to an assessment report in
|
371
|
+
# Associates an evidence folder to an assessment report in an Audit
|
372
372
|
# Manager assessment.
|
373
373
|
#
|
374
374
|
# @option params [required, String] :assessment_id
|
@@ -925,14 +925,14 @@ module Aws::AuditManager
|
|
925
925
|
# must be `ENABLED`.
|
926
926
|
#
|
927
927
|
# For examples and help resolving `queryStatement` validation
|
928
|
-
# exceptions, see [Troubleshooting evidence finder issues][4] in the
|
929
|
-
# Audit Manager User Guide
|
928
|
+
# exceptions, see [Troubleshooting evidence finder issues][4] in the
|
929
|
+
# *Audit Manager User Guide.*
|
930
930
|
#
|
931
931
|
#
|
932
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/
|
935
|
-
# [3]: https://docs.aws.amazon.com/
|
933
|
+
# [1]: https://docs.aws.amazon.com/audit-manager/latest/userguide/generate-assessment-report.html#generate-assessment-report-include-evidence
|
934
|
+
# [2]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_BatchAssociateAssessmentReportEvidence.html
|
935
|
+
# [3]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_EvidenceFinderEnablement.html#auditmanager-Type-EvidenceFinderEnablement-enablementStatus
|
936
936
|
# [4]: https://docs.aws.amazon.com/audit-manager/latest/userguide/evidence-finder-issues.html#querystatement-exceptions
|
937
937
|
#
|
938
938
|
# @return [Types::CreateAssessmentReportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -1209,47 +1209,21 @@ module Aws::AuditManager
|
|
1209
1209
|
|
1210
1210
|
# Deregisters an account in Audit Manager.
|
1211
1211
|
#
|
1212
|
-
# <note markdown="1">
|
1213
|
-
#
|
1214
|
-
#
|
1215
|
-
# can
|
1216
|
-
#
|
1212
|
+
# <note markdown="1"> Before you deregister, you can use the [UpdateSettings][1] API
|
1213
|
+
# operation to set your preferred data retention policy. By default,
|
1214
|
+
# Audit Manager retains your data. If you want to delete your data, you
|
1215
|
+
# can use the `DeregistrationPolicy` attribute to request the deletion
|
1216
|
+
# of your data.
|
1217
1217
|
#
|
1218
|
-
#
|
1219
|
-
#
|
1220
|
-
#
|
1221
|
-
# * [DeleteAssessment][1] (see also: [Deleting an assessment][2] in the
|
1222
|
-
# *Audit Manager User Guide*)
|
1223
|
-
#
|
1224
|
-
# * [DeleteAssessmentFramework][3] (see also: [Deleting a custom
|
1225
|
-
# framework][4] in the *Audit Manager User Guide*)
|
1226
|
-
#
|
1227
|
-
# * [DeleteAssessmentFrameworkShare][5] (see also: [Deleting a share
|
1228
|
-
# request][6] in the *Audit Manager User Guide*)
|
1229
|
-
#
|
1230
|
-
# * [DeleteAssessmentReport][7] (see also: [Deleting an assessment
|
1231
|
-
# report][8] in the *Audit Manager User Guide*)
|
1232
|
-
#
|
1233
|
-
# * [DeleteControl][9] (see also: [Deleting a custom control][10] in the
|
1234
|
-
# *Audit Manager User Guide*)
|
1235
|
-
#
|
1236
|
-
# At this time, Audit Manager doesn't provide an option to delete
|
1237
|
-
# evidence. All available delete operations are listed above.
|
1218
|
+
# For more information about data retention, see [Data Protection][2] in
|
1219
|
+
# the *Audit Manager User Guide*.
|
1238
1220
|
#
|
1239
1221
|
# </note>
|
1240
1222
|
#
|
1241
1223
|
#
|
1242
1224
|
#
|
1243
|
-
# [1]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/
|
1244
|
-
# [2]: https://docs.aws.amazon.com/audit-manager/latest/userguide/
|
1245
|
-
# [3]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteAssessmentFramework.html
|
1246
|
-
# [4]: https://docs.aws.amazon.com/audit-manager/latest/userguide/delete-custom-framework.html
|
1247
|
-
# [5]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteAssessmentFrameworkShare.html
|
1248
|
-
# [6]: https://docs.aws.amazon.com/audit-manager/latest/userguide/deleting-shared-framework-requests.html
|
1249
|
-
# [7]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteAssessmentReport.html
|
1250
|
-
# [8]: https://docs.aws.amazon.com/audit-manager/latest/userguide/generate-assessment-report.html#delete-assessment-report-steps
|
1251
|
-
# [9]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteControl.html
|
1252
|
-
# [10]: https://docs.aws.amazon.com/audit-manager/latest/userguide/delete-controls.html
|
1225
|
+
# [1]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_UpdateSettings.html
|
1226
|
+
# [2]: https://docs.aws.amazon.com/audit-manager/latest/userguide/data-protection.html
|
1253
1227
|
#
|
1254
1228
|
# @return [Types::DeregisterAccountResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1255
1229
|
#
|
@@ -1275,7 +1249,7 @@ module Aws::AuditManager
|
|
1275
1249
|
# settings, you continue to have access to the evidence that you
|
1276
1250
|
# previously collected under that account. This is also the case when
|
1277
1251
|
# you deregister a delegated administrator from Organizations. However,
|
1278
|
-
# Audit Manager
|
1252
|
+
# Audit Manager stops collecting and attaching evidence to that
|
1279
1253
|
# delegated administrator account moving forward.
|
1280
1254
|
#
|
1281
1255
|
# Keep in mind the following cleanup task if you use evidence finder:
|
@@ -1291,10 +1265,10 @@ module Aws::AuditManager
|
|
1291
1265
|
# data store][1].
|
1292
1266
|
#
|
1293
1267
|
# This cleanup task is necessary to ensure that you don't end up with
|
1294
|
-
# multiple event data stores. Audit Manager
|
1295
|
-
#
|
1296
|
-
#
|
1297
|
-
#
|
1268
|
+
# multiple event data stores. Audit Manager ignores an unused event data
|
1269
|
+
# store after you remove or change a delegated administrator account.
|
1270
|
+
# However, the unused event data store continues to incur storage costs
|
1271
|
+
# from CloudTrail Lake if you don't delete it.
|
1298
1272
|
#
|
1299
1273
|
# When you deregister a delegated administrator account for Audit
|
1300
1274
|
# Manager, the data for that account isn’t deleted. If you want to
|
@@ -1322,11 +1296,14 @@ module Aws::AuditManager
|
|
1322
1296
|
# the *Audit Manager User Guide*)
|
1323
1297
|
#
|
1324
1298
|
# At this time, Audit Manager doesn't provide an option to delete
|
1325
|
-
# evidence
|
1299
|
+
# evidence for a specific delegated administrator. Instead, when your
|
1300
|
+
# management account deregisters Audit Manager, we perform a cleanup for
|
1301
|
+
# the current delegated administrator account at the time of
|
1302
|
+
# deregistration.
|
1326
1303
|
#
|
1327
1304
|
#
|
1328
1305
|
#
|
1329
|
-
# [1]: https://docs.aws.amazon.com/
|
1306
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-eds-disable-termination.html
|
1330
1307
|
# [2]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteAssessment.html
|
1331
1308
|
# [3]: https://docs.aws.amazon.com/audit-manager/latest/userguide/delete-assessment.html
|
1332
1309
|
# [4]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteAssessmentFramework.html
|
@@ -2006,7 +1983,7 @@ module Aws::AuditManager
|
|
2006
1983
|
end
|
2007
1984
|
|
2008
1985
|
# Returns a list of evidence folders that are associated with a
|
2009
|
-
# specified control
|
1986
|
+
# specified control in an Audit Manager assessment.
|
2010
1987
|
#
|
2011
1988
|
# @option params [required, String] :assessment_id
|
2012
1989
|
# The identifier for the assessment.
|
@@ -2188,7 +2165,7 @@ module Aws::AuditManager
|
|
2188
2165
|
# Returns the settings for the specified Amazon Web Services account.
|
2189
2166
|
#
|
2190
2167
|
# @option params [required, String] :attribute
|
2191
|
-
# The list of
|
2168
|
+
# The list of setting attribute enum values.
|
2192
2169
|
#
|
2193
2170
|
# @return [Types::GetSettingsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2194
2171
|
#
|
@@ -2197,7 +2174,7 @@ module Aws::AuditManager
|
|
2197
2174
|
# @example Request syntax with placeholder values
|
2198
2175
|
#
|
2199
2176
|
# resp = client.get_settings({
|
2200
|
-
# attribute: "ALL", # required, accepts ALL, IS_AWS_ORG_ENABLED, SNS_TOPIC, DEFAULT_ASSESSMENT_REPORTS_DESTINATION, DEFAULT_PROCESS_OWNERS, EVIDENCE_FINDER_ENABLEMENT
|
2177
|
+
# attribute: "ALL", # required, accepts ALL, IS_AWS_ORG_ENABLED, SNS_TOPIC, DEFAULT_ASSESSMENT_REPORTS_DESTINATION, DEFAULT_PROCESS_OWNERS, EVIDENCE_FINDER_ENABLEMENT, DEREGISTRATION_POLICY
|
2201
2178
|
# })
|
2202
2179
|
#
|
2203
2180
|
# @example Response structure
|
@@ -2214,6 +2191,7 @@ module Aws::AuditManager
|
|
2214
2191
|
# resp.settings.evidence_finder_enablement.enablement_status #=> String, one of "ENABLED", "DISABLED", "ENABLE_IN_PROGRESS", "DISABLE_IN_PROGRESS"
|
2215
2192
|
# resp.settings.evidence_finder_enablement.backfill_status #=> String, one of "NOT_STARTED", "IN_PROGRESS", "COMPLETED"
|
2216
2193
|
# resp.settings.evidence_finder_enablement.error #=> String
|
2194
|
+
# resp.settings.deregistration_policy.delete_resources #=> String, one of "ALL", "DEFAULT"
|
2217
2195
|
#
|
2218
2196
|
# @see http://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetSettings AWS API Documentation
|
2219
2197
|
#
|
@@ -3694,16 +3672,16 @@ module Aws::AuditManager
|
|
3694
3672
|
# again. Your only alternative is to [deregister][1] and then
|
3695
3673
|
# [re-register][2] Audit Manager.
|
3696
3674
|
#
|
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
3675
|
#
|
3703
3676
|
#
|
3704
3677
|
# [1]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeregisterAccount.html
|
3705
3678
|
# [2]: https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_RegisterAccount.html
|
3706
3679
|
#
|
3680
|
+
# @option params [Types::DeregistrationPolicy] :deregistration_policy
|
3681
|
+
# The deregistration policy for your Audit Manager data. You can use
|
3682
|
+
# this attribute to determine how your data is handled when you
|
3683
|
+
# deregister Audit Manager.
|
3684
|
+
#
|
3707
3685
|
# @return [Types::UpdateSettingsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3708
3686
|
#
|
3709
3687
|
# * {Types::UpdateSettingsResponse#settings #settings} => Types::Settings
|
@@ -3724,6 +3702,9 @@ module Aws::AuditManager
|
|
3724
3702
|
# ],
|
3725
3703
|
# kms_key: "KmsKey",
|
3726
3704
|
# evidence_finder_enabled: false,
|
3705
|
+
# deregistration_policy: {
|
3706
|
+
# delete_resources: "ALL", # accepts ALL, DEFAULT
|
3707
|
+
# },
|
3727
3708
|
# })
|
3728
3709
|
#
|
3729
3710
|
# @example Response structure
|
@@ -3740,6 +3721,7 @@ module Aws::AuditManager
|
|
3740
3721
|
# resp.settings.evidence_finder_enablement.enablement_status #=> String, one of "ENABLED", "DISABLED", "ENABLE_IN_PROGRESS", "DISABLE_IN_PROGRESS"
|
3741
3722
|
# resp.settings.evidence_finder_enablement.backfill_status #=> String, one of "NOT_STARTED", "IN_PROGRESS", "COMPLETED"
|
3742
3723
|
# resp.settings.evidence_finder_enablement.error #=> String
|
3724
|
+
# resp.settings.deregistration_policy.delete_resources #=> String, one of "ALL", "DEFAULT"
|
3743
3725
|
#
|
3744
3726
|
# @see http://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/UpdateSettings AWS API Documentation
|
3745
3727
|
#
|
@@ -3801,7 +3783,7 @@ module Aws::AuditManager
|
|
3801
3783
|
params: params,
|
3802
3784
|
config: config)
|
3803
3785
|
context[:gem_name] = 'aws-sdk-auditmanager'
|
3804
|
-
context[:gem_version] = '1.
|
3786
|
+
context[:gem_version] = '1.30.0'
|
3805
3787
|
Seahorse::Client::Request.new(handlers, context)
|
3806
3788
|
end
|
3807
3789
|
|
@@ -139,10 +139,12 @@ module Aws::AuditManager
|
|
139
139
|
DeleteAssessmentResponse = Shapes::StructureShape.new(name: 'DeleteAssessmentResponse')
|
140
140
|
DeleteControlRequest = Shapes::StructureShape.new(name: 'DeleteControlRequest')
|
141
141
|
DeleteControlResponse = Shapes::StructureShape.new(name: 'DeleteControlResponse')
|
142
|
+
DeleteResources = Shapes::StringShape.new(name: 'DeleteResources')
|
142
143
|
DeregisterAccountRequest = Shapes::StructureShape.new(name: 'DeregisterAccountRequest')
|
143
144
|
DeregisterAccountResponse = Shapes::StructureShape.new(name: 'DeregisterAccountResponse')
|
144
145
|
DeregisterOrganizationAdminAccountRequest = Shapes::StructureShape.new(name: 'DeregisterOrganizationAdminAccountRequest')
|
145
146
|
DeregisterOrganizationAdminAccountResponse = Shapes::StructureShape.new(name: 'DeregisterOrganizationAdminAccountResponse')
|
147
|
+
DeregistrationPolicy = Shapes::StructureShape.new(name: 'DeregistrationPolicy')
|
146
148
|
DisassociateAssessmentReportEvidenceFolderRequest = Shapes::StructureShape.new(name: 'DisassociateAssessmentReportEvidenceFolderRequest')
|
147
149
|
DisassociateAssessmentReportEvidenceFolderResponse = Shapes::StructureShape.new(name: 'DisassociateAssessmentReportEvidenceFolderResponse')
|
148
150
|
EmailAddress = Shapes::StringShape.new(name: 'EmailAddress')
|
@@ -787,6 +789,9 @@ module Aws::AuditManager
|
|
787
789
|
|
788
790
|
DeregisterOrganizationAdminAccountResponse.struct_class = Types::DeregisterOrganizationAdminAccountResponse
|
789
791
|
|
792
|
+
DeregistrationPolicy.add_member(:delete_resources, Shapes::ShapeRef.new(shape: DeleteResources, location_name: "deleteResources"))
|
793
|
+
DeregistrationPolicy.struct_class = Types::DeregistrationPolicy
|
794
|
+
|
790
795
|
DisassociateAssessmentReportEvidenceFolderRequest.add_member(:assessment_id, Shapes::ShapeRef.new(shape: UUID, required: true, location: "uri", location_name: "assessmentId"))
|
791
796
|
DisassociateAssessmentReportEvidenceFolderRequest.add_member(:evidence_folder_id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "evidenceFolderId"))
|
792
797
|
DisassociateAssessmentReportEvidenceFolderRequest.struct_class = Types::DisassociateAssessmentReportEvidenceFolderRequest
|
@@ -1177,6 +1182,7 @@ module Aws::AuditManager
|
|
1177
1182
|
Settings.add_member(:default_process_owners, Shapes::ShapeRef.new(shape: Roles, location_name: "defaultProcessOwners"))
|
1178
1183
|
Settings.add_member(:kms_key, Shapes::ShapeRef.new(shape: KmsKey, location_name: "kmsKey"))
|
1179
1184
|
Settings.add_member(:evidence_finder_enablement, Shapes::ShapeRef.new(shape: EvidenceFinderEnablement, location_name: "evidenceFinderEnablement"))
|
1185
|
+
Settings.add_member(:deregistration_policy, Shapes::ShapeRef.new(shape: DeregistrationPolicy, location_name: "deregistrationPolicy"))
|
1180
1186
|
Settings.struct_class = Types::Settings
|
1181
1187
|
|
1182
1188
|
SourceKeyword.add_member(:keyword_input_type, Shapes::ShapeRef.new(shape: KeywordInputType, location_name: "keywordInputType"))
|
@@ -1295,6 +1301,7 @@ module Aws::AuditManager
|
|
1295
1301
|
UpdateSettingsRequest.add_member(:default_process_owners, Shapes::ShapeRef.new(shape: Roles, location_name: "defaultProcessOwners"))
|
1296
1302
|
UpdateSettingsRequest.add_member(:kms_key, Shapes::ShapeRef.new(shape: KmsKey, location_name: "kmsKey"))
|
1297
1303
|
UpdateSettingsRequest.add_member(:evidence_finder_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "evidenceFinderEnabled"))
|
1304
|
+
UpdateSettingsRequest.add_member(:deregistration_policy, Shapes::ShapeRef.new(shape: DeregistrationPolicy, location_name: "deregistrationPolicy"))
|
1298
1305
|
UpdateSettingsRequest.struct_class = Types::UpdateSettingsRequest
|
1299
1306
|
|
1300
1307
|
UpdateSettingsResponse.add_member(:settings, Shapes::ShapeRef.new(shape: Settings, location_name: "settings"))
|
@@ -50,6 +50,9 @@ module Aws::AuditManager
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
+
if self[:region].nil?
|
54
|
+
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
+
end
|
53
56
|
self[:use_dual_stack] = options[:use_dual_stack]
|
54
57
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
58
|
if self[:use_dual_stack].nil?
|
@@ -9,104 +9,43 @@
|
|
9
9
|
|
10
10
|
module Aws::AuditManager
|
11
11
|
class EndpointProvider
|
12
|
-
def
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
18
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
19
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
+
end
|
22
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
+
end
|
25
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
+
end
|
27
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
29
|
+
return Aws::Endpoints::Endpoint.new(url: "https://auditmanager-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
+
end
|
31
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
+
end
|
33
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
35
|
+
return Aws::Endpoints::Endpoint.new(url: "https://auditmanager-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
+
end
|
37
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
38
|
+
end
|
39
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
41
|
+
return Aws::Endpoints::Endpoint.new(url: "https://auditmanager.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
42
|
+
end
|
43
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
44
|
+
end
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://auditmanager.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
21
46
|
end
|
22
|
-
|
23
|
-
end
|
47
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
24
48
|
|
25
|
-
def resolve_endpoint(parameters)
|
26
|
-
@provider.resolve_endpoint(parameters)
|
27
49
|
end
|
28
|
-
|
29
|
-
# @api private
|
30
|
-
RULES = <<-JSON
|
31
|
-
eyJ2ZXJzaW9uIjoiMS4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