aws-sdk 1.11.3 → 1.12.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 096a61a85d3de78e9e23bb56e2f8d48d9d4b2e51
4
+ data.tar.gz: 0eeffca31eeaea8a4bb3d73e17e243c387b63f1b
5
+ SHA512:
6
+ metadata.gz: b8a43f6faf9508f799f0a6935a40e365869a7dfa0495bafe6d710d8cd4b78a1113564065ba28da0c11c18aa8b719a0ed22edc9e6ae2855bfc869681a33f0738b
7
+ data.tar.gz: 1a63cab6e348aae1bfa39e0e66a6aa100fbd9b8f52f2727caecd3c2e5bab3111afec4e325454bd0bb15e7e4ab5a2e2f93f076cb5ffd80e1b84f4ce762036e337
@@ -0,0 +1,151 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License"). You
6
+ # may not use this file except in compliance with the License. A copy of
7
+ # the License is located at
8
+ #
9
+ # http://aws.amazon.com/apache2.0/
10
+ #
11
+ # or in the "license" file accompanying this file. This file is
12
+ # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
13
+ # ANY KIND, either express or implied. See the License for the specific
14
+ # language governing permissions and limitations under the License.
15
+
16
+ $:.unshift(File.join(File.dirname(File.dirname(__FILE__)), 'lib'))
17
+
18
+ require 'rubygems'
19
+ require 'optparse'
20
+ require 'logger'
21
+
22
+ def env_bool key, default
23
+ if ENV.key?(key)
24
+ !['0', 'false', 'no', 'off'].include?(ENV[key].downcase)
25
+ else
26
+ default
27
+ end
28
+ end
29
+
30
+ # setup default options, check ENV for most
31
+ options = {
32
+ :repl => env_bool('AWSRB', nil),
33
+ :log => env_bool('AWSRB_LOG', true),
34
+ :color => env_bool('AWSRB_COLOR', true),
35
+ :debug => env_bool('AWSRB_DEBUG', false),
36
+ :load_paths => [],
37
+ :require => [],
38
+ }
39
+
40
+ OptionParser.new do |opts|
41
+
42
+ opts.banner = "Usage: aws-rb [options]"
43
+
44
+ opts.on("--repl REPL", "specify the repl environment, pry or irb") do |value|
45
+ options[:repl] = value
46
+ end
47
+
48
+ opts.on("-l", "--[no-]log", "log client requets, on by default") do |value|
49
+ options[:log] = value
50
+ end
51
+
52
+ opts.on("-c", "--[no-]color", "colorize request logging, on by default") do |value|
53
+ options[:color] = value
54
+ end
55
+
56
+ opts.on("-d", "--[no-]debug", "log HTTP wire traces, off by default") do |value|
57
+ options[:debug] = value
58
+ end
59
+
60
+ opts.on("-Idirectory", Array, "specify $LOAD_PATH directory (may be used more than once)") do |values|
61
+ options[:load_paths] += values
62
+ end
63
+
64
+ opts.on("-rlibrary", Array, "require the library") do |values|
65
+ options[:require] += values
66
+ end
67
+
68
+ opts.on("-v", "--verbose", "enable client logging and HTTP wire tracing") do |value|
69
+ options[:log] = true
70
+ options[:debug] = true
71
+ end
72
+
73
+ opts.on("-q", "--quiet", "disable client logging and HTTP wire tracing") do |value|
74
+ options[:log] = false
75
+ options[:debug] = false
76
+ end
77
+
78
+ opts.on("-h", "--help") do
79
+ puts opts
80
+ exit
81
+ end
82
+
83
+ end.parse!
84
+
85
+ # amend the $LOAD_PATH
86
+ options[:load_paths].each do |path|
87
+ $LOAD_PATH.unshift(path)
88
+ end
89
+
90
+ require 'aws-sdk'
91
+
92
+ # configure the aws-sdk gem
93
+
94
+ cfg = {}
95
+
96
+ if options[:log]
97
+ logger = Logger.new($stdout)
98
+ logger.formatter = proc {|severity, datetime, progname, msg| msg }
99
+ cfg[:logger] = logger
100
+ end
101
+
102
+ if options[:color]
103
+ cfg[:log_formatter] = AWS::Core::LogFormatter.colored
104
+ end
105
+
106
+ if options[:debug]
107
+ cfg[:http_wire_trace] = true
108
+ end
109
+
110
+ AWS.config(cfg)
111
+
112
+ options[:require].each do |library|
113
+ require(library)
114
+ end
115
+
116
+ unless options[:repl] == 'irb'
117
+ # these dependencies are normally autoloaded by the aws-sdk, however
118
+ # we require them up front to squelch warnings from pry
119
+ require 'nokogiri'
120
+ require 'json'
121
+ require 'uuidtools'
122
+ end
123
+
124
+ class PryNotAvailable < StandardError; end
125
+
126
+ def run_with_pry
127
+ begin
128
+ require 'pry'
129
+ rescue LoadError
130
+ raise PryNotAvailable
131
+ end
132
+ Pry.config.prompt = [proc { "AWS> " }, proc { "AWS| " }]
133
+ AWS.pry
134
+ end
135
+
136
+ def run_with_irb
137
+ require 'irb'
138
+ IRB.start
139
+ end
140
+
141
+ case options[:repl]
142
+ when 'pry' then run_with_pry
143
+ when 'irb' then run_with_irb
144
+ else
145
+ begin
146
+ run_with_pry
147
+ rescue PryNotAvailable
148
+ warn("Pry not available, falling back to irb")
149
+ run_with_irb
150
+ end
151
+ end
@@ -76,6 +76,19 @@
76
76
  :segment_duration:
77
77
  :name: SegmentDuration
78
78
  :type: :string
79
+ :watermarks:
80
+ :name: Watermarks
81
+ :type: :array
82
+ :members:
83
+ :name: member
84
+ :type: :hash
85
+ :members:
86
+ :preset_watermark_id:
87
+ :name: PresetWatermarkId
88
+ :type: :string
89
+ :input_key:
90
+ :name: InputKey
91
+ :type: :string
79
92
  :outputs:
80
93
  :name: Outputs
81
94
  :type: :array
@@ -98,6 +111,19 @@
98
111
  :segment_duration:
99
112
  :name: SegmentDuration
100
113
  :type: :string
114
+ :watermarks:
115
+ :name: Watermarks
116
+ :type: :array
117
+ :members:
118
+ :name: member
119
+ :type: :hash
120
+ :members:
121
+ :preset_watermark_id:
122
+ :name: PresetWatermarkId
123
+ :type: :string
124
+ :input_key:
125
+ :name: InputKey
126
+ :type: :string
101
127
  :output_key_prefix:
102
128
  :name: OutputKeyPrefix
103
129
  :type: :string
@@ -190,6 +216,16 @@
190
216
  Height:
191
217
  :sym: :height
192
218
  :type: :integer
219
+ Watermarks:
220
+ :sym: :watermarks
221
+ :type: :hash
222
+ :members:
223
+ PresetWatermarkId:
224
+ :sym: :preset_watermark_id
225
+ :type: :string
226
+ InputKey:
227
+ :sym: :input_key
228
+ :type: :string
193
229
  Outputs:
194
230
  :sym: :outputs
195
231
  :type: :hash
@@ -227,6 +263,16 @@
227
263
  Height:
228
264
  :sym: :height
229
265
  :type: :integer
266
+ Watermarks:
267
+ :sym: :watermarks
268
+ :type: :hash
269
+ :members:
270
+ PresetWatermarkId:
271
+ :sym: :preset_watermark_id
272
+ :type: :string
273
+ InputKey:
274
+ :sym: :input_key
275
+ :type: :string
230
276
  OutputKeyPrefix:
231
277
  :sym: :output_key_prefix
232
278
  :type: :string
@@ -477,6 +523,9 @@
477
523
  :frame_rate:
478
524
  :name: FrameRate
479
525
  :type: :string
526
+ :max_frame_rate:
527
+ :name: MaxFrameRate
528
+ :type: :string
480
529
  :resolution:
481
530
  :name: Resolution
482
531
  :type: :string
@@ -498,6 +547,43 @@
498
547
  :padding_policy:
499
548
  :name: PaddingPolicy
500
549
  :type: :string
550
+ :watermarks:
551
+ :name: Watermarks
552
+ :type: :array
553
+ :members:
554
+ :name: member
555
+ :type: :hash
556
+ :members:
557
+ :id:
558
+ :name: Id
559
+ :type: :string
560
+ :max_width:
561
+ :name: MaxWidth
562
+ :type: :string
563
+ :max_height:
564
+ :name: MaxHeight
565
+ :type: :string
566
+ :sizing_policy:
567
+ :name: SizingPolicy
568
+ :type: :string
569
+ :horizontal_align:
570
+ :name: HorizontalAlign
571
+ :type: :string
572
+ :horizontal_offset:
573
+ :name: HorizontalOffset
574
+ :type: :string
575
+ :vertical_align:
576
+ :name: VerticalAlign
577
+ :type: :string
578
+ :vertical_offset:
579
+ :name: VerticalOffset
580
+ :type: :string
581
+ :opacity:
582
+ :name: Opacity
583
+ :type: :string
584
+ :target:
585
+ :name: Target
586
+ :type: :string
501
587
  :audio:
502
588
  :name: Audio
503
589
  :type: :hash
@@ -600,6 +686,9 @@
600
686
  FrameRate:
601
687
  :sym: :frame_rate
602
688
  :type: :string
689
+ MaxFrameRate:
690
+ :sym: :max_frame_rate
691
+ :type: :string
603
692
  Resolution:
604
693
  :sym: :resolution
605
694
  :type: :string
@@ -621,6 +710,40 @@
621
710
  PaddingPolicy:
622
711
  :sym: :padding_policy
623
712
  :type: :string
713
+ Watermarks:
714
+ :sym: :watermarks
715
+ :type: :hash
716
+ :members:
717
+ Id:
718
+ :sym: :id
719
+ :type: :string
720
+ MaxWidth:
721
+ :sym: :max_width
722
+ :type: :string
723
+ MaxHeight:
724
+ :sym: :max_height
725
+ :type: :string
726
+ SizingPolicy:
727
+ :sym: :sizing_policy
728
+ :type: :string
729
+ HorizontalAlign:
730
+ :sym: :horizontal_align
731
+ :type: :string
732
+ HorizontalOffset:
733
+ :sym: :horizontal_offset
734
+ :type: :string
735
+ VerticalAlign:
736
+ :sym: :vertical_align
737
+ :type: :string
738
+ VerticalOffset:
739
+ :sym: :vertical_offset
740
+ :type: :string
741
+ Opacity:
742
+ :sym: :opacity
743
+ :type: :string
744
+ Target:
745
+ :sym: :target
746
+ :type: :string
624
747
  Thumbnails:
625
748
  :sym: :thumbnails
626
749
  :type: :hash
@@ -760,6 +883,16 @@
760
883
  Height:
761
884
  :sym: :height
762
885
  :type: :integer
886
+ Watermarks:
887
+ :sym: :watermarks
888
+ :type: :hash
889
+ :members:
890
+ PresetWatermarkId:
891
+ :sym: :preset_watermark_id
892
+ :type: :string
893
+ InputKey:
894
+ :sym: :input_key
895
+ :type: :string
763
896
  Outputs:
764
897
  :sym: :outputs
765
898
  :type: :hash
@@ -797,6 +930,16 @@
797
930
  Height:
798
931
  :sym: :height
799
932
  :type: :integer
933
+ Watermarks:
934
+ :sym: :watermarks
935
+ :type: :hash
936
+ :members:
937
+ PresetWatermarkId:
938
+ :sym: :preset_watermark_id
939
+ :type: :string
940
+ InputKey:
941
+ :sym: :input_key
942
+ :type: :string
800
943
  OutputKeyPrefix:
801
944
  :sym: :output_key_prefix
802
945
  :type: :string
@@ -908,6 +1051,16 @@
908
1051
  Height:
909
1052
  :sym: :height
910
1053
  :type: :integer
1054
+ Watermarks:
1055
+ :sym: :watermarks
1056
+ :type: :hash
1057
+ :members:
1058
+ PresetWatermarkId:
1059
+ :sym: :preset_watermark_id
1060
+ :type: :string
1061
+ InputKey:
1062
+ :sym: :input_key
1063
+ :type: :string
911
1064
  Outputs:
912
1065
  :sym: :outputs
913
1066
  :type: :hash
@@ -945,6 +1098,16 @@
945
1098
  Height:
946
1099
  :sym: :height
947
1100
  :type: :integer
1101
+ Watermarks:
1102
+ :sym: :watermarks
1103
+ :type: :hash
1104
+ :members:
1105
+ PresetWatermarkId:
1106
+ :sym: :preset_watermark_id
1107
+ :type: :string
1108
+ InputKey:
1109
+ :sym: :input_key
1110
+ :type: :string
948
1111
  OutputKeyPrefix:
949
1112
  :sym: :output_key_prefix
950
1113
  :type: :string
@@ -1131,6 +1294,9 @@
1131
1294
  FrameRate:
1132
1295
  :sym: :frame_rate
1133
1296
  :type: :string
1297
+ MaxFrameRate:
1298
+ :sym: :max_frame_rate
1299
+ :type: :string
1134
1300
  Resolution:
1135
1301
  :sym: :resolution
1136
1302
  :type: :string
@@ -1152,6 +1318,40 @@
1152
1318
  PaddingPolicy:
1153
1319
  :sym: :padding_policy
1154
1320
  :type: :string
1321
+ Watermarks:
1322
+ :sym: :watermarks
1323
+ :type: :hash
1324
+ :members:
1325
+ Id:
1326
+ :sym: :id
1327
+ :type: :string
1328
+ MaxWidth:
1329
+ :sym: :max_width
1330
+ :type: :string
1331
+ MaxHeight:
1332
+ :sym: :max_height
1333
+ :type: :string
1334
+ SizingPolicy:
1335
+ :sym: :sizing_policy
1336
+ :type: :string
1337
+ HorizontalAlign:
1338
+ :sym: :horizontal_align
1339
+ :type: :string
1340
+ HorizontalOffset:
1341
+ :sym: :horizontal_offset
1342
+ :type: :string
1343
+ VerticalAlign:
1344
+ :sym: :vertical_align
1345
+ :type: :string
1346
+ VerticalOffset:
1347
+ :sym: :vertical_offset
1348
+ :type: :string
1349
+ Opacity:
1350
+ :sym: :opacity
1351
+ :type: :string
1352
+ Target:
1353
+ :sym: :target
1354
+ :type: :string
1155
1355
  Thumbnails:
1156
1356
  :sym: :thumbnails
1157
1357
  :type: :hash
@@ -1262,6 +1462,16 @@
1262
1462
  Height:
1263
1463
  :sym: :height
1264
1464
  :type: :integer
1465
+ Watermarks:
1466
+ :sym: :watermarks
1467
+ :type: :hash
1468
+ :members:
1469
+ PresetWatermarkId:
1470
+ :sym: :preset_watermark_id
1471
+ :type: :string
1472
+ InputKey:
1473
+ :sym: :input_key
1474
+ :type: :string
1265
1475
  Outputs:
1266
1476
  :sym: :outputs
1267
1477
  :type: :hash
@@ -1299,6 +1509,16 @@
1299
1509
  Height:
1300
1510
  :sym: :height
1301
1511
  :type: :integer
1512
+ Watermarks:
1513
+ :sym: :watermarks
1514
+ :type: :hash
1515
+ :members:
1516
+ PresetWatermarkId:
1517
+ :sym: :preset_watermark_id
1518
+ :type: :string
1519
+ InputKey:
1520
+ :sym: :input_key
1521
+ :type: :string
1302
1522
  OutputKeyPrefix:
1303
1523
  :sym: :output_key_prefix
1304
1524
  :type: :string
@@ -1488,6 +1708,9 @@
1488
1708
  FrameRate:
1489
1709
  :sym: :frame_rate
1490
1710
  :type: :string
1711
+ MaxFrameRate:
1712
+ :sym: :max_frame_rate
1713
+ :type: :string
1491
1714
  Resolution:
1492
1715
  :sym: :resolution
1493
1716
  :type: :string
@@ -1509,6 +1732,40 @@
1509
1732
  PaddingPolicy:
1510
1733
  :sym: :padding_policy
1511
1734
  :type: :string
1735
+ Watermarks:
1736
+ :sym: :watermarks
1737
+ :type: :hash
1738
+ :members:
1739
+ Id:
1740
+ :sym: :id
1741
+ :type: :string
1742
+ MaxWidth:
1743
+ :sym: :max_width
1744
+ :type: :string
1745
+ MaxHeight:
1746
+ :sym: :max_height
1747
+ :type: :string
1748
+ SizingPolicy:
1749
+ :sym: :sizing_policy
1750
+ :type: :string
1751
+ HorizontalAlign:
1752
+ :sym: :horizontal_align
1753
+ :type: :string
1754
+ HorizontalOffset:
1755
+ :sym: :horizontal_offset
1756
+ :type: :string
1757
+ VerticalAlign:
1758
+ :sym: :vertical_align
1759
+ :type: :string
1760
+ VerticalOffset:
1761
+ :sym: :vertical_offset
1762
+ :type: :string
1763
+ Opacity:
1764
+ :sym: :opacity
1765
+ :type: :string
1766
+ Target:
1767
+ :sym: :target
1768
+ :type: :string
1512
1769
  Thumbnails:
1513
1770
  :sym: :thumbnails
1514
1771
  :type: :hash