update_flow
¶
update_flow(
flow_arn: FlowArn,
*,
config_overrides: Optional[MediaConnectClientConfig] = None,
source_failover_config: Optional[UpdateFailoverConfig] = None,
maintenance: Optional[UpdateMaintenance] = None,
source_monitoring_config: Optional[MonitoringConfig] = None,
ndi_config: Optional[NdiConfig] = None,
flow_size: Optional[FlowSize] = None,
encoding_config: Optional[EncodingConfig] = None,
) -> UpdateFlowResponse
Updates an existing flow.
Because UpdateFlowSources and UpdateFlow are separate operations, you can't change both the source type AND the flow size in a single request.
-
If you have a
MEDIUMflow and you want to change the flow source to NDI®:-
First, use the
UpdateFlowoperation to upgrade the flow size toLARGE. -
After that, you can then use the
UpdateFlowSourceoperation to configure the NDI source.
-
-
If you're switching from an NDI source to a transport stream (TS) source and want to downgrade the flow size:
-
First, use the
UpdateFlowSourceoperation to change the flow source type. -
After that, you can then use the
UpdateFlowoperation to downgrade the flow size toMEDIUM.
-
Parameters:
-
flow_arn(FlowArn) –The Amazon Resource Name (ARN) of the flow that you want to update.
-
source_failover_config(Optional[UpdateFailoverConfig], default:None) –The settings for source failover.
-
maintenance(Optional[UpdateMaintenance], default:None) –The maintenance setting of the flow.
-
source_monitoring_config(Optional[MonitoringConfig], default:None) –The settings for source monitoring.
-
ndi_config(Optional[NdiConfig], default:None) –Specifies the configuration settings for a flow's NDI source or output. Required when the flow includes an NDI source or output.
-
flow_size(Optional[FlowSize], default:None) –Determines the processing capacity and feature set of the flow.
Raises:
-
BadRequestException–This exception is thrown if the request contains a semantic error. The precise meaning depends on the API, and is documented in the error message.
-
ForbiddenException–You do not have sufficient access to perform this action.
-
InternalServerErrorException–The server encountered an internal error and is unable to complete the request.
-
NotFoundException–One or more of the resources in the request does not exist in the system.
-
ServiceUnavailableException–The service is currently unavailable or busy.
-
TooManyRequestsException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_mediaconnect/_services/media_connect.py
2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 | |