@@ -87,6 +87,11 @@ import {
8787 GetResourcePolicyCommandOutput ,
8888} from "./commands/GetResourcePolicyCommand" ;
8989import { GetSnapshotCommand , GetSnapshotCommandInput , GetSnapshotCommandOutput } from "./commands/GetSnapshotCommand" ;
90+ import {
91+ GetTableRestoreStatusCommand ,
92+ GetTableRestoreStatusCommandInput ,
93+ GetTableRestoreStatusCommandOutput ,
94+ } from "./commands/GetTableRestoreStatusCommand" ;
9095import {
9196 GetUsageLimitCommand ,
9297 GetUsageLimitCommandInput ,
@@ -117,6 +122,11 @@ import {
117122 ListSnapshotsCommandInput ,
118123 ListSnapshotsCommandOutput ,
119124} from "./commands/ListSnapshotsCommand" ;
125+ import {
126+ ListTableRestoreStatusCommand ,
127+ ListTableRestoreStatusCommandInput ,
128+ ListTableRestoreStatusCommandOutput ,
129+ } from "./commands/ListTableRestoreStatusCommand" ;
120130import {
121131 ListTagsForResourceCommand ,
122132 ListTagsForResourceCommandInput ,
@@ -147,6 +157,11 @@ import {
147157 RestoreFromSnapshotCommandInput ,
148158 RestoreFromSnapshotCommandOutput ,
149159} from "./commands/RestoreFromSnapshotCommand" ;
160+ import {
161+ RestoreTableFromSnapshotCommand ,
162+ RestoreTableFromSnapshotCommandInput ,
163+ RestoreTableFromSnapshotCommandOutput ,
164+ } from "./commands/RestoreTableFromSnapshotCommand" ;
150165import { TagResourceCommand , TagResourceCommandInput , TagResourceCommandOutput } from "./commands/TagResourceCommand" ;
151166import {
152167 UntagResourceCommand ,
@@ -591,15 +606,12 @@ export class RedshiftServerless extends RedshiftServerlessClient {
591606 * <p>By default, the temporary credentials expire in 900 seconds.
592607 * You can optionally specify a duration between 900 seconds (15 minutes) and 3600 seconds (60 minutes).</p>
593608 *
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>
599612 *
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>
603615 */
604616 public getCredentials (
605617 args : GetCredentialsCommandInput ,
@@ -781,6 +793,38 @@ export class RedshiftServerless extends RedshiftServerlessClient {
781793 }
782794 }
783795
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+
784828 /**
785829 * <p>Returns information about a usage limit.</p>
786830 */
@@ -970,6 +1014,38 @@ export class RedshiftServerless extends RedshiftServerlessClient {
9701014 }
9711015 }
9721016
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+
9731049 /**
9741050 * <p>Lists the tags assigned to a resource.</p>
9751051 */
@@ -1162,6 +1238,38 @@ export class RedshiftServerless extends RedshiftServerlessClient {
11621238 }
11631239 }
11641240
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+
11651273 /**
11661274 * <p>Assigns one or more tags to a resource.</p>
11671275 */
0 commit comments