-
Notifications
You must be signed in to change notification settings - Fork 10
/
AwsAccountRegionSettings.ts
58 lines (50 loc) · 1.46 KB
/
AwsAccountRegionSettings.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
import {map, mapArray} from '../common/Mapper';
import AwsCloudRegion from './AwsCloudRegion';
import BitmovinResource from './BitmovinResource';
/**
* @export
* @class AwsAccountRegionSettings
*/
export class AwsAccountRegionSettings extends BitmovinResource {
/**
* Limit for the amount of running encodings at a time. Leave empty for no limit.
* @type {number}
* @memberof AwsAccountRegionSettings
*/
public limitParallelEncodings?: number;
/**
* Id of the security group for encoding instances (required)
* @type {string}
* @memberof AwsAccountRegionSettings
*/
public securityGroupId?: string;
/**
* Id of the subnet for encoding instances (required)
* @type {string}
* @memberof AwsAccountRegionSettings
*/
public subnetId?: string;
/**
* Custom SSH port. Valid values: 1 - 65535. Leave empty if the default SSH port 22 is OK.
* @type {number}
* @memberof AwsAccountRegionSettings
*/
public sshPort?: number;
/**
* @type {AwsCloudRegion}
* @memberof AwsAccountRegionSettings
*/
public region?: AwsCloudRegion;
constructor(obj?: Partial<AwsAccountRegionSettings>) {
super(obj);
if(!obj) {
return;
}
this.limitParallelEncodings = map(obj.limitParallelEncodings);
this.securityGroupId = map(obj.securityGroupId);
this.subnetId = map(obj.subnetId);
this.sshPort = map(obj.sshPort);
this.region = map(obj.region);
}
}
export default AwsAccountRegionSettings;