aws-sdk-medialive 1.40.0 → 1.41.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc53dd34ea8d384529b215ead446edba6b7bc4f9
4
- data.tar.gz: b8216569f590dd6928f3adc3ba2e146980109945
3
+ metadata.gz: 5cb1294ada628068a4185075f6994316c52446c7
4
+ data.tar.gz: 0f0dba99bcceedeb8622842d8d3560ab620c55a6
5
5
  SHA512:
6
- metadata.gz: ddcb5470497bab60ddb68fd8b44f6cfd5cd0c5cf0c403aa97e81888f63b1270480bc2b30bf950bf2d1787fdcb5dd13202f63e31571d1d46b3b0f666711f27ff9
7
- data.tar.gz: 36d6b19909bf2b370b8b815c32a021dcb9283c087cdf324a546934a1d1a9d7ce8231b345f19da203e68bb23dd958446ca84c566ce9e3f1a4a5e50de41c833d99
6
+ metadata.gz: 8e9aff4121fbf0f709be2c8a753617312e4ea335678c0fe6d83164b40f9cf2a4f0a21543a59f31c9fab7a5409f39a13d328035556ff2aca27dcdb3eb520035f6
7
+ data.tar.gz: 90e512dcdc0ab54e5f144551d67844fd4db0c4812232ae0323d30b3536c3a7a1b66261f2d565474f74f94ea44eeade7a7c789979c5c4be52b5e6d04335a5ac0c
@@ -25,17 +25,20 @@ require_relative 'aws-sdk-medialive/customizations'
25
25
  # methods each accept a hash of request parameters and return a response
26
26
  # structure.
27
27
  #
28
+ # media_live = Aws::MediaLive::Client.new
29
+ # resp = media_live.batch_update_schedule(params)
30
+ #
28
31
  # See {Client} for more information.
29
32
  #
30
33
  # # Errors
31
34
  #
32
- # Errors returned from AWS Elemental MediaLive all
33
- # extend {Errors::ServiceError}.
35
+ # Errors returned from AWS Elemental MediaLive are defined in the
36
+ # {Errors} module and all extend {Errors::ServiceError}.
34
37
  #
35
38
  # begin
36
39
  # # do stuff
37
40
  # rescue Aws::MediaLive::Errors::ServiceError
38
- # # rescues all service API errors
41
+ # # rescues all AWS Elemental MediaLive API errors
39
42
  # end
40
43
  #
41
44
  # See {Errors} for more information.
@@ -43,6 +46,6 @@ require_relative 'aws-sdk-medialive/customizations'
43
46
  # @service
44
47
  module Aws::MediaLive
45
48
 
46
- GEM_VERSION = '1.40.0'
49
+ GEM_VERSION = '1.41.0'
47
50
 
48
51
  end
@@ -30,6 +30,18 @@ require 'aws-sdk-core/plugins/protocols/rest_json.rb'
30
30
  Aws::Plugins::GlobalConfiguration.add_identifier(:medialive)
31
31
 
32
32
  module Aws::MediaLive
33
+ # An API client for MediaLive. To construct a client, you need to configure a `:region` and `:credentials`.
34
+ #
35
+ # client = Aws::MediaLive::Client.new(
36
+ # region: region_name,
37
+ # credentials: credentials,
38
+ # # ...
39
+ # )
40
+ #
41
+ # For details on configuring region and credentials see
42
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
43
+ #
44
+ # See {#initialize} for a full list of supported configuration options.
33
45
  class Client < Seahorse::Client::Base
34
46
 
35
47
  include Aws::ClientStubs
@@ -108,6 +120,12 @@ module Aws::MediaLive
108
120
  # When set to `true`, a thread polling for endpoints will be running in
109
121
  # the background every 60 secs (default). Defaults to `false`.
110
122
  #
123
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
124
+ # Used only in `adaptive` retry mode. When true, the request will sleep
125
+ # until there is sufficent client side capacity to retry the request.
126
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
127
+ # not retry instead of sleeping.
128
+ #
111
129
  # @option options [Boolean] :client_side_monitoring (false)
112
130
  # When `true`, client-side metrics will be collected for all API requests from
113
131
  # this client.
@@ -132,6 +150,10 @@ module Aws::MediaLive
132
150
  # When `true`, an attempt is made to coerce request parameters into
133
151
  # the required types.
134
152
  #
153
+ # @option options [Boolean] :correct_clock_skew (true)
154
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
155
+ # a clock skew correction and retry requests with skewed client clocks.
156
+ #
135
157
  # @option options [Boolean] :disable_host_prefix_injection (false)
136
158
  # Set to true to disable SDK automatically adding host prefix
137
159
  # to default service endpoint when available.
@@ -166,15 +188,29 @@ module Aws::MediaLive
166
188
  # The Logger instance to send log messages to. If this option
167
189
  # is not set, logging will be disabled.
168
190
  #
191
+ # @option options [Integer] :max_attempts (3)
192
+ # An integer representing the maximum number attempts that will be made for
193
+ # a single request, including the initial attempt. For example,
194
+ # setting this value to 5 will result in a request being retried up to
195
+ # 4 times. Used in `standard` and `adaptive` retry modes.
196
+ #
169
197
  # @option options [String] :profile ("default")
170
198
  # Used when loading credentials from the shared credentials file
171
199
  # at HOME/.aws/credentials. When not specified, 'default' is used.
172
200
  #
201
+ # @option options [Proc] :retry_backoff
202
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
203
+ # This option is only used in the `legacy` retry mode.
204
+ #
173
205
  # @option options [Float] :retry_base_delay (0.3)
174
- # The base delay in seconds used by the default backoff function.
206
+ # The base delay in seconds used by the default backoff function. This option
207
+ # is only used in the `legacy` retry mode.
175
208
  #
176
209
  # @option options [Symbol] :retry_jitter (:none)
177
- # A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number.
210
+ # A delay randomiser function used by the default backoff function.
211
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
212
+ # otherwise a Proc that takes and returns a number. This option is only used
213
+ # in the `legacy` retry mode.
178
214
  #
179
215
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
180
216
  #
@@ -182,11 +218,26 @@ module Aws::MediaLive
182
218
  # The maximum number of times to retry failed requests. Only
183
219
  # ~ 500 level server errors and certain ~ 400 level client errors
184
220
  # are retried. Generally, these are throttling errors, data
185
- # checksum errors, networking errors, timeout errors and auth
186
- # errors from expired credentials.
221
+ # checksum errors, networking errors, timeout errors, auth errors,
222
+ # endpoint discovery, and errors from expired credentials.
223
+ # This option is only used in the `legacy` retry mode.
187
224
  #
188
225
  # @option options [Integer] :retry_max_delay (0)
189
- # The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
226
+ # The maximum number of seconds to delay between retries (0 for no limit)
227
+ # used by the default backoff function. This option is only used in the
228
+ # `legacy` retry mode.
229
+ #
230
+ # @option options [String] :retry_mode ("legacy")
231
+ # Specifies which retry algorithm to use. Values are:
232
+ # * `legacy` - The pre-existing retry behavior. This is default value if
233
+ # no retry mode is provided.
234
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
235
+ # This includes support for retry quotas, which limit the number of
236
+ # unsuccessful retries a client can make.
237
+ # * `adaptive` - An experimental retry mode that includes all the
238
+ # functionality of `standard` mode along with automatic client side
239
+ # throttling. This is a provisional mode that may change behavior
240
+ # in the future.
190
241
  #
191
242
  # @option options [String] :secret_access_key
192
243
  #
@@ -209,16 +260,16 @@ module Aws::MediaLive
209
260
  # requests through. Formatted like 'http://proxy.com:123'.
210
261
  #
211
262
  # @option options [Float] :http_open_timeout (15) The number of
212
- # seconds to wait when opening a HTTP session before rasing a
263
+ # seconds to wait when opening a HTTP session before raising a
213
264
  # `Timeout::Error`.
214
265
  #
215
266
  # @option options [Integer] :http_read_timeout (60) The default
216
267
  # number of seconds to wait for response data. This value can
217
268
  # safely be set
218
- # per-request on the session yeidled by {#session_for}.
269
+ # per-request on the session yielded by {#session_for}.
219
270
  #
220
271
  # @option options [Float] :http_idle_timeout (5) The number of
221
- # seconds a connection is allowed to sit idble before it is
272
+ # seconds a connection is allowed to sit idle before it is
222
273
  # considered stale. Stale connections are closed and removed
223
274
  # from the pool before making a request.
224
275
  #
@@ -227,7 +278,7 @@ module Aws::MediaLive
227
278
  # request body. This option has no effect unless the request has
228
279
  # "Expect" header set to "100-continue". Defaults to `nil` which
229
280
  # disables this behaviour. This value can safely be set per
230
- # request on the session yeidled by {#session_for}.
281
+ # request on the session yielded by {#session_for}.
231
282
  #
232
283
  # @option options [Boolean] :http_wire_trace (false) When `true`,
233
284
  # HTTP debug output will be sent to the `:logger`.
@@ -2106,6 +2157,7 @@ module Aws::MediaLive
2106
2157
  # resp = client.create_multiplex_program({
2107
2158
  # multiplex_id: "__string", # required
2108
2159
  # multiplex_program_settings: { # required
2160
+ # preferred_channel_pipeline: "CURRENTLY_ACTIVE", # accepts CURRENTLY_ACTIVE, PIPELINE_0, PIPELINE_1
2109
2161
  # program_number: 1, # required
2110
2162
  # service_descriptor: {
2111
2163
  # provider_name: "__stringMax256", # required
@@ -2126,6 +2178,7 @@ module Aws::MediaLive
2126
2178
  # @example Response structure
2127
2179
  #
2128
2180
  # resp.multiplex_program.channel_id #=> String
2181
+ # resp.multiplex_program.multiplex_program_settings.preferred_channel_pipeline #=> String, one of "CURRENTLY_ACTIVE", "PIPELINE_0", "PIPELINE_1"
2129
2182
  # resp.multiplex_program.multiplex_program_settings.program_number #=> Integer
2130
2183
  # resp.multiplex_program.multiplex_program_settings.service_descriptor.provider_name #=> String
2131
2184
  # resp.multiplex_program.multiplex_program_settings.service_descriptor.service_name #=> String
@@ -2872,6 +2925,7 @@ module Aws::MediaLive
2872
2925
  # @example Response structure
2873
2926
  #
2874
2927
  # resp.channel_id #=> String
2928
+ # resp.multiplex_program_settings.preferred_channel_pipeline #=> String, one of "CURRENTLY_ACTIVE", "PIPELINE_0", "PIPELINE_1"
2875
2929
  # resp.multiplex_program_settings.program_number #=> Integer
2876
2930
  # resp.multiplex_program_settings.service_descriptor.provider_name #=> String
2877
2931
  # resp.multiplex_program_settings.service_descriptor.service_name #=> String
@@ -3769,6 +3823,7 @@ module Aws::MediaLive
3769
3823
  # @example Response structure
3770
3824
  #
3771
3825
  # resp.channel_id #=> String
3826
+ # resp.multiplex_program_settings.preferred_channel_pipeline #=> String, one of "CURRENTLY_ACTIVE", "PIPELINE_0", "PIPELINE_1"
3772
3827
  # resp.multiplex_program_settings.program_number #=> Integer
3773
3828
  # resp.multiplex_program_settings.service_descriptor.provider_name #=> String
3774
3829
  # resp.multiplex_program_settings.service_descriptor.service_name #=> String
@@ -7942,6 +7997,7 @@ module Aws::MediaLive
7942
7997
  # resp = client.update_multiplex_program({
7943
7998
  # multiplex_id: "__string", # required
7944
7999
  # multiplex_program_settings: {
8000
+ # preferred_channel_pipeline: "CURRENTLY_ACTIVE", # accepts CURRENTLY_ACTIVE, PIPELINE_0, PIPELINE_1
7945
8001
  # program_number: 1, # required
7946
8002
  # service_descriptor: {
7947
8003
  # provider_name: "__stringMax256", # required
@@ -7961,6 +8017,7 @@ module Aws::MediaLive
7961
8017
  # @example Response structure
7962
8018
  #
7963
8019
  # resp.multiplex_program.channel_id #=> String
8020
+ # resp.multiplex_program.multiplex_program_settings.preferred_channel_pipeline #=> String, one of "CURRENTLY_ACTIVE", "PIPELINE_0", "PIPELINE_1"
7964
8021
  # resp.multiplex_program.multiplex_program_settings.program_number #=> Integer
7965
8022
  # resp.multiplex_program.multiplex_program_settings.service_descriptor.provider_name #=> String
7966
8023
  # resp.multiplex_program.multiplex_program_settings.service_descriptor.service_name #=> String
@@ -8063,7 +8120,7 @@ module Aws::MediaLive
8063
8120
  params: params,
8064
8121
  config: config)
8065
8122
  context[:gem_name] = 'aws-sdk-medialive'
8066
- context[:gem_version] = '1.40.0'
8123
+ context[:gem_version] = '1.41.0'
8067
8124
  Seahorse::Client::Request.new(handlers, context)
8068
8125
  end
8069
8126
 
@@ -404,6 +404,7 @@ module Aws::MediaLive
404
404
  PipelineDetail = Shapes::StructureShape.new(name: 'PipelineDetail')
405
405
  PipelineId = Shapes::StringShape.new(name: 'PipelineId')
406
406
  PipelinePauseStateSettings = Shapes::StructureShape.new(name: 'PipelinePauseStateSettings')
407
+ PreferredChannelPipeline = Shapes::StringShape.new(name: 'PreferredChannelPipeline')
407
408
  PurchaseOffering = Shapes::StructureShape.new(name: 'PurchaseOffering')
408
409
  PurchaseOfferingRequest = Shapes::StructureShape.new(name: 'PurchaseOfferingRequest')
409
410
  PurchaseOfferingResponse = Shapes::StructureShape.new(name: 'PurchaseOfferingResponse')
@@ -1913,6 +1914,7 @@ module Aws::MediaLive
1913
1914
  MultiplexProgramServiceDescriptor.add_member(:service_name, Shapes::ShapeRef.new(shape: __stringMax256, required: true, location_name: "serviceName"))
1914
1915
  MultiplexProgramServiceDescriptor.struct_class = Types::MultiplexProgramServiceDescriptor
1915
1916
 
1917
+ MultiplexProgramSettings.add_member(:preferred_channel_pipeline, Shapes::ShapeRef.new(shape: PreferredChannelPipeline, location_name: "preferredChannelPipeline"))
1916
1918
  MultiplexProgramSettings.add_member(:program_number, Shapes::ShapeRef.new(shape: __integerMin0Max65535, required: true, location_name: "programNumber"))
1917
1919
  MultiplexProgramSettings.add_member(:service_descriptor, Shapes::ShapeRef.new(shape: MultiplexProgramServiceDescriptor, location_name: "serviceDescriptor"))
1918
1920
  MultiplexProgramSettings.add_member(:video_settings, Shapes::ShapeRef.new(shape: MultiplexVideoSettings, location_name: "videoSettings"))
@@ -6,6 +6,37 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::MediaLive
9
+
10
+ # When MediaLive returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::MediaLive::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all MediaLive errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::MediaLive::Errors::ServiceError
18
+ # # rescues all MediaLive API errors
19
+ # end
20
+ #
21
+ #
22
+ # ## Request Context
23
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
24
+ # information about the request that generated the error.
25
+ # See {Seahorse::Client::RequestContext} for more information.
26
+ #
27
+ # ## Error Classes
28
+ # * {BadGatewayException}
29
+ # * {BadRequestException}
30
+ # * {ConflictException}
31
+ # * {ForbiddenException}
32
+ # * {GatewayTimeoutException}
33
+ # * {InternalServerErrorException}
34
+ # * {NotFoundException}
35
+ # * {TooManyRequestsException}
36
+ # * {UnprocessableEntityException}
37
+ #
38
+ # Additionally, error classes are dynamically generated for service errors based on the error code
39
+ # if they are not defined above.
9
40
  module Errors
10
41
 
11
42
  extend Aws::Errors::DynamicErrors
@@ -23,7 +54,6 @@ module Aws::MediaLive
23
54
  def message
24
55
  @message || @data[:message]
25
56
  end
26
-
27
57
  end
28
58
 
29
59
  class BadRequestException < ServiceError
@@ -39,7 +69,6 @@ module Aws::MediaLive
39
69
  def message
40
70
  @message || @data[:message]
41
71
  end
42
-
43
72
  end
44
73
 
45
74
  class ConflictException < ServiceError
@@ -55,7 +84,6 @@ module Aws::MediaLive
55
84
  def message
56
85
  @message || @data[:message]
57
86
  end
58
-
59
87
  end
60
88
 
61
89
  class ForbiddenException < ServiceError
@@ -71,7 +99,6 @@ module Aws::MediaLive
71
99
  def message
72
100
  @message || @data[:message]
73
101
  end
74
-
75
102
  end
76
103
 
77
104
  class GatewayTimeoutException < ServiceError
@@ -87,7 +114,6 @@ module Aws::MediaLive
87
114
  def message
88
115
  @message || @data[:message]
89
116
  end
90
-
91
117
  end
92
118
 
93
119
  class InternalServerErrorException < ServiceError
@@ -103,7 +129,6 @@ module Aws::MediaLive
103
129
  def message
104
130
  @message || @data[:message]
105
131
  end
106
-
107
132
  end
108
133
 
109
134
  class NotFoundException < ServiceError
@@ -119,7 +144,6 @@ module Aws::MediaLive
119
144
  def message
120
145
  @message || @data[:message]
121
146
  end
122
-
123
147
  end
124
148
 
125
149
  class TooManyRequestsException < ServiceError
@@ -135,7 +159,6 @@ module Aws::MediaLive
135
159
  def message
136
160
  @message || @data[:message]
137
161
  end
138
-
139
162
  end
140
163
 
141
164
  class UnprocessableEntityException < ServiceError
@@ -156,7 +179,6 @@ module Aws::MediaLive
156
179
  def validation_errors
157
180
  @data[:validation_errors]
158
181
  end
159
-
160
182
  end
161
183
 
162
184
  end
@@ -6,6 +6,13 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::MediaLive
9
+ # This class provides a resource oriented interface for MediaLive.
10
+ # To create a resource object:
11
+ # resource = Aws::MediaLive::Resource.new(region: 'us-west-2')
12
+ # You can supply a client object with custom configuration that will be used for all resource operations.
13
+ # If you do not pass +:client+, a default client will be constructed.
14
+ # client = Aws::MediaLive::Client.new(region: 'us-west-2')
15
+ # resource = Aws::MediaLive::Resource.new(client: client)
9
16
  class Resource
10
17
 
11
18
  # @param options ({})
@@ -3413,6 +3413,7 @@ module Aws::MediaLive
3413
3413
  # {
3414
3414
  # multiplex_id: "__string", # required
3415
3415
  # multiplex_program_settings: { # required
3416
+ # preferred_channel_pipeline: "CURRENTLY_ACTIVE", # accepts CURRENTLY_ACTIVE, PIPELINE_0, PIPELINE_1
3416
3417
  # program_number: 1, # required
3417
3418
  # service_descriptor: {
3418
3419
  # provider_name: "__stringMax256", # required
@@ -10123,6 +10124,7 @@ module Aws::MediaLive
10123
10124
  # data as a hash:
10124
10125
  #
10125
10126
  # {
10127
+ # preferred_channel_pipeline: "CURRENTLY_ACTIVE", # accepts CURRENTLY_ACTIVE, PIPELINE_0, PIPELINE_1
10126
10128
  # program_number: 1, # required
10127
10129
  # service_descriptor: {
10128
10130
  # provider_name: "__stringMax256", # required
@@ -10137,6 +10139,11 @@ module Aws::MediaLive
10137
10139
  # },
10138
10140
  # }
10139
10141
  #
10142
+ # @!attribute [rw] preferred_channel_pipeline
10143
+ # Indicates which pipeline is preferred by the multiplex for program
10144
+ # ingest.
10145
+ # @return [String]
10146
+ #
10140
10147
  # @!attribute [rw] program_number
10141
10148
  # Unique program number.
10142
10149
  # @return [Integer]
@@ -10153,6 +10160,7 @@ module Aws::MediaLive
10153
10160
  # @see http://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/MultiplexProgramSettings AWS API Documentation
10154
10161
  #
10155
10162
  class MultiplexProgramSettings < Struct.new(
10163
+ :preferred_channel_pipeline,
10156
10164
  :program_number,
10157
10165
  :service_descriptor,
10158
10166
  :video_settings)
@@ -15146,6 +15154,7 @@ module Aws::MediaLive
15146
15154
  # {
15147
15155
  # multiplex_id: "__string", # required
15148
15156
  # multiplex_program_settings: {
15157
+ # preferred_channel_pipeline: "CURRENTLY_ACTIVE", # accepts CURRENTLY_ACTIVE, PIPELINE_0, PIPELINE_1
15149
15158
  # program_number: 1, # required
15150
15159
  # service_descriptor: {
15151
15160
  # provider_name: "__stringMax256", # required
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-medialive
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.40.0
4
+ version: 1.41.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-17 00:00:00.000000000 Z
11
+ date: 2020-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core