aws-sdk-iot 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c567747a23ea2d86cf9dec6ff0efdf331160f8b
4
- data.tar.gz: f08f3df8ce8546615f675b7a4a8567d017a0c8ad
3
+ metadata.gz: c3189fa8aea8c3e7f042569e88d169604bdb1435
4
+ data.tar.gz: 9c7a09e9e1d88450a619c52f0fde436d763d3f23
5
5
  SHA512:
6
- metadata.gz: bb5b7bb98f2c609bf6aeca4f8b7965428e6673135dca7c16ce84397a0c7056568d1361415430c16035adafe9a01390aa8b9532b0f2965b8e21fc6fa2183210fa
7
- data.tar.gz: b8ec9a8b03a150f223766398759bc33b1abfd24f2792c15937cb50b5f5e06064b410a535320ebd7307ff665b9f203f961758a34ddd55597becbeab41636d9799
6
+ metadata.gz: 993146bed78b0fa53d9d776d92e2391448cba4e0c0ccf2a55ed78d0b1f24177f39c209bd8393cea5b896ac96308ba6dddccf9a4fad06470959dc2ef53886bbd4
7
+ data.tar.gz: 83a15d99db41cde9668a75ae581c0294d5f048e27ef2b41ddc6a2db9a9d4dc0283b629716596676f5fdc4b5f69af0e58a56f6b00541184bb17359e527f039e0c
data/lib/aws-sdk-iot.rb CHANGED
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-iot/customizations'
42
42
  # @service
43
43
  module Aws::IoT
44
44
 
45
- GEM_VERSION = '1.2.0'
45
+ GEM_VERSION = '1.3.0'
46
46
 
47
47
  end
@@ -646,6 +646,106 @@ module Aws::IoT
646
646
  req.send_request(options)
647
647
  end
648
648
 
649
+ # Creates an AWS IoT OTAUpdate on a target group of things or groups.
650
+ #
651
+ # @option params [required, String] :ota_update_id
652
+ # The ID of the OTA update to be created.
653
+ #
654
+ # @option params [String] :description
655
+ # The description of the OTA update.
656
+ #
657
+ # @option params [required, Array<String>] :targets
658
+ # The targeted devices to receive OTA updates.
659
+ #
660
+ # @option params [String] :target_selection
661
+ # Specifies whether the update will continue to run (CONTINUOUS), or
662
+ # will be complete after all the things specified as targets have
663
+ # completed the update (SNAPSHOT). If continuous, the update may also be
664
+ # run on a thing when a change is detected in a target. For example, an
665
+ # update will run on a thing when the thing is added to a target group,
666
+ # even after the update was completed by all things originally in the
667
+ # group. Valid values: CONTINUOUS \| SNAPSHOT.
668
+ #
669
+ # @option params [required, Array<Types::OTAUpdateFile>] :files
670
+ # The files to be streamed by the OTA update.
671
+ #
672
+ # @option params [required, String] :role_arn
673
+ # The IAM role that allows access to the AWS IoT Jobs service.
674
+ #
675
+ # @option params [Hash<String,String>] :additional_parameters
676
+ # A list of additional OTA update parameters which are name-value pairs.
677
+ #
678
+ # @return [Types::CreateOTAUpdateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
679
+ #
680
+ # * {Types::CreateOTAUpdateResponse#ota_update_id #ota_update_id} => String
681
+ # * {Types::CreateOTAUpdateResponse#aws_iot_job_id #aws_iot_job_id} => String
682
+ # * {Types::CreateOTAUpdateResponse#ota_update_arn #ota_update_arn} => String
683
+ # * {Types::CreateOTAUpdateResponse#aws_iot_job_arn #aws_iot_job_arn} => String
684
+ # * {Types::CreateOTAUpdateResponse#ota_update_status #ota_update_status} => String
685
+ #
686
+ # @example Request syntax with placeholder values
687
+ #
688
+ # resp = client.create_ota_update({
689
+ # ota_update_id: "OTAUpdateId", # required
690
+ # description: "OTAUpdateDescription",
691
+ # targets: ["Target"], # required
692
+ # target_selection: "CONTINUOUS", # accepts CONTINUOUS, SNAPSHOT
693
+ # files: [ # required
694
+ # {
695
+ # file_name: "FileName",
696
+ # file_version: "OTAUpdateFileVersion",
697
+ # file_source: {
698
+ # stream_id: "StreamId",
699
+ # file_id: 1,
700
+ # },
701
+ # code_signing: {
702
+ # aws_signer_job_id: "SigningJobId",
703
+ # custom_code_signing: {
704
+ # signature: {
705
+ # stream: {
706
+ # stream_id: "StreamId",
707
+ # file_id: 1,
708
+ # },
709
+ # inline_document: "data",
710
+ # },
711
+ # certificate_chain: {
712
+ # stream: {
713
+ # stream_id: "StreamId",
714
+ # file_id: 1,
715
+ # },
716
+ # certificate_name: "CertificateName",
717
+ # inline_document: "InlineDocument",
718
+ # },
719
+ # hash_algorithm: "HashAlgorithm",
720
+ # signature_algorithm: "SignatureAlgorithm",
721
+ # },
722
+ # },
723
+ # attributes: {
724
+ # "Key" => "Value",
725
+ # },
726
+ # },
727
+ # ],
728
+ # role_arn: "RoleArn", # required
729
+ # additional_parameters: {
730
+ # "Key" => "Value",
731
+ # },
732
+ # })
733
+ #
734
+ # @example Response structure
735
+ #
736
+ # resp.ota_update_id #=> String
737
+ # resp.aws_iot_job_id #=> String
738
+ # resp.ota_update_arn #=> String
739
+ # resp.aws_iot_job_arn #=> String
740
+ # resp.ota_update_status #=> String, one of "CREATE_PENDING", "CREATE_IN_PROGRESS", "CREATE_COMPLETE", "CREATE_FAILED"
741
+ #
742
+ # @overload create_ota_update(params = {})
743
+ # @param [Hash] params ({})
744
+ def create_ota_update(params = {}, options = {})
745
+ req = build_request(:create_ota_update, params)
746
+ req.send_request(options)
747
+ end
748
+
649
749
  # Creates an AWS IoT policy.
650
750
  #
651
751
  # The created policy is the default version for the policy. This
@@ -778,6 +878,67 @@ module Aws::IoT
778
878
  req.send_request(options)
779
879
  end
780
880
 
881
+ # Creates a stream for delivering one or more large files in chunks over
882
+ # MQTT. A stream transports data bytes in chunks or blocks packaged as
883
+ # MQTT messages from a source like S3. You can have one or more files
884
+ # associated with a stream. The total size of a file associated with the
885
+ # stream cannot exceed more than 2 MB. The stream will be created with
886
+ # version 0. If a stream is created with the same streamID as a stream
887
+ # that existed and was deleted within last 90 days, we will resurrect
888
+ # that old stream by incrementing the version by 1.
889
+ #
890
+ # @option params [required, String] :stream_id
891
+ # The stream ID.
892
+ #
893
+ # @option params [String] :description
894
+ # A description of the stream.
895
+ #
896
+ # @option params [required, Array<Types::StreamFile>] :files
897
+ # The files to stream.
898
+ #
899
+ # @option params [required, String] :role_arn
900
+ # An IAM role that allows the IoT service principal assumes to access
901
+ # your S3 files.
902
+ #
903
+ # @return [Types::CreateStreamResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
904
+ #
905
+ # * {Types::CreateStreamResponse#stream_id #stream_id} => String
906
+ # * {Types::CreateStreamResponse#stream_arn #stream_arn} => String
907
+ # * {Types::CreateStreamResponse#description #description} => String
908
+ # * {Types::CreateStreamResponse#stream_version #stream_version} => Integer
909
+ #
910
+ # @example Request syntax with placeholder values
911
+ #
912
+ # resp = client.create_stream({
913
+ # stream_id: "StreamId", # required
914
+ # description: "StreamDescription",
915
+ # files: [ # required
916
+ # {
917
+ # file_id: 1,
918
+ # s3_location: {
919
+ # bucket: "S3Bucket", # required
920
+ # key: "S3Key", # required
921
+ # version: "S3Version",
922
+ # },
923
+ # },
924
+ # ],
925
+ # role_arn: "RoleArn", # required
926
+ # })
927
+ #
928
+ # @example Response structure
929
+ #
930
+ # resp.stream_id #=> String
931
+ # resp.stream_arn #=> String
932
+ # resp.description #=> String
933
+ # resp.stream_version #=> Integer
934
+ #
935
+ # @overload create_stream(params = {})
936
+ # @param [Hash] params ({})
937
+ def create_stream(params = {}, options = {})
938
+ req = build_request(:create_stream, params)
939
+ req.send_request(options)
940
+ end
941
+
781
942
  # Creates a thing record in the thing registry.
782
943
  #
783
944
  # @option params [required, String] :thing_name
@@ -1167,6 +1328,26 @@ module Aws::IoT
1167
1328
  req.send_request(options)
1168
1329
  end
1169
1330
 
1331
+ # Delete an OTA update.
1332
+ #
1333
+ # @option params [required, String] :ota_update_id
1334
+ # The OTA update ID to delete.
1335
+ #
1336
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1337
+ #
1338
+ # @example Request syntax with placeholder values
1339
+ #
1340
+ # resp = client.delete_ota_update({
1341
+ # ota_update_id: "OTAUpdateId", # required
1342
+ # })
1343
+ #
1344
+ # @overload delete_ota_update(params = {})
1345
+ # @param [Hash] params ({})
1346
+ def delete_ota_update(params = {}, options = {})
1347
+ req = build_request(:delete_ota_update, params)
1348
+ req.send_request(options)
1349
+ end
1350
+
1170
1351
  # Deletes the specified policy.
1171
1352
  #
1172
1353
  # A policy cannot be deleted if it has non-default versions or it is
@@ -1257,6 +1438,26 @@ module Aws::IoT
1257
1438
  req.send_request(options)
1258
1439
  end
1259
1440
 
1441
+ # Deletes a stream.
1442
+ #
1443
+ # @option params [required, String] :stream_id
1444
+ # The stream ID.
1445
+ #
1446
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1447
+ #
1448
+ # @example Request syntax with placeholder values
1449
+ #
1450
+ # resp = client.delete_stream({
1451
+ # stream_id: "StreamId", # required
1452
+ # })
1453
+ #
1454
+ # @overload delete_stream(params = {})
1455
+ # @param [Hash] params ({})
1456
+ def delete_stream(params = {}, options = {})
1457
+ req = build_request(:delete_stream, params)
1458
+ req.send_request(options)
1459
+ end
1460
+
1260
1461
  # Deletes the specified thing.
1261
1462
  #
1262
1463
  # @option params [required, String] :thing_name
@@ -1742,6 +1943,43 @@ module Aws::IoT
1742
1943
  req.send_request(options)
1743
1944
  end
1744
1945
 
1946
+ # Gets information about a stream.
1947
+ #
1948
+ # @option params [required, String] :stream_id
1949
+ # The stream ID.
1950
+ #
1951
+ # @return [Types::DescribeStreamResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1952
+ #
1953
+ # * {Types::DescribeStreamResponse#stream_info #stream_info} => Types::StreamInfo
1954
+ #
1955
+ # @example Request syntax with placeholder values
1956
+ #
1957
+ # resp = client.describe_stream({
1958
+ # stream_id: "StreamId", # required
1959
+ # })
1960
+ #
1961
+ # @example Response structure
1962
+ #
1963
+ # resp.stream_info.stream_id #=> String
1964
+ # resp.stream_info.stream_arn #=> String
1965
+ # resp.stream_info.stream_version #=> Integer
1966
+ # resp.stream_info.description #=> String
1967
+ # resp.stream_info.files #=> Array
1968
+ # resp.stream_info.files[0].file_id #=> Integer
1969
+ # resp.stream_info.files[0].s3_location.bucket #=> String
1970
+ # resp.stream_info.files[0].s3_location.key #=> String
1971
+ # resp.stream_info.files[0].s3_location.version #=> String
1972
+ # resp.stream_info.created_at #=> Time
1973
+ # resp.stream_info.last_updated_at #=> Time
1974
+ # resp.stream_info.role_arn #=> String
1975
+ #
1976
+ # @overload describe_stream(params = {})
1977
+ # @param [Hash] params ({})
1978
+ def describe_stream(params = {}, options = {})
1979
+ req = build_request(:describe_stream, params)
1980
+ req.send_request(options)
1981
+ end
1982
+
1745
1983
  # Gets information about the specified thing.
1746
1984
  #
1747
1985
  # @option params [required, String] :thing_name
@@ -2128,6 +2366,63 @@ module Aws::IoT
2128
2366
  req.send_request(options)
2129
2367
  end
2130
2368
 
2369
+ # Gets an OTA update.
2370
+ #
2371
+ # @option params [required, String] :ota_update_id
2372
+ # The OTA update ID.
2373
+ #
2374
+ # @return [Types::GetOTAUpdateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2375
+ #
2376
+ # * {Types::GetOTAUpdateResponse#ota_update_info #ota_update_info} => Types::OTAUpdateInfo
2377
+ #
2378
+ # @example Request syntax with placeholder values
2379
+ #
2380
+ # resp = client.get_ota_update({
2381
+ # ota_update_id: "OTAUpdateId", # required
2382
+ # })
2383
+ #
2384
+ # @example Response structure
2385
+ #
2386
+ # resp.ota_update_info.ota_update_id #=> String
2387
+ # resp.ota_update_info.ota_update_arn #=> String
2388
+ # resp.ota_update_info.creation_date #=> Time
2389
+ # resp.ota_update_info.last_modified_date #=> Time
2390
+ # resp.ota_update_info.description #=> String
2391
+ # resp.ota_update_info.targets #=> Array
2392
+ # resp.ota_update_info.targets[0] #=> String
2393
+ # resp.ota_update_info.target_selection #=> String, one of "CONTINUOUS", "SNAPSHOT"
2394
+ # resp.ota_update_info.ota_update_files #=> Array
2395
+ # resp.ota_update_info.ota_update_files[0].file_name #=> String
2396
+ # resp.ota_update_info.ota_update_files[0].file_version #=> String
2397
+ # resp.ota_update_info.ota_update_files[0].file_source.stream_id #=> String
2398
+ # resp.ota_update_info.ota_update_files[0].file_source.file_id #=> Integer
2399
+ # resp.ota_update_info.ota_update_files[0].code_signing.aws_signer_job_id #=> String
2400
+ # resp.ota_update_info.ota_update_files[0].code_signing.custom_code_signing.signature.stream.stream_id #=> String
2401
+ # resp.ota_update_info.ota_update_files[0].code_signing.custom_code_signing.signature.stream.file_id #=> Integer
2402
+ # resp.ota_update_info.ota_update_files[0].code_signing.custom_code_signing.signature.inline_document #=> String
2403
+ # resp.ota_update_info.ota_update_files[0].code_signing.custom_code_signing.certificate_chain.stream.stream_id #=> String
2404
+ # resp.ota_update_info.ota_update_files[0].code_signing.custom_code_signing.certificate_chain.stream.file_id #=> Integer
2405
+ # resp.ota_update_info.ota_update_files[0].code_signing.custom_code_signing.certificate_chain.certificate_name #=> String
2406
+ # resp.ota_update_info.ota_update_files[0].code_signing.custom_code_signing.certificate_chain.inline_document #=> String
2407
+ # resp.ota_update_info.ota_update_files[0].code_signing.custom_code_signing.hash_algorithm #=> String
2408
+ # resp.ota_update_info.ota_update_files[0].code_signing.custom_code_signing.signature_algorithm #=> String
2409
+ # resp.ota_update_info.ota_update_files[0].attributes #=> Hash
2410
+ # resp.ota_update_info.ota_update_files[0].attributes["Key"] #=> String
2411
+ # resp.ota_update_info.ota_update_status #=> String, one of "CREATE_PENDING", "CREATE_IN_PROGRESS", "CREATE_COMPLETE", "CREATE_FAILED"
2412
+ # resp.ota_update_info.aws_iot_job_id #=> String
2413
+ # resp.ota_update_info.aws_iot_job_arn #=> String
2414
+ # resp.ota_update_info.error_info.code #=> String
2415
+ # resp.ota_update_info.error_info.message #=> String
2416
+ # resp.ota_update_info.additional_parameters #=> Hash
2417
+ # resp.ota_update_info.additional_parameters["Key"] #=> String
2418
+ #
2419
+ # @overload get_ota_update(params = {})
2420
+ # @param [Hash] params ({})
2421
+ def get_ota_update(params = {}, options = {})
2422
+ req = build_request(:get_ota_update, params)
2423
+ req.send_request(options)
2424
+ end
2425
+
2131
2426
  # Gets information about the specified policy with the policy document
2132
2427
  # of the default version.
2133
2428
  #
@@ -2776,6 +3071,45 @@ module Aws::IoT
2776
3071
  req.send_request(options)
2777
3072
  end
2778
3073
 
3074
+ # Lists OTA updates.
3075
+ #
3076
+ # @option params [Integer] :max_results
3077
+ # The maximum number of results to return at one time.
3078
+ #
3079
+ # @option params [String] :next_token
3080
+ # A token used to retreive the next set of results.
3081
+ #
3082
+ # @option params [String] :ota_update_status
3083
+ # The OTA update job status.
3084
+ #
3085
+ # @return [Types::ListOTAUpdatesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3086
+ #
3087
+ # * {Types::ListOTAUpdatesResponse#ota_updates #ota_updates} => Array&lt;Types::OTAUpdateSummary&gt;
3088
+ # * {Types::ListOTAUpdatesResponse#next_token #next_token} => String
3089
+ #
3090
+ # @example Request syntax with placeholder values
3091
+ #
3092
+ # resp = client.list_ota_updates({
3093
+ # max_results: 1,
3094
+ # next_token: "NextToken",
3095
+ # ota_update_status: "CREATE_PENDING", # accepts CREATE_PENDING, CREATE_IN_PROGRESS, CREATE_COMPLETE, CREATE_FAILED
3096
+ # })
3097
+ #
3098
+ # @example Response structure
3099
+ #
3100
+ # resp.ota_updates #=> Array
3101
+ # resp.ota_updates[0].ota_update_id #=> String
3102
+ # resp.ota_updates[0].ota_update_arn #=> String
3103
+ # resp.ota_updates[0].creation_date #=> Time
3104
+ # resp.next_token #=> String
3105
+ #
3106
+ # @overload list_ota_updates(params = {})
3107
+ # @param [Hash] params ({})
3108
+ def list_ota_updates(params = {}, options = {})
3109
+ req = build_request(:list_ota_updates, params)
3110
+ req.send_request(options)
3111
+ end
3112
+
2779
3113
  # Lists certificates that are being transferred but not yet accepted.
2780
3114
  #
2781
3115
  # @option params [Integer] :page_size
@@ -3060,6 +3394,46 @@ module Aws::IoT
3060
3394
  req.send_request(options)
3061
3395
  end
3062
3396
 
3397
+ # Lists all of the streams in your AWS account.
3398
+ #
3399
+ # @option params [Integer] :max_results
3400
+ # The maximum number of results to return at a time.
3401
+ #
3402
+ # @option params [String] :next_token
3403
+ # A token used to get the next set of results.
3404
+ #
3405
+ # @option params [Boolean] :ascending_order
3406
+ # Set to true to return the list of streams in ascending order.
3407
+ #
3408
+ # @return [Types::ListStreamsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3409
+ #
3410
+ # * {Types::ListStreamsResponse#streams #streams} => Array&lt;Types::StreamSummary&gt;
3411
+ # * {Types::ListStreamsResponse#next_token #next_token} => String
3412
+ #
3413
+ # @example Request syntax with placeholder values
3414
+ #
3415
+ # resp = client.list_streams({
3416
+ # max_results: 1,
3417
+ # next_token: "NextToken",
3418
+ # ascending_order: false,
3419
+ # })
3420
+ #
3421
+ # @example Response structure
3422
+ #
3423
+ # resp.streams #=> Array
3424
+ # resp.streams[0].stream_id #=> String
3425
+ # resp.streams[0].stream_arn #=> String
3426
+ # resp.streams[0].stream_version #=> Integer
3427
+ # resp.streams[0].description #=> String
3428
+ # resp.next_token #=> String
3429
+ #
3430
+ # @overload list_streams(params = {})
3431
+ # @param [Hash] params ({})
3432
+ def list_streams(params = {}, options = {})
3433
+ req = build_request(:list_streams, params)
3434
+ req.send_request(options)
3435
+ end
3436
+
3063
3437
  # List targets for the specified policy.
3064
3438
  #
3065
3439
  # @option params [required, String] :policy_name
@@ -4526,6 +4900,61 @@ module Aws::IoT
4526
4900
  req.send_request(options)
4527
4901
  end
4528
4902
 
4903
+ # Updates an existing stream. The stream version will be incremented by
4904
+ # one.
4905
+ #
4906
+ # @option params [required, String] :stream_id
4907
+ # The stream ID.
4908
+ #
4909
+ # @option params [String] :description
4910
+ # The description of the stream.
4911
+ #
4912
+ # @option params [Array<Types::StreamFile>] :files
4913
+ # The files associated with the stream.
4914
+ #
4915
+ # @option params [String] :role_arn
4916
+ # An IAM role that allows the IoT service principal assumes to access
4917
+ # your S3 files.
4918
+ #
4919
+ # @return [Types::UpdateStreamResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4920
+ #
4921
+ # * {Types::UpdateStreamResponse#stream_id #stream_id} => String
4922
+ # * {Types::UpdateStreamResponse#stream_arn #stream_arn} => String
4923
+ # * {Types::UpdateStreamResponse#description #description} => String
4924
+ # * {Types::UpdateStreamResponse#stream_version #stream_version} => Integer
4925
+ #
4926
+ # @example Request syntax with placeholder values
4927
+ #
4928
+ # resp = client.update_stream({
4929
+ # stream_id: "StreamId", # required
4930
+ # description: "StreamDescription",
4931
+ # files: [
4932
+ # {
4933
+ # file_id: 1,
4934
+ # s3_location: {
4935
+ # bucket: "S3Bucket", # required
4936
+ # key: "S3Key", # required
4937
+ # version: "S3Version",
4938
+ # },
4939
+ # },
4940
+ # ],
4941
+ # role_arn: "RoleArn",
4942
+ # })
4943
+ #
4944
+ # @example Response structure
4945
+ #
4946
+ # resp.stream_id #=> String
4947
+ # resp.stream_arn #=> String
4948
+ # resp.description #=> String
4949
+ # resp.stream_version #=> Integer
4950
+ #
4951
+ # @overload update_stream(params = {})
4952
+ # @param [Hash] params ({})
4953
+ def update_stream(params = {}, options = {})
4954
+ req = build_request(:update_stream, params)
4955
+ req.send_request(options)
4956
+ end
4957
+
4529
4958
  # Updates the data for a thing.
4530
4959
  #
4531
4960
  # @option params [required, String] :thing_name
@@ -4660,7 +5089,7 @@ module Aws::IoT
4660
5089
  params: params,
4661
5090
  config: config)
4662
5091
  context[:gem_name] = 'aws-sdk-iot'
4663
- context[:gem_version] = '1.2.0'
5092
+ context[:gem_version] = '1.3.0'
4664
5093
  Seahorse::Client::Request.new(handlers, context)
4665
5094
  end
4666
5095