@aws-sdk/client-s3tables 3.922.0 → 3.926.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.
Files changed (30) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/index.js +129 -0
  3. package/dist-es/S3Tables.js +6 -0
  4. package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
  5. package/dist-es/commands/TagResourceCommand.js +22 -0
  6. package/dist-es/commands/UntagResourceCommand.js +22 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/protocols/Aws_restJson1.js +72 -0
  9. package/dist-types/S3Tables.d.ts +21 -0
  10. package/dist-types/S3TablesClient.d.ts +5 -2
  11. package/dist-types/auth/httpAuthSchemeProvider.d.ts +1 -1
  12. package/dist-types/commands/CreateTableBucketCommand.d.ts +4 -1
  13. package/dist-types/commands/CreateTableCommand.d.ts +4 -1
  14. package/dist-types/commands/ListTagsForResourceCommand.d.ts +94 -0
  15. package/dist-types/commands/PutTableBucketPolicyCommand.d.ts +1 -1
  16. package/dist-types/commands/PutTablePolicyCommand.d.ts +1 -1
  17. package/dist-types/commands/TagResourceCommand.d.ts +93 -0
  18. package/dist-types/commands/UntagResourceCommand.d.ts +93 -0
  19. package/dist-types/commands/index.d.ts +3 -0
  20. package/dist-types/models/models_0.d.ts +72 -2
  21. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  22. package/dist-types/ts3.4/S3Tables.d.ts +51 -0
  23. package/dist-types/ts3.4/S3TablesClient.d.ts +18 -0
  24. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  25. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  26. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  27. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  28. package/dist-types/ts3.4/models/models_0.d.ts +18 -0
  29. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  30. package/package.json +8 -8
package/README.md CHANGED
@@ -386,6 +386,14 @@ ListTables
386
386
 
387
387
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3tables/command/ListTablesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3tables/Interface/ListTablesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3tables/Interface/ListTablesCommandOutput/)
388
388
 
389
+ </details>
390
+ <details>
391
+ <summary>
392
+ ListTagsForResource
393
+ </summary>
394
+
395
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3tables/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3tables/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3tables/Interface/ListTagsForResourceCommandOutput/)
396
+
389
397
  </details>
390
398
  <details>
391
399
  <summary>
@@ -434,6 +442,22 @@ RenameTable
434
442
 
435
443
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3tables/command/RenameTableCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3tables/Interface/RenameTableCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3tables/Interface/RenameTableCommandOutput/)
436
444
 
445
+ </details>
446
+ <details>
447
+ <summary>
448
+ TagResource
449
+ </summary>
450
+
451
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3tables/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3tables/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3tables/Interface/TagResourceCommandOutput/)
452
+
453
+ </details>
454
+ <details>
455
+ <summary>
456
+ UntagResource
457
+ </summary>
458
+
459
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3tables/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3tables/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3tables/Interface/UntagResourceCommandOutput/)
460
+
437
461
  </details>
438
462
  <details>
439
463
  <summary>
package/dist-cjs/index.js CHANGED
@@ -299,6 +299,7 @@ const se_CreateTableCommand = async (input, context) => {
299
299
  format: [],
300
300
  metadata: (_) => smithyClient._json(_),
301
301
  name: [],
302
+ tags: (_) => smithyClient._json(_),
302
303
  }));
303
304
  b.m("PUT").h(headers).b(body);
304
305
  return b.build();
@@ -313,6 +314,7 @@ const se_CreateTableBucketCommand = async (input, context) => {
313
314
  body = JSON.stringify(smithyClient.take(input, {
314
315
  encryptionConfiguration: (_) => smithyClient._json(_),
315
316
  name: [],
317
+ tags: (_) => smithyClient._json(_),
316
318
  }));
317
319
  b.m("PUT").h(headers).b(body);
318
320
  return b.build();
@@ -537,6 +539,15 @@ const se_ListTablesCommand = async (input, context) => {
537
539
  b.m("GET").h(headers).q(query).b(body);
538
540
  return b.build();
539
541
  };
542
+ const se_ListTagsForResourceCommand = async (input, context) => {
543
+ const b = core.requestBuilder(input, context);
544
+ const headers = {};
545
+ b.bp("/tag/{resourceArn}");
546
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
547
+ let body;
548
+ b.m("GET").h(headers).b(body);
549
+ return b.build();
550
+ };
540
551
  const se_PutTableBucketEncryptionCommand = async (input, context) => {
541
552
  const b = core.requestBuilder(input, context);
542
553
  const headers = {
@@ -631,6 +642,32 @@ const se_RenameTableCommand = async (input, context) => {
631
642
  b.m("PUT").h(headers).b(body);
632
643
  return b.build();
633
644
  };
645
+ const se_TagResourceCommand = async (input, context) => {
646
+ const b = core.requestBuilder(input, context);
647
+ const headers = {
648
+ "content-type": "application/json",
649
+ };
650
+ b.bp("/tag/{resourceArn}");
651
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
652
+ let body;
653
+ body = JSON.stringify(smithyClient.take(input, {
654
+ tags: (_) => smithyClient._json(_),
655
+ }));
656
+ b.m("POST").h(headers).b(body);
657
+ return b.build();
658
+ };
659
+ const se_UntagResourceCommand = async (input, context) => {
660
+ const b = core.requestBuilder(input, context);
661
+ const headers = {};
662
+ b.bp("/tag/{resourceArn}");
663
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
664
+ const query = smithyClient.map({
665
+ [_tK]: [smithyClient.expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
666
+ });
667
+ let body;
668
+ b.m("DELETE").h(headers).q(query).b(body);
669
+ return b.build();
670
+ };
634
671
  const se_UpdateTableMetadataLocationCommand = async (input, context) => {
635
672
  const b = core.requestBuilder(input, context);
636
673
  const headers = {
@@ -981,6 +1018,20 @@ const de_ListTablesCommand = async (output, context) => {
981
1018
  Object.assign(contents, doc);
982
1019
  return contents;
983
1020
  };
1021
+ const de_ListTagsForResourceCommand = async (output, context) => {
1022
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1023
+ return de_CommandError(output, context);
1024
+ }
1025
+ const contents = smithyClient.map({
1026
+ $metadata: deserializeMetadata(output),
1027
+ });
1028
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1029
+ const doc = smithyClient.take(data, {
1030
+ tags: smithyClient._json,
1031
+ });
1032
+ Object.assign(contents, doc);
1033
+ return contents;
1034
+ };
984
1035
  const de_PutTableBucketEncryptionCommand = async (output, context) => {
985
1036
  if (output.statusCode !== 200 && output.statusCode >= 300) {
986
1037
  return de_CommandError(output, context);
@@ -1041,6 +1092,26 @@ const de_RenameTableCommand = async (output, context) => {
1041
1092
  await smithyClient.collectBody(output.body, context);
1042
1093
  return contents;
1043
1094
  };
1095
+ const de_TagResourceCommand = async (output, context) => {
1096
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1097
+ return de_CommandError(output, context);
1098
+ }
1099
+ const contents = smithyClient.map({
1100
+ $metadata: deserializeMetadata(output),
1101
+ });
1102
+ await smithyClient.collectBody(output.body, context);
1103
+ return contents;
1104
+ };
1105
+ const de_UntagResourceCommand = async (output, context) => {
1106
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1107
+ return de_CommandError(output, context);
1108
+ }
1109
+ const contents = smithyClient.map({
1110
+ $metadata: deserializeMetadata(output),
1111
+ });
1112
+ await smithyClient.collectBody(output.body, context);
1113
+ return contents;
1114
+ };
1044
1115
  const de_UpdateTableMetadataLocationCommand = async (output, context) => {
1045
1116
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1046
1117
  return de_CommandError(output, context);
@@ -1276,6 +1347,7 @@ const _p = "prefix";
1276
1347
  const _t = "type";
1277
1348
  const _tA = "tableArn";
1278
1349
  const _tBARN = "tableBucketARN";
1350
+ const _tK = "tagKeys";
1279
1351
  const _vT = "versionToken";
1280
1352
 
1281
1353
  class CreateNamespaceCommand extends smithyClient.Command
@@ -1669,6 +1741,23 @@ class ListTablesCommand extends smithyClient.Command
1669
1741
  .build() {
1670
1742
  }
1671
1743
 
1744
+ class ListTagsForResourceCommand extends smithyClient.Command
1745
+ .classBuilder()
1746
+ .ep(commonParams)
1747
+ .m(function (Command, cs, config, o) {
1748
+ return [
1749
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1750
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1751
+ ];
1752
+ })
1753
+ .s("S3TableBuckets", "ListTagsForResource", {})
1754
+ .n("S3TablesClient", "ListTagsForResourceCommand")
1755
+ .f(void 0, void 0)
1756
+ .ser(se_ListTagsForResourceCommand)
1757
+ .de(de_ListTagsForResourceCommand)
1758
+ .build() {
1759
+ }
1760
+
1672
1761
  class PutTableBucketEncryptionCommand extends smithyClient.Command
1673
1762
  .classBuilder()
1674
1763
  .ep(commonParams)
@@ -1771,6 +1860,40 @@ class RenameTableCommand extends smithyClient.Command
1771
1860
  .build() {
1772
1861
  }
1773
1862
 
1863
+ class TagResourceCommand extends smithyClient.Command
1864
+ .classBuilder()
1865
+ .ep(commonParams)
1866
+ .m(function (Command, cs, config, o) {
1867
+ return [
1868
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1869
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1870
+ ];
1871
+ })
1872
+ .s("S3TableBuckets", "TagResource", {})
1873
+ .n("S3TablesClient", "TagResourceCommand")
1874
+ .f(void 0, void 0)
1875
+ .ser(se_TagResourceCommand)
1876
+ .de(de_TagResourceCommand)
1877
+ .build() {
1878
+ }
1879
+
1880
+ class UntagResourceCommand extends smithyClient.Command
1881
+ .classBuilder()
1882
+ .ep(commonParams)
1883
+ .m(function (Command, cs, config, o) {
1884
+ return [
1885
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1886
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1887
+ ];
1888
+ })
1889
+ .s("S3TableBuckets", "UntagResource", {})
1890
+ .n("S3TablesClient", "UntagResourceCommand")
1891
+ .f(void 0, void 0)
1892
+ .ser(se_UntagResourceCommand)
1893
+ .de(de_UntagResourceCommand)
1894
+ .build() {
1895
+ }
1896
+
1774
1897
  class UpdateTableMetadataLocationCommand extends smithyClient.Command
1775
1898
  .classBuilder()
1776
1899
  .ep(commonParams)
@@ -1812,12 +1935,15 @@ const commands = {
1812
1935
  ListNamespacesCommand,
1813
1936
  ListTableBucketsCommand,
1814
1937
  ListTablesCommand,
1938
+ ListTagsForResourceCommand,
1815
1939
  PutTableBucketEncryptionCommand,
1816
1940
  PutTableBucketMaintenanceConfigurationCommand,
1817
1941
  PutTableBucketPolicyCommand,
1818
1942
  PutTableMaintenanceConfigurationCommand,
1819
1943
  PutTablePolicyCommand,
1820
1944
  RenameTableCommand,
1945
+ TagResourceCommand,
1946
+ UntagResourceCommand,
1821
1947
  UpdateTableMetadataLocationCommand,
1822
1948
  };
1823
1949
  class S3Tables extends S3TablesClient {
@@ -1868,6 +1994,7 @@ exports.JobStatus = JobStatus;
1868
1994
  exports.ListNamespacesCommand = ListNamespacesCommand;
1869
1995
  exports.ListTableBucketsCommand = ListTableBucketsCommand;
1870
1996
  exports.ListTablesCommand = ListTablesCommand;
1997
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1871
1998
  exports.MaintenanceStatus = MaintenanceStatus;
1872
1999
  exports.NotFoundException = NotFoundException;
1873
2000
  exports.OpenTableFormat = OpenTableFormat;
@@ -1886,7 +2013,9 @@ exports.TableBucketType = TableBucketType;
1886
2013
  exports.TableMaintenanceJobType = TableMaintenanceJobType;
1887
2014
  exports.TableMaintenanceType = TableMaintenanceType;
1888
2015
  exports.TableType = TableType;
2016
+ exports.TagResourceCommand = TagResourceCommand;
1889
2017
  exports.TooManyRequestsException = TooManyRequestsException;
2018
+ exports.UntagResourceCommand = UntagResourceCommand;
1890
2019
  exports.UpdateTableMetadataLocationCommand = UpdateTableMetadataLocationCommand;
1891
2020
  exports.paginateListNamespaces = paginateListNamespaces;
1892
2021
  exports.paginateListTableBuckets = paginateListTableBuckets;
@@ -22,12 +22,15 @@ import { GetTablePolicyCommand, } from "./commands/GetTablePolicyCommand";
22
22
  import { ListNamespacesCommand, } from "./commands/ListNamespacesCommand";
23
23
  import { ListTableBucketsCommand, } from "./commands/ListTableBucketsCommand";
24
24
  import { ListTablesCommand } from "./commands/ListTablesCommand";
25
+ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
25
26
  import { PutTableBucketEncryptionCommand, } from "./commands/PutTableBucketEncryptionCommand";
26
27
  import { PutTableBucketMaintenanceConfigurationCommand, } from "./commands/PutTableBucketMaintenanceConfigurationCommand";
27
28
  import { PutTableBucketPolicyCommand, } from "./commands/PutTableBucketPolicyCommand";
28
29
  import { PutTableMaintenanceConfigurationCommand, } from "./commands/PutTableMaintenanceConfigurationCommand";
29
30
  import { PutTablePolicyCommand, } from "./commands/PutTablePolicyCommand";
30
31
  import { RenameTableCommand } from "./commands/RenameTableCommand";
32
+ import { TagResourceCommand } from "./commands/TagResourceCommand";
33
+ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
31
34
  import { UpdateTableMetadataLocationCommand, } from "./commands/UpdateTableMetadataLocationCommand";
32
35
  import { S3TablesClient } from "./S3TablesClient";
33
36
  const commands = {
@@ -54,12 +57,15 @@ const commands = {
54
57
  ListNamespacesCommand,
55
58
  ListTableBucketsCommand,
56
59
  ListTablesCommand,
60
+ ListTagsForResourceCommand,
57
61
  PutTableBucketEncryptionCommand,
58
62
  PutTableBucketMaintenanceConfigurationCommand,
59
63
  PutTableBucketPolicyCommand,
60
64
  PutTableMaintenanceConfigurationCommand,
61
65
  PutTablePolicyCommand,
62
66
  RenameTableCommand,
67
+ TagResourceCommand,
68
+ UntagResourceCommand,
63
69
  UpdateTableMetadataLocationCommand,
64
70
  };
65
71
  export class S3Tables extends S3TablesClient {
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListTagsForResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("S3TableBuckets", "ListTagsForResource", {})
17
+ .n("S3TablesClient", "ListTagsForResourceCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListTagsForResourceCommand)
20
+ .de(de_ListTagsForResourceCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class TagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("S3TableBuckets", "TagResource", {})
17
+ .n("S3TablesClient", "TagResourceCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_TagResourceCommand)
20
+ .de(de_TagResourceCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class UntagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("S3TableBuckets", "UntagResource", {})
17
+ .n("S3TablesClient", "UntagResourceCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_UntagResourceCommand)
20
+ .de(de_UntagResourceCommand)
21
+ .build() {
22
+ }
@@ -21,10 +21,13 @@ export * from "./GetTablePolicyCommand";
21
21
  export * from "./ListNamespacesCommand";
22
22
  export * from "./ListTableBucketsCommand";
23
23
  export * from "./ListTablesCommand";
24
+ export * from "./ListTagsForResourceCommand";
24
25
  export * from "./PutTableBucketEncryptionCommand";
25
26
  export * from "./PutTableBucketMaintenanceConfigurationCommand";
26
27
  export * from "./PutTableBucketPolicyCommand";
27
28
  export * from "./PutTableMaintenanceConfigurationCommand";
28
29
  export * from "./PutTablePolicyCommand";
29
30
  export * from "./RenameTableCommand";
31
+ export * from "./TagResourceCommand";
32
+ export * from "./UntagResourceCommand";
30
33
  export * from "./UpdateTableMetadataLocationCommand";
@@ -31,6 +31,7 @@ export const se_CreateTableCommand = async (input, context) => {
31
31
  format: [],
32
32
  metadata: (_) => _json(_),
33
33
  name: [],
34
+ tags: (_) => _json(_),
34
35
  }));
35
36
  b.m("PUT").h(headers).b(body);
36
37
  return b.build();
@@ -45,6 +46,7 @@ export const se_CreateTableBucketCommand = async (input, context) => {
45
46
  body = JSON.stringify(take(input, {
46
47
  encryptionConfiguration: (_) => _json(_),
47
48
  name: [],
49
+ tags: (_) => _json(_),
48
50
  }));
49
51
  b.m("PUT").h(headers).b(body);
50
52
  return b.build();
@@ -269,6 +271,15 @@ export const se_ListTablesCommand = async (input, context) => {
269
271
  b.m("GET").h(headers).q(query).b(body);
270
272
  return b.build();
271
273
  };
274
+ export const se_ListTagsForResourceCommand = async (input, context) => {
275
+ const b = rb(input, context);
276
+ const headers = {};
277
+ b.bp("/tag/{resourceArn}");
278
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
279
+ let body;
280
+ b.m("GET").h(headers).b(body);
281
+ return b.build();
282
+ };
272
283
  export const se_PutTableBucketEncryptionCommand = async (input, context) => {
273
284
  const b = rb(input, context);
274
285
  const headers = {
@@ -363,6 +374,32 @@ export const se_RenameTableCommand = async (input, context) => {
363
374
  b.m("PUT").h(headers).b(body);
364
375
  return b.build();
365
376
  };
377
+ export const se_TagResourceCommand = async (input, context) => {
378
+ const b = rb(input, context);
379
+ const headers = {
380
+ "content-type": "application/json",
381
+ };
382
+ b.bp("/tag/{resourceArn}");
383
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
384
+ let body;
385
+ body = JSON.stringify(take(input, {
386
+ tags: (_) => _json(_),
387
+ }));
388
+ b.m("POST").h(headers).b(body);
389
+ return b.build();
390
+ };
391
+ export const se_UntagResourceCommand = async (input, context) => {
392
+ const b = rb(input, context);
393
+ const headers = {};
394
+ b.bp("/tag/{resourceArn}");
395
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
396
+ const query = map({
397
+ [_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
398
+ });
399
+ let body;
400
+ b.m("DELETE").h(headers).q(query).b(body);
401
+ return b.build();
402
+ };
366
403
  export const se_UpdateTableMetadataLocationCommand = async (input, context) => {
367
404
  const b = rb(input, context);
368
405
  const headers = {
@@ -713,6 +750,20 @@ export const de_ListTablesCommand = async (output, context) => {
713
750
  Object.assign(contents, doc);
714
751
  return contents;
715
752
  };
753
+ export const de_ListTagsForResourceCommand = async (output, context) => {
754
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
755
+ return de_CommandError(output, context);
756
+ }
757
+ const contents = map({
758
+ $metadata: deserializeMetadata(output),
759
+ });
760
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
761
+ const doc = take(data, {
762
+ tags: _json,
763
+ });
764
+ Object.assign(contents, doc);
765
+ return contents;
766
+ };
716
767
  export const de_PutTableBucketEncryptionCommand = async (output, context) => {
717
768
  if (output.statusCode !== 200 && output.statusCode >= 300) {
718
769
  return de_CommandError(output, context);
@@ -773,6 +824,26 @@ export const de_RenameTableCommand = async (output, context) => {
773
824
  await collectBody(output.body, context);
774
825
  return contents;
775
826
  };
827
+ export const de_TagResourceCommand = async (output, context) => {
828
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
829
+ return de_CommandError(output, context);
830
+ }
831
+ const contents = map({
832
+ $metadata: deserializeMetadata(output),
833
+ });
834
+ await collectBody(output.body, context);
835
+ return contents;
836
+ };
837
+ export const de_UntagResourceCommand = async (output, context) => {
838
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
839
+ return de_CommandError(output, context);
840
+ }
841
+ const contents = map({
842
+ $metadata: deserializeMetadata(output),
843
+ });
844
+ await collectBody(output.body, context);
845
+ return contents;
846
+ };
776
847
  export const de_UpdateTableMetadataLocationCommand = async (output, context) => {
777
848
  if (output.statusCode !== 200 && output.statusCode >= 300) {
778
849
  return de_CommandError(output, context);
@@ -1009,4 +1080,5 @@ const _p = "prefix";
1009
1080
  const _t = "type";
1010
1081
  const _tA = "tableArn";
1011
1082
  const _tBARN = "tableBucketARN";
1083
+ const _tK = "tagKeys";
1012
1084
  const _vT = "versionToken";
@@ -22,12 +22,15 @@ import { GetTablePolicyCommandInput, GetTablePolicyCommandOutput } from "./comma
22
22
  import { ListNamespacesCommandInput, ListNamespacesCommandOutput } from "./commands/ListNamespacesCommand";
23
23
  import { ListTableBucketsCommandInput, ListTableBucketsCommandOutput } from "./commands/ListTableBucketsCommand";
24
24
  import { ListTablesCommandInput, ListTablesCommandOutput } from "./commands/ListTablesCommand";
25
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
25
26
  import { PutTableBucketEncryptionCommandInput, PutTableBucketEncryptionCommandOutput } from "./commands/PutTableBucketEncryptionCommand";
26
27
  import { PutTableBucketMaintenanceConfigurationCommandInput, PutTableBucketMaintenanceConfigurationCommandOutput } from "./commands/PutTableBucketMaintenanceConfigurationCommand";
27
28
  import { PutTableBucketPolicyCommandInput, PutTableBucketPolicyCommandOutput } from "./commands/PutTableBucketPolicyCommand";
28
29
  import { PutTableMaintenanceConfigurationCommandInput, PutTableMaintenanceConfigurationCommandOutput } from "./commands/PutTableMaintenanceConfigurationCommand";
29
30
  import { PutTablePolicyCommandInput, PutTablePolicyCommandOutput } from "./commands/PutTablePolicyCommand";
30
31
  import { RenameTableCommandInput, RenameTableCommandOutput } from "./commands/RenameTableCommand";
32
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
33
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
31
34
  import { UpdateTableMetadataLocationCommandInput, UpdateTableMetadataLocationCommandOutput } from "./commands/UpdateTableMetadataLocationCommand";
32
35
  import { S3TablesClient } from "./S3TablesClient";
33
36
  export interface S3Tables {
@@ -171,6 +174,12 @@ export interface S3Tables {
171
174
  listTables(args: ListTablesCommandInput, options?: __HttpHandlerOptions): Promise<ListTablesCommandOutput>;
172
175
  listTables(args: ListTablesCommandInput, cb: (err: any, data?: ListTablesCommandOutput) => void): void;
173
176
  listTables(args: ListTablesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTablesCommandOutput) => void): void;
177
+ /**
178
+ * @see {@link ListTagsForResourceCommand}
179
+ */
180
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
181
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
182
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
174
183
  /**
175
184
  * @see {@link PutTableBucketEncryptionCommand}
176
185
  */
@@ -207,6 +216,18 @@ export interface S3Tables {
207
216
  renameTable(args: RenameTableCommandInput, options?: __HttpHandlerOptions): Promise<RenameTableCommandOutput>;
208
217
  renameTable(args: RenameTableCommandInput, cb: (err: any, data?: RenameTableCommandOutput) => void): void;
209
218
  renameTable(args: RenameTableCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RenameTableCommandOutput) => void): void;
219
+ /**
220
+ * @see {@link TagResourceCommand}
221
+ */
222
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
223
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
224
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
225
+ /**
226
+ * @see {@link UntagResourceCommand}
227
+ */
228
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
229
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
230
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
210
231
  /**
211
232
  * @see {@link UpdateTableMetadataLocationCommand}
212
233
  */
@@ -30,12 +30,15 @@ import { GetTablePolicyCommandInput, GetTablePolicyCommandOutput } from "./comma
30
30
  import { ListNamespacesCommandInput, ListNamespacesCommandOutput } from "./commands/ListNamespacesCommand";
31
31
  import { ListTableBucketsCommandInput, ListTableBucketsCommandOutput } from "./commands/ListTableBucketsCommand";
32
32
  import { ListTablesCommandInput, ListTablesCommandOutput } from "./commands/ListTablesCommand";
33
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
33
34
  import { PutTableBucketEncryptionCommandInput, PutTableBucketEncryptionCommandOutput } from "./commands/PutTableBucketEncryptionCommand";
34
35
  import { PutTableBucketMaintenanceConfigurationCommandInput, PutTableBucketMaintenanceConfigurationCommandOutput } from "./commands/PutTableBucketMaintenanceConfigurationCommand";
35
36
  import { PutTableBucketPolicyCommandInput, PutTableBucketPolicyCommandOutput } from "./commands/PutTableBucketPolicyCommand";
36
37
  import { PutTableMaintenanceConfigurationCommandInput, PutTableMaintenanceConfigurationCommandOutput } from "./commands/PutTableMaintenanceConfigurationCommand";
37
38
  import { PutTablePolicyCommandInput, PutTablePolicyCommandOutput } from "./commands/PutTablePolicyCommand";
38
39
  import { RenameTableCommandInput, RenameTableCommandOutput } from "./commands/RenameTableCommand";
40
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
41
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
39
42
  import { UpdateTableMetadataLocationCommandInput, UpdateTableMetadataLocationCommandOutput } from "./commands/UpdateTableMetadataLocationCommand";
40
43
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
41
44
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
@@ -43,11 +46,11 @@ export { __Client };
43
46
  /**
44
47
  * @public
45
48
  */
46
- export type ServiceInputTypes = CreateNamespaceCommandInput | CreateTableBucketCommandInput | CreateTableCommandInput | DeleteNamespaceCommandInput | DeleteTableBucketCommandInput | DeleteTableBucketEncryptionCommandInput | DeleteTableBucketPolicyCommandInput | DeleteTableCommandInput | DeleteTablePolicyCommandInput | GetNamespaceCommandInput | GetTableBucketCommandInput | GetTableBucketEncryptionCommandInput | GetTableBucketMaintenanceConfigurationCommandInput | GetTableBucketPolicyCommandInput | GetTableCommandInput | GetTableEncryptionCommandInput | GetTableMaintenanceConfigurationCommandInput | GetTableMaintenanceJobStatusCommandInput | GetTableMetadataLocationCommandInput | GetTablePolicyCommandInput | ListNamespacesCommandInput | ListTableBucketsCommandInput | ListTablesCommandInput | PutTableBucketEncryptionCommandInput | PutTableBucketMaintenanceConfigurationCommandInput | PutTableBucketPolicyCommandInput | PutTableMaintenanceConfigurationCommandInput | PutTablePolicyCommandInput | RenameTableCommandInput | UpdateTableMetadataLocationCommandInput;
49
+ export type ServiceInputTypes = CreateNamespaceCommandInput | CreateTableBucketCommandInput | CreateTableCommandInput | DeleteNamespaceCommandInput | DeleteTableBucketCommandInput | DeleteTableBucketEncryptionCommandInput | DeleteTableBucketPolicyCommandInput | DeleteTableCommandInput | DeleteTablePolicyCommandInput | GetNamespaceCommandInput | GetTableBucketCommandInput | GetTableBucketEncryptionCommandInput | GetTableBucketMaintenanceConfigurationCommandInput | GetTableBucketPolicyCommandInput | GetTableCommandInput | GetTableEncryptionCommandInput | GetTableMaintenanceConfigurationCommandInput | GetTableMaintenanceJobStatusCommandInput | GetTableMetadataLocationCommandInput | GetTablePolicyCommandInput | ListNamespacesCommandInput | ListTableBucketsCommandInput | ListTablesCommandInput | ListTagsForResourceCommandInput | PutTableBucketEncryptionCommandInput | PutTableBucketMaintenanceConfigurationCommandInput | PutTableBucketPolicyCommandInput | PutTableMaintenanceConfigurationCommandInput | PutTablePolicyCommandInput | RenameTableCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateTableMetadataLocationCommandInput;
47
50
  /**
48
51
  * @public
49
52
  */
50
- export type ServiceOutputTypes = CreateNamespaceCommandOutput | CreateTableBucketCommandOutput | CreateTableCommandOutput | DeleteNamespaceCommandOutput | DeleteTableBucketCommandOutput | DeleteTableBucketEncryptionCommandOutput | DeleteTableBucketPolicyCommandOutput | DeleteTableCommandOutput | DeleteTablePolicyCommandOutput | GetNamespaceCommandOutput | GetTableBucketCommandOutput | GetTableBucketEncryptionCommandOutput | GetTableBucketMaintenanceConfigurationCommandOutput | GetTableBucketPolicyCommandOutput | GetTableCommandOutput | GetTableEncryptionCommandOutput | GetTableMaintenanceConfigurationCommandOutput | GetTableMaintenanceJobStatusCommandOutput | GetTableMetadataLocationCommandOutput | GetTablePolicyCommandOutput | ListNamespacesCommandOutput | ListTableBucketsCommandOutput | ListTablesCommandOutput | PutTableBucketEncryptionCommandOutput | PutTableBucketMaintenanceConfigurationCommandOutput | PutTableBucketPolicyCommandOutput | PutTableMaintenanceConfigurationCommandOutput | PutTablePolicyCommandOutput | RenameTableCommandOutput | UpdateTableMetadataLocationCommandOutput;
53
+ export type ServiceOutputTypes = CreateNamespaceCommandOutput | CreateTableBucketCommandOutput | CreateTableCommandOutput | DeleteNamespaceCommandOutput | DeleteTableBucketCommandOutput | DeleteTableBucketEncryptionCommandOutput | DeleteTableBucketPolicyCommandOutput | DeleteTableCommandOutput | DeleteTablePolicyCommandOutput | GetNamespaceCommandOutput | GetTableBucketCommandOutput | GetTableBucketEncryptionCommandOutput | GetTableBucketMaintenanceConfigurationCommandOutput | GetTableBucketPolicyCommandOutput | GetTableCommandOutput | GetTableEncryptionCommandOutput | GetTableMaintenanceConfigurationCommandOutput | GetTableMaintenanceJobStatusCommandOutput | GetTableMetadataLocationCommandOutput | GetTablePolicyCommandOutput | ListNamespacesCommandOutput | ListTableBucketsCommandOutput | ListTablesCommandOutput | ListTagsForResourceCommandOutput | PutTableBucketEncryptionCommandOutput | PutTableBucketMaintenanceConfigurationCommandOutput | PutTableBucketPolicyCommandOutput | PutTableMaintenanceConfigurationCommandOutput | PutTablePolicyCommandOutput | RenameTableCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateTableMetadataLocationCommandOutput;
51
54
  /**
52
55
  * @public
53
56
  */
@@ -26,7 +26,7 @@ export interface S3TablesHttpAuthSchemeProvider extends HttpAuthSchemeProvider<S
26
26
  */
27
27
  export declare const defaultS3TablesHttpAuthSchemeProvider: S3TablesHttpAuthSchemeProvider;
28
28
  /**
29
- * @internal
29
+ * @public
30
30
  */
31
31
  export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
32
32
  /**
@@ -27,7 +27,7 @@ declare const CreateTableBucketCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Creates a table bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-buckets-create.html">Creating a table bucket</a> in the <i>Amazon Simple Storage Service User Guide</i>.</p> <dl> <dt>Permissions</dt> <dd> <ul> <li> <p>You must have the <code>s3tables:CreateTableBucket</code> permission to use this operation. </p> </li> <li> <p>If you use this operation with the optional <code>encryptionConfiguration</code> parameter you must have the <code>s3tables:PutTableBucketEncryption</code> permission.</p> </li> </ul> </dd> </dl>
30
+ * <p>Creates a table bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-buckets-create.html">Creating a table bucket</a> in the <i>Amazon Simple Storage Service User Guide</i>.</p> <dl> <dt>Permissions</dt> <dd> <ul> <li> <p>You must have the <code>s3tables:CreateTableBucket</code> permission to use this operation. </p> </li> <li> <p>If you use this operation with the optional <code>encryptionConfiguration</code> parameter you must have the <code>s3tables:PutTableBucketEncryption</code> permission.</p> </li> <li> <p>You must have the <code>s3tables:TagResource</code> permission in addition to <code>s3tables:CreateTableBucket</code> permission to create a table bucket with tags.</p> </li> </ul> </dd> </dl>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -42,6 +42,9 @@ declare const CreateTableBucketCommand_base: {
42
42
  * sseAlgorithm: "AES256" || "aws:kms", // required
43
43
  * kmsKeyArn: "STRING_VALUE",
44
44
  * },
45
+ * tags: { // Tags
46
+ * "<keys>": "STRING_VALUE",
47
+ * },
45
48
  * };
46
49
  * const command = new CreateTableBucketCommand(input);
47
50
  * const response = await client.send(command);
@@ -27,7 +27,7 @@ declare const CreateTableCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Creates a new table associated with the given namespace in a table bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-create.html">Creating an Amazon S3 table</a> in the <i>Amazon Simple Storage Service User Guide</i>.</p> <dl> <dt>Permissions</dt> <dd> <ul> <li> <p>You must have the <code>s3tables:CreateTable</code> permission to use this operation. </p> </li> <li> <p>If you use this operation with the optional <code>metadata</code> request parameter you must have the <code>s3tables:PutTableData</code> permission. </p> </li> <li> <p>If you use this operation with the optional <code>encryptionConfiguration</code> request parameter you must have the <code>s3tables:PutTableEncryption</code> permission. </p> </li> </ul> <note> <p>Additionally, If you choose SSE-KMS encryption you must grant the S3 Tables maintenance principal access to your KMS key. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-kms-permissions.html">Permissions requirements for S3 Tables SSE-KMS encryption</a>. </p> </note> </dd> </dl>
30
+ * <p>Creates a new table associated with the given namespace in a table bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-create.html">Creating an Amazon S3 table</a> in the <i>Amazon Simple Storage Service User Guide</i>.</p> <dl> <dt>Permissions</dt> <dd> <ul> <li> <p>You must have the <code>s3tables:CreateTable</code> permission to use this operation. </p> </li> <li> <p>If you use this operation with the optional <code>metadata</code> request parameter you must have the <code>s3tables:PutTableData</code> permission. </p> </li> <li> <p>If you use this operation with the optional <code>encryptionConfiguration</code> request parameter you must have the <code>s3tables:PutTableEncryption</code> permission. </p> </li> <li> <p>You must have the <code>s3tables:TagResource</code> permission in addition to <code>s3tables:CreateTable</code> permission to create a table with tags.</p> </li> </ul> <note> <p>Additionally, If you choose SSE-KMS encryption you must grant the S3 Tables maintenance principal access to your KMS key. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-kms-permissions.html">Permissions requirements for S3 Tables SSE-KMS encryption</a>. </p> </note> </dd> </dl>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -58,6 +58,9 @@ declare const CreateTableCommand_base: {
58
58
  * sseAlgorithm: "AES256" || "aws:kms", // required
59
59
  * kmsKeyArn: "STRING_VALUE",
60
60
  * },
61
+ * tags: { // Tags
62
+ * "<keys>": "STRING_VALUE",
63
+ * },
61
64
  * };
62
65
  * const command = new CreateTableCommand(input);
63
66
  * const response = await client.send(command);