aws-sdk-timestreamwrite 1.18.0 → 1.19.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: 9d57348275f669a453e5d38ebbb00d35a193ac6eeb16eef0e1b6a5767b48f6d3
4
- data.tar.gz: 109d4eccd752b54904034877b103ac43d033a145711ecb9e34a56d1130bfc0ed
3
+ metadata.gz: 741f5e7e935d9276252b151a32169b7630d2f2731437cb6225a244a408a5ffb2
4
+ data.tar.gz: fd5f85f5355343c3f5883a08d89f373e3a55adb237dd280392d7b3c0da8b74ad
5
5
  SHA512:
6
- metadata.gz: cfff79262cafdd35bdf2dcbbab23ddc82f06ce73f83689b1e4705879af39301ff841cc0c91b504dfedc858db44bc71ed125343812c03ceb51656782544d308e3
7
- data.tar.gz: b04283f2e444ca0b9f3b86e5919365de31c01c1f2c86e5034030895e55beeb8caf6b67cd84cbcb742c0e851fdfba88dd09a1c9f69bafedb5a299cea8d0b87f67
6
+ metadata.gz: 3f81206edba36906b7222992c0d9757d28f43ebebfacbb347584f5fe47230021b32260ea630ac43b86b4912b10eb2a00ef8b98183d78ac75635a406e60cfb837
7
+ data.tar.gz: 939d8a6701214a1d344d3ae97205dd91e33a3fdae8792895124e434875ca508f5ce1ed532a91929684ceaac51ca2dad6b8837ae0a0f91f9e7b4a9b5f91b2d560
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.19.0 (2023-06-08)
5
+ ------------------
6
+
7
+ * Feature - This release adds the capability for customers to define how their data should be partitioned, optimizing for certain access patterns. This definition will take place as a part of the table creation.
8
+
4
9
  1.18.0 (2023-05-31)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.18.0
1
+ 1.19.0
@@ -387,11 +387,11 @@ module Aws::TimestreamWrite
387
387
  # data from a CSV source in an S3 location and writes to a Timestream
388
388
  # table. A mapping from source to target is defined in a batch load
389
389
  # task. Errors and events are written to a report at an S3 location. For
390
- # the report, if the KMS key is not specified, the batch load task will
391
- # be encrypted with a Timestream managed KMS key located in your
392
- # account. For more information, see [Amazon Web Services managed
393
- # keys][1]. [Service quotas apply][2]. For details, see [code
394
- # sample][3].
390
+ # the report, if the KMS key is not specified, the report will be
391
+ # encrypted with an S3 managed key when `SSE_S3` is the option.
392
+ # Otherwise an error is thrown. For more information, see [Amazon Web
393
+ # Services managed keys][1]. [Service quotas apply][2]. For details, see
394
+ # [code sample][3].
395
395
  #
396
396
  #
397
397
  #
@@ -604,6 +604,9 @@ module Aws::TimestreamWrite
604
604
  # Contains properties to set on the table when enabling magnetic store
605
605
  # writes.
606
606
  #
607
+ # @option params [Types::Schema] :schema
608
+ # The schema of the table.
609
+ #
607
610
  # @return [Types::CreateTableResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
608
611
  #
609
612
  # * {Types::CreateTableResponse#table #table} => Types::Table
@@ -634,6 +637,15 @@ module Aws::TimestreamWrite
634
637
  # },
635
638
  # },
636
639
  # },
640
+ # schema: {
641
+ # composite_partition_key: [
642
+ # {
643
+ # type: "DIMENSION", # required, accepts DIMENSION, MEASURE
644
+ # name: "SchemaName",
645
+ # enforcement_in_record: "REQUIRED", # accepts REQUIRED, OPTIONAL
646
+ # },
647
+ # ],
648
+ # },
637
649
  # })
638
650
  #
639
651
  # @example Response structure
@@ -651,6 +663,10 @@ module Aws::TimestreamWrite
651
663
  # resp.table.magnetic_store_write_properties.magnetic_store_rejected_data_location.s3_configuration.object_key_prefix #=> String
652
664
  # resp.table.magnetic_store_write_properties.magnetic_store_rejected_data_location.s3_configuration.encryption_option #=> String, one of "SSE_S3", "SSE_KMS"
653
665
  # resp.table.magnetic_store_write_properties.magnetic_store_rejected_data_location.s3_configuration.kms_key_id #=> String
666
+ # resp.table.schema.composite_partition_key #=> Array
667
+ # resp.table.schema.composite_partition_key[0].type #=> String, one of "DIMENSION", "MEASURE"
668
+ # resp.table.schema.composite_partition_key[0].name #=> String
669
+ # resp.table.schema.composite_partition_key[0].enforcement_in_record #=> String, one of "REQUIRED", "OPTIONAL"
654
670
  #
655
671
  # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/CreateTable AWS API Documentation
656
672
  #
@@ -950,6 +966,10 @@ module Aws::TimestreamWrite
950
966
  # resp.table.magnetic_store_write_properties.magnetic_store_rejected_data_location.s3_configuration.object_key_prefix #=> String
951
967
  # resp.table.magnetic_store_write_properties.magnetic_store_rejected_data_location.s3_configuration.encryption_option #=> String, one of "SSE_S3", "SSE_KMS"
952
968
  # resp.table.magnetic_store_write_properties.magnetic_store_rejected_data_location.s3_configuration.kms_key_id #=> String
969
+ # resp.table.schema.composite_partition_key #=> Array
970
+ # resp.table.schema.composite_partition_key[0].type #=> String, one of "DIMENSION", "MEASURE"
971
+ # resp.table.schema.composite_partition_key[0].name #=> String
972
+ # resp.table.schema.composite_partition_key[0].enforcement_in_record #=> String, one of "REQUIRED", "OPTIONAL"
953
973
  #
954
974
  # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/DescribeTable AWS API Documentation
955
975
  #
@@ -1120,6 +1140,10 @@ module Aws::TimestreamWrite
1120
1140
  # resp.tables[0].magnetic_store_write_properties.magnetic_store_rejected_data_location.s3_configuration.object_key_prefix #=> String
1121
1141
  # resp.tables[0].magnetic_store_write_properties.magnetic_store_rejected_data_location.s3_configuration.encryption_option #=> String, one of "SSE_S3", "SSE_KMS"
1122
1142
  # resp.tables[0].magnetic_store_write_properties.magnetic_store_rejected_data_location.s3_configuration.kms_key_id #=> String
1143
+ # resp.tables[0].schema.composite_partition_key #=> Array
1144
+ # resp.tables[0].schema.composite_partition_key[0].type #=> String, one of "DIMENSION", "MEASURE"
1145
+ # resp.tables[0].schema.composite_partition_key[0].name #=> String
1146
+ # resp.tables[0].schema.composite_partition_key[0].enforcement_in_record #=> String, one of "REQUIRED", "OPTIONAL"
1123
1147
  # resp.next_token #=> String
1124
1148
  #
1125
1149
  # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/ListTables AWS API Documentation
@@ -1332,6 +1356,9 @@ module Aws::TimestreamWrite
1332
1356
  # Contains properties to set on the table when enabling magnetic store
1333
1357
  # writes.
1334
1358
  #
1359
+ # @option params [Types::Schema] :schema
1360
+ # The schema of the table.
1361
+ #
1335
1362
  # @return [Types::UpdateTableResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1336
1363
  #
1337
1364
  # * {Types::UpdateTableResponse#table #table} => Types::Table
@@ -1356,6 +1383,15 @@ module Aws::TimestreamWrite
1356
1383
  # },
1357
1384
  # },
1358
1385
  # },
1386
+ # schema: {
1387
+ # composite_partition_key: [
1388
+ # {
1389
+ # type: "DIMENSION", # required, accepts DIMENSION, MEASURE
1390
+ # name: "SchemaName",
1391
+ # enforcement_in_record: "REQUIRED", # accepts REQUIRED, OPTIONAL
1392
+ # },
1393
+ # ],
1394
+ # },
1359
1395
  # })
1360
1396
  #
1361
1397
  # @example Response structure
@@ -1373,6 +1409,10 @@ module Aws::TimestreamWrite
1373
1409
  # resp.table.magnetic_store_write_properties.magnetic_store_rejected_data_location.s3_configuration.object_key_prefix #=> String
1374
1410
  # resp.table.magnetic_store_write_properties.magnetic_store_rejected_data_location.s3_configuration.encryption_option #=> String, one of "SSE_S3", "SSE_KMS"
1375
1411
  # resp.table.magnetic_store_write_properties.magnetic_store_rejected_data_location.s3_configuration.kms_key_id #=> String
1412
+ # resp.table.schema.composite_partition_key #=> Array
1413
+ # resp.table.schema.composite_partition_key[0].type #=> String, one of "DIMENSION", "MEASURE"
1414
+ # resp.table.schema.composite_partition_key[0].name #=> String
1415
+ # resp.table.schema.composite_partition_key[0].enforcement_in_record #=> String, one of "REQUIRED", "OPTIONAL"
1376
1416
  #
1377
1417
  # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/UpdateTable AWS API Documentation
1378
1418
  #
@@ -1539,7 +1579,7 @@ module Aws::TimestreamWrite
1539
1579
  params: params,
1540
1580
  config: config)
1541
1581
  context[:gem_name] = 'aws-sdk-timestreamwrite'
1542
- context[:gem_version] = '1.18.0'
1582
+ context[:gem_version] = '1.19.0'
1543
1583
  Seahorse::Client::Request.new(handlers, context)
1544
1584
  end
1545
1585
 
@@ -84,6 +84,10 @@ module Aws::TimestreamWrite
84
84
  MultiMeasureMappings = Shapes::StructureShape.new(name: 'MultiMeasureMappings')
85
85
  PageLimit = Shapes::IntegerShape.new(name: 'PageLimit')
86
86
  PaginationLimit = Shapes::IntegerShape.new(name: 'PaginationLimit')
87
+ PartitionKey = Shapes::StructureShape.new(name: 'PartitionKey')
88
+ PartitionKeyEnforcementLevel = Shapes::StringShape.new(name: 'PartitionKeyEnforcementLevel')
89
+ PartitionKeyList = Shapes::ListShape.new(name: 'PartitionKeyList')
90
+ PartitionKeyType = Shapes::StringShape.new(name: 'PartitionKeyType')
87
91
  Record = Shapes::StructureShape.new(name: 'Record')
88
92
  RecordIndex = Shapes::IntegerShape.new(name: 'RecordIndex')
89
93
  RecordVersion = Shapes::IntegerShape.new(name: 'RecordVersion')
@@ -106,6 +110,7 @@ module Aws::TimestreamWrite
106
110
  S3ObjectKey = Shapes::StringShape.new(name: 'S3ObjectKey')
107
111
  S3ObjectKeyPrefix = Shapes::StringShape.new(name: 'S3ObjectKeyPrefix')
108
112
  ScalarMeasureValueType = Shapes::StringShape.new(name: 'ScalarMeasureValueType')
113
+ Schema = Shapes::StructureShape.new(name: 'Schema')
109
114
  SchemaName = Shapes::StringShape.new(name: 'SchemaName')
110
115
  SchemaValue = Shapes::StringShape.new(name: 'SchemaValue')
111
116
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
@@ -200,6 +205,7 @@ module Aws::TimestreamWrite
200
205
  CreateTableRequest.add_member(:retention_properties, Shapes::ShapeRef.new(shape: RetentionProperties, location_name: "RetentionProperties"))
201
206
  CreateTableRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
202
207
  CreateTableRequest.add_member(:magnetic_store_write_properties, Shapes::ShapeRef.new(shape: MagneticStoreWriteProperties, location_name: "MagneticStoreWriteProperties"))
208
+ CreateTableRequest.add_member(:schema, Shapes::ShapeRef.new(shape: Schema, location_name: "Schema"))
203
209
  CreateTableRequest.struct_class = Types::CreateTableRequest
204
210
 
205
211
  CreateTableResponse.add_member(:table, Shapes::ShapeRef.new(shape: Table, location_name: "Table"))
@@ -369,6 +375,13 @@ module Aws::TimestreamWrite
369
375
  MultiMeasureMappings.add_member(:multi_measure_attribute_mappings, Shapes::ShapeRef.new(shape: MultiMeasureAttributeMappingList, required: true, location_name: "MultiMeasureAttributeMappings"))
370
376
  MultiMeasureMappings.struct_class = Types::MultiMeasureMappings
371
377
 
378
+ PartitionKey.add_member(:type, Shapes::ShapeRef.new(shape: PartitionKeyType, required: true, location_name: "Type"))
379
+ PartitionKey.add_member(:name, Shapes::ShapeRef.new(shape: SchemaName, location_name: "Name"))
380
+ PartitionKey.add_member(:enforcement_in_record, Shapes::ShapeRef.new(shape: PartitionKeyEnforcementLevel, location_name: "EnforcementInRecord"))
381
+ PartitionKey.struct_class = Types::PartitionKey
382
+
383
+ PartitionKeyList.member = Shapes::ShapeRef.new(shape: PartitionKey)
384
+
372
385
  Record.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
373
386
  Record.add_member(:measure_name, Shapes::ShapeRef.new(shape: SchemaName, location_name: "MeasureName"))
374
387
  Record.add_member(:measure_value, Shapes::ShapeRef.new(shape: StringValue2048, location_name: "MeasureValue"))
@@ -424,6 +437,9 @@ module Aws::TimestreamWrite
424
437
  S3Configuration.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: StringValue2048, location_name: "KmsKeyId"))
425
438
  S3Configuration.struct_class = Types::S3Configuration
426
439
 
440
+ Schema.add_member(:composite_partition_key, Shapes::ShapeRef.new(shape: PartitionKeyList, location_name: "CompositePartitionKey"))
441
+ Schema.struct_class = Types::Schema
442
+
427
443
  ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
428
444
  ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
429
445
 
@@ -435,6 +451,7 @@ module Aws::TimestreamWrite
435
451
  Table.add_member(:creation_time, Shapes::ShapeRef.new(shape: Date, location_name: "CreationTime"))
436
452
  Table.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: Date, location_name: "LastUpdatedTime"))
437
453
  Table.add_member(:magnetic_store_write_properties, Shapes::ShapeRef.new(shape: MagneticStoreWriteProperties, location_name: "MagneticStoreWriteProperties"))
454
+ Table.add_member(:schema, Shapes::ShapeRef.new(shape: Schema, location_name: "Schema"))
438
455
  Table.struct_class = Types::Table
439
456
 
440
457
  TableList.member = Shapes::ShapeRef.new(shape: Table)
@@ -473,6 +490,7 @@ module Aws::TimestreamWrite
473
490
  UpdateTableRequest.add_member(:table_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "TableName"))
474
491
  UpdateTableRequest.add_member(:retention_properties, Shapes::ShapeRef.new(shape: RetentionProperties, location_name: "RetentionProperties"))
475
492
  UpdateTableRequest.add_member(:magnetic_store_write_properties, Shapes::ShapeRef.new(shape: MagneticStoreWriteProperties, location_name: "MagneticStoreWriteProperties"))
493
+ UpdateTableRequest.add_member(:schema, Shapes::ShapeRef.new(shape: Schema, location_name: "Schema"))
476
494
  UpdateTableRequest.struct_class = Types::UpdateTableRequest
477
495
 
478
496
  UpdateTableResponse.add_member(:table, Shapes::ShapeRef.new(shape: Table, location_name: "Table"))
@@ -302,6 +302,10 @@ module Aws::TimestreamWrite
302
302
  # writes.
303
303
  # @return [Types::MagneticStoreWriteProperties]
304
304
  #
305
+ # @!attribute [rw] schema
306
+ # The schema of the table.
307
+ # @return [Types::Schema]
308
+ #
305
309
  # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/CreateTableRequest AWS API Documentation
306
310
  #
307
311
  class CreateTableRequest < Struct.new(
@@ -309,7 +313,8 @@ module Aws::TimestreamWrite
309
313
  :table_name,
310
314
  :retention_properties,
311
315
  :tags,
312
- :magnetic_store_write_properties)
316
+ :magnetic_store_write_properties,
317
+ :schema)
313
318
  SENSITIVE = []
314
319
  include Aws::Structure
315
320
  end
@@ -948,7 +953,12 @@ module Aws::TimestreamWrite
948
953
  # @return [String]
949
954
  #
950
955
  # @!attribute [rw] value
951
- # The value for the MeasureValue.
956
+ # The value for the MeasureValue. For information, see [Data
957
+ # types][1].
958
+ #
959
+ #
960
+ #
961
+ # [1]: https://docs.aws.amazon.com/timestream/latest/developerguide/writes.html#writes.data-types
952
962
  # @return [String]
953
963
  #
954
964
  # @!attribute [rw] type
@@ -1027,6 +1037,37 @@ module Aws::TimestreamWrite
1027
1037
  include Aws::Structure
1028
1038
  end
1029
1039
 
1040
+ # An attribute used in partitioning data in a table. A dimension key
1041
+ # partitions data using the values of the dimension specified by the
1042
+ # dimension-name as partition key, while a measure key partitions data
1043
+ # using measure names (values of the 'measure\_name' column).
1044
+ #
1045
+ # @!attribute [rw] type
1046
+ # The type of the partition key. Options are DIMENSION (dimension key)
1047
+ # and MEASURE (measure key).
1048
+ # @return [String]
1049
+ #
1050
+ # @!attribute [rw] name
1051
+ # The name of the attribute used for a dimension key.
1052
+ # @return [String]
1053
+ #
1054
+ # @!attribute [rw] enforcement_in_record
1055
+ # The level of enforcement for the specification of a dimension key in
1056
+ # ingested records. Options are REQUIRED (dimension key must be
1057
+ # specified) and OPTIONAL (dimension key does not have to be
1058
+ # specified).
1059
+ # @return [String]
1060
+ #
1061
+ # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/PartitionKey AWS API Documentation
1062
+ #
1063
+ class PartitionKey < Struct.new(
1064
+ :type,
1065
+ :name,
1066
+ :enforcement_in_record)
1067
+ SENSITIVE = []
1068
+ include Aws::Structure
1069
+ end
1070
+
1030
1071
  # Represents a time-series data point being written into Timestream.
1031
1072
  # Each record contains an array of dimensions. Dimensions represent the
1032
1073
  # metadata attributes of a time-series data point, such as the instance
@@ -1062,7 +1103,12 @@ module Aws::TimestreamWrite
1062
1103
  #
1063
1104
  # @!attribute [rw] measure_value_type
1064
1105
  # Contains the data type of the measure value for the time-series data
1065
- # point. Default type is `DOUBLE`.
1106
+ # point. Default type is `DOUBLE`. For more information, see [Data
1107
+ # types][1].
1108
+ #
1109
+ #
1110
+ #
1111
+ # [1]: https://docs.aws.amazon.com/timestream/latest/developerguide/writes.html#writes.data-types
1066
1112
  # @return [String]
1067
1113
  #
1068
1114
  # @!attribute [rw] time
@@ -1370,6 +1416,25 @@ module Aws::TimestreamWrite
1370
1416
  include Aws::Structure
1371
1417
  end
1372
1418
 
1419
+ # A Schema specifies the expected data model of the table.
1420
+ #
1421
+ # @!attribute [rw] composite_partition_key
1422
+ # A non-empty list of partition keys defining the attributes used to
1423
+ # partition the table data. The order of the list determines the
1424
+ # partition hierarchy. The name and type of each partition key as well
1425
+ # as the partition key order cannot be changed after the table is
1426
+ # created. However, the enforcement level of each partition key can be
1427
+ # changed.
1428
+ # @return [Array<Types::PartitionKey>]
1429
+ #
1430
+ # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/Schema AWS API Documentation
1431
+ #
1432
+ class Schema < Struct.new(
1433
+ :composite_partition_key)
1434
+ SENSITIVE = []
1435
+ include Aws::Structure
1436
+ end
1437
+
1373
1438
  # The instance quota of resource exceeded for this account.
1374
1439
  #
1375
1440
  # @!attribute [rw] message
@@ -1424,6 +1489,10 @@ module Aws::TimestreamWrite
1424
1489
  # writes.
1425
1490
  # @return [Types::MagneticStoreWriteProperties]
1426
1491
  #
1492
+ # @!attribute [rw] schema
1493
+ # The schema of the table.
1494
+ # @return [Types::Schema]
1495
+ #
1427
1496
  # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/Table AWS API Documentation
1428
1497
  #
1429
1498
  class Table < Struct.new(
@@ -1434,7 +1503,8 @@ module Aws::TimestreamWrite
1434
1503
  :retention_properties,
1435
1504
  :creation_time,
1436
1505
  :last_updated_time,
1437
- :magnetic_store_write_properties)
1506
+ :magnetic_store_write_properties,
1507
+ :schema)
1438
1508
  SENSITIVE = []
1439
1509
  include Aws::Structure
1440
1510
  end
@@ -1582,13 +1652,18 @@ module Aws::TimestreamWrite
1582
1652
  # writes.
1583
1653
  # @return [Types::MagneticStoreWriteProperties]
1584
1654
  #
1655
+ # @!attribute [rw] schema
1656
+ # The schema of the table.
1657
+ # @return [Types::Schema]
1658
+ #
1585
1659
  # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/UpdateTableRequest AWS API Documentation
1586
1660
  #
1587
1661
  class UpdateTableRequest < Struct.new(
1588
1662
  :database_name,
1589
1663
  :table_name,
1590
1664
  :retention_properties,
1591
- :magnetic_store_write_properties)
1665
+ :magnetic_store_write_properties,
1666
+ :schema)
1592
1667
  SENSITIVE = []
1593
1668
  include Aws::Structure
1594
1669
  end
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-timestreamwrite/customizations'
52
52
  # @!group service
53
53
  module Aws::TimestreamWrite
54
54
 
55
- GEM_VERSION = '1.18.0'
55
+ GEM_VERSION = '1.19.0'
56
56
 
57
57
  end
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.18.0
4
+ version: 1.19.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: 2023-05-31 00:00:00.000000000 Z
11
+ date: 2023-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core