@aws-sdk/client-amplifybackend 3.40.0 → 3.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist-cjs/AmplifyBackend.js +90 -0
  3. package/dist-cjs/commands/CreateBackendStorageCommand.js +36 -0
  4. package/dist-cjs/commands/DeleteBackendStorageCommand.js +36 -0
  5. package/dist-cjs/commands/GetBackendStorageCommand.js +36 -0
  6. package/dist-cjs/commands/ImportBackendStorageCommand.js +36 -0
  7. package/dist-cjs/commands/ListS3BucketsCommand.js +36 -0
  8. package/dist-cjs/commands/UpdateBackendStorageCommand.js +36 -0
  9. package/dist-cjs/commands/index.js +6 -0
  10. package/dist-cjs/endpoints.js +9 -0
  11. package/dist-cjs/models/models_0.js +121 -2
  12. package/dist-cjs/protocols/Aws_restJson1.js +937 -101
  13. package/dist-es/AmplifyBackend.js +90 -0
  14. package/dist-es/commands/CreateBackendStorageCommand.js +39 -0
  15. package/dist-es/commands/DeleteBackendStorageCommand.js +39 -0
  16. package/dist-es/commands/GetBackendStorageCommand.js +39 -0
  17. package/dist-es/commands/ImportBackendStorageCommand.js +39 -0
  18. package/dist-es/commands/ListS3BucketsCommand.js +39 -0
  19. package/dist-es/commands/UpdateBackendStorageCommand.js +39 -0
  20. package/dist-es/commands/index.js +6 -0
  21. package/dist-es/endpoints.js +9 -0
  22. package/dist-es/models/models_0.js +84 -0
  23. package/dist-es/protocols/Aws_restJson1.js +1008 -86
  24. package/dist-types/AmplifyBackend.d.ts +42 -0
  25. package/dist-types/AmplifyBackendClient.d.ts +8 -2
  26. package/dist-types/commands/CloneBackendCommand.d.ts +1 -1
  27. package/dist-types/commands/CreateBackendAPICommand.d.ts +1 -1
  28. package/dist-types/commands/CreateBackendAuthCommand.d.ts +1 -1
  29. package/dist-types/commands/CreateBackendCommand.d.ts +1 -1
  30. package/dist-types/commands/CreateBackendConfigCommand.d.ts +1 -1
  31. package/dist-types/commands/CreateBackendStorageCommand.d.ts +35 -0
  32. package/dist-types/commands/CreateTokenCommand.d.ts +1 -1
  33. package/dist-types/commands/DeleteBackendAPICommand.d.ts +1 -1
  34. package/dist-types/commands/DeleteBackendAuthCommand.d.ts +1 -1
  35. package/dist-types/commands/DeleteBackendCommand.d.ts +1 -1
  36. package/dist-types/commands/DeleteBackendStorageCommand.d.ts +35 -0
  37. package/dist-types/commands/DeleteTokenCommand.d.ts +1 -1
  38. package/dist-types/commands/GenerateBackendAPIModelsCommand.d.ts +1 -1
  39. package/dist-types/commands/GetBackendAPICommand.d.ts +1 -1
  40. package/dist-types/commands/GetBackendAPIModelsCommand.d.ts +1 -1
  41. package/dist-types/commands/GetBackendAuthCommand.d.ts +1 -1
  42. package/dist-types/commands/GetBackendCommand.d.ts +1 -1
  43. package/dist-types/commands/GetBackendJobCommand.d.ts +1 -1
  44. package/dist-types/commands/GetBackendStorageCommand.d.ts +35 -0
  45. package/dist-types/commands/GetTokenCommand.d.ts +1 -1
  46. package/dist-types/commands/ImportBackendAuthCommand.d.ts +1 -1
  47. package/dist-types/commands/ImportBackendStorageCommand.d.ts +35 -0
  48. package/dist-types/commands/ListBackendJobsCommand.d.ts +1 -1
  49. package/dist-types/commands/ListS3BucketsCommand.d.ts +35 -0
  50. package/dist-types/commands/RemoveAllBackendsCommand.d.ts +1 -1
  51. package/dist-types/commands/RemoveBackendConfigCommand.d.ts +1 -1
  52. package/dist-types/commands/UpdateBackendAPICommand.d.ts +1 -1
  53. package/dist-types/commands/UpdateBackendAuthCommand.d.ts +1 -1
  54. package/dist-types/commands/UpdateBackendConfigCommand.d.ts +1 -1
  55. package/dist-types/commands/UpdateBackendJobCommand.d.ts +1 -1
  56. package/dist-types/commands/UpdateBackendStorageCommand.d.ts +35 -0
  57. package/dist-types/commands/index.d.ts +6 -0
  58. package/dist-types/models/models_0.d.ts +403 -1
  59. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  60. package/dist-types/ts3.4/AmplifyBackend.d.ts +30 -0
  61. package/dist-types/ts3.4/AmplifyBackendClient.d.ts +8 -2
  62. package/dist-types/ts3.4/commands/CreateBackendStorageCommand.d.ts +17 -0
  63. package/dist-types/ts3.4/commands/DeleteBackendStorageCommand.d.ts +17 -0
  64. package/dist-types/ts3.4/commands/GetBackendStorageCommand.d.ts +17 -0
  65. package/dist-types/ts3.4/commands/ImportBackendStorageCommand.d.ts +17 -0
  66. package/dist-types/ts3.4/commands/ListS3BucketsCommand.d.ts +17 -0
  67. package/dist-types/ts3.4/commands/UpdateBackendStorageCommand.d.ts +17 -0
  68. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  69. package/dist-types/ts3.4/models/models_0.d.ts +236 -0
  70. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +18 -0
  71. package/package.json +6 -6
@@ -5,10 +5,12 @@ import { CreateBackendAPICommandInput, CreateBackendAPICommandOutput } from "./c
5
5
  import { CreateBackendAuthCommandInput, CreateBackendAuthCommandOutput } from "./commands/CreateBackendAuthCommand";
6
6
  import { CreateBackendCommandInput, CreateBackendCommandOutput } from "./commands/CreateBackendCommand";
7
7
  import { CreateBackendConfigCommandInput, CreateBackendConfigCommandOutput } from "./commands/CreateBackendConfigCommand";
8
+ import { CreateBackendStorageCommandInput, CreateBackendStorageCommandOutput } from "./commands/CreateBackendStorageCommand";
8
9
  import { CreateTokenCommandInput, CreateTokenCommandOutput } from "./commands/CreateTokenCommand";
9
10
  import { DeleteBackendAPICommandInput, DeleteBackendAPICommandOutput } from "./commands/DeleteBackendAPICommand";
10
11
  import { DeleteBackendAuthCommandInput, DeleteBackendAuthCommandOutput } from "./commands/DeleteBackendAuthCommand";
11
12
  import { DeleteBackendCommandInput, DeleteBackendCommandOutput } from "./commands/DeleteBackendCommand";
13
+ import { DeleteBackendStorageCommandInput, DeleteBackendStorageCommandOutput } from "./commands/DeleteBackendStorageCommand";
12
14
  import { DeleteTokenCommandInput, DeleteTokenCommandOutput } from "./commands/DeleteTokenCommand";
13
15
  import { GenerateBackendAPIModelsCommandInput, GenerateBackendAPIModelsCommandOutput } from "./commands/GenerateBackendAPIModelsCommand";
14
16
  import { GetBackendAPICommandInput, GetBackendAPICommandOutput } from "./commands/GetBackendAPICommand";
@@ -16,15 +18,19 @@ import { GetBackendAPIModelsCommandInput, GetBackendAPIModelsCommandOutput } fro
16
18
  import { GetBackendAuthCommandInput, GetBackendAuthCommandOutput } from "./commands/GetBackendAuthCommand";
17
19
  import { GetBackendCommandInput, GetBackendCommandOutput } from "./commands/GetBackendCommand";
18
20
  import { GetBackendJobCommandInput, GetBackendJobCommandOutput } from "./commands/GetBackendJobCommand";
21
+ import { GetBackendStorageCommandInput, GetBackendStorageCommandOutput } from "./commands/GetBackendStorageCommand";
19
22
  import { GetTokenCommandInput, GetTokenCommandOutput } from "./commands/GetTokenCommand";
20
23
  import { ImportBackendAuthCommandInput, ImportBackendAuthCommandOutput } from "./commands/ImportBackendAuthCommand";
24
+ import { ImportBackendStorageCommandInput, ImportBackendStorageCommandOutput } from "./commands/ImportBackendStorageCommand";
21
25
  import { ListBackendJobsCommandInput, ListBackendJobsCommandOutput } from "./commands/ListBackendJobsCommand";
26
+ import { ListS3BucketsCommandInput, ListS3BucketsCommandOutput } from "./commands/ListS3BucketsCommand";
22
27
  import { RemoveAllBackendsCommandInput, RemoveAllBackendsCommandOutput } from "./commands/RemoveAllBackendsCommand";
23
28
  import { RemoveBackendConfigCommandInput, RemoveBackendConfigCommandOutput } from "./commands/RemoveBackendConfigCommand";
24
29
  import { UpdateBackendAPICommandInput, UpdateBackendAPICommandOutput } from "./commands/UpdateBackendAPICommand";
25
30
  import { UpdateBackendAuthCommandInput, UpdateBackendAuthCommandOutput } from "./commands/UpdateBackendAuthCommand";
26
31
  import { UpdateBackendConfigCommandInput, UpdateBackendConfigCommandOutput } from "./commands/UpdateBackendConfigCommand";
27
32
  import { UpdateBackendJobCommandInput, UpdateBackendJobCommandOutput } from "./commands/UpdateBackendJobCommand";
33
+ import { UpdateBackendStorageCommandInput, UpdateBackendStorageCommandOutput } from "./commands/UpdateBackendStorageCommand";
28
34
 
29
35
  export declare class AmplifyBackend extends AmplifyBackendClient {
30
36
 
@@ -48,6 +54,10 @@ export declare class AmplifyBackend extends AmplifyBackendClient {
48
54
  createBackendConfig(args: CreateBackendConfigCommandInput, cb: (err: any, data?: CreateBackendConfigCommandOutput) => void): void;
49
55
  createBackendConfig(args: CreateBackendConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateBackendConfigCommandOutput) => void): void;
50
56
 
57
+ createBackendStorage(args: CreateBackendStorageCommandInput, options?: __HttpHandlerOptions): Promise<CreateBackendStorageCommandOutput>;
58
+ createBackendStorage(args: CreateBackendStorageCommandInput, cb: (err: any, data?: CreateBackendStorageCommandOutput) => void): void;
59
+ createBackendStorage(args: CreateBackendStorageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateBackendStorageCommandOutput) => void): void;
60
+
51
61
  createToken(args: CreateTokenCommandInput, options?: __HttpHandlerOptions): Promise<CreateTokenCommandOutput>;
52
62
  createToken(args: CreateTokenCommandInput, cb: (err: any, data?: CreateTokenCommandOutput) => void): void;
53
63
  createToken(args: CreateTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTokenCommandOutput) => void): void;
@@ -64,6 +74,10 @@ export declare class AmplifyBackend extends AmplifyBackendClient {
64
74
  deleteBackendAuth(args: DeleteBackendAuthCommandInput, cb: (err: any, data?: DeleteBackendAuthCommandOutput) => void): void;
65
75
  deleteBackendAuth(args: DeleteBackendAuthCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteBackendAuthCommandOutput) => void): void;
66
76
 
77
+ deleteBackendStorage(args: DeleteBackendStorageCommandInput, options?: __HttpHandlerOptions): Promise<DeleteBackendStorageCommandOutput>;
78
+ deleteBackendStorage(args: DeleteBackendStorageCommandInput, cb: (err: any, data?: DeleteBackendStorageCommandOutput) => void): void;
79
+ deleteBackendStorage(args: DeleteBackendStorageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteBackendStorageCommandOutput) => void): void;
80
+
67
81
  deleteToken(args: DeleteTokenCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTokenCommandOutput>;
68
82
  deleteToken(args: DeleteTokenCommandInput, cb: (err: any, data?: DeleteTokenCommandOutput) => void): void;
69
83
  deleteToken(args: DeleteTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTokenCommandOutput) => void): void;
@@ -92,6 +106,10 @@ export declare class AmplifyBackend extends AmplifyBackendClient {
92
106
  getBackendJob(args: GetBackendJobCommandInput, cb: (err: any, data?: GetBackendJobCommandOutput) => void): void;
93
107
  getBackendJob(args: GetBackendJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBackendJobCommandOutput) => void): void;
94
108
 
109
+ getBackendStorage(args: GetBackendStorageCommandInput, options?: __HttpHandlerOptions): Promise<GetBackendStorageCommandOutput>;
110
+ getBackendStorage(args: GetBackendStorageCommandInput, cb: (err: any, data?: GetBackendStorageCommandOutput) => void): void;
111
+ getBackendStorage(args: GetBackendStorageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBackendStorageCommandOutput) => void): void;
112
+
95
113
  getToken(args: GetTokenCommandInput, options?: __HttpHandlerOptions): Promise<GetTokenCommandOutput>;
96
114
  getToken(args: GetTokenCommandInput, cb: (err: any, data?: GetTokenCommandOutput) => void): void;
97
115
  getToken(args: GetTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTokenCommandOutput) => void): void;
@@ -100,10 +118,18 @@ export declare class AmplifyBackend extends AmplifyBackendClient {
100
118
  importBackendAuth(args: ImportBackendAuthCommandInput, cb: (err: any, data?: ImportBackendAuthCommandOutput) => void): void;
101
119
  importBackendAuth(args: ImportBackendAuthCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ImportBackendAuthCommandOutput) => void): void;
102
120
 
121
+ importBackendStorage(args: ImportBackendStorageCommandInput, options?: __HttpHandlerOptions): Promise<ImportBackendStorageCommandOutput>;
122
+ importBackendStorage(args: ImportBackendStorageCommandInput, cb: (err: any, data?: ImportBackendStorageCommandOutput) => void): void;
123
+ importBackendStorage(args: ImportBackendStorageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ImportBackendStorageCommandOutput) => void): void;
124
+
103
125
  listBackendJobs(args: ListBackendJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListBackendJobsCommandOutput>;
104
126
  listBackendJobs(args: ListBackendJobsCommandInput, cb: (err: any, data?: ListBackendJobsCommandOutput) => void): void;
105
127
  listBackendJobs(args: ListBackendJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListBackendJobsCommandOutput) => void): void;
106
128
 
129
+ listS3Buckets(args: ListS3BucketsCommandInput, options?: __HttpHandlerOptions): Promise<ListS3BucketsCommandOutput>;
130
+ listS3Buckets(args: ListS3BucketsCommandInput, cb: (err: any, data?: ListS3BucketsCommandOutput) => void): void;
131
+ listS3Buckets(args: ListS3BucketsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListS3BucketsCommandOutput) => void): void;
132
+
107
133
  removeAllBackends(args: RemoveAllBackendsCommandInput, options?: __HttpHandlerOptions): Promise<RemoveAllBackendsCommandOutput>;
108
134
  removeAllBackends(args: RemoveAllBackendsCommandInput, cb: (err: any, data?: RemoveAllBackendsCommandOutput) => void): void;
109
135
  removeAllBackends(args: RemoveAllBackendsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RemoveAllBackendsCommandOutput) => void): void;
@@ -127,4 +153,8 @@ export declare class AmplifyBackend extends AmplifyBackendClient {
127
153
  updateBackendJob(args: UpdateBackendJobCommandInput, options?: __HttpHandlerOptions): Promise<UpdateBackendJobCommandOutput>;
128
154
  updateBackendJob(args: UpdateBackendJobCommandInput, cb: (err: any, data?: UpdateBackendJobCommandOutput) => void): void;
129
155
  updateBackendJob(args: UpdateBackendJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateBackendJobCommandOutput) => void): void;
156
+
157
+ updateBackendStorage(args: UpdateBackendStorageCommandInput, options?: __HttpHandlerOptions): Promise<UpdateBackendStorageCommandOutput>;
158
+ updateBackendStorage(args: UpdateBackendStorageCommandInput, cb: (err: any, data?: UpdateBackendStorageCommandOutput) => void): void;
159
+ updateBackendStorage(args: UpdateBackendStorageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateBackendStorageCommandOutput) => void): void;
130
160
  }
@@ -11,10 +11,12 @@ import { CreateBackendAPICommandInput, CreateBackendAPICommandOutput } from "./c
11
11
  import { CreateBackendAuthCommandInput, CreateBackendAuthCommandOutput } from "./commands/CreateBackendAuthCommand";
12
12
  import { CreateBackendCommandInput, CreateBackendCommandOutput } from "./commands/CreateBackendCommand";
13
13
  import { CreateBackendConfigCommandInput, CreateBackendConfigCommandOutput } from "./commands/CreateBackendConfigCommand";
14
+ import { CreateBackendStorageCommandInput, CreateBackendStorageCommandOutput } from "./commands/CreateBackendStorageCommand";
14
15
  import { CreateTokenCommandInput, CreateTokenCommandOutput } from "./commands/CreateTokenCommand";
15
16
  import { DeleteBackendAPICommandInput, DeleteBackendAPICommandOutput } from "./commands/DeleteBackendAPICommand";
16
17
  import { DeleteBackendAuthCommandInput, DeleteBackendAuthCommandOutput } from "./commands/DeleteBackendAuthCommand";
17
18
  import { DeleteBackendCommandInput, DeleteBackendCommandOutput } from "./commands/DeleteBackendCommand";
19
+ import { DeleteBackendStorageCommandInput, DeleteBackendStorageCommandOutput } from "./commands/DeleteBackendStorageCommand";
18
20
  import { DeleteTokenCommandInput, DeleteTokenCommandOutput } from "./commands/DeleteTokenCommand";
19
21
  import { GenerateBackendAPIModelsCommandInput, GenerateBackendAPIModelsCommandOutput } from "./commands/GenerateBackendAPIModelsCommand";
20
22
  import { GetBackendAPICommandInput, GetBackendAPICommandOutput } from "./commands/GetBackendAPICommand";
@@ -22,17 +24,21 @@ import { GetBackendAPIModelsCommandInput, GetBackendAPIModelsCommandOutput } fro
22
24
  import { GetBackendAuthCommandInput, GetBackendAuthCommandOutput } from "./commands/GetBackendAuthCommand";
23
25
  import { GetBackendCommandInput, GetBackendCommandOutput } from "./commands/GetBackendCommand";
24
26
  import { GetBackendJobCommandInput, GetBackendJobCommandOutput } from "./commands/GetBackendJobCommand";
27
+ import { GetBackendStorageCommandInput, GetBackendStorageCommandOutput } from "./commands/GetBackendStorageCommand";
25
28
  import { GetTokenCommandInput, GetTokenCommandOutput } from "./commands/GetTokenCommand";
26
29
  import { ImportBackendAuthCommandInput, ImportBackendAuthCommandOutput } from "./commands/ImportBackendAuthCommand";
30
+ import { ImportBackendStorageCommandInput, ImportBackendStorageCommandOutput } from "./commands/ImportBackendStorageCommand";
27
31
  import { ListBackendJobsCommandInput, ListBackendJobsCommandOutput } from "./commands/ListBackendJobsCommand";
32
+ import { ListS3BucketsCommandInput, ListS3BucketsCommandOutput } from "./commands/ListS3BucketsCommand";
28
33
  import { RemoveAllBackendsCommandInput, RemoveAllBackendsCommandOutput } from "./commands/RemoveAllBackendsCommand";
29
34
  import { RemoveBackendConfigCommandInput, RemoveBackendConfigCommandOutput } from "./commands/RemoveBackendConfigCommand";
30
35
  import { UpdateBackendAPICommandInput, UpdateBackendAPICommandOutput } from "./commands/UpdateBackendAPICommand";
31
36
  import { UpdateBackendAuthCommandInput, UpdateBackendAuthCommandOutput } from "./commands/UpdateBackendAuthCommand";
32
37
  import { UpdateBackendConfigCommandInput, UpdateBackendConfigCommandOutput } from "./commands/UpdateBackendConfigCommand";
33
38
  import { UpdateBackendJobCommandInput, UpdateBackendJobCommandOutput } from "./commands/UpdateBackendJobCommand";
34
- export declare type ServiceInputTypes = CloneBackendCommandInput | CreateBackendAPICommandInput | CreateBackendAuthCommandInput | CreateBackendCommandInput | CreateBackendConfigCommandInput | CreateTokenCommandInput | DeleteBackendAPICommandInput | DeleteBackendAuthCommandInput | DeleteBackendCommandInput | DeleteTokenCommandInput | GenerateBackendAPIModelsCommandInput | GetBackendAPICommandInput | GetBackendAPIModelsCommandInput | GetBackendAuthCommandInput | GetBackendCommandInput | GetBackendJobCommandInput | GetTokenCommandInput | ImportBackendAuthCommandInput | ListBackendJobsCommandInput | RemoveAllBackendsCommandInput | RemoveBackendConfigCommandInput | UpdateBackendAPICommandInput | UpdateBackendAuthCommandInput | UpdateBackendConfigCommandInput | UpdateBackendJobCommandInput;
35
- export declare type ServiceOutputTypes = CloneBackendCommandOutput | CreateBackendAPICommandOutput | CreateBackendAuthCommandOutput | CreateBackendCommandOutput | CreateBackendConfigCommandOutput | CreateTokenCommandOutput | DeleteBackendAPICommandOutput | DeleteBackendAuthCommandOutput | DeleteBackendCommandOutput | DeleteTokenCommandOutput | GenerateBackendAPIModelsCommandOutput | GetBackendAPICommandOutput | GetBackendAPIModelsCommandOutput | GetBackendAuthCommandOutput | GetBackendCommandOutput | GetBackendJobCommandOutput | GetTokenCommandOutput | ImportBackendAuthCommandOutput | ListBackendJobsCommandOutput | RemoveAllBackendsCommandOutput | RemoveBackendConfigCommandOutput | UpdateBackendAPICommandOutput | UpdateBackendAuthCommandOutput | UpdateBackendConfigCommandOutput | UpdateBackendJobCommandOutput;
39
+ import { UpdateBackendStorageCommandInput, UpdateBackendStorageCommandOutput } from "./commands/UpdateBackendStorageCommand";
40
+ export declare type ServiceInputTypes = CloneBackendCommandInput | CreateBackendAPICommandInput | CreateBackendAuthCommandInput | CreateBackendCommandInput | CreateBackendConfigCommandInput | CreateBackendStorageCommandInput | CreateTokenCommandInput | DeleteBackendAPICommandInput | DeleteBackendAuthCommandInput | DeleteBackendCommandInput | DeleteBackendStorageCommandInput | DeleteTokenCommandInput | GenerateBackendAPIModelsCommandInput | GetBackendAPICommandInput | GetBackendAPIModelsCommandInput | GetBackendAuthCommandInput | GetBackendCommandInput | GetBackendJobCommandInput | GetBackendStorageCommandInput | GetTokenCommandInput | ImportBackendAuthCommandInput | ImportBackendStorageCommandInput | ListBackendJobsCommandInput | ListS3BucketsCommandInput | RemoveAllBackendsCommandInput | RemoveBackendConfigCommandInput | UpdateBackendAPICommandInput | UpdateBackendAuthCommandInput | UpdateBackendConfigCommandInput | UpdateBackendJobCommandInput | UpdateBackendStorageCommandInput;
41
+ export declare type ServiceOutputTypes = CloneBackendCommandOutput | CreateBackendAPICommandOutput | CreateBackendAuthCommandOutput | CreateBackendCommandOutput | CreateBackendConfigCommandOutput | CreateBackendStorageCommandOutput | CreateTokenCommandOutput | DeleteBackendAPICommandOutput | DeleteBackendAuthCommandOutput | DeleteBackendCommandOutput | DeleteBackendStorageCommandOutput | DeleteTokenCommandOutput | GenerateBackendAPIModelsCommandOutput | GetBackendAPICommandOutput | GetBackendAPIModelsCommandOutput | GetBackendAuthCommandOutput | GetBackendCommandOutput | GetBackendJobCommandOutput | GetBackendStorageCommandOutput | GetTokenCommandOutput | ImportBackendAuthCommandOutput | ImportBackendStorageCommandOutput | ListBackendJobsCommandOutput | ListS3BucketsCommandOutput | RemoveAllBackendsCommandOutput | RemoveBackendConfigCommandOutput | UpdateBackendAPICommandOutput | UpdateBackendAuthCommandOutput | UpdateBackendConfigCommandOutput | UpdateBackendJobCommandOutput | UpdateBackendStorageCommandOutput;
36
42
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
37
43
 
38
44
  requestHandler?: __HttpHandler;
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { AmplifyBackendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmplifyBackendClient";
4
+ import { CreateBackendStorageRequest, CreateBackendStorageResponse } from "../models/models_0";
5
+ export interface CreateBackendStorageCommandInput extends CreateBackendStorageRequest {
6
+ }
7
+ export interface CreateBackendStorageCommandOutput extends CreateBackendStorageResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class CreateBackendStorageCommand extends $Command<CreateBackendStorageCommandInput, CreateBackendStorageCommandOutput, AmplifyBackendClientResolvedConfig> {
11
+ readonly input: CreateBackendStorageCommandInput;
12
+ constructor(input: CreateBackendStorageCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmplifyBackendClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateBackendStorageCommandInput, CreateBackendStorageCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { AmplifyBackendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmplifyBackendClient";
4
+ import { DeleteBackendStorageRequest, DeleteBackendStorageResponse } from "../models/models_0";
5
+ export interface DeleteBackendStorageCommandInput extends DeleteBackendStorageRequest {
6
+ }
7
+ export interface DeleteBackendStorageCommandOutput extends DeleteBackendStorageResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class DeleteBackendStorageCommand extends $Command<DeleteBackendStorageCommandInput, DeleteBackendStorageCommandOutput, AmplifyBackendClientResolvedConfig> {
11
+ readonly input: DeleteBackendStorageCommandInput;
12
+ constructor(input: DeleteBackendStorageCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmplifyBackendClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteBackendStorageCommandInput, DeleteBackendStorageCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { AmplifyBackendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmplifyBackendClient";
4
+ import { GetBackendStorageRequest, GetBackendStorageResponse } from "../models/models_0";
5
+ export interface GetBackendStorageCommandInput extends GetBackendStorageRequest {
6
+ }
7
+ export interface GetBackendStorageCommandOutput extends GetBackendStorageResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class GetBackendStorageCommand extends $Command<GetBackendStorageCommandInput, GetBackendStorageCommandOutput, AmplifyBackendClientResolvedConfig> {
11
+ readonly input: GetBackendStorageCommandInput;
12
+ constructor(input: GetBackendStorageCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmplifyBackendClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetBackendStorageCommandInput, GetBackendStorageCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { AmplifyBackendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmplifyBackendClient";
4
+ import { ImportBackendStorageRequest, ImportBackendStorageResponse } from "../models/models_0";
5
+ export interface ImportBackendStorageCommandInput extends ImportBackendStorageRequest {
6
+ }
7
+ export interface ImportBackendStorageCommandOutput extends ImportBackendStorageResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class ImportBackendStorageCommand extends $Command<ImportBackendStorageCommandInput, ImportBackendStorageCommandOutput, AmplifyBackendClientResolvedConfig> {
11
+ readonly input: ImportBackendStorageCommandInput;
12
+ constructor(input: ImportBackendStorageCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmplifyBackendClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ImportBackendStorageCommandInput, ImportBackendStorageCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { AmplifyBackendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmplifyBackendClient";
4
+ import { ListS3BucketsRequest, ListS3BucketsResponse } from "../models/models_0";
5
+ export interface ListS3BucketsCommandInput extends ListS3BucketsRequest {
6
+ }
7
+ export interface ListS3BucketsCommandOutput extends ListS3BucketsResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class ListS3BucketsCommand extends $Command<ListS3BucketsCommandInput, ListS3BucketsCommandOutput, AmplifyBackendClientResolvedConfig> {
11
+ readonly input: ListS3BucketsCommandInput;
12
+ constructor(input: ListS3BucketsCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmplifyBackendClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListS3BucketsCommandInput, ListS3BucketsCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { AmplifyBackendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmplifyBackendClient";
4
+ import { UpdateBackendStorageRequest, UpdateBackendStorageResponse } from "../models/models_0";
5
+ export interface UpdateBackendStorageCommandInput extends UpdateBackendStorageRequest {
6
+ }
7
+ export interface UpdateBackendStorageCommandOutput extends UpdateBackendStorageResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class UpdateBackendStorageCommand extends $Command<UpdateBackendStorageCommandInput, UpdateBackendStorageCommandOutput, AmplifyBackendClientResolvedConfig> {
11
+ readonly input: UpdateBackendStorageCommandInput;
12
+ constructor(input: UpdateBackendStorageCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmplifyBackendClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateBackendStorageCommandInput, UpdateBackendStorageCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -3,10 +3,12 @@ export * from "./CreateBackendAPICommand";
3
3
  export * from "./CreateBackendAuthCommand";
4
4
  export * from "./CreateBackendCommand";
5
5
  export * from "./CreateBackendConfigCommand";
6
+ export * from "./CreateBackendStorageCommand";
6
7
  export * from "./CreateTokenCommand";
7
8
  export * from "./DeleteBackendAPICommand";
8
9
  export * from "./DeleteBackendAuthCommand";
9
10
  export * from "./DeleteBackendCommand";
11
+ export * from "./DeleteBackendStorageCommand";
10
12
  export * from "./DeleteTokenCommand";
11
13
  export * from "./GenerateBackendAPIModelsCommand";
12
14
  export * from "./GetBackendAPICommand";
@@ -14,12 +16,16 @@ export * from "./GetBackendAPIModelsCommand";
14
16
  export * from "./GetBackendAuthCommand";
15
17
  export * from "./GetBackendCommand";
16
18
  export * from "./GetBackendJobCommand";
19
+ export * from "./GetBackendStorageCommand";
17
20
  export * from "./GetTokenCommand";
18
21
  export * from "./ImportBackendAuthCommand";
22
+ export * from "./ImportBackendStorageCommand";
19
23
  export * from "./ListBackendJobsCommand";
24
+ export * from "./ListS3BucketsCommand";
20
25
  export * from "./RemoveAllBackendsCommand";
21
26
  export * from "./RemoveBackendConfigCommand";
22
27
  export * from "./UpdateBackendAPICommand";
23
28
  export * from "./UpdateBackendAuthCommand";
24
29
  export * from "./UpdateBackendConfigCommand";
25
30
  export * from "./UpdateBackendJobCommand";
31
+ export * from "./UpdateBackendStorageCommand";
@@ -520,6 +520,72 @@ export declare namespace CreateBackendConfigResponse {
520
520
 
521
521
  const filterSensitiveLog: (obj: CreateBackendConfigResponse) => any;
522
522
  }
523
+ export declare enum AuthenticatedElement {
524
+ CREATE_AND_UPDATE = "CREATE_AND_UPDATE",
525
+ DELETE = "DELETE",
526
+ READ = "READ"
527
+ }
528
+ export declare enum UnAuthenticatedElement {
529
+ CREATE_AND_UPDATE = "CREATE_AND_UPDATE",
530
+ DELETE = "DELETE",
531
+ READ = "READ"
532
+ }
533
+
534
+ export interface BackendStoragePermissions {
535
+
536
+ Authenticated: (AuthenticatedElement | string)[] | undefined;
537
+
538
+ UnAuthenticated?: (UnAuthenticatedElement | string)[];
539
+ }
540
+ export declare namespace BackendStoragePermissions {
541
+
542
+ const filterSensitiveLog: (obj: BackendStoragePermissions) => any;
543
+ }
544
+ export declare enum ServiceName {
545
+ S3 = "S3"
546
+ }
547
+
548
+ export interface CreateBackendStorageResourceConfig {
549
+
550
+ BucketName?: string;
551
+
552
+ Permissions: BackendStoragePermissions | undefined;
553
+
554
+ ServiceName: ServiceName | string | undefined;
555
+ }
556
+ export declare namespace CreateBackendStorageResourceConfig {
557
+
558
+ const filterSensitiveLog: (obj: CreateBackendStorageResourceConfig) => any;
559
+ }
560
+
561
+ export interface CreateBackendStorageRequest {
562
+
563
+ AppId: string | undefined;
564
+
565
+ BackendEnvironmentName: string | undefined;
566
+
567
+ ResourceConfig: CreateBackendStorageResourceConfig | undefined;
568
+
569
+ ResourceName: string | undefined;
570
+ }
571
+ export declare namespace CreateBackendStorageRequest {
572
+
573
+ const filterSensitiveLog: (obj: CreateBackendStorageRequest) => any;
574
+ }
575
+ export interface CreateBackendStorageResponse {
576
+
577
+ AppId?: string;
578
+
579
+ BackendEnvironmentName?: string;
580
+
581
+ JobId?: string;
582
+
583
+ Status?: string;
584
+ }
585
+ export declare namespace CreateBackendStorageResponse {
586
+
587
+ const filterSensitiveLog: (obj: CreateBackendStorageResponse) => any;
588
+ }
523
589
  export interface CreateTokenRequest {
524
590
 
525
591
  AppId: string | undefined;
@@ -634,6 +700,35 @@ export declare namespace DeleteBackendAuthResponse {
634
700
 
635
701
  const filterSensitiveLog: (obj: DeleteBackendAuthResponse) => any;
636
702
  }
703
+
704
+ export interface DeleteBackendStorageRequest {
705
+
706
+ AppId: string | undefined;
707
+
708
+ BackendEnvironmentName: string | undefined;
709
+
710
+ ResourceName: string | undefined;
711
+
712
+ ServiceName: ServiceName | string | undefined;
713
+ }
714
+ export declare namespace DeleteBackendStorageRequest {
715
+
716
+ const filterSensitiveLog: (obj: DeleteBackendStorageRequest) => any;
717
+ }
718
+ export interface DeleteBackendStorageResponse {
719
+
720
+ AppId?: string;
721
+
722
+ BackendEnvironmentName?: string;
723
+
724
+ JobId?: string;
725
+
726
+ Status?: string;
727
+ }
728
+ export declare namespace DeleteBackendStorageResponse {
729
+
730
+ const filterSensitiveLog: (obj: DeleteBackendStorageResponse) => any;
731
+ }
637
732
  export interface DeleteTokenRequest {
638
733
 
639
734
  AppId: string | undefined;
@@ -835,6 +930,48 @@ export declare namespace GetBackendJobResponse {
835
930
 
836
931
  const filterSensitiveLog: (obj: GetBackendJobResponse) => any;
837
932
  }
933
+
934
+ export interface GetBackendStorageRequest {
935
+
936
+ AppId: string | undefined;
937
+
938
+ BackendEnvironmentName: string | undefined;
939
+
940
+ ResourceName: string | undefined;
941
+ }
942
+ export declare namespace GetBackendStorageRequest {
943
+
944
+ const filterSensitiveLog: (obj: GetBackendStorageRequest) => any;
945
+ }
946
+
947
+ export interface GetBackendStorageResourceConfig {
948
+
949
+ BucketName?: string;
950
+
951
+ Imported: boolean | undefined;
952
+
953
+ Permissions?: BackendStoragePermissions;
954
+
955
+ ServiceName: ServiceName | string | undefined;
956
+ }
957
+ export declare namespace GetBackendStorageResourceConfig {
958
+
959
+ const filterSensitiveLog: (obj: GetBackendStorageResourceConfig) => any;
960
+ }
961
+ export interface GetBackendStorageResponse {
962
+
963
+ AppId?: string;
964
+
965
+ BackendEnvironmentName?: string;
966
+
967
+ ResourceConfig?: GetBackendStorageResourceConfig;
968
+
969
+ ResourceName?: string;
970
+ }
971
+ export declare namespace GetBackendStorageResponse {
972
+
973
+ const filterSensitiveLog: (obj: GetBackendStorageResponse) => any;
974
+ }
838
975
  export interface GetTokenRequest {
839
976
 
840
977
  AppId: string | undefined;
@@ -897,6 +1034,35 @@ export declare namespace ImportBackendAuthResponse {
897
1034
  const filterSensitiveLog: (obj: ImportBackendAuthResponse) => any;
898
1035
  }
899
1036
 
1037
+ export interface ImportBackendStorageRequest {
1038
+
1039
+ AppId: string | undefined;
1040
+
1041
+ BackendEnvironmentName: string | undefined;
1042
+
1043
+ BucketName?: string;
1044
+
1045
+ ServiceName: ServiceName | string | undefined;
1046
+ }
1047
+ export declare namespace ImportBackendStorageRequest {
1048
+
1049
+ const filterSensitiveLog: (obj: ImportBackendStorageRequest) => any;
1050
+ }
1051
+ export interface ImportBackendStorageResponse {
1052
+
1053
+ AppId?: string;
1054
+
1055
+ BackendEnvironmentName?: string;
1056
+
1057
+ JobId?: string;
1058
+
1059
+ Status?: string;
1060
+ }
1061
+ export declare namespace ImportBackendStorageResponse {
1062
+
1063
+ const filterSensitiveLog: (obj: ImportBackendStorageResponse) => any;
1064
+ }
1065
+
900
1066
  export interface ListBackendJobsRequest {
901
1067
 
902
1068
  AppId: string | undefined;
@@ -951,6 +1117,36 @@ export declare namespace ListBackendJobsResponse {
951
1117
  const filterSensitiveLog: (obj: ListBackendJobsResponse) => any;
952
1118
  }
953
1119
 
1120
+ export interface ListS3BucketsRequest {
1121
+
1122
+ NextToken?: string;
1123
+ }
1124
+ export declare namespace ListS3BucketsRequest {
1125
+
1126
+ const filterSensitiveLog: (obj: ListS3BucketsRequest) => any;
1127
+ }
1128
+
1129
+ export interface S3BucketInfo {
1130
+
1131
+ CreationDate?: string;
1132
+
1133
+ Name?: string;
1134
+ }
1135
+ export declare namespace S3BucketInfo {
1136
+
1137
+ const filterSensitiveLog: (obj: S3BucketInfo) => any;
1138
+ }
1139
+ export interface ListS3BucketsResponse {
1140
+
1141
+ Buckets?: S3BucketInfo[];
1142
+
1143
+ NextToken?: string;
1144
+ }
1145
+ export declare namespace ListS3BucketsResponse {
1146
+
1147
+ const filterSensitiveLog: (obj: ListS3BucketsResponse) => any;
1148
+ }
1149
+
954
1150
  export interface RemoveAllBackendsRequest {
955
1151
 
956
1152
  AppId: string | undefined;
@@ -1231,3 +1427,43 @@ export declare namespace UpdateBackendJobResponse {
1231
1427
 
1232
1428
  const filterSensitiveLog: (obj: UpdateBackendJobResponse) => any;
1233
1429
  }
1430
+
1431
+ export interface UpdateBackendStorageResourceConfig {
1432
+
1433
+ Permissions: BackendStoragePermissions | undefined;
1434
+
1435
+ ServiceName: ServiceName | string | undefined;
1436
+ }
1437
+ export declare namespace UpdateBackendStorageResourceConfig {
1438
+
1439
+ const filterSensitiveLog: (obj: UpdateBackendStorageResourceConfig) => any;
1440
+ }
1441
+
1442
+ export interface UpdateBackendStorageRequest {
1443
+
1444
+ AppId: string | undefined;
1445
+
1446
+ BackendEnvironmentName: string | undefined;
1447
+
1448
+ ResourceConfig: UpdateBackendStorageResourceConfig | undefined;
1449
+
1450
+ ResourceName: string | undefined;
1451
+ }
1452
+ export declare namespace UpdateBackendStorageRequest {
1453
+
1454
+ const filterSensitiveLog: (obj: UpdateBackendStorageRequest) => any;
1455
+ }
1456
+ export interface UpdateBackendStorageResponse {
1457
+
1458
+ AppId?: string;
1459
+
1460
+ BackendEnvironmentName?: string;
1461
+
1462
+ JobId?: string;
1463
+
1464
+ Status?: string;
1465
+ }
1466
+ export declare namespace UpdateBackendStorageResponse {
1467
+
1468
+ const filterSensitiveLog: (obj: UpdateBackendStorageResponse) => any;
1469
+ }