aws-sdk-iot 1.105.0 → 1.107.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-iot/client.rb +623 -3
- data/lib/aws-sdk-iot/client_api.rb +354 -0
- data/lib/aws-sdk-iot/endpoints.rb +169 -0
- data/lib/aws-sdk-iot/errors.rb +37 -0
- data/lib/aws-sdk-iot/plugins/endpoints.rb +24 -0
- data/lib/aws-sdk-iot/types.rb +680 -6
- data/lib/aws-sdk-iot.rb +1 -1
- metadata +2 -2
@@ -9,6 +9,7 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
module Aws::IoT
|
12
|
+
# @api private
|
12
13
|
module Endpoints
|
13
14
|
|
14
15
|
class AcceptCertificateTransfer
|
@@ -431,6 +432,34 @@ module Aws::IoT
|
|
431
432
|
end
|
432
433
|
end
|
433
434
|
|
435
|
+
class CreatePackage
|
436
|
+
def self.build(context)
|
437
|
+
unless context.config.regional_endpoint
|
438
|
+
endpoint = context.config.endpoint.to_s
|
439
|
+
end
|
440
|
+
Aws::IoT::EndpointParameters.new(
|
441
|
+
region: context.config.region,
|
442
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
443
|
+
use_fips: context.config.use_fips_endpoint,
|
444
|
+
endpoint: endpoint,
|
445
|
+
)
|
446
|
+
end
|
447
|
+
end
|
448
|
+
|
449
|
+
class CreatePackageVersion
|
450
|
+
def self.build(context)
|
451
|
+
unless context.config.regional_endpoint
|
452
|
+
endpoint = context.config.endpoint.to_s
|
453
|
+
end
|
454
|
+
Aws::IoT::EndpointParameters.new(
|
455
|
+
region: context.config.region,
|
456
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
457
|
+
use_fips: context.config.use_fips_endpoint,
|
458
|
+
endpoint: endpoint,
|
459
|
+
)
|
460
|
+
end
|
461
|
+
end
|
462
|
+
|
434
463
|
class CreatePolicy
|
435
464
|
def self.build(context)
|
436
465
|
unless context.config.regional_endpoint
|
@@ -851,6 +880,34 @@ module Aws::IoT
|
|
851
880
|
end
|
852
881
|
end
|
853
882
|
|
883
|
+
class DeletePackage
|
884
|
+
def self.build(context)
|
885
|
+
unless context.config.regional_endpoint
|
886
|
+
endpoint = context.config.endpoint.to_s
|
887
|
+
end
|
888
|
+
Aws::IoT::EndpointParameters.new(
|
889
|
+
region: context.config.region,
|
890
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
891
|
+
use_fips: context.config.use_fips_endpoint,
|
892
|
+
endpoint: endpoint,
|
893
|
+
)
|
894
|
+
end
|
895
|
+
end
|
896
|
+
|
897
|
+
class DeletePackageVersion
|
898
|
+
def self.build(context)
|
899
|
+
unless context.config.regional_endpoint
|
900
|
+
endpoint = context.config.endpoint.to_s
|
901
|
+
end
|
902
|
+
Aws::IoT::EndpointParameters.new(
|
903
|
+
region: context.config.region,
|
904
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
905
|
+
use_fips: context.config.use_fips_endpoint,
|
906
|
+
endpoint: endpoint,
|
907
|
+
)
|
908
|
+
end
|
909
|
+
end
|
910
|
+
|
854
911
|
class DeletePolicy
|
855
912
|
def self.build(context)
|
856
913
|
unless context.config.regional_endpoint
|
@@ -1733,6 +1790,48 @@ module Aws::IoT
|
|
1733
1790
|
end
|
1734
1791
|
end
|
1735
1792
|
|
1793
|
+
class GetPackage
|
1794
|
+
def self.build(context)
|
1795
|
+
unless context.config.regional_endpoint
|
1796
|
+
endpoint = context.config.endpoint.to_s
|
1797
|
+
end
|
1798
|
+
Aws::IoT::EndpointParameters.new(
|
1799
|
+
region: context.config.region,
|
1800
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
1801
|
+
use_fips: context.config.use_fips_endpoint,
|
1802
|
+
endpoint: endpoint,
|
1803
|
+
)
|
1804
|
+
end
|
1805
|
+
end
|
1806
|
+
|
1807
|
+
class GetPackageConfiguration
|
1808
|
+
def self.build(context)
|
1809
|
+
unless context.config.regional_endpoint
|
1810
|
+
endpoint = context.config.endpoint.to_s
|
1811
|
+
end
|
1812
|
+
Aws::IoT::EndpointParameters.new(
|
1813
|
+
region: context.config.region,
|
1814
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
1815
|
+
use_fips: context.config.use_fips_endpoint,
|
1816
|
+
endpoint: endpoint,
|
1817
|
+
)
|
1818
|
+
end
|
1819
|
+
end
|
1820
|
+
|
1821
|
+
class GetPackageVersion
|
1822
|
+
def self.build(context)
|
1823
|
+
unless context.config.regional_endpoint
|
1824
|
+
endpoint = context.config.endpoint.to_s
|
1825
|
+
end
|
1826
|
+
Aws::IoT::EndpointParameters.new(
|
1827
|
+
region: context.config.region,
|
1828
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
1829
|
+
use_fips: context.config.use_fips_endpoint,
|
1830
|
+
endpoint: endpoint,
|
1831
|
+
)
|
1832
|
+
end
|
1833
|
+
end
|
1834
|
+
|
1736
1835
|
class GetPercentiles
|
1737
1836
|
def self.build(context)
|
1738
1837
|
unless context.config.regional_endpoint
|
@@ -2237,6 +2336,34 @@ module Aws::IoT
|
|
2237
2336
|
end
|
2238
2337
|
end
|
2239
2338
|
|
2339
|
+
class ListPackageVersions
|
2340
|
+
def self.build(context)
|
2341
|
+
unless context.config.regional_endpoint
|
2342
|
+
endpoint = context.config.endpoint.to_s
|
2343
|
+
end
|
2344
|
+
Aws::IoT::EndpointParameters.new(
|
2345
|
+
region: context.config.region,
|
2346
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
2347
|
+
use_fips: context.config.use_fips_endpoint,
|
2348
|
+
endpoint: endpoint,
|
2349
|
+
)
|
2350
|
+
end
|
2351
|
+
end
|
2352
|
+
|
2353
|
+
class ListPackages
|
2354
|
+
def self.build(context)
|
2355
|
+
unless context.config.regional_endpoint
|
2356
|
+
endpoint = context.config.endpoint.to_s
|
2357
|
+
end
|
2358
|
+
Aws::IoT::EndpointParameters.new(
|
2359
|
+
region: context.config.region,
|
2360
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
2361
|
+
use_fips: context.config.use_fips_endpoint,
|
2362
|
+
endpoint: endpoint,
|
2363
|
+
)
|
2364
|
+
end
|
2365
|
+
end
|
2366
|
+
|
2240
2367
|
class ListPolicies
|
2241
2368
|
def self.build(context)
|
2242
2369
|
unless context.config.regional_endpoint
|
@@ -3203,6 +3330,48 @@ module Aws::IoT
|
|
3203
3330
|
end
|
3204
3331
|
end
|
3205
3332
|
|
3333
|
+
class UpdatePackage
|
3334
|
+
def self.build(context)
|
3335
|
+
unless context.config.regional_endpoint
|
3336
|
+
endpoint = context.config.endpoint.to_s
|
3337
|
+
end
|
3338
|
+
Aws::IoT::EndpointParameters.new(
|
3339
|
+
region: context.config.region,
|
3340
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
3341
|
+
use_fips: context.config.use_fips_endpoint,
|
3342
|
+
endpoint: endpoint,
|
3343
|
+
)
|
3344
|
+
end
|
3345
|
+
end
|
3346
|
+
|
3347
|
+
class UpdatePackageConfiguration
|
3348
|
+
def self.build(context)
|
3349
|
+
unless context.config.regional_endpoint
|
3350
|
+
endpoint = context.config.endpoint.to_s
|
3351
|
+
end
|
3352
|
+
Aws::IoT::EndpointParameters.new(
|
3353
|
+
region: context.config.region,
|
3354
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
3355
|
+
use_fips: context.config.use_fips_endpoint,
|
3356
|
+
endpoint: endpoint,
|
3357
|
+
)
|
3358
|
+
end
|
3359
|
+
end
|
3360
|
+
|
3361
|
+
class UpdatePackageVersion
|
3362
|
+
def self.build(context)
|
3363
|
+
unless context.config.regional_endpoint
|
3364
|
+
endpoint = context.config.endpoint.to_s
|
3365
|
+
end
|
3366
|
+
Aws::IoT::EndpointParameters.new(
|
3367
|
+
region: context.config.region,
|
3368
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
3369
|
+
use_fips: context.config.use_fips_endpoint,
|
3370
|
+
endpoint: endpoint,
|
3371
|
+
)
|
3372
|
+
end
|
3373
|
+
end
|
3374
|
+
|
3206
3375
|
class UpdateProvisioningTemplate
|
3207
3376
|
def self.build(context)
|
3208
3377
|
unless context.config.regional_endpoint
|
data/lib/aws-sdk-iot/errors.rb
CHANGED
@@ -49,6 +49,7 @@ module Aws::IoT
|
|
49
49
|
# * {ResourceAlreadyExistsException}
|
50
50
|
# * {ResourceNotFoundException}
|
51
51
|
# * {ResourceRegistrationFailureException}
|
52
|
+
# * {ServiceQuotaExceededException}
|
52
53
|
# * {ServiceUnavailableException}
|
53
54
|
# * {SqlParseException}
|
54
55
|
# * {TaskAlreadyExistsException}
|
@@ -56,6 +57,7 @@ module Aws::IoT
|
|
56
57
|
# * {TransferAlreadyCompletedException}
|
57
58
|
# * {TransferConflictException}
|
58
59
|
# * {UnauthorizedException}
|
60
|
+
# * {ValidationException}
|
59
61
|
# * {VersionConflictException}
|
60
62
|
# * {VersionsLimitExceededException}
|
61
63
|
#
|
@@ -123,6 +125,11 @@ module Aws::IoT
|
|
123
125
|
def message
|
124
126
|
@message || @data[:message]
|
125
127
|
end
|
128
|
+
|
129
|
+
# @return [String]
|
130
|
+
def resource_id
|
131
|
+
@data[:resource_id]
|
132
|
+
end
|
126
133
|
end
|
127
134
|
|
128
135
|
class ConflictingResourceUpdateException < ServiceError
|
@@ -405,6 +412,21 @@ module Aws::IoT
|
|
405
412
|
end
|
406
413
|
end
|
407
414
|
|
415
|
+
class ServiceQuotaExceededException < ServiceError
|
416
|
+
|
417
|
+
# @param [Seahorse::Client::RequestContext] context
|
418
|
+
# @param [String] message
|
419
|
+
# @param [Aws::IoT::Types::ServiceQuotaExceededException] data
|
420
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
421
|
+
super(context, message, data)
|
422
|
+
end
|
423
|
+
|
424
|
+
# @return [String]
|
425
|
+
def message
|
426
|
+
@message || @data[:message]
|
427
|
+
end
|
428
|
+
end
|
429
|
+
|
408
430
|
class ServiceUnavailableException < ServiceError
|
409
431
|
|
410
432
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -510,6 +532,21 @@ module Aws::IoT
|
|
510
532
|
end
|
511
533
|
end
|
512
534
|
|
535
|
+
class ValidationException < ServiceError
|
536
|
+
|
537
|
+
# @param [Seahorse::Client::RequestContext] context
|
538
|
+
# @param [String] message
|
539
|
+
# @param [Aws::IoT::Types::ValidationException] data
|
540
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
541
|
+
super(context, message, data)
|
542
|
+
end
|
543
|
+
|
544
|
+
# @return [String]
|
545
|
+
def message
|
546
|
+
@message || @data[:message]
|
547
|
+
end
|
548
|
+
end
|
549
|
+
|
513
550
|
class VersionConflictException < ServiceError
|
514
551
|
|
515
552
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -116,6 +116,10 @@ module Aws::IoT
|
|
116
116
|
Aws::IoT::Endpoints::CreateMitigationAction.build(context)
|
117
117
|
when :create_ota_update
|
118
118
|
Aws::IoT::Endpoints::CreateOTAUpdate.build(context)
|
119
|
+
when :create_package
|
120
|
+
Aws::IoT::Endpoints::CreatePackage.build(context)
|
121
|
+
when :create_package_version
|
122
|
+
Aws::IoT::Endpoints::CreatePackageVersion.build(context)
|
119
123
|
when :create_policy
|
120
124
|
Aws::IoT::Endpoints::CreatePolicy.build(context)
|
121
125
|
when :create_policy_version
|
@@ -176,6 +180,10 @@ module Aws::IoT
|
|
176
180
|
Aws::IoT::Endpoints::DeleteMitigationAction.build(context)
|
177
181
|
when :delete_ota_update
|
178
182
|
Aws::IoT::Endpoints::DeleteOTAUpdate.build(context)
|
183
|
+
when :delete_package
|
184
|
+
Aws::IoT::Endpoints::DeletePackage.build(context)
|
185
|
+
when :delete_package_version
|
186
|
+
Aws::IoT::Endpoints::DeletePackageVersion.build(context)
|
179
187
|
when :delete_policy
|
180
188
|
Aws::IoT::Endpoints::DeletePolicy.build(context)
|
181
189
|
when :delete_policy_version
|
@@ -302,6 +310,12 @@ module Aws::IoT
|
|
302
310
|
Aws::IoT::Endpoints::GetLoggingOptions.build(context)
|
303
311
|
when :get_ota_update
|
304
312
|
Aws::IoT::Endpoints::GetOTAUpdate.build(context)
|
313
|
+
when :get_package
|
314
|
+
Aws::IoT::Endpoints::GetPackage.build(context)
|
315
|
+
when :get_package_configuration
|
316
|
+
Aws::IoT::Endpoints::GetPackageConfiguration.build(context)
|
317
|
+
when :get_package_version
|
318
|
+
Aws::IoT::Endpoints::GetPackageVersion.build(context)
|
305
319
|
when :get_percentiles
|
306
320
|
Aws::IoT::Endpoints::GetPercentiles.build(context)
|
307
321
|
when :get_policy
|
@@ -374,6 +388,10 @@ module Aws::IoT
|
|
374
388
|
Aws::IoT::Endpoints::ListOTAUpdates.build(context)
|
375
389
|
when :list_outgoing_certificates
|
376
390
|
Aws::IoT::Endpoints::ListOutgoingCertificates.build(context)
|
391
|
+
when :list_package_versions
|
392
|
+
Aws::IoT::Endpoints::ListPackageVersions.build(context)
|
393
|
+
when :list_packages
|
394
|
+
Aws::IoT::Endpoints::ListPackages.build(context)
|
377
395
|
when :list_policies
|
378
396
|
Aws::IoT::Endpoints::ListPolicies.build(context)
|
379
397
|
when :list_policy_principals
|
@@ -512,6 +530,12 @@ module Aws::IoT
|
|
512
530
|
Aws::IoT::Endpoints::UpdateJob.build(context)
|
513
531
|
when :update_mitigation_action
|
514
532
|
Aws::IoT::Endpoints::UpdateMitigationAction.build(context)
|
533
|
+
when :update_package
|
534
|
+
Aws::IoT::Endpoints::UpdatePackage.build(context)
|
535
|
+
when :update_package_configuration
|
536
|
+
Aws::IoT::Endpoints::UpdatePackageConfiguration.build(context)
|
537
|
+
when :update_package_version
|
538
|
+
Aws::IoT::Endpoints::UpdatePackageVersion.build(context)
|
515
539
|
when :update_provisioning_template
|
516
540
|
Aws::IoT::Endpoints::UpdateProvisioningTemplate.build(context)
|
517
541
|
when :update_role_alias
|