1 |
|
2 |
|
3 |
|
4 | import { ICredentials } from '@aws-amplify/core';
|
5 | export interface StorageOptions {
|
6 | credentials?: ICredentials;
|
7 | region?: string;
|
8 | level?: StorageLevel;
|
9 | bucket?: string;
|
10 | |
11 |
|
12 |
|
13 |
|
14 |
|
15 | customPrefix?: CustomPrefix;
|
16 | |
17 |
|
18 |
|
19 | track?: boolean;
|
20 | dangerouslyConnectToHttpEndpointForTesting?: boolean;
|
21 | }
|
22 | export declare type StorageLevel = 'public' | 'protected' | 'private';
|
23 | export declare type CustomPrefix = {
|
24 | [key in StorageLevel]?: string;
|
25 | };
|
26 | export declare type StorageCopyTarget = {
|
27 | key: string;
|
28 | level?: string;
|
29 | identityId?: string;
|
30 | };
|
31 | export declare type StorageCopySource = StorageCopyTarget;
|
32 | export declare type StorageCopyDestination = Omit<StorageCopyTarget, 'identityId'>;
|