aws-sdk-configservice 1.84.0 → 1.86.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.
@@ -28,6 +28,7 @@ module Aws::ConfigService
28
28
  #
29
29
  # ## Error Classes
30
30
  # * {ConformancePackTemplateValidationException}
31
+ # * {IdempotentParameterMismatch}
31
32
  # * {InsufficientDeliveryPolicyException}
32
33
  # * {InsufficientPermissionsException}
33
34
  # * {InvalidConfigurationRecorderNameException}
@@ -97,6 +98,21 @@ module Aws::ConfigService
97
98
  end
98
99
  end
99
100
 
101
+ class IdempotentParameterMismatch < ServiceError
102
+
103
+ # @param [Seahorse::Client::RequestContext] context
104
+ # @param [String] message
105
+ # @param [Aws::ConfigService::Types::IdempotentParameterMismatch] data
106
+ def initialize(context, message, data = Aws::EmptyStructure.new)
107
+ super(context, message, data)
108
+ end
109
+
110
+ # @return [String]
111
+ def message
112
+ @message || @data[:message]
113
+ end
114
+ end
115
+
100
116
  class InsufficientDeliveryPolicyException < ServiceError
101
117
 
102
118
  # @param [Seahorse::Client::RequestContext] context
@@ -0,0 +1,252 @@
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::ConfigService
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::ConfigService::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::ConfigService::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::ConfigService::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 :batch_get_aggregate_resource_config
60
+ Aws::ConfigService::Endpoints::BatchGetAggregateResourceConfig.build(context)
61
+ when :batch_get_resource_config
62
+ Aws::ConfigService::Endpoints::BatchGetResourceConfig.build(context)
63
+ when :delete_aggregation_authorization
64
+ Aws::ConfigService::Endpoints::DeleteAggregationAuthorization.build(context)
65
+ when :delete_config_rule
66
+ Aws::ConfigService::Endpoints::DeleteConfigRule.build(context)
67
+ when :delete_configuration_aggregator
68
+ Aws::ConfigService::Endpoints::DeleteConfigurationAggregator.build(context)
69
+ when :delete_configuration_recorder
70
+ Aws::ConfigService::Endpoints::DeleteConfigurationRecorder.build(context)
71
+ when :delete_conformance_pack
72
+ Aws::ConfigService::Endpoints::DeleteConformancePack.build(context)
73
+ when :delete_delivery_channel
74
+ Aws::ConfigService::Endpoints::DeleteDeliveryChannel.build(context)
75
+ when :delete_evaluation_results
76
+ Aws::ConfigService::Endpoints::DeleteEvaluationResults.build(context)
77
+ when :delete_organization_config_rule
78
+ Aws::ConfigService::Endpoints::DeleteOrganizationConfigRule.build(context)
79
+ when :delete_organization_conformance_pack
80
+ Aws::ConfigService::Endpoints::DeleteOrganizationConformancePack.build(context)
81
+ when :delete_pending_aggregation_request
82
+ Aws::ConfigService::Endpoints::DeletePendingAggregationRequest.build(context)
83
+ when :delete_remediation_configuration
84
+ Aws::ConfigService::Endpoints::DeleteRemediationConfiguration.build(context)
85
+ when :delete_remediation_exceptions
86
+ Aws::ConfigService::Endpoints::DeleteRemediationExceptions.build(context)
87
+ when :delete_resource_config
88
+ Aws::ConfigService::Endpoints::DeleteResourceConfig.build(context)
89
+ when :delete_retention_configuration
90
+ Aws::ConfigService::Endpoints::DeleteRetentionConfiguration.build(context)
91
+ when :delete_stored_query
92
+ Aws::ConfigService::Endpoints::DeleteStoredQuery.build(context)
93
+ when :deliver_config_snapshot
94
+ Aws::ConfigService::Endpoints::DeliverConfigSnapshot.build(context)
95
+ when :describe_aggregate_compliance_by_config_rules
96
+ Aws::ConfigService::Endpoints::DescribeAggregateComplianceByConfigRules.build(context)
97
+ when :describe_aggregate_compliance_by_conformance_packs
98
+ Aws::ConfigService::Endpoints::DescribeAggregateComplianceByConformancePacks.build(context)
99
+ when :describe_aggregation_authorizations
100
+ Aws::ConfigService::Endpoints::DescribeAggregationAuthorizations.build(context)
101
+ when :describe_compliance_by_config_rule
102
+ Aws::ConfigService::Endpoints::DescribeComplianceByConfigRule.build(context)
103
+ when :describe_compliance_by_resource
104
+ Aws::ConfigService::Endpoints::DescribeComplianceByResource.build(context)
105
+ when :describe_config_rule_evaluation_status
106
+ Aws::ConfigService::Endpoints::DescribeConfigRuleEvaluationStatus.build(context)
107
+ when :describe_config_rules
108
+ Aws::ConfigService::Endpoints::DescribeConfigRules.build(context)
109
+ when :describe_configuration_aggregator_sources_status
110
+ Aws::ConfigService::Endpoints::DescribeConfigurationAggregatorSourcesStatus.build(context)
111
+ when :describe_configuration_aggregators
112
+ Aws::ConfigService::Endpoints::DescribeConfigurationAggregators.build(context)
113
+ when :describe_configuration_recorder_status
114
+ Aws::ConfigService::Endpoints::DescribeConfigurationRecorderStatus.build(context)
115
+ when :describe_configuration_recorders
116
+ Aws::ConfigService::Endpoints::DescribeConfigurationRecorders.build(context)
117
+ when :describe_conformance_pack_compliance
118
+ Aws::ConfigService::Endpoints::DescribeConformancePackCompliance.build(context)
119
+ when :describe_conformance_pack_status
120
+ Aws::ConfigService::Endpoints::DescribeConformancePackStatus.build(context)
121
+ when :describe_conformance_packs
122
+ Aws::ConfigService::Endpoints::DescribeConformancePacks.build(context)
123
+ when :describe_delivery_channel_status
124
+ Aws::ConfigService::Endpoints::DescribeDeliveryChannelStatus.build(context)
125
+ when :describe_delivery_channels
126
+ Aws::ConfigService::Endpoints::DescribeDeliveryChannels.build(context)
127
+ when :describe_organization_config_rule_statuses
128
+ Aws::ConfigService::Endpoints::DescribeOrganizationConfigRuleStatuses.build(context)
129
+ when :describe_organization_config_rules
130
+ Aws::ConfigService::Endpoints::DescribeOrganizationConfigRules.build(context)
131
+ when :describe_organization_conformance_pack_statuses
132
+ Aws::ConfigService::Endpoints::DescribeOrganizationConformancePackStatuses.build(context)
133
+ when :describe_organization_conformance_packs
134
+ Aws::ConfigService::Endpoints::DescribeOrganizationConformancePacks.build(context)
135
+ when :describe_pending_aggregation_requests
136
+ Aws::ConfigService::Endpoints::DescribePendingAggregationRequests.build(context)
137
+ when :describe_remediation_configurations
138
+ Aws::ConfigService::Endpoints::DescribeRemediationConfigurations.build(context)
139
+ when :describe_remediation_exceptions
140
+ Aws::ConfigService::Endpoints::DescribeRemediationExceptions.build(context)
141
+ when :describe_remediation_execution_status
142
+ Aws::ConfigService::Endpoints::DescribeRemediationExecutionStatus.build(context)
143
+ when :describe_retention_configurations
144
+ Aws::ConfigService::Endpoints::DescribeRetentionConfigurations.build(context)
145
+ when :get_aggregate_compliance_details_by_config_rule
146
+ Aws::ConfigService::Endpoints::GetAggregateComplianceDetailsByConfigRule.build(context)
147
+ when :get_aggregate_config_rule_compliance_summary
148
+ Aws::ConfigService::Endpoints::GetAggregateConfigRuleComplianceSummary.build(context)
149
+ when :get_aggregate_conformance_pack_compliance_summary
150
+ Aws::ConfigService::Endpoints::GetAggregateConformancePackComplianceSummary.build(context)
151
+ when :get_aggregate_discovered_resource_counts
152
+ Aws::ConfigService::Endpoints::GetAggregateDiscoveredResourceCounts.build(context)
153
+ when :get_aggregate_resource_config
154
+ Aws::ConfigService::Endpoints::GetAggregateResourceConfig.build(context)
155
+ when :get_compliance_details_by_config_rule
156
+ Aws::ConfigService::Endpoints::GetComplianceDetailsByConfigRule.build(context)
157
+ when :get_compliance_details_by_resource
158
+ Aws::ConfigService::Endpoints::GetComplianceDetailsByResource.build(context)
159
+ when :get_compliance_summary_by_config_rule
160
+ Aws::ConfigService::Endpoints::GetComplianceSummaryByConfigRule.build(context)
161
+ when :get_compliance_summary_by_resource_type
162
+ Aws::ConfigService::Endpoints::GetComplianceSummaryByResourceType.build(context)
163
+ when :get_conformance_pack_compliance_details
164
+ Aws::ConfigService::Endpoints::GetConformancePackComplianceDetails.build(context)
165
+ when :get_conformance_pack_compliance_summary
166
+ Aws::ConfigService::Endpoints::GetConformancePackComplianceSummary.build(context)
167
+ when :get_custom_rule_policy
168
+ Aws::ConfigService::Endpoints::GetCustomRulePolicy.build(context)
169
+ when :get_discovered_resource_counts
170
+ Aws::ConfigService::Endpoints::GetDiscoveredResourceCounts.build(context)
171
+ when :get_organization_config_rule_detailed_status
172
+ Aws::ConfigService::Endpoints::GetOrganizationConfigRuleDetailedStatus.build(context)
173
+ when :get_organization_conformance_pack_detailed_status
174
+ Aws::ConfigService::Endpoints::GetOrganizationConformancePackDetailedStatus.build(context)
175
+ when :get_organization_custom_rule_policy
176
+ Aws::ConfigService::Endpoints::GetOrganizationCustomRulePolicy.build(context)
177
+ when :get_resource_config_history
178
+ Aws::ConfigService::Endpoints::GetResourceConfigHistory.build(context)
179
+ when :get_resource_evaluation_summary
180
+ Aws::ConfigService::Endpoints::GetResourceEvaluationSummary.build(context)
181
+ when :get_stored_query
182
+ Aws::ConfigService::Endpoints::GetStoredQuery.build(context)
183
+ when :list_aggregate_discovered_resources
184
+ Aws::ConfigService::Endpoints::ListAggregateDiscoveredResources.build(context)
185
+ when :list_conformance_pack_compliance_scores
186
+ Aws::ConfigService::Endpoints::ListConformancePackComplianceScores.build(context)
187
+ when :list_discovered_resources
188
+ Aws::ConfigService::Endpoints::ListDiscoveredResources.build(context)
189
+ when :list_resource_evaluations
190
+ Aws::ConfigService::Endpoints::ListResourceEvaluations.build(context)
191
+ when :list_stored_queries
192
+ Aws::ConfigService::Endpoints::ListStoredQueries.build(context)
193
+ when :list_tags_for_resource
194
+ Aws::ConfigService::Endpoints::ListTagsForResource.build(context)
195
+ when :put_aggregation_authorization
196
+ Aws::ConfigService::Endpoints::PutAggregationAuthorization.build(context)
197
+ when :put_config_rule
198
+ Aws::ConfigService::Endpoints::PutConfigRule.build(context)
199
+ when :put_configuration_aggregator
200
+ Aws::ConfigService::Endpoints::PutConfigurationAggregator.build(context)
201
+ when :put_configuration_recorder
202
+ Aws::ConfigService::Endpoints::PutConfigurationRecorder.build(context)
203
+ when :put_conformance_pack
204
+ Aws::ConfigService::Endpoints::PutConformancePack.build(context)
205
+ when :put_delivery_channel
206
+ Aws::ConfigService::Endpoints::PutDeliveryChannel.build(context)
207
+ when :put_evaluations
208
+ Aws::ConfigService::Endpoints::PutEvaluations.build(context)
209
+ when :put_external_evaluation
210
+ Aws::ConfigService::Endpoints::PutExternalEvaluation.build(context)
211
+ when :put_organization_config_rule
212
+ Aws::ConfigService::Endpoints::PutOrganizationConfigRule.build(context)
213
+ when :put_organization_conformance_pack
214
+ Aws::ConfigService::Endpoints::PutOrganizationConformancePack.build(context)
215
+ when :put_remediation_configurations
216
+ Aws::ConfigService::Endpoints::PutRemediationConfigurations.build(context)
217
+ when :put_remediation_exceptions
218
+ Aws::ConfigService::Endpoints::PutRemediationExceptions.build(context)
219
+ when :put_resource_config
220
+ Aws::ConfigService::Endpoints::PutResourceConfig.build(context)
221
+ when :put_retention_configuration
222
+ Aws::ConfigService::Endpoints::PutRetentionConfiguration.build(context)
223
+ when :put_stored_query
224
+ Aws::ConfigService::Endpoints::PutStoredQuery.build(context)
225
+ when :select_aggregate_resource_config
226
+ Aws::ConfigService::Endpoints::SelectAggregateResourceConfig.build(context)
227
+ when :select_resource_config
228
+ Aws::ConfigService::Endpoints::SelectResourceConfig.build(context)
229
+ when :start_config_rules_evaluation
230
+ Aws::ConfigService::Endpoints::StartConfigRulesEvaluation.build(context)
231
+ when :start_configuration_recorder
232
+ Aws::ConfigService::Endpoints::StartConfigurationRecorder.build(context)
233
+ when :start_remediation_execution
234
+ Aws::ConfigService::Endpoints::StartRemediationExecution.build(context)
235
+ when :start_resource_evaluation
236
+ Aws::ConfigService::Endpoints::StartResourceEvaluation.build(context)
237
+ when :stop_configuration_recorder
238
+ Aws::ConfigService::Endpoints::StopConfigurationRecorder.build(context)
239
+ when :tag_resource
240
+ Aws::ConfigService::Endpoints::TagResource.build(context)
241
+ when :untag_resource
242
+ Aws::ConfigService::Endpoints::UntagResource.build(context)
243
+ end
244
+ end
245
+ end
246
+
247
+ def add_handlers(handlers, _config)
248
+ handlers.add(Handler, step: :build, priority: 75)
249
+ end
250
+ end
251
+ end
252
+ end