aws-sdk-iotsitewise 1.39.0 → 1.42.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0509cbae7f8fc1c1ef918963ad4cdb469d102b5757f7bc13800126047af70e6
4
- data.tar.gz: eca0e14f63c5cf3dc740b8eb66eabcdce5363033c74b3a35d33d54a0b64a1ddf
3
+ metadata.gz: dc6f321fc58dc7c7b588153e70f2fdc4affdfcb50a88e6eac867bf72709b5659
4
+ data.tar.gz: 173217fc5a4c697447880d846225d364f2eec5085f400268affdec4f7a506a53
5
5
  SHA512:
6
- metadata.gz: 32384441898c3e3eeea2d4f5c1b29b4b28ca888652490a8d36da2b65b209ee01fd99c1d2946951673ee69328972af0c80427617a804f5cc39c99e9c2dce0a8d4
7
- data.tar.gz: cee7a9f1267f863f0b0e2465a1b2d658b0c5e0876819ec92c5f1c1bd537037db152aa1b27213f52e1d7e5c19b5a211b1cdd3345230dfa97694127d7bfeb53901
6
+ metadata.gz: c549a99fecd705492070571f5e1d28d088f46ff7c5d44133e61fa9b8b1c9cb67eed88e0c032f6f59c38f3b14b14d068e80d397addbd090afa499561680a05fc1
7
+ data.tar.gz: 63043ea4371ab954ba203c9474413fadeaf1269ebff6fd02ff77b36c857443bcf5a7224fca7de4a69c4b7b1b0f09e32c9ad7ef835d355dc1fa96cce574ce4a26
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.42.0 (2022-05-31)
5
+ ------------------
6
+
7
+ * Feature - This release adds the following new optional field to the IoT SiteWise asset resource: assetDescription.
8
+
9
+ 1.41.0 (2022-04-21)
10
+ ------------------
11
+
12
+ * Feature - This release adds 3 new batch data query APIs : BatchGetAssetPropertyValue, BatchGetAssetPropertyValueHistory and BatchGetAssetPropertyAggregates
13
+
14
+ 1.40.0 (2022-02-24)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
4
19
  1.39.0 (2022-02-03)
5
20
  ------------------
6
21
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.39.0
1
+ 1.42.0
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
30
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
31
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
32
33
  require 'aws-sdk-core/plugins/signature_v4.rb'
@@ -75,6 +76,7 @@ module Aws::IoTSiteWise
75
76
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
76
77
  add_plugin(Aws::Plugins::TransferEncoding)
77
78
  add_plugin(Aws::Plugins::HttpChecksum)
79
+ add_plugin(Aws::Plugins::ChecksumAlgorithm)
78
80
  add_plugin(Aws::Plugins::DefaultsMode)
79
81
  add_plugin(Aws::Plugins::RecursionDetection)
80
82
  add_plugin(Aws::Plugins::SignatureV4)
@@ -522,6 +524,240 @@ module Aws::IoTSiteWise
522
524
  req.send_request(options)
523
525
  end
524
526
 
527
+ # Gets aggregated values (for example, average, minimum, and maximum)
528
+ # for one or more asset properties. For more information, see [Querying
529
+ # aggregates][1] in the *IoT SiteWise User Guide*.
530
+ #
531
+ #
532
+ #
533
+ # [1]: https://docs.aws.amazon.com/iot-sitewise/latest/userguide/query-industrial-data.html#aggregates
534
+ #
535
+ # @option params [required, Array<Types::BatchGetAssetPropertyAggregatesEntry>] :entries
536
+ # The list of asset property aggregate entries for the batch get
537
+ # request. You can specify up to 16 entries per request.
538
+ #
539
+ # @option params [String] :next_token
540
+ # The token to be used for the next set of paginated results.
541
+ #
542
+ # @option params [Integer] :max_results
543
+ # The maximum number of results to return for each paginated request. A
544
+ # result set is returned in the two cases, whichever occurs first.
545
+ #
546
+ # * The size of the result set is less than 1 MB.
547
+ #
548
+ # * The number of data points in the result set is less than the value
549
+ # of `maxResults`. The maximum value of `maxResults` is 4000.
550
+ #
551
+ # @return [Types::BatchGetAssetPropertyAggregatesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
552
+ #
553
+ # * {Types::BatchGetAssetPropertyAggregatesResponse#error_entries #error_entries} => Array&lt;Types::BatchGetAssetPropertyAggregatesErrorEntry&gt;
554
+ # * {Types::BatchGetAssetPropertyAggregatesResponse#success_entries #success_entries} => Array&lt;Types::BatchGetAssetPropertyAggregatesSuccessEntry&gt;
555
+ # * {Types::BatchGetAssetPropertyAggregatesResponse#skipped_entries #skipped_entries} => Array&lt;Types::BatchGetAssetPropertyAggregatesSkippedEntry&gt;
556
+ # * {Types::BatchGetAssetPropertyAggregatesResponse#next_token #next_token} => String
557
+ #
558
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
559
+ #
560
+ # @example Request syntax with placeholder values
561
+ #
562
+ # resp = client.batch_get_asset_property_aggregates({
563
+ # entries: [ # required
564
+ # {
565
+ # entry_id: "EntryId", # required
566
+ # asset_id: "ID",
567
+ # property_id: "ID",
568
+ # property_alias: "AssetPropertyAlias",
569
+ # aggregate_types: ["AVERAGE"], # required, accepts AVERAGE, COUNT, MAXIMUM, MINIMUM, SUM, STANDARD_DEVIATION
570
+ # resolution: "Resolution", # required
571
+ # start_date: Time.now, # required
572
+ # end_date: Time.now, # required
573
+ # qualities: ["GOOD"], # accepts GOOD, BAD, UNCERTAIN
574
+ # time_ordering: "ASCENDING", # accepts ASCENDING, DESCENDING
575
+ # },
576
+ # ],
577
+ # next_token: "NextToken",
578
+ # max_results: 1,
579
+ # })
580
+ #
581
+ # @example Response structure
582
+ #
583
+ # resp.error_entries #=> Array
584
+ # resp.error_entries[0].error_code #=> String, one of "ResourceNotFoundException", "InvalidRequestException", "AccessDeniedException"
585
+ # resp.error_entries[0].error_message #=> String
586
+ # resp.error_entries[0].entry_id #=> String
587
+ # resp.success_entries #=> Array
588
+ # resp.success_entries[0].entry_id #=> String
589
+ # resp.success_entries[0].aggregated_values #=> Array
590
+ # resp.success_entries[0].aggregated_values[0].timestamp #=> Time
591
+ # resp.success_entries[0].aggregated_values[0].quality #=> String, one of "GOOD", "BAD", "UNCERTAIN"
592
+ # resp.success_entries[0].aggregated_values[0].value.average #=> Float
593
+ # resp.success_entries[0].aggregated_values[0].value.count #=> Float
594
+ # resp.success_entries[0].aggregated_values[0].value.maximum #=> Float
595
+ # resp.success_entries[0].aggregated_values[0].value.minimum #=> Float
596
+ # resp.success_entries[0].aggregated_values[0].value.sum #=> Float
597
+ # resp.success_entries[0].aggregated_values[0].value.standard_deviation #=> Float
598
+ # resp.skipped_entries #=> Array
599
+ # resp.skipped_entries[0].entry_id #=> String
600
+ # resp.skipped_entries[0].completion_status #=> String, one of "SUCCESS", "ERROR"
601
+ # resp.skipped_entries[0].error_info.error_code #=> String, one of "ResourceNotFoundException", "InvalidRequestException", "AccessDeniedException"
602
+ # resp.skipped_entries[0].error_info.error_timestamp #=> Time
603
+ # resp.next_token #=> String
604
+ #
605
+ # @overload batch_get_asset_property_aggregates(params = {})
606
+ # @param [Hash] params ({})
607
+ def batch_get_asset_property_aggregates(params = {}, options = {})
608
+ req = build_request(:batch_get_asset_property_aggregates, params)
609
+ req.send_request(options)
610
+ end
611
+
612
+ # Gets the current value for one or more asset properties. For more
613
+ # information, see [Querying current values][1] in the *IoT SiteWise
614
+ # User Guide*.
615
+ #
616
+ #
617
+ #
618
+ # [1]: https://docs.aws.amazon.com/iot-sitewise/latest/userguide/query-industrial-data.html#current-values
619
+ #
620
+ # @option params [required, Array<Types::BatchGetAssetPropertyValueEntry>] :entries
621
+ # The list of asset property value entries for the batch get request.
622
+ # You can specify up to 16 entries per request.
623
+ #
624
+ # @option params [String] :next_token
625
+ # The token to be used for the next set of paginated results.
626
+ #
627
+ # @return [Types::BatchGetAssetPropertyValueResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
628
+ #
629
+ # * {Types::BatchGetAssetPropertyValueResponse#error_entries #error_entries} => Array&lt;Types::BatchGetAssetPropertyValueErrorEntry&gt;
630
+ # * {Types::BatchGetAssetPropertyValueResponse#success_entries #success_entries} => Array&lt;Types::BatchGetAssetPropertyValueSuccessEntry&gt;
631
+ # * {Types::BatchGetAssetPropertyValueResponse#skipped_entries #skipped_entries} => Array&lt;Types::BatchGetAssetPropertyValueSkippedEntry&gt;
632
+ # * {Types::BatchGetAssetPropertyValueResponse#next_token #next_token} => String
633
+ #
634
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
635
+ #
636
+ # @example Request syntax with placeholder values
637
+ #
638
+ # resp = client.batch_get_asset_property_value({
639
+ # entries: [ # required
640
+ # {
641
+ # entry_id: "EntryId", # required
642
+ # asset_id: "ID",
643
+ # property_id: "ID",
644
+ # property_alias: "AssetPropertyAlias",
645
+ # },
646
+ # ],
647
+ # next_token: "NextToken",
648
+ # })
649
+ #
650
+ # @example Response structure
651
+ #
652
+ # resp.error_entries #=> Array
653
+ # resp.error_entries[0].error_code #=> String, one of "ResourceNotFoundException", "InvalidRequestException", "AccessDeniedException"
654
+ # resp.error_entries[0].error_message #=> String
655
+ # resp.error_entries[0].entry_id #=> String
656
+ # resp.success_entries #=> Array
657
+ # resp.success_entries[0].entry_id #=> String
658
+ # resp.success_entries[0].asset_property_value.value.string_value #=> String
659
+ # resp.success_entries[0].asset_property_value.value.integer_value #=> Integer
660
+ # resp.success_entries[0].asset_property_value.value.double_value #=> Float
661
+ # resp.success_entries[0].asset_property_value.value.boolean_value #=> Boolean
662
+ # resp.success_entries[0].asset_property_value.timestamp.time_in_seconds #=> Integer
663
+ # resp.success_entries[0].asset_property_value.timestamp.offset_in_nanos #=> Integer
664
+ # resp.success_entries[0].asset_property_value.quality #=> String, one of "GOOD", "BAD", "UNCERTAIN"
665
+ # resp.skipped_entries #=> Array
666
+ # resp.skipped_entries[0].entry_id #=> String
667
+ # resp.skipped_entries[0].completion_status #=> String, one of "SUCCESS", "ERROR"
668
+ # resp.skipped_entries[0].error_info.error_code #=> String, one of "ResourceNotFoundException", "InvalidRequestException", "AccessDeniedException"
669
+ # resp.skipped_entries[0].error_info.error_timestamp #=> Time
670
+ # resp.next_token #=> String
671
+ #
672
+ # @overload batch_get_asset_property_value(params = {})
673
+ # @param [Hash] params ({})
674
+ def batch_get_asset_property_value(params = {}, options = {})
675
+ req = build_request(:batch_get_asset_property_value, params)
676
+ req.send_request(options)
677
+ end
678
+
679
+ # Gets the historical values for one or more asset properties. For more
680
+ # information, see [Querying historical values][1] in the *IoT SiteWise
681
+ # User Guide*.
682
+ #
683
+ #
684
+ #
685
+ # [1]: https://docs.aws.amazon.com/iot-sitewise/latest/userguide/query-industrial-data.html#historical-values
686
+ #
687
+ # @option params [required, Array<Types::BatchGetAssetPropertyValueHistoryEntry>] :entries
688
+ # The list of asset property historical value entries for the batch get
689
+ # request. You can specify up to 16 entries per request.
690
+ #
691
+ # @option params [String] :next_token
692
+ # The token to be used for the next set of paginated results.
693
+ #
694
+ # @option params [Integer] :max_results
695
+ # The maximum number of results to return for each paginated request. A
696
+ # result set is returned in the two cases, whichever occurs first.
697
+ #
698
+ # * The size of the result set is less than 1 MB.
699
+ #
700
+ # * The number of data points in the result set is less than the value
701
+ # of `maxResults`. The maximum value of `maxResults` is 4000.
702
+ #
703
+ # @return [Types::BatchGetAssetPropertyValueHistoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
704
+ #
705
+ # * {Types::BatchGetAssetPropertyValueHistoryResponse#error_entries #error_entries} => Array&lt;Types::BatchGetAssetPropertyValueHistoryErrorEntry&gt;
706
+ # * {Types::BatchGetAssetPropertyValueHistoryResponse#success_entries #success_entries} => Array&lt;Types::BatchGetAssetPropertyValueHistorySuccessEntry&gt;
707
+ # * {Types::BatchGetAssetPropertyValueHistoryResponse#skipped_entries #skipped_entries} => Array&lt;Types::BatchGetAssetPropertyValueHistorySkippedEntry&gt;
708
+ # * {Types::BatchGetAssetPropertyValueHistoryResponse#next_token #next_token} => String
709
+ #
710
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
711
+ #
712
+ # @example Request syntax with placeholder values
713
+ #
714
+ # resp = client.batch_get_asset_property_value_history({
715
+ # entries: [ # required
716
+ # {
717
+ # entry_id: "EntryId", # required
718
+ # asset_id: "ID",
719
+ # property_id: "ID",
720
+ # property_alias: "AssetPropertyAlias",
721
+ # start_date: Time.now,
722
+ # end_date: Time.now,
723
+ # qualities: ["GOOD"], # accepts GOOD, BAD, UNCERTAIN
724
+ # time_ordering: "ASCENDING", # accepts ASCENDING, DESCENDING
725
+ # },
726
+ # ],
727
+ # next_token: "NextToken",
728
+ # max_results: 1,
729
+ # })
730
+ #
731
+ # @example Response structure
732
+ #
733
+ # resp.error_entries #=> Array
734
+ # resp.error_entries[0].error_code #=> String, one of "ResourceNotFoundException", "InvalidRequestException", "AccessDeniedException"
735
+ # resp.error_entries[0].error_message #=> String
736
+ # resp.error_entries[0].entry_id #=> String
737
+ # resp.success_entries #=> Array
738
+ # resp.success_entries[0].entry_id #=> String
739
+ # resp.success_entries[0].asset_property_value_history #=> Array
740
+ # resp.success_entries[0].asset_property_value_history[0].value.string_value #=> String
741
+ # resp.success_entries[0].asset_property_value_history[0].value.integer_value #=> Integer
742
+ # resp.success_entries[0].asset_property_value_history[0].value.double_value #=> Float
743
+ # resp.success_entries[0].asset_property_value_history[0].value.boolean_value #=> Boolean
744
+ # resp.success_entries[0].asset_property_value_history[0].timestamp.time_in_seconds #=> Integer
745
+ # resp.success_entries[0].asset_property_value_history[0].timestamp.offset_in_nanos #=> Integer
746
+ # resp.success_entries[0].asset_property_value_history[0].quality #=> String, one of "GOOD", "BAD", "UNCERTAIN"
747
+ # resp.skipped_entries #=> Array
748
+ # resp.skipped_entries[0].entry_id #=> String
749
+ # resp.skipped_entries[0].completion_status #=> String, one of "SUCCESS", "ERROR"
750
+ # resp.skipped_entries[0].error_info.error_code #=> String, one of "ResourceNotFoundException", "InvalidRequestException", "AccessDeniedException"
751
+ # resp.skipped_entries[0].error_info.error_timestamp #=> Time
752
+ # resp.next_token #=> String
753
+ #
754
+ # @overload batch_get_asset_property_value_history(params = {})
755
+ # @param [Hash] params ({})
756
+ def batch_get_asset_property_value_history(params = {}, options = {})
757
+ req = build_request(:batch_get_asset_property_value_history, params)
758
+ req.send_request(options)
759
+ end
760
+
525
761
  # Sends a list of asset property values to IoT SiteWise. Each value is a
526
762
  # timestamp-quality-value (TQV) data point. For more information, see
527
763
  # [Ingesting data using the API][1] in the *IoT SiteWise User Guide*.
@@ -723,6 +959,9 @@ module Aws::IoTSiteWise
723
959
  #
724
960
  # [1]: https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html
725
961
  #
962
+ # @option params [String] :asset_description
963
+ # A description for the asset.
964
+ #
726
965
  # @return [Types::CreateAssetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
727
966
  #
728
967
  # * {Types::CreateAssetResponse#asset_id #asset_id} => String
@@ -738,6 +977,7 @@ module Aws::IoTSiteWise
738
977
  # tags: {
739
978
  # "TagKey" => "TagValue",
740
979
  # },
980
+ # asset_description: "Description",
741
981
  # })
742
982
  #
743
983
  # @example Response structure
@@ -1686,6 +1926,7 @@ module Aws::IoTSiteWise
1686
1926
  # * {Types::DescribeAssetResponse#asset_creation_date #asset_creation_date} => Time
1687
1927
  # * {Types::DescribeAssetResponse#asset_last_update_date #asset_last_update_date} => Time
1688
1928
  # * {Types::DescribeAssetResponse#asset_status #asset_status} => Types::AssetStatus
1929
+ # * {Types::DescribeAssetResponse#asset_description #asset_description} => String
1689
1930
  #
1690
1931
  # @example Request syntax with placeholder values
1691
1932
  #
@@ -1732,6 +1973,7 @@ module Aws::IoTSiteWise
1732
1973
  # resp.asset_status.error.details #=> Array
1733
1974
  # resp.asset_status.error.details[0].code #=> String, one of "INCOMPATIBLE_COMPUTE_LOCATION", "INCOMPATIBLE_FORWARDING_CONFIGURATION"
1734
1975
  # resp.asset_status.error.details[0].message #=> String
1976
+ # resp.asset_description #=> String
1735
1977
  #
1736
1978
  #
1737
1979
  # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
@@ -3099,6 +3341,7 @@ module Aws::IoTSiteWise
3099
3341
  # resp.asset_summaries[0].hierarchies #=> Array
3100
3342
  # resp.asset_summaries[0].hierarchies[0].id #=> String
3101
3343
  # resp.asset_summaries[0].hierarchies[0].name #=> String
3344
+ # resp.asset_summaries[0].description #=> String
3102
3345
  # resp.next_token #=> String
3103
3346
  #
3104
3347
  # @overload list_assets(params = {})
@@ -3190,6 +3433,7 @@ module Aws::IoTSiteWise
3190
3433
  # resp.asset_summaries[0].hierarchies #=> Array
3191
3434
  # resp.asset_summaries[0].hierarchies[0].id #=> String
3192
3435
  # resp.asset_summaries[0].hierarchies[0].name #=> String
3436
+ # resp.asset_summaries[0].description #=> String
3193
3437
  # resp.next_token #=> String
3194
3438
  #
3195
3439
  # @overload list_associated_assets(params = {})
@@ -3590,7 +3834,7 @@ module Aws::IoTSiteWise
3590
3834
  # hot tier. The hot tier is a service-managed database.
3591
3835
  #
3592
3836
  # * `MULTI_LAYER_STORAGE` – IoT SiteWise saves your data in both the
3593
- # cold tier and the cold tier. The cold tier is a customer-managed
3837
+ # cold tier and the hot tier. The cold tier is a customer-managed
3594
3838
  # Amazon S3 bucket.
3595
3839
  #
3596
3840
  # @option params [Types::MultiLayerStorage] :multi_layer_storage
@@ -3818,6 +4062,9 @@ module Aws::IoTSiteWise
3818
4062
  # **A suitable default value is auto-generated.** You should normally
3819
4063
  # not need to pass this option.**
3820
4064
  #
4065
+ # @option params [String] :asset_description
4066
+ # A description for the asset.
4067
+ #
3821
4068
  # @return [Types::UpdateAssetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3822
4069
  #
3823
4070
  # * {Types::UpdateAssetResponse#asset_status #asset_status} => Types::AssetStatus
@@ -3828,6 +4075,7 @@ module Aws::IoTSiteWise
3828
4075
  # asset_id: "ID", # required
3829
4076
  # asset_name: "Name", # required
3830
4077
  # client_token: "ClientToken",
4078
+ # asset_description: "Description",
3831
4079
  # })
3832
4080
  #
3833
4081
  # @example Response structure
@@ -4427,7 +4675,7 @@ module Aws::IoTSiteWise
4427
4675
  params: params,
4428
4676
  config: config)
4429
4677
  context[:gem_name] = 'aws-sdk-iotsitewise'
4430
- context[:gem_version] = '1.39.0'
4678
+ context[:gem_version] = '1.42.0'
4431
4679
  Seahorse::Client::Request.new(handlers, context)
4432
4680
  end
4433
4681