@@ -69,6 +69,11 @@ import {
69
69
DescribeGlobalTableSettingsCommandInput ,
70
70
DescribeGlobalTableSettingsCommandOutput ,
71
71
} from "./commands/DescribeGlobalTableSettingsCommand" ;
72
+ import {
73
+ DescribeImportCommand ,
74
+ DescribeImportCommandInput ,
75
+ DescribeImportCommandOutput ,
76
+ } from "./commands/DescribeImportCommand" ;
72
77
import {
73
78
DescribeKinesisStreamingDestinationCommand ,
74
79
DescribeKinesisStreamingDestinationCommandInput ,
@@ -120,6 +125,7 @@ import {
120
125
ExportTableToPointInTimeCommandOutput ,
121
126
} from "./commands/ExportTableToPointInTimeCommand" ;
122
127
import { GetItemCommand , GetItemCommandInput , GetItemCommandOutput } from "./commands/GetItemCommand" ;
128
+ import { ImportTableCommand , ImportTableCommandInput , ImportTableCommandOutput } from "./commands/ImportTableCommand" ;
123
129
import { ListBackupsCommand , ListBackupsCommandInput , ListBackupsCommandOutput } from "./commands/ListBackupsCommand" ;
124
130
import {
125
131
ListContributorInsightsCommand ,
@@ -132,6 +138,7 @@ import {
132
138
ListGlobalTablesCommandInput ,
133
139
ListGlobalTablesCommandOutput ,
134
140
} from "./commands/ListGlobalTablesCommand" ;
141
+ import { ListImportsCommand , ListImportsCommandInput , ListImportsCommandOutput } from "./commands/ListImportsCommand" ;
135
142
import { ListTablesCommand , ListTablesCommandInput , ListTablesCommandOutput } from "./commands/ListTablesCommand" ;
136
143
import {
137
144
ListTagsOfResourceCommand ,
@@ -997,6 +1004,40 @@ export class DynamoDB extends DynamoDBClient {
997
1004
}
998
1005
}
999
1006
1007
+ /**
1008
+ * <p>
1009
+ * Represents the properties of the import.
1010
+ * </p>
1011
+ */
1012
+ public describeImport (
1013
+ args : DescribeImportCommandInput ,
1014
+ options ?: __HttpHandlerOptions
1015
+ ) : Promise < DescribeImportCommandOutput > ;
1016
+ public describeImport (
1017
+ args : DescribeImportCommandInput ,
1018
+ cb : ( err : any , data ?: DescribeImportCommandOutput ) => void
1019
+ ) : void ;
1020
+ public describeImport (
1021
+ args : DescribeImportCommandInput ,
1022
+ options : __HttpHandlerOptions ,
1023
+ cb : ( err : any , data ?: DescribeImportCommandOutput ) => void
1024
+ ) : void ;
1025
+ public describeImport (
1026
+ args : DescribeImportCommandInput ,
1027
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DescribeImportCommandOutput ) => void ) ,
1028
+ cb ?: ( err : any , data ?: DescribeImportCommandOutput ) => void
1029
+ ) : Promise < DescribeImportCommandOutput > | void {
1030
+ const command = new DescribeImportCommand ( args ) ;
1031
+ if ( typeof optionsOrCb === "function" ) {
1032
+ this . send ( command , optionsOrCb ) ;
1033
+ } else if ( typeof cb === "function" ) {
1034
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1035
+ this . send ( command , optionsOrCb || { } , cb ) ;
1036
+ } else {
1037
+ return this . send ( command , optionsOrCb ) ;
1038
+ }
1039
+ }
1040
+
1000
1041
/**
1001
1042
* <p>Returns information about the status of Kinesis streaming.</p>
1002
1043
*/
@@ -1460,6 +1501,35 @@ export class DynamoDB extends DynamoDBClient {
1460
1501
}
1461
1502
}
1462
1503
1504
+ /**
1505
+ * <p>
1506
+ * Imports table data from an S3 bucket.
1507
+ *
1508
+ * </p>
1509
+ */
1510
+ public importTable ( args : ImportTableCommandInput , options ?: __HttpHandlerOptions ) : Promise < ImportTableCommandOutput > ;
1511
+ public importTable ( args : ImportTableCommandInput , cb : ( err : any , data ?: ImportTableCommandOutput ) => void ) : void ;
1512
+ public importTable (
1513
+ args : ImportTableCommandInput ,
1514
+ options : __HttpHandlerOptions ,
1515
+ cb : ( err : any , data ?: ImportTableCommandOutput ) => void
1516
+ ) : void ;
1517
+ public importTable (
1518
+ args : ImportTableCommandInput ,
1519
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: ImportTableCommandOutput ) => void ) ,
1520
+ cb ?: ( err : any , data ?: ImportTableCommandOutput ) => void
1521
+ ) : Promise < ImportTableCommandOutput > | void {
1522
+ const command = new ImportTableCommand ( args ) ;
1523
+ if ( typeof optionsOrCb === "function" ) {
1524
+ this . send ( command , optionsOrCb ) ;
1525
+ } else if ( typeof cb === "function" ) {
1526
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1527
+ this . send ( command , optionsOrCb || { } , cb ) ;
1528
+ } else {
1529
+ return this . send ( command , optionsOrCb ) ;
1530
+ }
1531
+ }
1532
+
1463
1533
/**
1464
1534
* <p>List backups associated with an Amazon Web Services account. To list backups for a
1465
1535
* given table, specify <code>TableName</code>. <code>ListBackups</code> returns a
@@ -1587,6 +1657,34 @@ export class DynamoDB extends DynamoDBClient {
1587
1657
}
1588
1658
}
1589
1659
1660
+ /**
1661
+ * <p>
1662
+ * Lists completed imports within the past 90 days.
1663
+ * </p>
1664
+ */
1665
+ public listImports ( args : ListImportsCommandInput , options ?: __HttpHandlerOptions ) : Promise < ListImportsCommandOutput > ;
1666
+ public listImports ( args : ListImportsCommandInput , cb : ( err : any , data ?: ListImportsCommandOutput ) => void ) : void ;
1667
+ public listImports (
1668
+ args : ListImportsCommandInput ,
1669
+ options : __HttpHandlerOptions ,
1670
+ cb : ( err : any , data ?: ListImportsCommandOutput ) => void
1671
+ ) : void ;
1672
+ public listImports (
1673
+ args : ListImportsCommandInput ,
1674
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: ListImportsCommandOutput ) => void ) ,
1675
+ cb ?: ( err : any , data ?: ListImportsCommandOutput ) => void
1676
+ ) : Promise < ListImportsCommandOutput > | void {
1677
+ const command = new ListImportsCommand ( args ) ;
1678
+ if ( typeof optionsOrCb === "function" ) {
1679
+ this . send ( command , optionsOrCb ) ;
1680
+ } else if ( typeof cb === "function" ) {
1681
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1682
+ this . send ( command , optionsOrCb || { } , cb ) ;
1683
+ } else {
1684
+ return this . send ( command , optionsOrCb ) ;
1685
+ }
1686
+ }
1687
+
1590
1688
/**
1591
1689
* <p>Returns an array of table names associated with the current account and endpoint. The
1592
1690
* output from <code>ListTables</code> is paginated, with each page returning a maximum of
0 commit comments