aws-sdk-iot 1.105.0 → 1.106.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -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 +168 -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
@@ -431,6 +431,34 @@ module Aws::IoT
|
|
431
431
|
end
|
432
432
|
end
|
433
433
|
|
434
|
+
class CreatePackage
|
435
|
+
def self.build(context)
|
436
|
+
unless context.config.regional_endpoint
|
437
|
+
endpoint = context.config.endpoint.to_s
|
438
|
+
end
|
439
|
+
Aws::IoT::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
|
+
|
448
|
+
class CreatePackageVersion
|
449
|
+
def self.build(context)
|
450
|
+
unless context.config.regional_endpoint
|
451
|
+
endpoint = context.config.endpoint.to_s
|
452
|
+
end
|
453
|
+
Aws::IoT::EndpointParameters.new(
|
454
|
+
region: context.config.region,
|
455
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
456
|
+
use_fips: context.config.use_fips_endpoint,
|
457
|
+
endpoint: endpoint,
|
458
|
+
)
|
459
|
+
end
|
460
|
+
end
|
461
|
+
|
434
462
|
class CreatePolicy
|
435
463
|
def self.build(context)
|
436
464
|
unless context.config.regional_endpoint
|
@@ -851,6 +879,34 @@ module Aws::IoT
|
|
851
879
|
end
|
852
880
|
end
|
853
881
|
|
882
|
+
class DeletePackage
|
883
|
+
def self.build(context)
|
884
|
+
unless context.config.regional_endpoint
|
885
|
+
endpoint = context.config.endpoint.to_s
|
886
|
+
end
|
887
|
+
Aws::IoT::EndpointParameters.new(
|
888
|
+
region: context.config.region,
|
889
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
890
|
+
use_fips: context.config.use_fips_endpoint,
|
891
|
+
endpoint: endpoint,
|
892
|
+
)
|
893
|
+
end
|
894
|
+
end
|
895
|
+
|
896
|
+
class DeletePackageVersion
|
897
|
+
def self.build(context)
|
898
|
+
unless context.config.regional_endpoint
|
899
|
+
endpoint = context.config.endpoint.to_s
|
900
|
+
end
|
901
|
+
Aws::IoT::EndpointParameters.new(
|
902
|
+
region: context.config.region,
|
903
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
904
|
+
use_fips: context.config.use_fips_endpoint,
|
905
|
+
endpoint: endpoint,
|
906
|
+
)
|
907
|
+
end
|
908
|
+
end
|
909
|
+
|
854
910
|
class DeletePolicy
|
855
911
|
def self.build(context)
|
856
912
|
unless context.config.regional_endpoint
|
@@ -1733,6 +1789,48 @@ module Aws::IoT
|
|
1733
1789
|
end
|
1734
1790
|
end
|
1735
1791
|
|
1792
|
+
class GetPackage
|
1793
|
+
def self.build(context)
|
1794
|
+
unless context.config.regional_endpoint
|
1795
|
+
endpoint = context.config.endpoint.to_s
|
1796
|
+
end
|
1797
|
+
Aws::IoT::EndpointParameters.new(
|
1798
|
+
region: context.config.region,
|
1799
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
1800
|
+
use_fips: context.config.use_fips_endpoint,
|
1801
|
+
endpoint: endpoint,
|
1802
|
+
)
|
1803
|
+
end
|
1804
|
+
end
|
1805
|
+
|
1806
|
+
class GetPackageConfiguration
|
1807
|
+
def self.build(context)
|
1808
|
+
unless context.config.regional_endpoint
|
1809
|
+
endpoint = context.config.endpoint.to_s
|
1810
|
+
end
|
1811
|
+
Aws::IoT::EndpointParameters.new(
|
1812
|
+
region: context.config.region,
|
1813
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
1814
|
+
use_fips: context.config.use_fips_endpoint,
|
1815
|
+
endpoint: endpoint,
|
1816
|
+
)
|
1817
|
+
end
|
1818
|
+
end
|
1819
|
+
|
1820
|
+
class GetPackageVersion
|
1821
|
+
def self.build(context)
|
1822
|
+
unless context.config.regional_endpoint
|
1823
|
+
endpoint = context.config.endpoint.to_s
|
1824
|
+
end
|
1825
|
+
Aws::IoT::EndpointParameters.new(
|
1826
|
+
region: context.config.region,
|
1827
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
1828
|
+
use_fips: context.config.use_fips_endpoint,
|
1829
|
+
endpoint: endpoint,
|
1830
|
+
)
|
1831
|
+
end
|
1832
|
+
end
|
1833
|
+
|
1736
1834
|
class GetPercentiles
|
1737
1835
|
def self.build(context)
|
1738
1836
|
unless context.config.regional_endpoint
|
@@ -2237,6 +2335,34 @@ module Aws::IoT
|
|
2237
2335
|
end
|
2238
2336
|
end
|
2239
2337
|
|
2338
|
+
class ListPackageVersions
|
2339
|
+
def self.build(context)
|
2340
|
+
unless context.config.regional_endpoint
|
2341
|
+
endpoint = context.config.endpoint.to_s
|
2342
|
+
end
|
2343
|
+
Aws::IoT::EndpointParameters.new(
|
2344
|
+
region: context.config.region,
|
2345
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
2346
|
+
use_fips: context.config.use_fips_endpoint,
|
2347
|
+
endpoint: endpoint,
|
2348
|
+
)
|
2349
|
+
end
|
2350
|
+
end
|
2351
|
+
|
2352
|
+
class ListPackages
|
2353
|
+
def self.build(context)
|
2354
|
+
unless context.config.regional_endpoint
|
2355
|
+
endpoint = context.config.endpoint.to_s
|
2356
|
+
end
|
2357
|
+
Aws::IoT::EndpointParameters.new(
|
2358
|
+
region: context.config.region,
|
2359
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
2360
|
+
use_fips: context.config.use_fips_endpoint,
|
2361
|
+
endpoint: endpoint,
|
2362
|
+
)
|
2363
|
+
end
|
2364
|
+
end
|
2365
|
+
|
2240
2366
|
class ListPolicies
|
2241
2367
|
def self.build(context)
|
2242
2368
|
unless context.config.regional_endpoint
|
@@ -3203,6 +3329,48 @@ module Aws::IoT
|
|
3203
3329
|
end
|
3204
3330
|
end
|
3205
3331
|
|
3332
|
+
class UpdatePackage
|
3333
|
+
def self.build(context)
|
3334
|
+
unless context.config.regional_endpoint
|
3335
|
+
endpoint = context.config.endpoint.to_s
|
3336
|
+
end
|
3337
|
+
Aws::IoT::EndpointParameters.new(
|
3338
|
+
region: context.config.region,
|
3339
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
3340
|
+
use_fips: context.config.use_fips_endpoint,
|
3341
|
+
endpoint: endpoint,
|
3342
|
+
)
|
3343
|
+
end
|
3344
|
+
end
|
3345
|
+
|
3346
|
+
class UpdatePackageConfiguration
|
3347
|
+
def self.build(context)
|
3348
|
+
unless context.config.regional_endpoint
|
3349
|
+
endpoint = context.config.endpoint.to_s
|
3350
|
+
end
|
3351
|
+
Aws::IoT::EndpointParameters.new(
|
3352
|
+
region: context.config.region,
|
3353
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
3354
|
+
use_fips: context.config.use_fips_endpoint,
|
3355
|
+
endpoint: endpoint,
|
3356
|
+
)
|
3357
|
+
end
|
3358
|
+
end
|
3359
|
+
|
3360
|
+
class UpdatePackageVersion
|
3361
|
+
def self.build(context)
|
3362
|
+
unless context.config.regional_endpoint
|
3363
|
+
endpoint = context.config.endpoint.to_s
|
3364
|
+
end
|
3365
|
+
Aws::IoT::EndpointParameters.new(
|
3366
|
+
region: context.config.region,
|
3367
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
3368
|
+
use_fips: context.config.use_fips_endpoint,
|
3369
|
+
endpoint: endpoint,
|
3370
|
+
)
|
3371
|
+
end
|
3372
|
+
end
|
3373
|
+
|
3206
3374
|
class UpdateProvisioningTemplate
|
3207
3375
|
def self.build(context)
|
3208
3376
|
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
|