aws-sdk-configservice 1.84.0 → 1.85.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,246 @@
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_stored_query
180
+ Aws::ConfigService::Endpoints::GetStoredQuery.build(context)
181
+ when :list_aggregate_discovered_resources
182
+ Aws::ConfigService::Endpoints::ListAggregateDiscoveredResources.build(context)
183
+ when :list_conformance_pack_compliance_scores
184
+ Aws::ConfigService::Endpoints::ListConformancePackComplianceScores.build(context)
185
+ when :list_discovered_resources
186
+ Aws::ConfigService::Endpoints::ListDiscoveredResources.build(context)
187
+ when :list_stored_queries
188
+ Aws::ConfigService::Endpoints::ListStoredQueries.build(context)
189
+ when :list_tags_for_resource
190
+ Aws::ConfigService::Endpoints::ListTagsForResource.build(context)
191
+ when :put_aggregation_authorization
192
+ Aws::ConfigService::Endpoints::PutAggregationAuthorization.build(context)
193
+ when :put_config_rule
194
+ Aws::ConfigService::Endpoints::PutConfigRule.build(context)
195
+ when :put_configuration_aggregator
196
+ Aws::ConfigService::Endpoints::PutConfigurationAggregator.build(context)
197
+ when :put_configuration_recorder
198
+ Aws::ConfigService::Endpoints::PutConfigurationRecorder.build(context)
199
+ when :put_conformance_pack
200
+ Aws::ConfigService::Endpoints::PutConformancePack.build(context)
201
+ when :put_delivery_channel
202
+ Aws::ConfigService::Endpoints::PutDeliveryChannel.build(context)
203
+ when :put_evaluations
204
+ Aws::ConfigService::Endpoints::PutEvaluations.build(context)
205
+ when :put_external_evaluation
206
+ Aws::ConfigService::Endpoints::PutExternalEvaluation.build(context)
207
+ when :put_organization_config_rule
208
+ Aws::ConfigService::Endpoints::PutOrganizationConfigRule.build(context)
209
+ when :put_organization_conformance_pack
210
+ Aws::ConfigService::Endpoints::PutOrganizationConformancePack.build(context)
211
+ when :put_remediation_configurations
212
+ Aws::ConfigService::Endpoints::PutRemediationConfigurations.build(context)
213
+ when :put_remediation_exceptions
214
+ Aws::ConfigService::Endpoints::PutRemediationExceptions.build(context)
215
+ when :put_resource_config
216
+ Aws::ConfigService::Endpoints::PutResourceConfig.build(context)
217
+ when :put_retention_configuration
218
+ Aws::ConfigService::Endpoints::PutRetentionConfiguration.build(context)
219
+ when :put_stored_query
220
+ Aws::ConfigService::Endpoints::PutStoredQuery.build(context)
221
+ when :select_aggregate_resource_config
222
+ Aws::ConfigService::Endpoints::SelectAggregateResourceConfig.build(context)
223
+ when :select_resource_config
224
+ Aws::ConfigService::Endpoints::SelectResourceConfig.build(context)
225
+ when :start_config_rules_evaluation
226
+ Aws::ConfigService::Endpoints::StartConfigRulesEvaluation.build(context)
227
+ when :start_configuration_recorder
228
+ Aws::ConfigService::Endpoints::StartConfigurationRecorder.build(context)
229
+ when :start_remediation_execution
230
+ Aws::ConfigService::Endpoints::StartRemediationExecution.build(context)
231
+ when :stop_configuration_recorder
232
+ Aws::ConfigService::Endpoints::StopConfigurationRecorder.build(context)
233
+ when :tag_resource
234
+ Aws::ConfigService::Endpoints::TagResource.build(context)
235
+ when :untag_resource
236
+ Aws::ConfigService::Endpoints::UntagResource.build(context)
237
+ end
238
+ end
239
+ end
240
+
241
+ def add_handlers(handlers, _config)
242
+ handlers.add(Handler, step: :build, priority: 75)
243
+ end
244
+ end
245
+ end
246
+ end
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-configservice/types'
15
15
  require_relative 'aws-sdk-configservice/client_api'
16
+ require_relative 'aws-sdk-configservice/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-configservice/client'
17
18
  require_relative 'aws-sdk-configservice/errors'
18
19
  require_relative 'aws-sdk-configservice/resource'
20
+ require_relative 'aws-sdk-configservice/endpoint_parameters'
21
+ require_relative 'aws-sdk-configservice/endpoint_provider'
22
+ require_relative 'aws-sdk-configservice/endpoints'
19
23
  require_relative 'aws-sdk-configservice/customizations'
20
24
 
21
25
  # This module provides support for AWS Config. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-configservice/customizations'
48
52
  # @!group service
49
53
  module Aws::ConfigService
50
54
 
51
- GEM_VERSION = '1.84.0'
55
+ GEM_VERSION = '1.85.0'
52
56
 
53
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-configservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.84.0
4
+ version: 1.85.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-10-19 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-configservice/client.rb
60
60
  - lib/aws-sdk-configservice/client_api.rb
61
61
  - lib/aws-sdk-configservice/customizations.rb
62
+ - lib/aws-sdk-configservice/endpoint_parameters.rb
63
+ - lib/aws-sdk-configservice/endpoint_provider.rb
64
+ - lib/aws-sdk-configservice/endpoints.rb
62
65
  - lib/aws-sdk-configservice/errors.rb
66
+ - lib/aws-sdk-configservice/plugins/endpoints.rb
63
67
  - lib/aws-sdk-configservice/resource.rb
64
68
  - lib/aws-sdk-configservice/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby