update_flow
async
¶
update_flow(
flow_arn: FlowArn,
*,
config_overrides: Optional[AsyncMediaConnectClientConfig] = 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/async_media_connect.py
1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 | |