-
Notifications
You must be signed in to change notification settings - Fork 10
/
SimpleEncodingVodJobS3RoleBasedCredentials.ts
34 lines (29 loc) · 1.28 KB
/
SimpleEncodingVodJobS3RoleBasedCredentials.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
import {map, mapArray} from '../common/Mapper';
import SimpleEncodingVodJobCredentials from './SimpleEncodingVodJobCredentials';
/**
* @export
* @class SimpleEncodingVodJobS3RoleBasedCredentials
*/
export class SimpleEncodingVodJobS3RoleBasedCredentials extends SimpleEncodingVodJobCredentials {
/**
* Amazon ARN of the IAM Role (Identity and Access Management Role) that will be assumed for S3 access. More details can be found [here](https://bitmovin.com/docs/encoding/api-reference/sections/inputs#/Encoding/PostEncodingInputsS3RoleBased) (required)
* @type {string}
* @memberof SimpleEncodingVodJobS3RoleBasedCredentials
*/
public roleArn?: string;
/**
* Defines if the organization ID has to be used as externalId when assuming the role. More details can be found [here](https://bitmovin.com/docs/encoding/api-reference/sections/inputs#/Encoding/PostEncodingInputsS3RoleBased)
* @type {boolean}
* @memberof SimpleEncodingVodJobS3RoleBasedCredentials
*/
public useExternalId?: boolean;
constructor(obj?: Partial<SimpleEncodingVodJobS3RoleBasedCredentials>) {
super(obj);
if(!obj) {
return;
}
this.roleArn = map(obj.roleArn);
this.useExternalId = map(obj.useExternalId);
}
}
export default SimpleEncodingVodJobS3RoleBasedCredentials;