-
Notifications
You must be signed in to change notification settings - Fork 10
/
S3Input.ts
59 lines (51 loc) · 1.23 KB
/
S3Input.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import {map, mapArray} from '../common/Mapper';
import AwsCloudRegion from './AwsCloudRegion';
import Input from './Input';
import InputType from './InputType';
/**
* @export
* @class S3Input
*/
export class S3Input extends Input {
/**
* Discriminator property for Input
* @type {string}
* @memberof S3Input
*/
public readonly type: InputType = InputType.S3;
/**
* The cloud region in which the bucket is located. Is used to determine the ideal location for your encodings automatically.
* @type {AwsCloudRegion}
* @memberof S3Input
*/
public cloudRegion?: AwsCloudRegion;
/**
* Name of the bucket (required)
* @type {string}
* @memberof S3Input
*/
public bucketName?: string;
/**
* Amazon access key (required)
* @type {string}
* @memberof S3Input
*/
public accessKey?: string;
/**
* Amazon secret key (required)
* @type {string}
* @memberof S3Input
*/
public secretKey?: string;
constructor(obj?: Partial<S3Input>) {
super(obj);
if(!obj) {
return;
}
this.cloudRegion = map(obj.cloudRegion);
this.bucketName = map(obj.bucketName);
this.accessKey = map(obj.accessKey);
this.secretKey = map(obj.secretKey);
}
}
export default S3Input;