create_flow
¶
create_flow(
*,
config_overrides: Optional[MediaConnectClientConfig] = None,
availability_zone: Optional[str] = None,
entitlements: Optional[__listOfGrantEntitlementRequest] = None,
media_streams: Optional[__listOfAddMediaStreamRequest] = None,
name: Optional[str] = None,
outputs: Optional[__listOfAddOutputRequest] = None,
source: Optional[SetSourceRequest] = None,
source_failover_config: Optional[FailoverConfig] = None,
sources: Optional[__listOfSetSourceRequest] = None,
vpc_interfaces: Optional[__listOfVpcInterfaceRequest] = None,
maintenance: Optional[AddMaintenance] = None,
source_monitoring_config: Optional[MonitoringConfig] = None,
flow_size: Optional[FlowSize] = None,
ndi_config: Optional[NdiConfig] = None,
encoding_config: Optional[EncodingConfig] = None,
flow_tags: Optional[__mapOfString] = None,
) -> CreateFlowResponse
Creates a new flow. The request must include one source. The request optionally can include outputs (up to 50) and entitlements (up to 50).
Parameters:
-
availability_zone(Optional[str], default:None) –The Availability Zone that you want to create the flow in. These options are limited to the Availability Zones within the current Amazon Web Services Region.
-
entitlements(Optional[__listOfGrantEntitlementRequest], default:None) –The entitlements that you want to grant on a flow.
-
media_streams(Optional[__listOfAddMediaStreamRequest], default:None) –The media streams that you want to add to the flow. You can associate these media streams with sources and outputs on the flow.
-
name(Optional[str], default:None) –The name of the flow.
-
outputs(Optional[__listOfAddOutputRequest], default:None) –The outputs that you want to add to this flow.
-
source(Optional[SetSourceRequest], default:None) –The settings for the source that you want to use for the new flow.
-
source_failover_config(Optional[FailoverConfig], default:None) –The settings for source failover.
-
sources(Optional[__listOfSetSourceRequest], default:None) –The sources that are assigned to the flow.
-
vpc_interfaces(Optional[__listOfVpcInterfaceRequest], default:None) –The VPC interfaces you want on the flow.
-
maintenance(Optional[AddMaintenance], default:None) –The maintenance settings you want to use for the flow.
-
source_monitoring_config(Optional[MonitoringConfig], default:None) –The settings for source monitoring.
-
flow_size(Optional[FlowSize], default:None) –Determines the processing capacity and feature set of the flow. Set this optional parameter to
LARGEif you want to enable NDI sources or outputs on the flow. -
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_tags(Optional[__mapOfString], default:None) –The key-value pairs that can be used to tag and organize 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.
-
CreateFlow420Exception–Exception raised by Elemental MediaConnect when creating the flow. See the error message for the operation for more information on the cause of this exception.
-
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.
-
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
2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 | |