@@ -26,6 +26,11 @@ import {
2626 CreateBackendConfigCommandInput ,
2727 CreateBackendConfigCommandOutput ,
2828} from "./commands/CreateBackendConfigCommand" ;
29+ import {
30+ CreateBackendStorageCommand ,
31+ CreateBackendStorageCommandInput ,
32+ CreateBackendStorageCommandOutput ,
33+ } from "./commands/CreateBackendStorageCommand" ;
2934import { CreateTokenCommand , CreateTokenCommandInput , CreateTokenCommandOutput } from "./commands/CreateTokenCommand" ;
3035import {
3136 DeleteBackendAPICommand ,
@@ -42,6 +47,11 @@ import {
4247 DeleteBackendCommandInput ,
4348 DeleteBackendCommandOutput ,
4449} from "./commands/DeleteBackendCommand" ;
50+ import {
51+ DeleteBackendStorageCommand ,
52+ DeleteBackendStorageCommandInput ,
53+ DeleteBackendStorageCommandOutput ,
54+ } from "./commands/DeleteBackendStorageCommand" ;
4555import { DeleteTokenCommand , DeleteTokenCommandInput , DeleteTokenCommandOutput } from "./commands/DeleteTokenCommand" ;
4656import {
4757 GenerateBackendAPIModelsCommand ,
@@ -69,17 +79,32 @@ import {
6979 GetBackendJobCommandInput ,
7080 GetBackendJobCommandOutput ,
7181} from "./commands/GetBackendJobCommand" ;
82+ import {
83+ GetBackendStorageCommand ,
84+ GetBackendStorageCommandInput ,
85+ GetBackendStorageCommandOutput ,
86+ } from "./commands/GetBackendStorageCommand" ;
7287import { GetTokenCommand , GetTokenCommandInput , GetTokenCommandOutput } from "./commands/GetTokenCommand" ;
7388import {
7489 ImportBackendAuthCommand ,
7590 ImportBackendAuthCommandInput ,
7691 ImportBackendAuthCommandOutput ,
7792} from "./commands/ImportBackendAuthCommand" ;
93+ import {
94+ ImportBackendStorageCommand ,
95+ ImportBackendStorageCommandInput ,
96+ ImportBackendStorageCommandOutput ,
97+ } from "./commands/ImportBackendStorageCommand" ;
7898import {
7999 ListBackendJobsCommand ,
80100 ListBackendJobsCommandInput ,
81101 ListBackendJobsCommandOutput ,
82102} from "./commands/ListBackendJobsCommand" ;
103+ import {
104+ ListS3BucketsCommand ,
105+ ListS3BucketsCommandInput ,
106+ ListS3BucketsCommandOutput ,
107+ } from "./commands/ListS3BucketsCommand" ;
83108import {
84109 RemoveAllBackendsCommand ,
85110 RemoveAllBackendsCommandInput ,
@@ -110,6 +135,11 @@ import {
110135 UpdateBackendJobCommandInput ,
111136 UpdateBackendJobCommandOutput ,
112137} from "./commands/UpdateBackendJobCommand" ;
138+ import {
139+ UpdateBackendStorageCommand ,
140+ UpdateBackendStorageCommandInput ,
141+ UpdateBackendStorageCommandOutput ,
142+ } from "./commands/UpdateBackendStorageCommand" ;
113143
114144/**
115145 * <p>AWS Amplify Admin API</p>
@@ -272,6 +302,38 @@ export class AmplifyBackend extends AmplifyBackendClient {
272302 }
273303 }
274304
305+ /**
306+ * <p>Creates a backend storage resource.</p>
307+ */
308+ public createBackendStorage (
309+ args : CreateBackendStorageCommandInput ,
310+ options ?: __HttpHandlerOptions
311+ ) : Promise < CreateBackendStorageCommandOutput > ;
312+ public createBackendStorage (
313+ args : CreateBackendStorageCommandInput ,
314+ cb : ( err : any , data ?: CreateBackendStorageCommandOutput ) => void
315+ ) : void ;
316+ public createBackendStorage (
317+ args : CreateBackendStorageCommandInput ,
318+ options : __HttpHandlerOptions ,
319+ cb : ( err : any , data ?: CreateBackendStorageCommandOutput ) => void
320+ ) : void ;
321+ public createBackendStorage (
322+ args : CreateBackendStorageCommandInput ,
323+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: CreateBackendStorageCommandOutput ) => void ) ,
324+ cb ?: ( err : any , data ?: CreateBackendStorageCommandOutput ) => void
325+ ) : Promise < CreateBackendStorageCommandOutput > | void {
326+ const command = new CreateBackendStorageCommand ( args ) ;
327+ if ( typeof optionsOrCb === "function" ) {
328+ this . send ( command , optionsOrCb ) ;
329+ } else if ( typeof cb === "function" ) {
330+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
331+ this . send ( command , optionsOrCb || { } , cb ) ;
332+ } else {
333+ return this . send ( command , optionsOrCb ) ;
334+ }
335+ }
336+
275337 /**
276338 * <p>Generates a one-time challenge code to authenticate a user into your Amplify Admin UI.</p>
277339 */
@@ -394,6 +456,38 @@ export class AmplifyBackend extends AmplifyBackendClient {
394456 }
395457 }
396458
459+ /**
460+ * <p>Removes the specified backend storage resource.</p>
461+ */
462+ public deleteBackendStorage (
463+ args : DeleteBackendStorageCommandInput ,
464+ options ?: __HttpHandlerOptions
465+ ) : Promise < DeleteBackendStorageCommandOutput > ;
466+ public deleteBackendStorage (
467+ args : DeleteBackendStorageCommandInput ,
468+ cb : ( err : any , data ?: DeleteBackendStorageCommandOutput ) => void
469+ ) : void ;
470+ public deleteBackendStorage (
471+ args : DeleteBackendStorageCommandInput ,
472+ options : __HttpHandlerOptions ,
473+ cb : ( err : any , data ?: DeleteBackendStorageCommandOutput ) => void
474+ ) : void ;
475+ public deleteBackendStorage (
476+ args : DeleteBackendStorageCommandInput ,
477+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DeleteBackendStorageCommandOutput ) => void ) ,
478+ cb ?: ( err : any , data ?: DeleteBackendStorageCommandOutput ) => void
479+ ) : Promise < DeleteBackendStorageCommandOutput > | void {
480+ const command = new DeleteBackendStorageCommand ( args ) ;
481+ if ( typeof optionsOrCb === "function" ) {
482+ this . send ( command , optionsOrCb ) ;
483+ } else if ( typeof cb === "function" ) {
484+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
485+ this . send ( command , optionsOrCb || { } , cb ) ;
486+ } else {
487+ return this . send ( command , optionsOrCb ) ;
488+ }
489+ }
490+
397491 /**
398492 * <p>Deletes the challenge token based on the given appId and sessionId.</p>
399493 */
@@ -606,6 +700,38 @@ export class AmplifyBackend extends AmplifyBackendClient {
606700 }
607701 }
608702
703+ /**
704+ * <p>Gets details for a backend storage resource.</p>
705+ */
706+ public getBackendStorage (
707+ args : GetBackendStorageCommandInput ,
708+ options ?: __HttpHandlerOptions
709+ ) : Promise < GetBackendStorageCommandOutput > ;
710+ public getBackendStorage (
711+ args : GetBackendStorageCommandInput ,
712+ cb : ( err : any , data ?: GetBackendStorageCommandOutput ) => void
713+ ) : void ;
714+ public getBackendStorage (
715+ args : GetBackendStorageCommandInput ,
716+ options : __HttpHandlerOptions ,
717+ cb : ( err : any , data ?: GetBackendStorageCommandOutput ) => void
718+ ) : void ;
719+ public getBackendStorage (
720+ args : GetBackendStorageCommandInput ,
721+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: GetBackendStorageCommandOutput ) => void ) ,
722+ cb ?: ( err : any , data ?: GetBackendStorageCommandOutput ) => void
723+ ) : Promise < GetBackendStorageCommandOutput > | void {
724+ const command = new GetBackendStorageCommand ( args ) ;
725+ if ( typeof optionsOrCb === "function" ) {
726+ this . send ( command , optionsOrCb ) ;
727+ } else if ( typeof cb === "function" ) {
728+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
729+ this . send ( command , optionsOrCb || { } , cb ) ;
730+ } else {
731+ return this . send ( command , optionsOrCb ) ;
732+ }
733+ }
734+
609735 /**
610736 * <p>Gets the challenge token based on the given appId and sessionId.</p>
611737 */
@@ -664,6 +790,38 @@ export class AmplifyBackend extends AmplifyBackendClient {
664790 }
665791 }
666792
793+ /**
794+ * <p>Imports an existing backend storage resource.</p>
795+ */
796+ public importBackendStorage (
797+ args : ImportBackendStorageCommandInput ,
798+ options ?: __HttpHandlerOptions
799+ ) : Promise < ImportBackendStorageCommandOutput > ;
800+ public importBackendStorage (
801+ args : ImportBackendStorageCommandInput ,
802+ cb : ( err : any , data ?: ImportBackendStorageCommandOutput ) => void
803+ ) : void ;
804+ public importBackendStorage (
805+ args : ImportBackendStorageCommandInput ,
806+ options : __HttpHandlerOptions ,
807+ cb : ( err : any , data ?: ImportBackendStorageCommandOutput ) => void
808+ ) : void ;
809+ public importBackendStorage (
810+ args : ImportBackendStorageCommandInput ,
811+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: ImportBackendStorageCommandOutput ) => void ) ,
812+ cb ?: ( err : any , data ?: ImportBackendStorageCommandOutput ) => void
813+ ) : Promise < ImportBackendStorageCommandOutput > | void {
814+ const command = new ImportBackendStorageCommand ( args ) ;
815+ if ( typeof optionsOrCb === "function" ) {
816+ this . send ( command , optionsOrCb ) ;
817+ } else if ( typeof cb === "function" ) {
818+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
819+ this . send ( command , optionsOrCb || { } , cb ) ;
820+ } else {
821+ return this . send ( command , optionsOrCb ) ;
822+ }
823+ }
824+
667825 /**
668826 * <p>Lists the jobs for the backend of an Amplify app.</p>
669827 */
@@ -696,6 +854,38 @@ export class AmplifyBackend extends AmplifyBackendClient {
696854 }
697855 }
698856
857+ /**
858+ * <p>The list of S3 buckets in your account.</p>
859+ */
860+ public listS3Buckets (
861+ args : ListS3BucketsCommandInput ,
862+ options ?: __HttpHandlerOptions
863+ ) : Promise < ListS3BucketsCommandOutput > ;
864+ public listS3Buckets (
865+ args : ListS3BucketsCommandInput ,
866+ cb : ( err : any , data ?: ListS3BucketsCommandOutput ) => void
867+ ) : void ;
868+ public listS3Buckets (
869+ args : ListS3BucketsCommandInput ,
870+ options : __HttpHandlerOptions ,
871+ cb : ( err : any , data ?: ListS3BucketsCommandOutput ) => void
872+ ) : void ;
873+ public listS3Buckets (
874+ args : ListS3BucketsCommandInput ,
875+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: ListS3BucketsCommandOutput ) => void ) ,
876+ cb ?: ( err : any , data ?: ListS3BucketsCommandOutput ) => void
877+ ) : Promise < ListS3BucketsCommandOutput > | void {
878+ const command = new ListS3BucketsCommand ( args ) ;
879+ if ( typeof optionsOrCb === "function" ) {
880+ this . send ( command , optionsOrCb ) ;
881+ } else if ( typeof cb === "function" ) {
882+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
883+ this . send ( command , optionsOrCb || { } , cb ) ;
884+ } else {
885+ return this . send ( command , optionsOrCb ) ;
886+ }
887+ }
888+
699889 /**
700890 * <p>Removes all backend environments from your Amplify project.</p>
701891 */
@@ -887,4 +1077,36 @@ export class AmplifyBackend extends AmplifyBackendClient {
8871077 return this . send ( command , optionsOrCb ) ;
8881078 }
8891079 }
1080+
1081+ /**
1082+ * <p>Updates an existing backend storage resource.</p>
1083+ */
1084+ public updateBackendStorage (
1085+ args : UpdateBackendStorageCommandInput ,
1086+ options ?: __HttpHandlerOptions
1087+ ) : Promise < UpdateBackendStorageCommandOutput > ;
1088+ public updateBackendStorage (
1089+ args : UpdateBackendStorageCommandInput ,
1090+ cb : ( err : any , data ?: UpdateBackendStorageCommandOutput ) => void
1091+ ) : void ;
1092+ public updateBackendStorage (
1093+ args : UpdateBackendStorageCommandInput ,
1094+ options : __HttpHandlerOptions ,
1095+ cb : ( err : any , data ?: UpdateBackendStorageCommandOutput ) => void
1096+ ) : void ;
1097+ public updateBackendStorage (
1098+ args : UpdateBackendStorageCommandInput ,
1099+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: UpdateBackendStorageCommandOutput ) => void ) ,
1100+ cb ?: ( err : any , data ?: UpdateBackendStorageCommandOutput ) => void
1101+ ) : Promise < UpdateBackendStorageCommandOutput > | void {
1102+ const command = new UpdateBackendStorageCommand ( args ) ;
1103+ if ( typeof optionsOrCb === "function" ) {
1104+ this . send ( command , optionsOrCb ) ;
1105+ } else if ( typeof cb === "function" ) {
1106+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1107+ this . send ( command , optionsOrCb || { } , cb ) ;
1108+ } else {
1109+ return this . send ( command , optionsOrCb ) ;
1110+ }
1111+ }
8901112}
0 commit comments