Skip to content

Commit f719d19

Browse files
committed
[Add] - add functions for mediaconvert
1 parent 39094e0 commit f719d19

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

services/medibaconvert.sh

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#!/bin/bash
2+
3+
###################################################################
4+
# # @version 1.0
5+
# # @script medibaconvert.sh
6+
# # @author lamhaison
7+
8+
# # @description List functions for working with mediaconvert aws service
9+
# # @bash_version None
10+
# # @notes None
11+
# # @usage Only use function in the script instead of bash medibaconvert.sh
12+
# # @date 20230326
13+
###################################################################
14+
15+
aws_mediaconvert_list_endpoints() {
16+
17+
aws_run_commandline "\
18+
aws mediaconvert describe-endpoints
19+
"
20+
21+
}
22+
23+
private_aws_mediaconvert_get_endpoint() {
24+
aws mediaconvert describe-endpoints --query '*[] | [0].Url' --output text
25+
}
26+
27+
aws_mediaconvert_list_jobs() {
28+
29+
local mediaconvert_endpoint=$(private_aws_mediaconvert_get_endpoint)
30+
31+
aws_run_commandline "\
32+
aws mediaconvert list-jobs \
33+
--endpoint-url ${mediaconvert_endpoint} \
34+
--query '*[].{Id:Id,CreatedAt:CreatedAt,Status:Status}' \
35+
--output table
36+
"
37+
38+
}

0 commit comments

Comments
 (0)