aws-sdk-s3tables 1.47.0 → 1.49.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.
@@ -871,6 +871,44 @@ module Aws::S3Tables
871
871
  req.send_request(options)
872
872
  end
873
873
 
874
+ # Deletes an Amazon S3 Storage Lens for Tables configuration. Send the
875
+ # request to the configuration's home Region. For more information, see
876
+ # [Gaining visibility into your S3 Tables storage activity and usage
877
+ # with Amazon S3 Storage Lens for Tables][1] in the *Amazon Simple
878
+ # Storage Service User Guide*.
879
+ #
880
+ # Permissions
881
+ #
882
+ # : You must have the `s3tables:DeleteStorageLensConfiguration`
883
+ # permission to use this operation. For more information, see [Setting
884
+ # Amazon S3 Storage Lens for Tables permissions][2] in the *Amazon
885
+ # Simple Storage Service User Guide*.
886
+ #
887
+ #
888
+ #
889
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-storage-lens.html
890
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-storage-lens-permissions.html
891
+ #
892
+ # @option params [required, String] :storage_lens_id
893
+ # The ID of the S3 Storage Lens configuration.
894
+ #
895
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
896
+ #
897
+ # @example Request syntax with placeholder values
898
+ #
899
+ # resp = client.delete_storage_lens_configuration({
900
+ # storage_lens_id: "StorageLensConfigurationId", # required
901
+ # })
902
+ #
903
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3tables-2018-05-10/DeleteStorageLensConfiguration AWS API Documentation
904
+ #
905
+ # @overload delete_storage_lens_configuration(params = {})
906
+ # @param [Hash] params ({})
907
+ def delete_storage_lens_configuration(params = {}, options = {})
908
+ req = build_request(:delete_storage_lens_configuration, params)
909
+ req.send_request(options)
910
+ end
911
+
874
912
  # Deletes a table. For more information, see [Deleting an Amazon S3
875
913
  # table][1] in the *Amazon Simple Storage Service User Guide*.
876
914
  #
@@ -1148,6 +1186,113 @@ module Aws::S3Tables
1148
1186
  req.send_request(options)
1149
1187
  end
1150
1188
 
1189
+ # Disassociates a replica table from replication, making it a standalone
1190
+ # writable table. Any in-progress replication to the table stops, and
1191
+ # in-flight commits fail without being committed to the table.
1192
+ # Disassociating a table from replication is permanent and can't be
1193
+ # reversed.
1194
+ #
1195
+ # You can only disassociate a replica table. If you call this operation
1196
+ # on a table that isn't a replica table, including a table that you
1197
+ # have already disassociated, the request fails.
1198
+ #
1199
+ # After you disassociate a table from replication, you can write to the
1200
+ # table as you do any other table. `GetTable` no longer returns
1201
+ # `managedByService` and `managedTableInformation` for the table, and
1202
+ # `ListTables` no longer returns `managedByService` for it. On the
1203
+ # source table, `GetTableReplicationStatus` reports a failure for this
1204
+ # destination the next time replication to it is attempted.
1205
+ #
1206
+ # Disassociating a table from replication doesn't change its
1207
+ # maintenance configuration. Review the maintenance settings of the
1208
+ # table, such as compaction, after you disassociate it.
1209
+ #
1210
+ # Permissions
1211
+ #
1212
+ # : You must have the `s3tables:DisassociateTableReplication` permission
1213
+ # to use this operation.
1214
+ #
1215
+ # @option params [required, String] :table_arn
1216
+ # The Amazon Resource Name (ARN) of the replica table to disassociate
1217
+ # from replication.
1218
+ #
1219
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1220
+ #
1221
+ # @example Request syntax with placeholder values
1222
+ #
1223
+ # resp = client.disassociate_table_replication({
1224
+ # table_arn: "TableARN", # required
1225
+ # })
1226
+ #
1227
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3tables-2018-05-10/DisassociateTableReplication AWS API Documentation
1228
+ #
1229
+ # @overload disassociate_table_replication(params = {})
1230
+ # @param [Hash] params ({})
1231
+ def disassociate_table_replication(params = {}, options = {})
1232
+ req = build_request(:disassociate_table_replication, params)
1233
+ req.send_request(options)
1234
+ end
1235
+
1236
+ # Gets the current state of a table's channel in Amazon S3 Tables.
1237
+ #
1238
+ # The operation returns the following information about the channel:
1239
+ #
1240
+ # * The state of the channel
1241
+ #
1242
+ # * The approximate number of rows that the channel has buffered and not
1243
+ # yet committed to the table
1244
+ #
1245
+ # * An error code and a message that describe the error, if an error
1246
+ # blocks commits
1247
+ #
1248
+ # The default channel is created the first time that `PutRows` writes to
1249
+ # the table. Until then, `GetChannel` fails with a `NotFoundException`
1250
+ # error.
1251
+ #
1252
+ # Permissions
1253
+ #
1254
+ # : To use this operation, you must have the `s3tables:GetChannel`
1255
+ # permission on the table.
1256
+ #
1257
+ # @option params [required, String] :table_arn
1258
+ # The Amazon Resource Name (ARN) of the table that the channel belongs
1259
+ # to.
1260
+ #
1261
+ # @option params [String] :channel_id
1262
+ # The identifier of the channel whose state you want to get. If you
1263
+ # don't specify a channel, the operation uses `default`. Only `default`
1264
+ # is supported.
1265
+ #
1266
+ # @return [Types::GetChannelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1267
+ #
1268
+ # * {Types::GetChannelResponse#state #state} => String
1269
+ # * {Types::GetChannelResponse#approximate_number_of_buffered_rows #approximate_number_of_buffered_rows} => Integer
1270
+ # * {Types::GetChannelResponse#error_code #error_code} => String
1271
+ # * {Types::GetChannelResponse#error_message #error_message} => String
1272
+ #
1273
+ # @example Request syntax with placeholder values
1274
+ #
1275
+ # resp = client.get_channel({
1276
+ # table_arn: "TableARN", # required
1277
+ # channel_id: "ChannelId",
1278
+ # })
1279
+ #
1280
+ # @example Response structure
1281
+ #
1282
+ # resp.state #=> String, one of "active", "failing"
1283
+ # resp.approximate_number_of_buffered_rows #=> Integer
1284
+ # resp.error_code #=> String, one of "kms_key_disabled", "kms_access_denied", "kms_key_not_found"
1285
+ # resp.error_message #=> String
1286
+ #
1287
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3tables-2018-05-10/GetChannel AWS API Documentation
1288
+ #
1289
+ # @overload get_channel(params = {})
1290
+ # @param [Hash] params ({})
1291
+ def get_channel(params = {}, options = {})
1292
+ req = build_request(:get_channel, params)
1293
+ req.send_request(options)
1294
+ end
1295
+
1151
1296
  # Gets details about a namespace. For more information, see [Table
1152
1297
  # namespaces][1] in the *Amazon Simple Storage Service User Guide*.
1153
1298
  #
@@ -1201,6 +1346,77 @@ module Aws::S3Tables
1201
1346
  req.send_request(options)
1202
1347
  end
1203
1348
 
1349
+ # Gets an Amazon S3 Storage Lens for Tables configuration. Send the
1350
+ # request to the configuration's home Region. For more information, see
1351
+ # [Gaining visibility into your S3 Tables storage activity and usage
1352
+ # with Amazon S3 Storage Lens for Tables][1] in the *Amazon Simple
1353
+ # Storage Service User Guide*. For a complete list of S3 Storage Lens
1354
+ # for Tables metrics, see [Amazon S3 Storage Lens for Tables metrics
1355
+ # glossary][2] in the *Amazon Simple Storage Service User Guide*.
1356
+ #
1357
+ # Permissions
1358
+ #
1359
+ # : You must have the `s3tables:GetStorageLensConfiguration` permission
1360
+ # to use this operation. For more information, see [Setting Amazon S3
1361
+ # Storage Lens for Tables permissions][3] in the *Amazon Simple
1362
+ # Storage Service User Guide*.
1363
+ #
1364
+ #
1365
+ #
1366
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-storage-lens.html
1367
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-storage-lens-metrics-glossary.html
1368
+ # [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-storage-lens-permissions.html
1369
+ #
1370
+ # @option params [required, String] :storage_lens_id
1371
+ # The ID of the S3 Storage Lens configuration.
1372
+ #
1373
+ # @return [Types::GetStorageLensConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1374
+ #
1375
+ # * {Types::GetStorageLensConfigurationResponse#storage_lens_configuration #storage_lens_configuration} => Types::StorageLensConfiguration
1376
+ #
1377
+ # @example Request syntax with placeholder values
1378
+ #
1379
+ # resp = client.get_storage_lens_configuration({
1380
+ # storage_lens_id: "StorageLensConfigurationId", # required
1381
+ # })
1382
+ #
1383
+ # @example Response structure
1384
+ #
1385
+ # resp.storage_lens_configuration.id #=> String
1386
+ # resp.storage_lens_configuration.advanced_metrics_categories #=> Array
1387
+ # resp.storage_lens_configuration.advanced_metrics_categories[0] #=> String, one of "ActivityMetrics", "MaintenanceMetrics", "StorageMetrics"
1388
+ # resp.storage_lens_configuration.include.table_buckets #=> Array
1389
+ # resp.storage_lens_configuration.include.table_buckets[0] #=> String
1390
+ # resp.storage_lens_configuration.include.regions #=> Array
1391
+ # resp.storage_lens_configuration.include.regions[0] #=> String
1392
+ # resp.storage_lens_configuration.exclude.table_buckets #=> Array
1393
+ # resp.storage_lens_configuration.exclude.table_buckets[0] #=> String
1394
+ # resp.storage_lens_configuration.exclude.regions #=> Array
1395
+ # resp.storage_lens_configuration.exclude.regions[0] #=> String
1396
+ # resp.storage_lens_configuration.data_export.cloud_watch_metrics.is_enabled #=> Boolean
1397
+ # resp.storage_lens_configuration.data_export.s3_bucket_destination.format #=> String, one of "CSV", "Parquet"
1398
+ # resp.storage_lens_configuration.data_export.s3_bucket_destination.output_schema_version #=> String, one of "V_1"
1399
+ # resp.storage_lens_configuration.data_export.s3_bucket_destination.account_id #=> String
1400
+ # resp.storage_lens_configuration.data_export.s3_bucket_destination.arn #=> String
1401
+ # resp.storage_lens_configuration.data_export.s3_bucket_destination.prefix #=> String
1402
+ # resp.storage_lens_configuration.data_export.s3_bucket_destination.encryption.sse_algorithm #=> String, one of "AES256", "aws:kms"
1403
+ # resp.storage_lens_configuration.data_export.s3_bucket_destination.encryption.kms_key_arn #=> String
1404
+ # resp.storage_lens_configuration.data_export.storage_lens_table_destination.is_enabled #=> Boolean
1405
+ # resp.storage_lens_configuration.data_export.storage_lens_table_destination.encryption.sse_algorithm #=> String, one of "AES256", "aws:kms"
1406
+ # resp.storage_lens_configuration.data_export.storage_lens_table_destination.encryption.kms_key_arn #=> String
1407
+ # resp.storage_lens_configuration.is_enabled #=> Boolean
1408
+ # resp.storage_lens_configuration.aws_org.arn #=> String
1409
+ # resp.storage_lens_configuration.storage_lens_arn #=> String
1410
+ #
1411
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3tables-2018-05-10/GetStorageLensConfiguration AWS API Documentation
1412
+ #
1413
+ # @overload get_storage_lens_configuration(params = {})
1414
+ # @param [Hash] params ({})
1415
+ def get_storage_lens_configuration(params = {}, options = {})
1416
+ req = build_request(:get_storage_lens_configuration, params)
1417
+ req.send_request(options)
1418
+ end
1419
+
1204
1420
  # Gets details about a table. For more information, see [S3 Tables][1]
1205
1421
  # in the *Amazon Simple Storage Service User Guide*.
1206
1422
  #
@@ -2266,6 +2482,63 @@ module Aws::S3Tables
2266
2482
  req.send_request(options)
2267
2483
  end
2268
2484
 
2485
+ # Lists the Amazon S3 Storage Lens for Tables configurations in your
2486
+ # account whose home Region is the Region that you send the request to.
2487
+ # For more information, see [Gaining visibility into your S3 Tables
2488
+ # storage activity and usage with Amazon S3 Storage Lens for Tables][1]
2489
+ # in the *Amazon Simple Storage Service User Guide*.
2490
+ #
2491
+ # Results are paginated. To get the next page of results, pass the
2492
+ # `nextToken` from a response in your next request. Continue until a
2493
+ # response has no `nextToken`.
2494
+ #
2495
+ # Permissions
2496
+ #
2497
+ # : You must have the `s3tables:ListStorageLensConfigurations`
2498
+ # permission to use this operation. For more information, see [Setting
2499
+ # Amazon S3 Storage Lens for Tables permissions][2] in the *Amazon
2500
+ # Simple Storage Service User Guide*.
2501
+ #
2502
+ #
2503
+ #
2504
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-storage-lens.html
2505
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-storage-lens-permissions.html
2506
+ #
2507
+ # @option params [String] :next_token
2508
+ # The `nextToken` from a previous response, to get the next page of
2509
+ # results.
2510
+ #
2511
+ # @return [Types::ListStorageLensConfigurationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2512
+ #
2513
+ # * {Types::ListStorageLensConfigurationsResponse#next_token #next_token} => String
2514
+ # * {Types::ListStorageLensConfigurationsResponse#storage_lens_configurations #storage_lens_configurations} => Array<Types::StorageLensConfigurationSummary>
2515
+ #
2516
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2517
+ #
2518
+ # @example Request syntax with placeholder values
2519
+ #
2520
+ # resp = client.list_storage_lens_configurations({
2521
+ # next_token: "NextToken",
2522
+ # })
2523
+ #
2524
+ # @example Response structure
2525
+ #
2526
+ # resp.next_token #=> String
2527
+ # resp.storage_lens_configurations #=> Array
2528
+ # resp.storage_lens_configurations[0].home_region #=> String
2529
+ # resp.storage_lens_configurations[0].id #=> String
2530
+ # resp.storage_lens_configurations[0].storage_lens_arn #=> String
2531
+ # resp.storage_lens_configurations[0].is_enabled #=> Boolean
2532
+ #
2533
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3tables-2018-05-10/ListStorageLensConfigurations AWS API Documentation
2534
+ #
2535
+ # @overload list_storage_lens_configurations(params = {})
2536
+ # @param [Hash] params ({})
2537
+ def list_storage_lens_configurations(params = {}, options = {})
2538
+ req = build_request(:list_storage_lens_configurations, params)
2539
+ req.send_request(options)
2540
+ end
2541
+
2269
2542
  # Lists table buckets for your account. For more information, see [S3
2270
2543
  # Table buckets][1] in the *Amazon Simple Storage Service User Guide*.
2271
2544
  #
@@ -2370,8 +2643,9 @@ module Aws::S3Tables
2370
2643
  # member of `GetTableMigration`.
2371
2644
  #
2372
2645
  # @option params [Boolean] :has_valid_plan
2373
- # The `hasValidPlan` value to filter the list by. Migrations that are
2374
- # still planning aren't listed, whichever value you specify.
2646
+ # The `hasValidPlan` value to filter the list by. Whichever value you
2647
+ # specify, `ListTableMigrations` lists a migration only after planning
2648
+ # records a result.
2375
2649
  #
2376
2650
  # @option params [Integer] :max_results
2377
2651
  # The maximum number of migrations to return, from 1 to 1,000. If you
@@ -2508,8 +2782,9 @@ module Aws::S3Tables
2508
2782
  #
2509
2783
  # Permissions
2510
2784
  #
2511
- # : For tables and table buckets, you must have the
2512
- # `s3tables:ListTagsForResource` permission to use this operation.
2785
+ # : For tables, table buckets, and S3 Storage Lens for Tables
2786
+ # configurations, you must have the `s3tables:ListTagsForResource`
2787
+ # permission to use this operation.
2513
2788
  #
2514
2789
  #
2515
2790
  #
@@ -2517,9 +2792,10 @@ module Aws::S3Tables
2517
2792
  #
2518
2793
  # @option params [required, String] :resource_arn
2519
2794
  # The Amazon Resource Name (ARN) of the Amazon S3 Tables resource that
2520
- # you want to list tags for. The tagged resource can be a table bucket
2521
- # or a table. For a list of all S3 resources that support tagging, see
2522
- # [Managing tags for Amazon S3 resources][1].
2795
+ # you want to list tags for. The tagged resource can be a table bucket,
2796
+ # a table, or an S3 Storage Lens for Tables configuration. For a list of
2797
+ # all S3 resources that support tagging, see [Managing tags for Amazon
2798
+ # S3 resources][1].
2523
2799
  #
2524
2800
  #
2525
2801
  #
@@ -2549,6 +2825,251 @@ module Aws::S3Tables
2549
2825
  req.send_request(options)
2550
2826
  end
2551
2827
 
2828
+ # The `PutRows` operation writes rows to a channel of a table in Amazon
2829
+ # S3 Tables, so that you can stream data into the table.
2830
+ #
2831
+ # The following limits apply to each request:
2832
+ #
2833
+ # * The maximum payload size is 50 MiB (52,428,800 bytes). If the
2834
+ # payload is larger, the request fails with a `BadRequestException`
2835
+ # error.
2836
+ #
2837
+ # * The maximum number of rows in a payload is 500,000. If the payload
2838
+ # contains more rows, the request fails with a `BadRequestException`
2839
+ # error.
2840
+ #
2841
+ # * Only the `default` channel is supported. If you specify any other
2842
+ # `channelId`, the request fails with a `BadRequestException` error.
2843
+ #
2844
+ # You can gzip-compress the request body and set `Content-Encoding:
2845
+ # gzip`. The 50 MiB limit applies to the request body and, if the body
2846
+ # is compressed, also to the decompressed body. The data decoded from
2847
+ # the payload is also limited to 50 MiB.
2848
+ #
2849
+ # To send Avro, set `payloadFormat` to `AVRO`. The payload of each
2850
+ # request must be a single Apache Avro Object Container File (OCF) with
2851
+ # at least one row. To write more files, send a separate request for
2852
+ # each one. Each field of the writer schema must match a column of the
2853
+ # table. The row limit counts the rows in the file.
2854
+ #
2855
+ # Permissions
2856
+ #
2857
+ # : To use this operation, you must have all of the following
2858
+ # permissions on the table. Amazon S3 Tables doesn't have a separate
2859
+ # `s3tables:PutRows` permission.
2860
+ #
2861
+ # * `s3tables:GetTableData`
2862
+ #
2863
+ # * `s3tables:PutTableData`
2864
+ #
2865
+ # * `s3tables:GetTableMetadataLocation`
2866
+ #
2867
+ # * `s3tables:UpdateTableMetadataLocation`
2868
+ #
2869
+ # @option params [required, String] :table_arn
2870
+ # The Amazon Resource Name (ARN) of the table to write rows to.
2871
+ #
2872
+ # @option params [String] :channel_id
2873
+ # The identifier of the channel to write rows to. If you don't specify
2874
+ # a channel, the operation uses `default`. Only `default` is supported.
2875
+ #
2876
+ # @option params [required, String, StringIO, File] :payload
2877
+ # The rows to write, encoded in the format that you specify in
2878
+ # `payloadFormat`. The maximum payload size is 50 MiB (52,428,800
2879
+ # bytes), and the maximum number of rows is 500,000.
2880
+ #
2881
+ # @option params [required, String] :payload_format
2882
+ # Specifies the format of the rows in `payload`. The following values
2883
+ # are valid:
2884
+ #
2885
+ # * `JSON` – Newline-delimited JSON: each row is one JSON object on its
2886
+ # own line.
2887
+ #
2888
+ # * `AVRO` – Apache Avro data in the Object Container File (OCF) format.
2889
+ # Other Avro encodings, such as single-object encoding or Avro data
2890
+ # without the container, aren't accepted. Each field of the writer
2891
+ # schema must match a column of the table.
2892
+ #
2893
+ # @option params [String] :checksum_algorithm
2894
+ # (Optional) The algorithm to use to calculate the checksum of the
2895
+ # payload. Each `PutRows` request must include a payload checksum. If
2896
+ # you use an AWS SDK, the SDK calculates the checksum for you. If the
2897
+ # checksum doesn't match the payload, the request fails with a
2898
+ # `BadRequestException` error.
2899
+ #
2900
+ # @return [Types::PutRowsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2901
+ #
2902
+ # * {Types::PutRowsResponse#accepted_rows #accepted_rows} => Integer
2903
+ #
2904
+ # @example Request syntax with placeholder values
2905
+ #
2906
+ # resp = client.put_rows({
2907
+ # table_arn: "TableARN", # required
2908
+ # channel_id: "ChannelId",
2909
+ # payload: "data", # required
2910
+ # payload_format: "JSON", # required, accepts JSON, AVRO
2911
+ # checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, CRC64NVME, SHA1, SHA256
2912
+ # })
2913
+ #
2914
+ # @example Response structure
2915
+ #
2916
+ # resp.accepted_rows #=> Integer
2917
+ #
2918
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3tables-2018-05-10/PutRows AWS API Documentation
2919
+ #
2920
+ # @overload put_rows(params = {})
2921
+ # @param [Hash] params ({})
2922
+ def put_rows(params = {}, options = {})
2923
+ req = build_request(:put_rows, params)
2924
+ req.send_request(options)
2925
+ end
2926
+
2927
+ # Creates a new Amazon S3 Storage Lens for Tables configuration, or
2928
+ # replaces an existing configuration that has the same ID. A
2929
+ # configuration reports daily metrics about how the data in your table
2930
+ # buckets is stored, accessed, and maintained. For more information, see
2931
+ # [Gaining visibility into your S3 Tables storage activity and usage
2932
+ # with Amazon S3 Storage Lens for Tables][1] in the *Amazon Simple
2933
+ # Storage Service User Guide*. For a complete list of S3 Storage Lens
2934
+ # for Tables metrics, see [Amazon S3 Storage Lens for Tables metrics
2935
+ # glossary][2] in the *Amazon Simple Storage Service User Guide*.
2936
+ #
2937
+ # The Amazon Web Services Region that you send the request to becomes
2938
+ # the configuration's home Region, and you can't change it later. You
2939
+ # can create a configuration only in a supported home Region.
2940
+ #
2941
+ # Permissions
2942
+ #
2943
+ # : To use this operation, you must have the following permissions:
2944
+ #
2945
+ # * `s3tables:PutStorageLensConfiguration`
2946
+ #
2947
+ # * `s3tables:TagResource` – Required if you specify `tags`.
2948
+ #
2949
+ # * `s3tables:UntagResource` – Required if the request removes tags
2950
+ # from an existing configuration.
2951
+ #
2952
+ # * `s3tables:CreateTableBucket` and `s3tables:PutTableBucketPolicy` –
2953
+ # Required if you enable `storageLensTableDestination`. S3 Storage
2954
+ # Lens uses them to create the Amazon Web Services managed table
2955
+ # bucket `aws-s3` in your account.
2956
+ #
2957
+ # * `organizations:DescribeOrganization` and
2958
+ # `organizations:ListAWSServiceAccessForOrganization` – Required if
2959
+ # you specify `awsOrg`.
2960
+ #
2961
+ # * `organizations:ListDelegatedAdministrators` – Required if you
2962
+ # specify `awsOrg` in a delegated administrator account.
2963
+ #
2964
+ # * `iam:CreateServiceLinkedRole` – Required if you specify `awsOrg`
2965
+ # and the service-linked role `AWSServiceRoleForS3StorageLens`
2966
+ # doesn't exist in your account.
2967
+ #
2968
+ # For more information, see [Setting Amazon S3 Storage Lens for Tables
2969
+ # permissions][3] in the *Amazon Simple Storage Service User Guide*.
2970
+ #
2971
+ #
2972
+ #
2973
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-storage-lens.html
2974
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-storage-lens-metrics-glossary.html
2975
+ # [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-storage-lens-permissions.html
2976
+ #
2977
+ # @option params [required, String] :storage_lens_id
2978
+ # The ID of the S3 Storage Lens configuration. It must match the `id` in
2979
+ # `storageLensConfiguration`.
2980
+ #
2981
+ # @option params [required, Types::StorageLensConfiguration] :storage_lens_configuration
2982
+ # The S3 Storage Lens configuration.
2983
+ #
2984
+ # @option params [Hash<String,String>] :tags
2985
+ # A map of user-defined tags that you would like to apply to the S3
2986
+ # Storage Lens configuration. A tag is a key-value pair that you apply
2987
+ # to your resources. Tags can help you organize, track costs for, and
2988
+ # control access to resources. For more information, see [Tagging for
2989
+ # cost allocation or attribute-based access control (ABAC)][1].
2990
+ #
2991
+ # If you specify `tags` for an existing configuration, they replace all
2992
+ # of its tags. To remove all of its tags, specify an empty map. If you
2993
+ # don't specify `tags`, the existing tags don't change. A
2994
+ # configuration can have up to 50 tags.
2995
+ #
2996
+ # <note markdown="1"> You must have the `s3tables:TagResource` permission in addition to the
2997
+ # `s3tables:PutStorageLensConfiguration` permission to apply tags. To
2998
+ # remove tags from an existing configuration, you must also have the
2999
+ # `s3tables:UntagResource` permission.
3000
+ #
3001
+ # </note>
3002
+ #
3003
+ #
3004
+ #
3005
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/tagging.html
3006
+ #
3007
+ # @return [Types::PutStorageLensConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3008
+ #
3009
+ # * {Types::PutStorageLensConfigurationResponse#arn #arn} => String
3010
+ #
3011
+ # @example Request syntax with placeholder values
3012
+ #
3013
+ # resp = client.put_storage_lens_configuration({
3014
+ # storage_lens_id: "StorageLensConfigurationId", # required
3015
+ # storage_lens_configuration: { # required
3016
+ # id: "StorageLensConfigurationId", # required
3017
+ # advanced_metrics_categories: ["ActivityMetrics"], # required, accepts ActivityMetrics, MaintenanceMetrics, StorageMetrics
3018
+ # include: {
3019
+ # table_buckets: ["TableBucketARN"],
3020
+ # regions: ["Region"],
3021
+ # },
3022
+ # exclude: {
3023
+ # table_buckets: ["TableBucketARN"],
3024
+ # regions: ["Region"],
3025
+ # },
3026
+ # data_export: {
3027
+ # cloud_watch_metrics: {
3028
+ # is_enabled: false, # required
3029
+ # },
3030
+ # s3_bucket_destination: {
3031
+ # format: "CSV", # required, accepts CSV, Parquet
3032
+ # output_schema_version: "V_1", # required, accepts V_1
3033
+ # account_id: "AccountId", # required
3034
+ # arn: "S3BucketARN", # required
3035
+ # prefix: "S3BucketDestinationPrefixString",
3036
+ # encryption: {
3037
+ # sse_algorithm: "AES256", # required, accepts AES256, aws:kms
3038
+ # kms_key_arn: "EncryptionConfigurationKmsKeyArnString",
3039
+ # },
3040
+ # },
3041
+ # storage_lens_table_destination: {
3042
+ # is_enabled: false, # required
3043
+ # encryption: {
3044
+ # sse_algorithm: "AES256", # required, accepts AES256, aws:kms
3045
+ # kms_key_arn: "EncryptionConfigurationKmsKeyArnString",
3046
+ # },
3047
+ # },
3048
+ # },
3049
+ # is_enabled: false, # required
3050
+ # aws_org: {
3051
+ # arn: "AwsOrgARN",
3052
+ # },
3053
+ # storage_lens_arn: "StorageLensARN",
3054
+ # },
3055
+ # tags: {
3056
+ # "TagKey" => "TagValue",
3057
+ # },
3058
+ # })
3059
+ #
3060
+ # @example Response structure
3061
+ #
3062
+ # resp.arn #=> String
3063
+ #
3064
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3tables-2018-05-10/PutStorageLensConfiguration AWS API Documentation
3065
+ #
3066
+ # @overload put_storage_lens_configuration(params = {})
3067
+ # @param [Hash] params ({})
3068
+ def put_storage_lens_configuration(params = {}, options = {})
3069
+ req = build_request(:put_storage_lens_configuration, params)
3070
+ req.send_request(options)
3071
+ end
3072
+
2552
3073
  # Sets the encryption configuration for a table bucket.
2553
3074
  #
2554
3075
  # Permissions
@@ -3195,12 +3716,16 @@ module Aws::S3Tables
3195
3716
  # operation returns the migration ID and its initial state, and you
3196
3717
  # track progress with `GetTableMigration`.
3197
3718
  #
3198
- # The namespace must already exist, and a table with the specified name
3199
- # must not. The migration creates the table during planning and commits
3200
- # data to it as it runs. Until you call `CompleteTableMigration`, you
3201
- # can read the table but you can't write to it. If the migration fails
3202
- # or is cancelled, the table and the data already committed to it
3203
- # remain.
3719
+ # The namespace must already exist. If a table with the specified name
3720
+ # already exists, the request fails with a `ConflictException`. The
3721
+ # request has no client token. If a request times out, call
3722
+ # `ListTableMigrations` to check whether the migration started before
3723
+ # you retry.
3724
+ #
3725
+ # The migration creates the table during planning and commits data to it
3726
+ # as it runs. Until you call `CompleteTableMigration`, you can read the
3727
+ # table, but you can't write to it. If the migration fails or is
3728
+ # cancelled, the table and the data already committed to it remain.
3204
3729
  #
3205
3730
  # The migration first checks the source and the destination, and writes
3206
3731
  # the table compatibility and object compatibility reports to the bucket
@@ -3208,11 +3733,10 @@ module Aws::S3Tables
3208
3733
  # `reviewMigrationPlan` to `true`, the migration waits in the
3209
3734
  # `pendingReview` state so that you can review the reports, and
3210
3735
  # continues only when you call `UpdateTableMigration` with
3211
- # `requestedState` set to `queued`. If you don't continue or cancel the
3212
- # migration within 30 days, the migration fails. Otherwise it continues
3213
- # to migrate the data, and writes the object migration report when the
3214
- # migration ends. If planning fails, the migration writes no object
3215
- # migration report.
3736
+ # `requestedState` set to `queued`. Otherwise, it continues to migrate
3737
+ # the data, and writes the object migration report when the migration
3738
+ # ends. If planning fails, the migration writes no object migration
3739
+ # report.
3216
3740
  #
3217
3741
  # Permissions
3218
3742
  # : * You must have the `s3tables:StartTableMigration` permission to use
@@ -3220,8 +3744,8 @@ module Aws::S3Tables
3220
3744
  #
3221
3745
  # * You must have the `iam:PassRole` permission on the role that you
3222
3746
  # specify in `roleARN`, with a condition that allows passing it to
3223
- # `migration.s3tables.amazonaws.com`. The associated resource is the
3224
- # table bucket.
3747
+ # `migration.s3tables.amazonaws.com`. Set the
3748
+ # `iam:AssociatedResourceArn` condition key to the table bucket ARN.
3225
3749
  #
3226
3750
  # * If `destinationTable` specifies SSE-KMS encryption, you must have
3227
3751
  # the `kms:DescribeKey` and `kms:GenerateDataKey` permissions on the
@@ -3258,10 +3782,15 @@ module Aws::S3Tables
3258
3782
  # @option params [Boolean] :review_migration_plan
3259
3783
  # Specifies whether the migration waits in the `pendingReview` state, so
3260
3784
  # that you can review the compatibility reports before it migrates any
3261
- # data. If `true`, the migration continues when you call
3262
- # `UpdateTableMigration` with `requestedState` set to `queued`. If you
3263
- # don't continue or cancel the migration within 30 days, the migration
3264
- # fails. The default is `false`.
3785
+ # data. Valid values:
3786
+ #
3787
+ # * `true` - The migration waits in `pendingReview` until you call
3788
+ # `UpdateTableMigration` with `requestedState` set to `queued`. If you
3789
+ # don't continue or cancel the migration within 30 days, the
3790
+ # migration fails with `internalError`.
3791
+ #
3792
+ # * `false` - The migration continues without waiting for review. This
3793
+ # is the default.
3265
3794
  #
3266
3795
  # @option params [required, Types::MigrationOutputConfiguration] :migration_output
3267
3796
  # The bucket and prefixes that the migration writes its reports to. The
@@ -3381,15 +3910,18 @@ module Aws::S3Tables
3381
3910
  # migration ID of the sync and its initial state, and you track progress
3382
3911
  # with `GetTableMigration`.
3383
3912
  #
3384
- # A sync uses the source, destination and data migration settings of the
3385
- # table's migration, and plans the work and writes its reports in the
3386
- # same way as `StartTableMigration`. You can sync after a start or sync
3387
- # that succeeded, failed or was cancelled, if an earlier start or sync
3388
- # of the table has a valid plan (`hasValidPlan`). You can't sync a
3913
+ # A sync uses the source, destination, and data migration settings of
3914
+ # the table's migration, and plans the work and writes its reports in
3915
+ # the same way as `StartTableMigration`. You can sync after a start or
3916
+ # sync that succeeded, failed, or was cancelled, if an earlier start or
3917
+ # sync of the table has a valid plan (`hasValidPlan`). You can't sync a
3389
3918
  # table while a start or sync is in progress for it, and you can sync a
3390
- # table until you call `CompleteTableMigration` for it. If a source
3391
- # object that an earlier migration migrated has since been overwritten,
3392
- # the sync fails.
3919
+ # table until you call `CompleteTableMigration` for it.
3920
+ #
3921
+ # If you overwrite a source object after an earlier migration migrated
3922
+ # it, the sync fails. If no earlier start or sync of the table has a
3923
+ # valid plan, you can't sync the table. To migrate it again, delete the
3924
+ # destination table and start a new migration.
3393
3925
  #
3394
3926
  # Permissions
3395
3927
  # : * You must have the `s3tables:SyncTableMigration` permission to use
@@ -3397,8 +3929,8 @@ module Aws::S3Tables
3397
3929
  #
3398
3930
  # * You must have the `iam:PassRole` permission on the role that you
3399
3931
  # specify in `roleARN`, with a condition that allows passing it to
3400
- # `migration.s3tables.amazonaws.com`. The associated resource is the
3401
- # table.
3932
+ # `migration.s3tables.amazonaws.com`. Set the
3933
+ # `iam:AssociatedResourceArn` condition key to the table ARN.
3402
3934
  #
3403
3935
  # @option params [required, String] :role_arn
3404
3936
  # The Amazon Resource Name (ARN) of the IAM role that the sync uses to
@@ -3416,10 +3948,15 @@ module Aws::S3Tables
3416
3948
  # @option params [Boolean] :review_migration_plan
3417
3949
  # Specifies whether the sync waits in the `pendingReview` state, so that
3418
3950
  # you can review the compatibility reports before it migrates any data.
3419
- # If `true`, the migration continues when you call
3420
- # `UpdateTableMigration` with `requestedState` set to `queued`. If you
3421
- # don't continue or cancel the migration within 30 days, the migration
3422
- # fails. The default is `false`.
3951
+ # Valid values:
3952
+ #
3953
+ # * `true` - The sync waits in `pendingReview` until you call
3954
+ # `UpdateTableMigration` with `requestedState` set to `queued`. If you
3955
+ # don't continue or cancel the sync within 30 days, the sync fails
3956
+ # with `internalError`.
3957
+ #
3958
+ # * `false` - The sync continues without waiting for review. This is the
3959
+ # default.
3423
3960
  #
3424
3961
  # @option params [required, Types::MigrationOutputConfiguration] :migration_output
3425
3962
  # The bucket and prefixes that the sync writes its reports to. The
@@ -3476,8 +4013,9 @@ module Aws::S3Tables
3476
4013
  #
3477
4014
  # Permissions
3478
4015
  #
3479
- # : For tables and table buckets, you must have the
3480
- # `s3tables:TagResource` permission to use this operation.
4016
+ # : For tables, table buckets, and S3 Storage Lens for Tables
4017
+ # configurations, you must have the `s3tables:TagResource` permission
4018
+ # to use this operation.
3481
4019
  #
3482
4020
  #
3483
4021
  #
@@ -3485,9 +4023,10 @@ module Aws::S3Tables
3485
4023
  #
3486
4024
  # @option params [required, String] :resource_arn
3487
4025
  # The Amazon Resource Name (ARN) of the Amazon S3 Tables resource that
3488
- # you're applying tags to. The tagged resource can be a table bucket or
3489
- # a table. For a list of all S3 resources that support tagging, see
3490
- # [Managing tags for Amazon S3 resources][1].
4026
+ # you're applying tags to. The tagged resource can be a table bucket, a
4027
+ # table, or an S3 Storage Lens for Tables configuration. For a list of
4028
+ # all S3 resources that support tagging, see [Managing tags for Amazon
4029
+ # S3 resources][1].
3491
4030
  #
3492
4031
  #
3493
4032
  #
@@ -3532,8 +4071,9 @@ module Aws::S3Tables
3532
4071
  #
3533
4072
  # Permissions
3534
4073
  #
3535
- # : For tables and table buckets, you must have the
3536
- # `s3tables:UntagResource` permission to use this operation.
4074
+ # : For tables, table buckets, and S3 Storage Lens for Tables
4075
+ # configurations, you must have the `s3tables:UntagResource`
4076
+ # permission to use this operation.
3537
4077
  #
3538
4078
  #
3539
4079
  #
@@ -3541,9 +4081,10 @@ module Aws::S3Tables
3541
4081
  #
3542
4082
  # @option params [required, String] :resource_arn
3543
4083
  # The Amazon Resource Name (ARN) of the Amazon S3 Tables resource that
3544
- # you're removing tags from. The tagged resource can be a table bucket
3545
- # or a table. For a list of all S3 resources that support tagging, see
3546
- # [Managing tags for Amazon S3 resources][1].
4084
+ # you're removing tags from. The tagged resource can be a table bucket,
4085
+ # a table, or an S3 Storage Lens for Tables configuration. For a list of
4086
+ # all S3 resources that support tagging, see [Managing tags for Amazon
4087
+ # S3 resources][1].
3547
4088
  #
3548
4089
  #
3549
4090
  #
@@ -3642,13 +4183,19 @@ module Aws::S3Tables
3642
4183
  # `migrationId` or by the `tableARN` of its destination table.
3643
4184
  #
3644
4185
  # Set `requestedState` to `queued` to continue a migration in the
3645
- # `pendingReview` state; the migration moves to `queued` or `migrating`.
3646
- # Set it to `cancelled` to cancel a migration in the `new`, `planning`,
3647
- # `pendingReview`, `queued` or `migrating` state; the migration moves to
3648
- # `cancelling`, finishes the work in progress, and then ends in the
3649
- # `cancelled` state, or in the `failed` state if any objects failed to
3650
- # migrate. Data that the migration already committed stays in the
3651
- # destination table.
4186
+ # `pendingReview` state. The migration then moves to `queued` or
4187
+ # `migrating`. Set it to `cancelled` to cancel a migration that's
4188
+ # `new`, `planning`, `pendingReview`, `queued`, or `migrating`. A
4189
+ # migration in the `new` state moves directly to `cancelled`. From the
4190
+ # other states, the migration moves to `cancelling` and finishes the
4191
+ # work in progress. It then ends in the `cancelled` state, or in the
4192
+ # `failed` state if any objects failed to migrate. Data that the
4193
+ # migration already committed stays in the destination table.
4194
+ #
4195
+ # If you request `queued` for a migration that's already `queued` or
4196
+ # `migrating`, the request fails with a `ConflictException`. From any
4197
+ # other state except `pendingReview`, it fails with a
4198
+ # `BadRequestException`.
3652
4199
  #
3653
4200
  # Permissions
3654
4201
  # : * You must have the `s3tables:UpdateTableMigration` permission to
@@ -3669,7 +4216,8 @@ module Aws::S3Tables
3669
4216
  # @option params [required, String] :requested_state
3670
4217
  # The state to move the migration to: `queued` to continue a migration
3671
4218
  # in the `pendingReview` state, or `cancelled` to cancel a migration in
3672
- # the `new`, `planning`, `pendingReview`, `queued` or `migrating` state.
4219
+ # the `new`, `planning`, `pendingReview`, `queued`, or `migrating`
4220
+ # state.
3673
4221
  #
3674
4222
  # @option params [String] :update_description
3675
4223
  # A description of the update, up to 1,024 characters, with no control
@@ -3723,7 +4271,7 @@ module Aws::S3Tables
3723
4271
  tracer: tracer
3724
4272
  )
3725
4273
  context[:gem_name] = 'aws-sdk-s3tables'
3726
- context[:gem_version] = '1.47.0'
4274
+ context[:gem_version] = '1.49.0'
3727
4275
  Seahorse::Client::Request.new(handlers, context)
3728
4276
  end
3729
4277