aws-sdk-iotwireless 1.26.0 → 1.27.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,264 @@
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::IoTWireless
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::IoTWireless::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::IoTWireless::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::IoTWireless::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_aws_account_with_partner_account
60
+ Aws::IoTWireless::Endpoints::AssociateAwsAccountWithPartnerAccount.build(context)
61
+ when :associate_multicast_group_with_fuota_task
62
+ Aws::IoTWireless::Endpoints::AssociateMulticastGroupWithFuotaTask.build(context)
63
+ when :associate_wireless_device_with_fuota_task
64
+ Aws::IoTWireless::Endpoints::AssociateWirelessDeviceWithFuotaTask.build(context)
65
+ when :associate_wireless_device_with_multicast_group
66
+ Aws::IoTWireless::Endpoints::AssociateWirelessDeviceWithMulticastGroup.build(context)
67
+ when :associate_wireless_device_with_thing
68
+ Aws::IoTWireless::Endpoints::AssociateWirelessDeviceWithThing.build(context)
69
+ when :associate_wireless_gateway_with_certificate
70
+ Aws::IoTWireless::Endpoints::AssociateWirelessGatewayWithCertificate.build(context)
71
+ when :associate_wireless_gateway_with_thing
72
+ Aws::IoTWireless::Endpoints::AssociateWirelessGatewayWithThing.build(context)
73
+ when :cancel_multicast_group_session
74
+ Aws::IoTWireless::Endpoints::CancelMulticastGroupSession.build(context)
75
+ when :create_destination
76
+ Aws::IoTWireless::Endpoints::CreateDestination.build(context)
77
+ when :create_device_profile
78
+ Aws::IoTWireless::Endpoints::CreateDeviceProfile.build(context)
79
+ when :create_fuota_task
80
+ Aws::IoTWireless::Endpoints::CreateFuotaTask.build(context)
81
+ when :create_multicast_group
82
+ Aws::IoTWireless::Endpoints::CreateMulticastGroup.build(context)
83
+ when :create_network_analyzer_configuration
84
+ Aws::IoTWireless::Endpoints::CreateNetworkAnalyzerConfiguration.build(context)
85
+ when :create_service_profile
86
+ Aws::IoTWireless::Endpoints::CreateServiceProfile.build(context)
87
+ when :create_wireless_device
88
+ Aws::IoTWireless::Endpoints::CreateWirelessDevice.build(context)
89
+ when :create_wireless_gateway
90
+ Aws::IoTWireless::Endpoints::CreateWirelessGateway.build(context)
91
+ when :create_wireless_gateway_task
92
+ Aws::IoTWireless::Endpoints::CreateWirelessGatewayTask.build(context)
93
+ when :create_wireless_gateway_task_definition
94
+ Aws::IoTWireless::Endpoints::CreateWirelessGatewayTaskDefinition.build(context)
95
+ when :delete_destination
96
+ Aws::IoTWireless::Endpoints::DeleteDestination.build(context)
97
+ when :delete_device_profile
98
+ Aws::IoTWireless::Endpoints::DeleteDeviceProfile.build(context)
99
+ when :delete_fuota_task
100
+ Aws::IoTWireless::Endpoints::DeleteFuotaTask.build(context)
101
+ when :delete_multicast_group
102
+ Aws::IoTWireless::Endpoints::DeleteMulticastGroup.build(context)
103
+ when :delete_network_analyzer_configuration
104
+ Aws::IoTWireless::Endpoints::DeleteNetworkAnalyzerConfiguration.build(context)
105
+ when :delete_queued_messages
106
+ Aws::IoTWireless::Endpoints::DeleteQueuedMessages.build(context)
107
+ when :delete_service_profile
108
+ Aws::IoTWireless::Endpoints::DeleteServiceProfile.build(context)
109
+ when :delete_wireless_device
110
+ Aws::IoTWireless::Endpoints::DeleteWirelessDevice.build(context)
111
+ when :delete_wireless_gateway
112
+ Aws::IoTWireless::Endpoints::DeleteWirelessGateway.build(context)
113
+ when :delete_wireless_gateway_task
114
+ Aws::IoTWireless::Endpoints::DeleteWirelessGatewayTask.build(context)
115
+ when :delete_wireless_gateway_task_definition
116
+ Aws::IoTWireless::Endpoints::DeleteWirelessGatewayTaskDefinition.build(context)
117
+ when :disassociate_aws_account_from_partner_account
118
+ Aws::IoTWireless::Endpoints::DisassociateAwsAccountFromPartnerAccount.build(context)
119
+ when :disassociate_multicast_group_from_fuota_task
120
+ Aws::IoTWireless::Endpoints::DisassociateMulticastGroupFromFuotaTask.build(context)
121
+ when :disassociate_wireless_device_from_fuota_task
122
+ Aws::IoTWireless::Endpoints::DisassociateWirelessDeviceFromFuotaTask.build(context)
123
+ when :disassociate_wireless_device_from_multicast_group
124
+ Aws::IoTWireless::Endpoints::DisassociateWirelessDeviceFromMulticastGroup.build(context)
125
+ when :disassociate_wireless_device_from_thing
126
+ Aws::IoTWireless::Endpoints::DisassociateWirelessDeviceFromThing.build(context)
127
+ when :disassociate_wireless_gateway_from_certificate
128
+ Aws::IoTWireless::Endpoints::DisassociateWirelessGatewayFromCertificate.build(context)
129
+ when :disassociate_wireless_gateway_from_thing
130
+ Aws::IoTWireless::Endpoints::DisassociateWirelessGatewayFromThing.build(context)
131
+ when :get_destination
132
+ Aws::IoTWireless::Endpoints::GetDestination.build(context)
133
+ when :get_device_profile
134
+ Aws::IoTWireless::Endpoints::GetDeviceProfile.build(context)
135
+ when :get_event_configuration_by_resource_types
136
+ Aws::IoTWireless::Endpoints::GetEventConfigurationByResourceTypes.build(context)
137
+ when :get_fuota_task
138
+ Aws::IoTWireless::Endpoints::GetFuotaTask.build(context)
139
+ when :get_log_levels_by_resource_types
140
+ Aws::IoTWireless::Endpoints::GetLogLevelsByResourceTypes.build(context)
141
+ when :get_multicast_group
142
+ Aws::IoTWireless::Endpoints::GetMulticastGroup.build(context)
143
+ when :get_multicast_group_session
144
+ Aws::IoTWireless::Endpoints::GetMulticastGroupSession.build(context)
145
+ when :get_network_analyzer_configuration
146
+ Aws::IoTWireless::Endpoints::GetNetworkAnalyzerConfiguration.build(context)
147
+ when :get_partner_account
148
+ Aws::IoTWireless::Endpoints::GetPartnerAccount.build(context)
149
+ when :get_position
150
+ Aws::IoTWireless::Endpoints::GetPosition.build(context)
151
+ when :get_position_configuration
152
+ Aws::IoTWireless::Endpoints::GetPositionConfiguration.build(context)
153
+ when :get_resource_event_configuration
154
+ Aws::IoTWireless::Endpoints::GetResourceEventConfiguration.build(context)
155
+ when :get_resource_log_level
156
+ Aws::IoTWireless::Endpoints::GetResourceLogLevel.build(context)
157
+ when :get_service_endpoint
158
+ Aws::IoTWireless::Endpoints::GetServiceEndpoint.build(context)
159
+ when :get_service_profile
160
+ Aws::IoTWireless::Endpoints::GetServiceProfile.build(context)
161
+ when :get_wireless_device
162
+ Aws::IoTWireless::Endpoints::GetWirelessDevice.build(context)
163
+ when :get_wireless_device_statistics
164
+ Aws::IoTWireless::Endpoints::GetWirelessDeviceStatistics.build(context)
165
+ when :get_wireless_gateway
166
+ Aws::IoTWireless::Endpoints::GetWirelessGateway.build(context)
167
+ when :get_wireless_gateway_certificate
168
+ Aws::IoTWireless::Endpoints::GetWirelessGatewayCertificate.build(context)
169
+ when :get_wireless_gateway_firmware_information
170
+ Aws::IoTWireless::Endpoints::GetWirelessGatewayFirmwareInformation.build(context)
171
+ when :get_wireless_gateway_statistics
172
+ Aws::IoTWireless::Endpoints::GetWirelessGatewayStatistics.build(context)
173
+ when :get_wireless_gateway_task
174
+ Aws::IoTWireless::Endpoints::GetWirelessGatewayTask.build(context)
175
+ when :get_wireless_gateway_task_definition
176
+ Aws::IoTWireless::Endpoints::GetWirelessGatewayTaskDefinition.build(context)
177
+ when :list_destinations
178
+ Aws::IoTWireless::Endpoints::ListDestinations.build(context)
179
+ when :list_device_profiles
180
+ Aws::IoTWireless::Endpoints::ListDeviceProfiles.build(context)
181
+ when :list_event_configurations
182
+ Aws::IoTWireless::Endpoints::ListEventConfigurations.build(context)
183
+ when :list_fuota_tasks
184
+ Aws::IoTWireless::Endpoints::ListFuotaTasks.build(context)
185
+ when :list_multicast_groups
186
+ Aws::IoTWireless::Endpoints::ListMulticastGroups.build(context)
187
+ when :list_multicast_groups_by_fuota_task
188
+ Aws::IoTWireless::Endpoints::ListMulticastGroupsByFuotaTask.build(context)
189
+ when :list_network_analyzer_configurations
190
+ Aws::IoTWireless::Endpoints::ListNetworkAnalyzerConfigurations.build(context)
191
+ when :list_partner_accounts
192
+ Aws::IoTWireless::Endpoints::ListPartnerAccounts.build(context)
193
+ when :list_position_configurations
194
+ Aws::IoTWireless::Endpoints::ListPositionConfigurations.build(context)
195
+ when :list_queued_messages
196
+ Aws::IoTWireless::Endpoints::ListQueuedMessages.build(context)
197
+ when :list_service_profiles
198
+ Aws::IoTWireless::Endpoints::ListServiceProfiles.build(context)
199
+ when :list_tags_for_resource
200
+ Aws::IoTWireless::Endpoints::ListTagsForResource.build(context)
201
+ when :list_wireless_devices
202
+ Aws::IoTWireless::Endpoints::ListWirelessDevices.build(context)
203
+ when :list_wireless_gateway_task_definitions
204
+ Aws::IoTWireless::Endpoints::ListWirelessGatewayTaskDefinitions.build(context)
205
+ when :list_wireless_gateways
206
+ Aws::IoTWireless::Endpoints::ListWirelessGateways.build(context)
207
+ when :put_position_configuration
208
+ Aws::IoTWireless::Endpoints::PutPositionConfiguration.build(context)
209
+ when :put_resource_log_level
210
+ Aws::IoTWireless::Endpoints::PutResourceLogLevel.build(context)
211
+ when :reset_all_resource_log_levels
212
+ Aws::IoTWireless::Endpoints::ResetAllResourceLogLevels.build(context)
213
+ when :reset_resource_log_level
214
+ Aws::IoTWireless::Endpoints::ResetResourceLogLevel.build(context)
215
+ when :send_data_to_multicast_group
216
+ Aws::IoTWireless::Endpoints::SendDataToMulticastGroup.build(context)
217
+ when :send_data_to_wireless_device
218
+ Aws::IoTWireless::Endpoints::SendDataToWirelessDevice.build(context)
219
+ when :start_bulk_associate_wireless_device_with_multicast_group
220
+ Aws::IoTWireless::Endpoints::StartBulkAssociateWirelessDeviceWithMulticastGroup.build(context)
221
+ when :start_bulk_disassociate_wireless_device_from_multicast_group
222
+ Aws::IoTWireless::Endpoints::StartBulkDisassociateWirelessDeviceFromMulticastGroup.build(context)
223
+ when :start_fuota_task
224
+ Aws::IoTWireless::Endpoints::StartFuotaTask.build(context)
225
+ when :start_multicast_group_session
226
+ Aws::IoTWireless::Endpoints::StartMulticastGroupSession.build(context)
227
+ when :tag_resource
228
+ Aws::IoTWireless::Endpoints::TagResource.build(context)
229
+ when :test_wireless_device
230
+ Aws::IoTWireless::Endpoints::TestWirelessDevice.build(context)
231
+ when :untag_resource
232
+ Aws::IoTWireless::Endpoints::UntagResource.build(context)
233
+ when :update_destination
234
+ Aws::IoTWireless::Endpoints::UpdateDestination.build(context)
235
+ when :update_event_configuration_by_resource_types
236
+ Aws::IoTWireless::Endpoints::UpdateEventConfigurationByResourceTypes.build(context)
237
+ when :update_fuota_task
238
+ Aws::IoTWireless::Endpoints::UpdateFuotaTask.build(context)
239
+ when :update_log_levels_by_resource_types
240
+ Aws::IoTWireless::Endpoints::UpdateLogLevelsByResourceTypes.build(context)
241
+ when :update_multicast_group
242
+ Aws::IoTWireless::Endpoints::UpdateMulticastGroup.build(context)
243
+ when :update_network_analyzer_configuration
244
+ Aws::IoTWireless::Endpoints::UpdateNetworkAnalyzerConfiguration.build(context)
245
+ when :update_partner_account
246
+ Aws::IoTWireless::Endpoints::UpdatePartnerAccount.build(context)
247
+ when :update_position
248
+ Aws::IoTWireless::Endpoints::UpdatePosition.build(context)
249
+ when :update_resource_event_configuration
250
+ Aws::IoTWireless::Endpoints::UpdateResourceEventConfiguration.build(context)
251
+ when :update_wireless_device
252
+ Aws::IoTWireless::Endpoints::UpdateWirelessDevice.build(context)
253
+ when :update_wireless_gateway
254
+ Aws::IoTWireless::Endpoints::UpdateWirelessGateway.build(context)
255
+ end
256
+ end
257
+ end
258
+
259
+ def add_handlers(handlers, _config)
260
+ handlers.add(Handler, step: :build, priority: 75)
261
+ end
262
+ end
263
+ end
264
+ end
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-iotwireless/types'
15
15
  require_relative 'aws-sdk-iotwireless/client_api'
16
+ require_relative 'aws-sdk-iotwireless/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-iotwireless/client'
17
18
  require_relative 'aws-sdk-iotwireless/errors'
18
19
  require_relative 'aws-sdk-iotwireless/resource'
20
+ require_relative 'aws-sdk-iotwireless/endpoint_parameters'
21
+ require_relative 'aws-sdk-iotwireless/endpoint_provider'
22
+ require_relative 'aws-sdk-iotwireless/endpoints'
19
23
  require_relative 'aws-sdk-iotwireless/customizations'
20
24
 
21
25
  # This module provides support for AWS IoT Wireless. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-iotwireless/customizations'
48
52
  # @!group service
49
53
  module Aws::IoTWireless
50
54
 
51
- GEM_VERSION = '1.26.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-iotwireless
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.26.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-08-25 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-iotwireless/client.rb
60
60
  - lib/aws-sdk-iotwireless/client_api.rb
61
61
  - lib/aws-sdk-iotwireless/customizations.rb
62
+ - lib/aws-sdk-iotwireless/endpoint_parameters.rb
63
+ - lib/aws-sdk-iotwireless/endpoint_provider.rb
64
+ - lib/aws-sdk-iotwireless/endpoints.rb
62
65
  - lib/aws-sdk-iotwireless/errors.rb
66
+ - lib/aws-sdk-iotwireless/plugins/endpoints.rb
63
67
  - lib/aws-sdk-iotwireless/resource.rb
64
68
  - lib/aws-sdk-iotwireless/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby