aws-sdk-iotwireless 1.29.0 → 1.31.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-iotwireless/client.rb +432 -12
- data/lib/aws-sdk-iotwireless/client_api.rb +321 -0
- data/lib/aws-sdk-iotwireless/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-iotwireless/endpoint_provider.rb +27 -24
- data/lib/aws-sdk-iotwireless/endpoints.rb +112 -0
- data/lib/aws-sdk-iotwireless/plugins/endpoints.rb +16 -0
- data/lib/aws-sdk-iotwireless/types.rb +711 -16
- data/lib/aws-sdk-iotwireless.rb +1 -1
- metadata +2 -2
@@ -50,9 +50,6 @@ module Aws::IoTWireless
|
|
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
|
56
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
57
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
55
|
if self[:use_dual_stack].nil?
|
@@ -14,36 +14,39 @@ module Aws::IoTWireless
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
18
|
-
if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(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://api.iotwireless-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
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
33
18
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
-
|
35
|
-
return Aws::Endpoints::Endpoint.new(url: "https://api.iotwireless-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
-
end
|
37
|
-
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
38
20
|
end
|
39
21
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
-
|
41
|
-
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
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"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://api.iotwireless-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://api.iotwireless-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
|
+
end
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://api.iotwireless.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
42
45
|
end
|
43
|
-
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://api.iotwireless.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
44
47
|
end
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://api.iotwireless.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
46
48
|
end
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
47
50
|
raise ArgumentError, 'No endpoint could be resolved'
|
48
51
|
|
49
52
|
end
|
@@ -375,6 +375,20 @@ module Aws::IoTWireless
|
|
375
375
|
end
|
376
376
|
end
|
377
377
|
|
378
|
+
class DeleteWirelessDeviceImportTask
|
379
|
+
def self.build(context)
|
380
|
+
unless context.config.regional_endpoint
|
381
|
+
endpoint = context.config.endpoint.to_s
|
382
|
+
end
|
383
|
+
Aws::IoTWireless::EndpointParameters.new(
|
384
|
+
region: context.config.region,
|
385
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
386
|
+
use_fips: context.config.use_fips_endpoint,
|
387
|
+
endpoint: endpoint,
|
388
|
+
)
|
389
|
+
end
|
390
|
+
end
|
391
|
+
|
378
392
|
class DeleteWirelessGateway
|
379
393
|
def self.build(context)
|
380
394
|
unless context.config.regional_endpoint
|
@@ -417,6 +431,20 @@ module Aws::IoTWireless
|
|
417
431
|
end
|
418
432
|
end
|
419
433
|
|
434
|
+
class DeregisterWirelessDevice
|
435
|
+
def self.build(context)
|
436
|
+
unless context.config.regional_endpoint
|
437
|
+
endpoint = context.config.endpoint.to_s
|
438
|
+
end
|
439
|
+
Aws::IoTWireless::EndpointParameters.new(
|
440
|
+
region: context.config.region,
|
441
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
442
|
+
use_fips: context.config.use_fips_endpoint,
|
443
|
+
endpoint: endpoint,
|
444
|
+
)
|
445
|
+
end
|
446
|
+
end
|
447
|
+
|
420
448
|
class DisassociateAwsAccountFromPartnerAccount
|
421
449
|
def self.build(context)
|
422
450
|
unless context.config.regional_endpoint
|
@@ -767,6 +795,20 @@ module Aws::IoTWireless
|
|
767
795
|
end
|
768
796
|
end
|
769
797
|
|
798
|
+
class GetWirelessDeviceImportTask
|
799
|
+
def self.build(context)
|
800
|
+
unless context.config.regional_endpoint
|
801
|
+
endpoint = context.config.endpoint.to_s
|
802
|
+
end
|
803
|
+
Aws::IoTWireless::EndpointParameters.new(
|
804
|
+
region: context.config.region,
|
805
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
806
|
+
use_fips: context.config.use_fips_endpoint,
|
807
|
+
endpoint: endpoint,
|
808
|
+
)
|
809
|
+
end
|
810
|
+
end
|
811
|
+
|
770
812
|
class GetWirelessDeviceStatistics
|
771
813
|
def self.build(context)
|
772
814
|
unless context.config.regional_endpoint
|
@@ -893,6 +935,20 @@ module Aws::IoTWireless
|
|
893
935
|
end
|
894
936
|
end
|
895
937
|
|
938
|
+
class ListDevicesForWirelessDeviceImportTask
|
939
|
+
def self.build(context)
|
940
|
+
unless context.config.regional_endpoint
|
941
|
+
endpoint = context.config.endpoint.to_s
|
942
|
+
end
|
943
|
+
Aws::IoTWireless::EndpointParameters.new(
|
944
|
+
region: context.config.region,
|
945
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
946
|
+
use_fips: context.config.use_fips_endpoint,
|
947
|
+
endpoint: endpoint,
|
948
|
+
)
|
949
|
+
end
|
950
|
+
end
|
951
|
+
|
896
952
|
class ListEventConfigurations
|
897
953
|
def self.build(context)
|
898
954
|
unless context.config.regional_endpoint
|
@@ -1033,6 +1089,20 @@ module Aws::IoTWireless
|
|
1033
1089
|
end
|
1034
1090
|
end
|
1035
1091
|
|
1092
|
+
class ListWirelessDeviceImportTasks
|
1093
|
+
def self.build(context)
|
1094
|
+
unless context.config.regional_endpoint
|
1095
|
+
endpoint = context.config.endpoint.to_s
|
1096
|
+
end
|
1097
|
+
Aws::IoTWireless::EndpointParameters.new(
|
1098
|
+
region: context.config.region,
|
1099
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
1100
|
+
use_fips: context.config.use_fips_endpoint,
|
1101
|
+
endpoint: endpoint,
|
1102
|
+
)
|
1103
|
+
end
|
1104
|
+
end
|
1105
|
+
|
1036
1106
|
class ListWirelessDevices
|
1037
1107
|
def self.build(context)
|
1038
1108
|
unless context.config.regional_endpoint
|
@@ -1215,6 +1285,34 @@ module Aws::IoTWireless
|
|
1215
1285
|
end
|
1216
1286
|
end
|
1217
1287
|
|
1288
|
+
class StartSingleWirelessDeviceImportTask
|
1289
|
+
def self.build(context)
|
1290
|
+
unless context.config.regional_endpoint
|
1291
|
+
endpoint = context.config.endpoint.to_s
|
1292
|
+
end
|
1293
|
+
Aws::IoTWireless::EndpointParameters.new(
|
1294
|
+
region: context.config.region,
|
1295
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
1296
|
+
use_fips: context.config.use_fips_endpoint,
|
1297
|
+
endpoint: endpoint,
|
1298
|
+
)
|
1299
|
+
end
|
1300
|
+
end
|
1301
|
+
|
1302
|
+
class StartWirelessDeviceImportTask
|
1303
|
+
def self.build(context)
|
1304
|
+
unless context.config.regional_endpoint
|
1305
|
+
endpoint = context.config.endpoint.to_s
|
1306
|
+
end
|
1307
|
+
Aws::IoTWireless::EndpointParameters.new(
|
1308
|
+
region: context.config.region,
|
1309
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
1310
|
+
use_fips: context.config.use_fips_endpoint,
|
1311
|
+
endpoint: endpoint,
|
1312
|
+
)
|
1313
|
+
end
|
1314
|
+
end
|
1315
|
+
|
1218
1316
|
class TagResource
|
1219
1317
|
def self.build(context)
|
1220
1318
|
unless context.config.regional_endpoint
|
@@ -1411,6 +1509,20 @@ module Aws::IoTWireless
|
|
1411
1509
|
end
|
1412
1510
|
end
|
1413
1511
|
|
1512
|
+
class UpdateWirelessDeviceImportTask
|
1513
|
+
def self.build(context)
|
1514
|
+
unless context.config.regional_endpoint
|
1515
|
+
endpoint = context.config.endpoint.to_s
|
1516
|
+
end
|
1517
|
+
Aws::IoTWireless::EndpointParameters.new(
|
1518
|
+
region: context.config.region,
|
1519
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
1520
|
+
use_fips: context.config.use_fips_endpoint,
|
1521
|
+
endpoint: endpoint,
|
1522
|
+
)
|
1523
|
+
end
|
1524
|
+
end
|
1525
|
+
|
1414
1526
|
class UpdateWirelessGateway
|
1415
1527
|
def self.build(context)
|
1416
1528
|
unless context.config.regional_endpoint
|
@@ -108,12 +108,16 @@ module Aws::IoTWireless
|
|
108
108
|
Aws::IoTWireless::Endpoints::DeleteServiceProfile.build(context)
|
109
109
|
when :delete_wireless_device
|
110
110
|
Aws::IoTWireless::Endpoints::DeleteWirelessDevice.build(context)
|
111
|
+
when :delete_wireless_device_import_task
|
112
|
+
Aws::IoTWireless::Endpoints::DeleteWirelessDeviceImportTask.build(context)
|
111
113
|
when :delete_wireless_gateway
|
112
114
|
Aws::IoTWireless::Endpoints::DeleteWirelessGateway.build(context)
|
113
115
|
when :delete_wireless_gateway_task
|
114
116
|
Aws::IoTWireless::Endpoints::DeleteWirelessGatewayTask.build(context)
|
115
117
|
when :delete_wireless_gateway_task_definition
|
116
118
|
Aws::IoTWireless::Endpoints::DeleteWirelessGatewayTaskDefinition.build(context)
|
119
|
+
when :deregister_wireless_device
|
120
|
+
Aws::IoTWireless::Endpoints::DeregisterWirelessDevice.build(context)
|
117
121
|
when :disassociate_aws_account_from_partner_account
|
118
122
|
Aws::IoTWireless::Endpoints::DisassociateAwsAccountFromPartnerAccount.build(context)
|
119
123
|
when :disassociate_multicast_group_from_fuota_task
|
@@ -164,6 +168,8 @@ module Aws::IoTWireless
|
|
164
168
|
Aws::IoTWireless::Endpoints::GetServiceProfile.build(context)
|
165
169
|
when :get_wireless_device
|
166
170
|
Aws::IoTWireless::Endpoints::GetWirelessDevice.build(context)
|
171
|
+
when :get_wireless_device_import_task
|
172
|
+
Aws::IoTWireless::Endpoints::GetWirelessDeviceImportTask.build(context)
|
167
173
|
when :get_wireless_device_statistics
|
168
174
|
Aws::IoTWireless::Endpoints::GetWirelessDeviceStatistics.build(context)
|
169
175
|
when :get_wireless_gateway
|
@@ -182,6 +188,8 @@ module Aws::IoTWireless
|
|
182
188
|
Aws::IoTWireless::Endpoints::ListDestinations.build(context)
|
183
189
|
when :list_device_profiles
|
184
190
|
Aws::IoTWireless::Endpoints::ListDeviceProfiles.build(context)
|
191
|
+
when :list_devices_for_wireless_device_import_task
|
192
|
+
Aws::IoTWireless::Endpoints::ListDevicesForWirelessDeviceImportTask.build(context)
|
185
193
|
when :list_event_configurations
|
186
194
|
Aws::IoTWireless::Endpoints::ListEventConfigurations.build(context)
|
187
195
|
when :list_fuota_tasks
|
@@ -202,6 +210,8 @@ module Aws::IoTWireless
|
|
202
210
|
Aws::IoTWireless::Endpoints::ListServiceProfiles.build(context)
|
203
211
|
when :list_tags_for_resource
|
204
212
|
Aws::IoTWireless::Endpoints::ListTagsForResource.build(context)
|
213
|
+
when :list_wireless_device_import_tasks
|
214
|
+
Aws::IoTWireless::Endpoints::ListWirelessDeviceImportTasks.build(context)
|
205
215
|
when :list_wireless_devices
|
206
216
|
Aws::IoTWireless::Endpoints::ListWirelessDevices.build(context)
|
207
217
|
when :list_wireless_gateway_task_definitions
|
@@ -228,6 +238,10 @@ module Aws::IoTWireless
|
|
228
238
|
Aws::IoTWireless::Endpoints::StartFuotaTask.build(context)
|
229
239
|
when :start_multicast_group_session
|
230
240
|
Aws::IoTWireless::Endpoints::StartMulticastGroupSession.build(context)
|
241
|
+
when :start_single_wireless_device_import_task
|
242
|
+
Aws::IoTWireless::Endpoints::StartSingleWirelessDeviceImportTask.build(context)
|
243
|
+
when :start_wireless_device_import_task
|
244
|
+
Aws::IoTWireless::Endpoints::StartWirelessDeviceImportTask.build(context)
|
231
245
|
when :tag_resource
|
232
246
|
Aws::IoTWireless::Endpoints::TagResource.build(context)
|
233
247
|
when :test_wireless_device
|
@@ -256,6 +270,8 @@ module Aws::IoTWireless
|
|
256
270
|
Aws::IoTWireless::Endpoints::UpdateResourcePosition.build(context)
|
257
271
|
when :update_wireless_device
|
258
272
|
Aws::IoTWireless::Endpoints::UpdateWirelessDevice.build(context)
|
273
|
+
when :update_wireless_device_import_task
|
274
|
+
Aws::IoTWireless::Endpoints::UpdateWirelessDeviceImportTask.build(context)
|
259
275
|
when :update_wireless_gateway
|
260
276
|
Aws::IoTWireless::Endpoints::UpdateWirelessGateway.build(context)
|
261
277
|
end
|