aws-sdk-timestreamwrite 1.1.0 → 1.2.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: d9fb60b92203a2502650273434d8ecc346d8b670984379b4eea55b58ea3a506e
4
- data.tar.gz: 787ee4b54a68cc1026ab29fe576ffb7cba903b4d6695aee50aa3f84a397cfba8
3
+ metadata.gz: e2948a34a936c9250846aade1dd04d61ffc78cc467d2c7268b787ef9499d0646
4
+ data.tar.gz: '0782cd62b1cc210010f0daf532da9a5f8a5871a6bba0caa0d02444f72b838932'
5
5
  SHA512:
6
- metadata.gz: b163e7095c037d320f3780f51f0130b8e552623f662875ae89f76c87802fe3e69af9761fc19a444dfffde76edfe69404bda3ecb3e004bb83861ea27bdd03b765
7
- data.tar.gz: 5a4920be225a7896ca477807f100af92f384fd0f1420edba8be977b72476956d439aaff854b5c0584c4a743d94699ac382bf68c241c459a8f3af58e7ce429bed
6
+ metadata.gz: 7e6081bacf5d21ee0e26671747ca4566a09c0295f614eb5c94d94f4cddaeed28848051f8375138528504c179d53a8afa912522f8d9884ed967ca8c1aa8891648
7
+ data.tar.gz: 82d23293ad4dd8cf9a7b28369d49983f8aa9cdec745df32dad0ebebd59fcb52d891d5e425bdfa38d5e59eb3888b8c887882557896ebd31bf00d4595be66acbe1
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-timestreamwrite/customizations'
48
48
  # @!group service
49
49
  module Aws::TimestreamWrite
50
50
 
51
- GEM_VERSION = '1.1.0'
51
+ GEM_VERSION = '1.2.0'
52
52
 
53
53
  end
@@ -472,6 +472,10 @@ module Aws::TimestreamWrite
472
472
  # All tables in the database must be deleted first, or a
473
473
  # ValidationException error will be thrown.
474
474
  #
475
+ # Due to the nature of distributed retries, the operation can return
476
+ # either success or a ResourceNotFoundException. Clients should consider
477
+ # them equivalent.
478
+ #
475
479
  # @option params [required, String] :database_name
476
480
  # The name of the Timestream database to be deleted.
477
481
  #
@@ -496,6 +500,10 @@ module Aws::TimestreamWrite
496
500
  # After a Timestream database table is deleted, the time series data
497
501
  # stored in the table cannot be recovered.
498
502
  #
503
+ # Due to the nature of distributed retries, the operation can return
504
+ # either success or a ResourceNotFoundException. Clients should consider
505
+ # them equivalent.
506
+ #
499
507
  # @option params [required, String] :database_name
500
508
  # The name of the database where the Timestream database is to be
501
509
  # deleted.
@@ -1015,6 +1023,7 @@ module Aws::TimestreamWrite
1015
1023
  # measure_value_type: "DOUBLE", # accepts DOUBLE, BIGINT, VARCHAR, BOOLEAN
1016
1024
  # time: "StringValue256",
1017
1025
  # time_unit: "MILLISECONDS", # accepts MILLISECONDS, SECONDS, MICROSECONDS, NANOSECONDS
1026
+ # version: 1,
1018
1027
  # },
1019
1028
  # records: [ # required
1020
1029
  # {
@@ -1030,6 +1039,7 @@ module Aws::TimestreamWrite
1030
1039
  # measure_value_type: "DOUBLE", # accepts DOUBLE, BIGINT, VARCHAR, BOOLEAN
1031
1040
  # time: "StringValue256",
1032
1041
  # time_unit: "MILLISECONDS", # accepts MILLISECONDS, SECONDS, MICROSECONDS, NANOSECONDS
1042
+ # version: 1,
1033
1043
  # },
1034
1044
  # ],
1035
1045
  # })
@@ -1056,7 +1066,7 @@ module Aws::TimestreamWrite
1056
1066
  params: params,
1057
1067
  config: config)
1058
1068
  context[:gem_name] = 'aws-sdk-timestreamwrite'
1059
- context[:gem_version] = '1.1.0'
1069
+ context[:gem_version] = '1.2.0'
1060
1070
  Seahorse::Client::Request.new(handlers, context)
1061
1071
  end
1062
1072
 
@@ -52,6 +52,7 @@ module Aws::TimestreamWrite
52
52
  PaginationLimit = Shapes::IntegerShape.new(name: 'PaginationLimit')
53
53
  Record = Shapes::StructureShape.new(name: 'Record')
54
54
  RecordIndex = Shapes::IntegerShape.new(name: 'RecordIndex')
55
+ RecordVersion = Shapes::IntegerShape.new(name: 'RecordVersion')
55
56
  Records = Shapes::ListShape.new(name: 'Records')
56
57
  RejectedRecord = Shapes::StructureShape.new(name: 'RejectedRecord')
57
58
  RejectedRecords = Shapes::ListShape.new(name: 'RejectedRecords')
@@ -190,12 +191,14 @@ module Aws::TimestreamWrite
190
191
  Record.add_member(:measure_value_type, Shapes::ShapeRef.new(shape: MeasureValueType, location_name: "MeasureValueType"))
191
192
  Record.add_member(:time, Shapes::ShapeRef.new(shape: StringValue256, location_name: "Time"))
192
193
  Record.add_member(:time_unit, Shapes::ShapeRef.new(shape: TimeUnit, location_name: "TimeUnit"))
194
+ Record.add_member(:version, Shapes::ShapeRef.new(shape: RecordVersion, location_name: "Version", metadata: {"box"=>true}))
193
195
  Record.struct_class = Types::Record
194
196
 
195
197
  Records.member = Shapes::ShapeRef.new(shape: Record)
196
198
 
197
199
  RejectedRecord.add_member(:record_index, Shapes::ShapeRef.new(shape: RecordIndex, location_name: "RecordIndex"))
198
200
  RejectedRecord.add_member(:reason, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Reason"))
201
+ RejectedRecord.add_member(:existing_version, Shapes::ShapeRef.new(shape: RecordVersion, location_name: "ExistingVersion", metadata: {"box"=>true}))
199
202
  RejectedRecord.struct_class = Types::RejectedRecord
200
203
 
201
204
  RejectedRecords.member = Shapes::ShapeRef.new(shape: RejectedRecord)
@@ -466,6 +469,7 @@ module Aws::TimestreamWrite
466
469
  o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
467
470
  o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
468
471
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
472
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
469
473
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
470
474
  o.errors << Shapes::ShapeRef.new(shape: InvalidEndpointException)
471
475
  end)
@@ -481,6 +485,7 @@ module Aws::TimestreamWrite
481
485
  o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
482
486
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
483
487
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
488
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
484
489
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
485
490
  o.errors << Shapes::ShapeRef.new(shape: InvalidEndpointException)
486
491
  end)
@@ -496,6 +501,7 @@ module Aws::TimestreamWrite
496
501
  o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
497
502
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
498
503
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
504
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
499
505
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
500
506
  o.errors << Shapes::ShapeRef.new(shape: InvalidEndpointException)
501
507
  end)
@@ -341,8 +341,12 @@ module Aws::TimestreamWrite
341
341
  # Dimension represents the meta data attributes of the time series.
342
342
  # For example, the name and availability zone of an EC2 instance or
343
343
  # the name of the manufacturer of a wind turbine are dimensions.
344
- # *Dimension names can only contain alphanumeric characters and
345
- # underscores. Dimension names cannot end with an underscore.*
344
+ #
345
+ # For constraints on Dimension names, see [Naming Constraints][1].
346
+ #
347
+ #
348
+ #
349
+ # [1]: https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html#limits.naming
346
350
  # @return [String]
347
351
  #
348
352
  # @!attribute [rw] value
@@ -569,6 +573,7 @@ module Aws::TimestreamWrite
569
573
  # measure_value_type: "DOUBLE", # accepts DOUBLE, BIGINT, VARCHAR, BOOLEAN
570
574
  # time: "StringValue256",
571
575
  # time_unit: "MILLISECONDS", # accepts MILLISECONDS, SECONDS, MICROSECONDS, NANOSECONDS
576
+ # version: 1,
572
577
  # }
573
578
  #
574
579
  # @!attribute [rw] dimensions
@@ -592,7 +597,9 @@ module Aws::TimestreamWrite
592
597
  #
593
598
  # @!attribute [rw] time
594
599
  # Contains the time at which the measure value for the data point was
595
- # collected.
600
+ # collected. The time value plus the unit provides the time elapsed
601
+ # since the epoch. For example, if the time value is `12345` and the
602
+ # unit is `ms`, then `12345 ms` have elapsed since the epoch.
596
603
  # @return [String]
597
604
  #
598
605
  # @!attribute [rw] time_unit
@@ -601,6 +608,13 @@ module Aws::TimestreamWrite
601
608
  # values.
602
609
  # @return [String]
603
610
  #
611
+ # @!attribute [rw] version
612
+ # 64-bit attribute used for record updates. Write requests for
613
+ # duplicate data with a higher version number will update the existing
614
+ # measure value and version. In cases where the measure value is the
615
+ # same, `Version` will still be updated . Default value is to 1.
616
+ # @return [Integer]
617
+ #
604
618
  # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/Record AWS API Documentation
605
619
  #
606
620
  class Record < Struct.new(
@@ -609,7 +623,8 @@ module Aws::TimestreamWrite
609
623
  :measure_value,
610
624
  :measure_value_type,
611
625
  :time,
612
- :time_unit)
626
+ :time_unit,
627
+ :version)
613
628
  SENSITIVE = []
614
629
  include Aws::Structure
615
630
  end
@@ -634,22 +649,41 @@ module Aws::TimestreamWrite
634
649
  # * Records with timestamps that lie outside the retention duration of
635
650
  # the memory store
636
651
  #
652
+ # <note markdown="1"> When the retention window is updated, you will receive a
653
+ # `RejectedRecords` exception if you immediately try to ingest data
654
+ # within the new window. To avoid a `RejectedRecords` exception,
655
+ # wait until the duration of the new window to ingest new data. For
656
+ # further information, see [ Best Practices for Configuring
657
+ # Timestream][1] and [the explanation of how storage works in
658
+ # Timestream][2].
659
+ #
660
+ # </note>
661
+ #
637
662
  # * Records with dimensions or measures that exceed the Timestream
638
663
  # defined limits.
639
664
  #
640
- # For more information, see [Access Management][1] in the Timestream
665
+ # For more information, see [Access Management][3] in the Timestream
641
666
  # Developer Guide.
642
667
  #
643
668
  #
644
669
  #
645
- # [1]: https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html
670
+ # [1]: https://docs.aws.amazon.com/timestream/latest/developerguide/best-practices.html#configuration
671
+ # [2]: https://docs.aws.amazon.com/timestream/latest/developerguide/storage.html
672
+ # [3]: https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html
646
673
  # @return [String]
647
674
  #
675
+ # @!attribute [rw] existing_version
676
+ # The existing version of the record. This value is populated in
677
+ # scenarios where an identical record exists with a higher version
678
+ # than the version in the write request.
679
+ # @return [Integer]
680
+ #
648
681
  # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/RejectedRecord AWS API Documentation
649
682
  #
650
683
  class RejectedRecord < Struct.new(
651
684
  :record_index,
652
- :reason)
685
+ :reason,
686
+ :existing_version)
653
687
  SENSITIVE = []
654
688
  include Aws::Structure
655
689
  end
@@ -1034,6 +1068,7 @@ module Aws::TimestreamWrite
1034
1068
  # measure_value_type: "DOUBLE", # accepts DOUBLE, BIGINT, VARCHAR, BOOLEAN
1035
1069
  # time: "StringValue256",
1036
1070
  # time_unit: "MILLISECONDS", # accepts MILLISECONDS, SECONDS, MICROSECONDS, NANOSECONDS
1071
+ # version: 1,
1037
1072
  # },
1038
1073
  # records: [ # required
1039
1074
  # {
@@ -1049,6 +1084,7 @@ module Aws::TimestreamWrite
1049
1084
  # measure_value_type: "DOUBLE", # accepts DOUBLE, BIGINT, VARCHAR, BOOLEAN
1050
1085
  # time: "StringValue256",
1051
1086
  # time_unit: "MILLISECONDS", # accepts MILLISECONDS, SECONDS, MICROSECONDS, NANOSECONDS
1087
+ # version: 1,
1052
1088
  # },
1053
1089
  # ],
1054
1090
  # }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-timestreamwrite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-30 00:00:00.000000000 Z
11
+ date: 2020-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core