@@ -87,6 +87,11 @@ import {
87
87
GetResourcePolicyCommandOutput ,
88
88
} from "./commands/GetResourcePolicyCommand" ;
89
89
import { GetSnapshotCommand , GetSnapshotCommandInput , GetSnapshotCommandOutput } from "./commands/GetSnapshotCommand" ;
90
+ import {
91
+ GetTableRestoreStatusCommand ,
92
+ GetTableRestoreStatusCommandInput ,
93
+ GetTableRestoreStatusCommandOutput ,
94
+ } from "./commands/GetTableRestoreStatusCommand" ;
90
95
import {
91
96
GetUsageLimitCommand ,
92
97
GetUsageLimitCommandInput ,
@@ -117,6 +122,11 @@ import {
117
122
ListSnapshotsCommandInput ,
118
123
ListSnapshotsCommandOutput ,
119
124
} from "./commands/ListSnapshotsCommand" ;
125
+ import {
126
+ ListTableRestoreStatusCommand ,
127
+ ListTableRestoreStatusCommandInput ,
128
+ ListTableRestoreStatusCommandOutput ,
129
+ } from "./commands/ListTableRestoreStatusCommand" ;
120
130
import {
121
131
ListTagsForResourceCommand ,
122
132
ListTagsForResourceCommandInput ,
@@ -147,6 +157,11 @@ import {
147
157
RestoreFromSnapshotCommandInput ,
148
158
RestoreFromSnapshotCommandOutput ,
149
159
} from "./commands/RestoreFromSnapshotCommand" ;
160
+ import {
161
+ RestoreTableFromSnapshotCommand ,
162
+ RestoreTableFromSnapshotCommandInput ,
163
+ RestoreTableFromSnapshotCommandOutput ,
164
+ } from "./commands/RestoreTableFromSnapshotCommand" ;
150
165
import { TagResourceCommand , TagResourceCommandInput , TagResourceCommandOutput } from "./commands/TagResourceCommand" ;
151
166
import {
152
167
UntagResourceCommand ,
@@ -591,15 +606,12 @@ export class RedshiftServerless extends RedshiftServerlessClient {
591
606
* <p>By default, the temporary credentials expire in 900 seconds.
592
607
* You can optionally specify a duration between 900 seconds (15 minutes) and 3600 seconds (60 minutes).</p>
593
608
*
594
- * <p>
595
- * The Identity and Access Management (IAM) user or role that runs
596
- * GetCredentials must have an IAM policy attached that allows access to all
597
- * necessary actions and resources.
598
- * </p>
609
+ * <p>The Identity and Access Management (IAM) user or role that runs
610
+ * GetCredentials must have an IAM policy attached that allows access to all
611
+ * necessary actions and resources.</p>
599
612
*
600
- * <p>
601
- * If the <code>DbName</code> parameter is specified, the IAM policy must
602
- * allow access to the resource dbname for the specified database name.</p>
613
+ * <p>If the <code>DbName</code> parameter is specified, the IAM policy must
614
+ * allow access to the resource dbname for the specified database name.</p>
603
615
*/
604
616
public getCredentials (
605
617
args : GetCredentialsCommandInput ,
@@ -781,6 +793,38 @@ export class RedshiftServerless extends RedshiftServerlessClient {
781
793
}
782
794
}
783
795
796
+ /**
797
+ * <p>Returns information about a <code>TableRestoreStatus</code> object.</p>
798
+ */
799
+ public getTableRestoreStatus (
800
+ args : GetTableRestoreStatusCommandInput ,
801
+ options ?: __HttpHandlerOptions
802
+ ) : Promise < GetTableRestoreStatusCommandOutput > ;
803
+ public getTableRestoreStatus (
804
+ args : GetTableRestoreStatusCommandInput ,
805
+ cb : ( err : any , data ?: GetTableRestoreStatusCommandOutput ) => void
806
+ ) : void ;
807
+ public getTableRestoreStatus (
808
+ args : GetTableRestoreStatusCommandInput ,
809
+ options : __HttpHandlerOptions ,
810
+ cb : ( err : any , data ?: GetTableRestoreStatusCommandOutput ) => void
811
+ ) : void ;
812
+ public getTableRestoreStatus (
813
+ args : GetTableRestoreStatusCommandInput ,
814
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: GetTableRestoreStatusCommandOutput ) => void ) ,
815
+ cb ?: ( err : any , data ?: GetTableRestoreStatusCommandOutput ) => void
816
+ ) : Promise < GetTableRestoreStatusCommandOutput > | void {
817
+ const command = new GetTableRestoreStatusCommand ( args ) ;
818
+ if ( typeof optionsOrCb === "function" ) {
819
+ this . send ( command , optionsOrCb ) ;
820
+ } else if ( typeof cb === "function" ) {
821
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
822
+ this . send ( command , optionsOrCb || { } , cb ) ;
823
+ } else {
824
+ return this . send ( command , optionsOrCb ) ;
825
+ }
826
+ }
827
+
784
828
/**
785
829
* <p>Returns information about a usage limit.</p>
786
830
*/
@@ -970,6 +1014,38 @@ export class RedshiftServerless extends RedshiftServerlessClient {
970
1014
}
971
1015
}
972
1016
1017
+ /**
1018
+ * <p>Returns information about an array of <code>TableRestoreStatus</code> objects.</p>
1019
+ */
1020
+ public listTableRestoreStatus (
1021
+ args : ListTableRestoreStatusCommandInput ,
1022
+ options ?: __HttpHandlerOptions
1023
+ ) : Promise < ListTableRestoreStatusCommandOutput > ;
1024
+ public listTableRestoreStatus (
1025
+ args : ListTableRestoreStatusCommandInput ,
1026
+ cb : ( err : any , data ?: ListTableRestoreStatusCommandOutput ) => void
1027
+ ) : void ;
1028
+ public listTableRestoreStatus (
1029
+ args : ListTableRestoreStatusCommandInput ,
1030
+ options : __HttpHandlerOptions ,
1031
+ cb : ( err : any , data ?: ListTableRestoreStatusCommandOutput ) => void
1032
+ ) : void ;
1033
+ public listTableRestoreStatus (
1034
+ args : ListTableRestoreStatusCommandInput ,
1035
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: ListTableRestoreStatusCommandOutput ) => void ) ,
1036
+ cb ?: ( err : any , data ?: ListTableRestoreStatusCommandOutput ) => void
1037
+ ) : Promise < ListTableRestoreStatusCommandOutput > | void {
1038
+ const command = new ListTableRestoreStatusCommand ( args ) ;
1039
+ if ( typeof optionsOrCb === "function" ) {
1040
+ this . send ( command , optionsOrCb ) ;
1041
+ } else if ( typeof cb === "function" ) {
1042
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1043
+ this . send ( command , optionsOrCb || { } , cb ) ;
1044
+ } else {
1045
+ return this . send ( command , optionsOrCb ) ;
1046
+ }
1047
+ }
1048
+
973
1049
/**
974
1050
* <p>Lists the tags assigned to a resource.</p>
975
1051
*/
@@ -1162,6 +1238,38 @@ export class RedshiftServerless extends RedshiftServerlessClient {
1162
1238
}
1163
1239
}
1164
1240
1241
+ /**
1242
+ * <p>Restores a table from a snapshot to your Amazon Redshift Serverless instance.</p>
1243
+ */
1244
+ public restoreTableFromSnapshot (
1245
+ args : RestoreTableFromSnapshotCommandInput ,
1246
+ options ?: __HttpHandlerOptions
1247
+ ) : Promise < RestoreTableFromSnapshotCommandOutput > ;
1248
+ public restoreTableFromSnapshot (
1249
+ args : RestoreTableFromSnapshotCommandInput ,
1250
+ cb : ( err : any , data ?: RestoreTableFromSnapshotCommandOutput ) => void
1251
+ ) : void ;
1252
+ public restoreTableFromSnapshot (
1253
+ args : RestoreTableFromSnapshotCommandInput ,
1254
+ options : __HttpHandlerOptions ,
1255
+ cb : ( err : any , data ?: RestoreTableFromSnapshotCommandOutput ) => void
1256
+ ) : void ;
1257
+ public restoreTableFromSnapshot (
1258
+ args : RestoreTableFromSnapshotCommandInput ,
1259
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: RestoreTableFromSnapshotCommandOutput ) => void ) ,
1260
+ cb ?: ( err : any , data ?: RestoreTableFromSnapshotCommandOutput ) => void
1261
+ ) : Promise < RestoreTableFromSnapshotCommandOutput > | void {
1262
+ const command = new RestoreTableFromSnapshotCommand ( args ) ;
1263
+ if ( typeof optionsOrCb === "function" ) {
1264
+ this . send ( command , optionsOrCb ) ;
1265
+ } else if ( typeof cb === "function" ) {
1266
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1267
+ this . send ( command , optionsOrCb || { } , cb ) ;
1268
+ } else {
1269
+ return this . send ( command , optionsOrCb ) ;
1270
+ }
1271
+ }
1272
+
1165
1273
/**
1166
1274
* <p>Assigns one or more tags to a resource.</p>
1167
1275
*/
0 commit comments