@@ -26,6 +26,11 @@ import {
26
26
CreateBackendConfigCommandInput ,
27
27
CreateBackendConfigCommandOutput ,
28
28
} from "./commands/CreateBackendConfigCommand" ;
29
+ import {
30
+ CreateBackendStorageCommand ,
31
+ CreateBackendStorageCommandInput ,
32
+ CreateBackendStorageCommandOutput ,
33
+ } from "./commands/CreateBackendStorageCommand" ;
29
34
import { CreateTokenCommand , CreateTokenCommandInput , CreateTokenCommandOutput } from "./commands/CreateTokenCommand" ;
30
35
import {
31
36
DeleteBackendAPICommand ,
@@ -42,6 +47,11 @@ import {
42
47
DeleteBackendCommandInput ,
43
48
DeleteBackendCommandOutput ,
44
49
} from "./commands/DeleteBackendCommand" ;
50
+ import {
51
+ DeleteBackendStorageCommand ,
52
+ DeleteBackendStorageCommandInput ,
53
+ DeleteBackendStorageCommandOutput ,
54
+ } from "./commands/DeleteBackendStorageCommand" ;
45
55
import { DeleteTokenCommand , DeleteTokenCommandInput , DeleteTokenCommandOutput } from "./commands/DeleteTokenCommand" ;
46
56
import {
47
57
GenerateBackendAPIModelsCommand ,
@@ -69,17 +79,32 @@ import {
69
79
GetBackendJobCommandInput ,
70
80
GetBackendJobCommandOutput ,
71
81
} from "./commands/GetBackendJobCommand" ;
82
+ import {
83
+ GetBackendStorageCommand ,
84
+ GetBackendStorageCommandInput ,
85
+ GetBackendStorageCommandOutput ,
86
+ } from "./commands/GetBackendStorageCommand" ;
72
87
import { GetTokenCommand , GetTokenCommandInput , GetTokenCommandOutput } from "./commands/GetTokenCommand" ;
73
88
import {
74
89
ImportBackendAuthCommand ,
75
90
ImportBackendAuthCommandInput ,
76
91
ImportBackendAuthCommandOutput ,
77
92
} from "./commands/ImportBackendAuthCommand" ;
93
+ import {
94
+ ImportBackendStorageCommand ,
95
+ ImportBackendStorageCommandInput ,
96
+ ImportBackendStorageCommandOutput ,
97
+ } from "./commands/ImportBackendStorageCommand" ;
78
98
import {
79
99
ListBackendJobsCommand ,
80
100
ListBackendJobsCommandInput ,
81
101
ListBackendJobsCommandOutput ,
82
102
} from "./commands/ListBackendJobsCommand" ;
103
+ import {
104
+ ListS3BucketsCommand ,
105
+ ListS3BucketsCommandInput ,
106
+ ListS3BucketsCommandOutput ,
107
+ } from "./commands/ListS3BucketsCommand" ;
83
108
import {
84
109
RemoveAllBackendsCommand ,
85
110
RemoveAllBackendsCommandInput ,
@@ -110,6 +135,11 @@ import {
110
135
UpdateBackendJobCommandInput ,
111
136
UpdateBackendJobCommandOutput ,
112
137
} from "./commands/UpdateBackendJobCommand" ;
138
+ import {
139
+ UpdateBackendStorageCommand ,
140
+ UpdateBackendStorageCommandInput ,
141
+ UpdateBackendStorageCommandOutput ,
142
+ } from "./commands/UpdateBackendStorageCommand" ;
113
143
114
144
/**
115
145
* <p>AWS Amplify Admin API</p>
@@ -272,6 +302,38 @@ export class AmplifyBackend extends AmplifyBackendClient {
272
302
}
273
303
}
274
304
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
+
275
337
/**
276
338
* <p>Generates a one-time challenge code to authenticate a user into your Amplify Admin UI.</p>
277
339
*/
@@ -394,6 +456,38 @@ export class AmplifyBackend extends AmplifyBackendClient {
394
456
}
395
457
}
396
458
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
+
397
491
/**
398
492
* <p>Deletes the challenge token based on the given appId and sessionId.</p>
399
493
*/
@@ -606,6 +700,38 @@ export class AmplifyBackend extends AmplifyBackendClient {
606
700
}
607
701
}
608
702
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
+
609
735
/**
610
736
* <p>Gets the challenge token based on the given appId and sessionId.</p>
611
737
*/
@@ -664,6 +790,38 @@ export class AmplifyBackend extends AmplifyBackendClient {
664
790
}
665
791
}
666
792
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
+
667
825
/**
668
826
* <p>Lists the jobs for the backend of an Amplify app.</p>
669
827
*/
@@ -696,6 +854,38 @@ export class AmplifyBackend extends AmplifyBackendClient {
696
854
}
697
855
}
698
856
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
+
699
889
/**
700
890
* <p>Removes all backend environments from your Amplify project.</p>
701
891
*/
@@ -887,4 +1077,36 @@ export class AmplifyBackend extends AmplifyBackendClient {
887
1077
return this . send ( command , optionsOrCb ) ;
888
1078
}
889
1079
}
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
+ }
890
1112
}
0 commit comments