aws-sdk-auditmanager 1.25.0 → 1.27.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.
@@ -30,6 +30,7 @@ module Aws::AuditManager
30
30
  # * {AccessDeniedException}
31
31
  # * {InternalServerException}
32
32
  # * {ResourceNotFoundException}
33
+ # * {ServiceQuotaExceededException}
33
34
  # * {ThrottlingException}
34
35
  # * {ValidationException}
35
36
  #
@@ -94,6 +95,21 @@ module Aws::AuditManager
94
95
  end
95
96
  end
96
97
 
98
+ class ServiceQuotaExceededException < ServiceError
99
+
100
+ # @param [Seahorse::Client::RequestContext] context
101
+ # @param [String] message
102
+ # @param [Aws::AuditManager::Types::ServiceQuotaExceededException] data
103
+ def initialize(context, message, data = Aws::EmptyStructure.new)
104
+ super(context, message, data)
105
+ end
106
+
107
+ # @return [String]
108
+ def message
109
+ @message || @data[:message]
110
+ end
111
+ end
112
+
97
113
  class ThrottlingException < ServiceError
98
114
 
99
115
  # @param [Seahorse::Client::RequestContext] context
@@ -0,0 +1,190 @@
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
+
11
+ module Aws::AuditManager
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::AuditManager::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::AuditManager::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::AuditManager::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :associate_assessment_report_evidence_folder
60
+ Aws::AuditManager::Endpoints::AssociateAssessmentReportEvidenceFolder.build(context)
61
+ when :batch_associate_assessment_report_evidence
62
+ Aws::AuditManager::Endpoints::BatchAssociateAssessmentReportEvidence.build(context)
63
+ when :batch_create_delegation_by_assessment
64
+ Aws::AuditManager::Endpoints::BatchCreateDelegationByAssessment.build(context)
65
+ when :batch_delete_delegation_by_assessment
66
+ Aws::AuditManager::Endpoints::BatchDeleteDelegationByAssessment.build(context)
67
+ when :batch_disassociate_assessment_report_evidence
68
+ Aws::AuditManager::Endpoints::BatchDisassociateAssessmentReportEvidence.build(context)
69
+ when :batch_import_evidence_to_assessment_control
70
+ Aws::AuditManager::Endpoints::BatchImportEvidenceToAssessmentControl.build(context)
71
+ when :create_assessment
72
+ Aws::AuditManager::Endpoints::CreateAssessment.build(context)
73
+ when :create_assessment_framework
74
+ Aws::AuditManager::Endpoints::CreateAssessmentFramework.build(context)
75
+ when :create_assessment_report
76
+ Aws::AuditManager::Endpoints::CreateAssessmentReport.build(context)
77
+ when :create_control
78
+ Aws::AuditManager::Endpoints::CreateControl.build(context)
79
+ when :delete_assessment
80
+ Aws::AuditManager::Endpoints::DeleteAssessment.build(context)
81
+ when :delete_assessment_framework
82
+ Aws::AuditManager::Endpoints::DeleteAssessmentFramework.build(context)
83
+ when :delete_assessment_framework_share
84
+ Aws::AuditManager::Endpoints::DeleteAssessmentFrameworkShare.build(context)
85
+ when :delete_assessment_report
86
+ Aws::AuditManager::Endpoints::DeleteAssessmentReport.build(context)
87
+ when :delete_control
88
+ Aws::AuditManager::Endpoints::DeleteControl.build(context)
89
+ when :deregister_account
90
+ Aws::AuditManager::Endpoints::DeregisterAccount.build(context)
91
+ when :deregister_organization_admin_account
92
+ Aws::AuditManager::Endpoints::DeregisterOrganizationAdminAccount.build(context)
93
+ when :disassociate_assessment_report_evidence_folder
94
+ Aws::AuditManager::Endpoints::DisassociateAssessmentReportEvidenceFolder.build(context)
95
+ when :get_account_status
96
+ Aws::AuditManager::Endpoints::GetAccountStatus.build(context)
97
+ when :get_assessment
98
+ Aws::AuditManager::Endpoints::GetAssessment.build(context)
99
+ when :get_assessment_framework
100
+ Aws::AuditManager::Endpoints::GetAssessmentFramework.build(context)
101
+ when :get_assessment_report_url
102
+ Aws::AuditManager::Endpoints::GetAssessmentReportUrl.build(context)
103
+ when :get_change_logs
104
+ Aws::AuditManager::Endpoints::GetChangeLogs.build(context)
105
+ when :get_control
106
+ Aws::AuditManager::Endpoints::GetControl.build(context)
107
+ when :get_delegations
108
+ Aws::AuditManager::Endpoints::GetDelegations.build(context)
109
+ when :get_evidence
110
+ Aws::AuditManager::Endpoints::GetEvidence.build(context)
111
+ when :get_evidence_by_evidence_folder
112
+ Aws::AuditManager::Endpoints::GetEvidenceByEvidenceFolder.build(context)
113
+ when :get_evidence_folder
114
+ Aws::AuditManager::Endpoints::GetEvidenceFolder.build(context)
115
+ when :get_evidence_folders_by_assessment
116
+ Aws::AuditManager::Endpoints::GetEvidenceFoldersByAssessment.build(context)
117
+ when :get_evidence_folders_by_assessment_control
118
+ Aws::AuditManager::Endpoints::GetEvidenceFoldersByAssessmentControl.build(context)
119
+ when :get_insights
120
+ Aws::AuditManager::Endpoints::GetInsights.build(context)
121
+ when :get_insights_by_assessment
122
+ Aws::AuditManager::Endpoints::GetInsightsByAssessment.build(context)
123
+ when :get_organization_admin_account
124
+ Aws::AuditManager::Endpoints::GetOrganizationAdminAccount.build(context)
125
+ when :get_services_in_scope
126
+ Aws::AuditManager::Endpoints::GetServicesInScope.build(context)
127
+ when :get_settings
128
+ Aws::AuditManager::Endpoints::GetSettings.build(context)
129
+ when :list_assessment_control_insights_by_control_domain
130
+ Aws::AuditManager::Endpoints::ListAssessmentControlInsightsByControlDomain.build(context)
131
+ when :list_assessment_framework_share_requests
132
+ Aws::AuditManager::Endpoints::ListAssessmentFrameworkShareRequests.build(context)
133
+ when :list_assessment_frameworks
134
+ Aws::AuditManager::Endpoints::ListAssessmentFrameworks.build(context)
135
+ when :list_assessment_reports
136
+ Aws::AuditManager::Endpoints::ListAssessmentReports.build(context)
137
+ when :list_assessments
138
+ Aws::AuditManager::Endpoints::ListAssessments.build(context)
139
+ when :list_control_domain_insights
140
+ Aws::AuditManager::Endpoints::ListControlDomainInsights.build(context)
141
+ when :list_control_domain_insights_by_assessment
142
+ Aws::AuditManager::Endpoints::ListControlDomainInsightsByAssessment.build(context)
143
+ when :list_control_insights_by_control_domain
144
+ Aws::AuditManager::Endpoints::ListControlInsightsByControlDomain.build(context)
145
+ when :list_controls
146
+ Aws::AuditManager::Endpoints::ListControls.build(context)
147
+ when :list_keywords_for_data_source
148
+ Aws::AuditManager::Endpoints::ListKeywordsForDataSource.build(context)
149
+ when :list_notifications
150
+ Aws::AuditManager::Endpoints::ListNotifications.build(context)
151
+ when :list_tags_for_resource
152
+ Aws::AuditManager::Endpoints::ListTagsForResource.build(context)
153
+ when :register_account
154
+ Aws::AuditManager::Endpoints::RegisterAccount.build(context)
155
+ when :register_organization_admin_account
156
+ Aws::AuditManager::Endpoints::RegisterOrganizationAdminAccount.build(context)
157
+ when :start_assessment_framework_share
158
+ Aws::AuditManager::Endpoints::StartAssessmentFrameworkShare.build(context)
159
+ when :tag_resource
160
+ Aws::AuditManager::Endpoints::TagResource.build(context)
161
+ when :untag_resource
162
+ Aws::AuditManager::Endpoints::UntagResource.build(context)
163
+ when :update_assessment
164
+ Aws::AuditManager::Endpoints::UpdateAssessment.build(context)
165
+ when :update_assessment_control
166
+ Aws::AuditManager::Endpoints::UpdateAssessmentControl.build(context)
167
+ when :update_assessment_control_set_status
168
+ Aws::AuditManager::Endpoints::UpdateAssessmentControlSetStatus.build(context)
169
+ when :update_assessment_framework
170
+ Aws::AuditManager::Endpoints::UpdateAssessmentFramework.build(context)
171
+ when :update_assessment_framework_share
172
+ Aws::AuditManager::Endpoints::UpdateAssessmentFrameworkShare.build(context)
173
+ when :update_assessment_status
174
+ Aws::AuditManager::Endpoints::UpdateAssessmentStatus.build(context)
175
+ when :update_control
176
+ Aws::AuditManager::Endpoints::UpdateControl.build(context)
177
+ when :update_settings
178
+ Aws::AuditManager::Endpoints::UpdateSettings.build(context)
179
+ when :validate_assessment_report_integrity
180
+ Aws::AuditManager::Endpoints::ValidateAssessmentReportIntegrity.build(context)
181
+ end
182
+ end
183
+ end
184
+
185
+ def add_handlers(handlers, _config)
186
+ handlers.add(Handler, step: :build, priority: 75)
187
+ end
188
+ end
189
+ end
190
+ end
@@ -1462,6 +1462,25 @@ module Aws::AuditManager
1462
1462
  # @!attribute [rw] source_keyword
1463
1463
  # The keyword to search for in CloudTrail logs, Config rules, Security
1464
1464
  # Hub checks, and Amazon Web Services API names.
1465
+ #
1466
+ # To learn more about the supported keywords that you can use when
1467
+ # mapping a control data source, see the following pages in the *Audit
1468
+ # Manager User Guide*\:
1469
+ #
1470
+ # * [Config rules supported by Audit Manager][1]
1471
+ #
1472
+ # * [Security Hub controls supported by Audit Manager][2]
1473
+ #
1474
+ # * [API calls supported by Audit Manager][3]
1475
+ #
1476
+ # * [CloudTrail event names supported by Audit Manager][4]
1477
+ #
1478
+ #
1479
+ #
1480
+ # [1]: https://docs.aws.amazon.com/audit-manager/latest/userguide/control-data-sources-ash.html
1481
+ # [2]: https://docs.aws.amazon.com/audit-manager/latest/userguide/control-data-sources-config.html
1482
+ # [3]: https://docs.aws.amazon.com/audit-manager/latest/userguide/control-data-sources-api.html
1483
+ # [4]: https://docs.aws.amazon.com/audit-manager/latest/userguide/control-data-sources-cloudtrail.html
1465
1484
  # @return [Types::SourceKeyword]
1466
1485
  #
1467
1486
  # @!attribute [rw] source_frequency
@@ -1857,6 +1876,25 @@ module Aws::AuditManager
1857
1876
  # @!attribute [rw] source_keyword
1858
1877
  # The keyword to search for in CloudTrail logs, Config rules, Security
1859
1878
  # Hub checks, and Amazon Web Services API names.
1879
+ #
1880
+ # To learn more about the supported keywords that you can use when
1881
+ # mapping a control data source, see the following pages in the *Audit
1882
+ # Manager User Guide*\:
1883
+ #
1884
+ # * [Config rules supported by Audit Manager][1]
1885
+ #
1886
+ # * [Security Hub controls supported by Audit Manager][2]
1887
+ #
1888
+ # * [API calls supported by Audit Manager][3]
1889
+ #
1890
+ # * [CloudTrail event names supported by Audit Manager][4]
1891
+ #
1892
+ #
1893
+ #
1894
+ # [1]: https://docs.aws.amazon.com/audit-manager/latest/userguide/control-data-sources-ash.html
1895
+ # [2]: https://docs.aws.amazon.com/audit-manager/latest/userguide/control-data-sources-config.html
1896
+ # [3]: https://docs.aws.amazon.com/audit-manager/latest/userguide/control-data-sources-api.html
1897
+ # [4]: https://docs.aws.amazon.com/audit-manager/latest/userguide/control-data-sources-cloudtrail.html
1860
1898
  # @return [Types::SourceKeyword]
1861
1899
  #
1862
1900
  # @!attribute [rw] source_frequency
@@ -4273,6 +4311,28 @@ module Aws::AuditManager
4273
4311
  include Aws::Structure
4274
4312
  end
4275
4313
 
4314
+ # You've reached your account quota for this resource type. To perform
4315
+ # the requested action, delete some existing resources or [request a
4316
+ # quota increase][1] from the Service Quotas console. For a list of
4317
+ # Audit Manager service quotas, see [Quotas and restrictions for Audit
4318
+ # Manager][2].
4319
+ #
4320
+ #
4321
+ #
4322
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html
4323
+ # [2]: https://docs.aws.amazon.com/audit-manager/latest/userguide/service-quotas.html
4324
+ #
4325
+ # @!attribute [rw] message
4326
+ # @return [String]
4327
+ #
4328
+ # @see http://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/ServiceQuotaExceededException AWS API Documentation
4329
+ #
4330
+ class ServiceQuotaExceededException < Struct.new(
4331
+ :message)
4332
+ SENSITIVE = []
4333
+ include Aws::Structure
4334
+ end
4335
+
4276
4336
  # The settings object that holds all supported Audit Manager settings.
4277
4337
  #
4278
4338
  # @!attribute [rw] is_aws_org_enabled
@@ -4311,6 +4371,25 @@ module Aws::AuditManager
4311
4371
  # The keyword to search for in CloudTrail logs, Config rules, Security
4312
4372
  # Hub checks, and Amazon Web Services API names.
4313
4373
  #
4374
+ # To learn more about the supported keywords that you can use when
4375
+ # mapping a control data source, see the following pages in the *Audit
4376
+ # Manager User Guide*\:
4377
+ #
4378
+ # * [Config rules supported by Audit Manager][1]
4379
+ #
4380
+ # * [Security Hub controls supported by Audit Manager][2]
4381
+ #
4382
+ # * [API calls supported by Audit Manager][3]
4383
+ #
4384
+ # * [CloudTrail event names supported by Audit Manager][4]
4385
+ #
4386
+ #
4387
+ #
4388
+ # [1]: https://docs.aws.amazon.com/audit-manager/latest/userguide/control-data-sources-ash.html
4389
+ # [2]: https://docs.aws.amazon.com/audit-manager/latest/userguide/control-data-sources-config.html
4390
+ # [3]: https://docs.aws.amazon.com/audit-manager/latest/userguide/control-data-sources-api.html
4391
+ # [4]: https://docs.aws.amazon.com/audit-manager/latest/userguide/control-data-sources-cloudtrail.html
4392
+ #
4314
4393
  # @note When making an API call, you may pass SourceKeyword
4315
4394
  # data as a hash:
4316
4395
  #
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-auditmanager/types'
15
15
  require_relative 'aws-sdk-auditmanager/client_api'
16
+ require_relative 'aws-sdk-auditmanager/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-auditmanager/client'
17
18
  require_relative 'aws-sdk-auditmanager/errors'
18
19
  require_relative 'aws-sdk-auditmanager/resource'
20
+ require_relative 'aws-sdk-auditmanager/endpoint_parameters'
21
+ require_relative 'aws-sdk-auditmanager/endpoint_provider'
22
+ require_relative 'aws-sdk-auditmanager/endpoints'
19
23
  require_relative 'aws-sdk-auditmanager/customizations'
20
24
 
21
25
  # This module provides support for AWS Audit Manager. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-auditmanager/customizations'
48
52
  # @!group service
49
53
  module Aws::AuditManager
50
54
 
51
- GEM_VERSION = '1.25.0'
55
+ GEM_VERSION = '1.27.0'
52
56
 
53
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-auditmanager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.25.0
4
+ version: 1.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-07 00:00:00.000000000 Z
11
+ date: 2022-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.127.0
22
+ version: 3.165.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-auditmanager/client.rb
60
60
  - lib/aws-sdk-auditmanager/client_api.rb
61
61
  - lib/aws-sdk-auditmanager/customizations.rb
62
+ - lib/aws-sdk-auditmanager/endpoint_parameters.rb
63
+ - lib/aws-sdk-auditmanager/endpoint_provider.rb
64
+ - lib/aws-sdk-auditmanager/endpoints.rb
62
65
  - lib/aws-sdk-auditmanager/errors.rb
66
+ - lib/aws-sdk-auditmanager/plugins/endpoints.rb
63
67
  - lib/aws-sdk-auditmanager/resource.rb
64
68
  - lib/aws-sdk-auditmanager/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby