File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments