update_flow_source
async
¶
update_flow_source(
flow_arn: FlowArn,
source_arn: str,
*,
config_overrides: Optional[AsyncMediaConnectClientConfig] = None,
decryption: Optional[UpdateEncryption] = None,
description: Optional[str] = None,
entitlement_arn: Optional[str] = None,
ingest_port: Optional[int] = None,
max_bitrate: Optional[int] = None,
max_latency: Optional[int] = None,
max_sync_buffer: Optional[int] = None,
media_stream_source_configurations: Optional[
__listOfMediaStreamSourceConfigurationRequest
] = None,
min_latency: Optional[int] = None,
protocol: Optional[Protocol] = None,
sender_control_port: Optional[int] = None,
sender_ip_address: Optional[str] = None,
source_listener_address: Optional[str] = None,
source_listener_port: Optional[int] = None,
stream_id: Optional[str] = None,
vpc_interface_name: Optional[str] = None,
whitelist_cidr: Optional[str] = None,
gateway_bridge_source: Optional[UpdateGatewayBridgeSourceRequest] = None,
ndi_source_settings: Optional[NdiSourceSettings] = None,
router_integration_state: Optional[State] = None,
router_integration_transit_decryption: Optional[FlowTransitEncryption] = None,
) -> UpdateFlowSourceResponse
Updates the source of a 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:
-
decryption(Optional[UpdateEncryption], default:None) –The type of encryption that is used on the content ingested from the source.
-
description(Optional[str], default:None) –A description of the source. This description is not visible outside of the current Amazon Web Services account.
-
entitlement_arn(Optional[str], default:None) –The Amazon Resource Name (ARN) of the entitlement that allows you to subscribe to the flow. The entitlement is set by the content originator, and the ARN is generated as part of the originator's flow.
-
flow_arn(FlowArn) –The ARN of the flow that you want to update.
-
ingest_port(Optional[int], default:None) –The port that the flow listens on for incoming content. If the protocol of the source is Zixi, the port must be set to 2088.
-
max_bitrate(Optional[int], default:None) –The maximum bitrate for RIST, RTP, and RTP-FEC streams.
-
max_latency(Optional[int], default:None) –The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams.
-
max_sync_buffer(Optional[int], default:None) –The size of the buffer (in milliseconds) to use to sync incoming source data.
-
media_stream_source_configurations(Optional[__listOfMediaStreamSourceConfigurationRequest], default:None) –The media stream that is associated with the source, and the parameters for that association.
-
min_latency(Optional[int], default:None) –The minimum latency in milliseconds for SRT-based streams. In streams that use the SRT protocol, this value that you set on your MediaConnect source or output represents the minimal potential latency of that connection. The latency of the stream is set to the highest number between the sender’s minimum latency and the receiver’s minimum latency.
-
protocol(Optional[Protocol], default:None) –The protocol that the source uses to deliver the content to MediaConnect.
Elemental MediaConnect no longer supports the Fujitsu QoS protocol. This reference is maintained for legacy purposes only.
-
sender_control_port(Optional[int], default:None) –The port that the flow uses to send outbound requests to initiate connection with the sender.
-
sender_ip_address(Optional[str], default:None) –The IP address that the flow communicates with to initiate connection with the sender.
-
source_arn(str) –The ARN of the source that you want to update.
-
source_listener_address(Optional[str], default:None) –The source IP or domain name for SRT-caller protocol.
-
source_listener_port(Optional[int], default:None) –Source port for SRT-caller protocol.
-
stream_id(Optional[str], default:None) –The stream ID that you want to use for this transport. This parameter applies only to Zixi and SRT caller-based streams.
-
vpc_interface_name(Optional[str], default:None) –The name of the VPC interface that you want to send your output to.
-
whitelist_cidr(Optional[str], default:None) –The range of IP addresses that are allowed to contribute content to your source. Format the IP addresses as a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
-
gateway_bridge_source(Optional[UpdateGatewayBridgeSourceRequest], default:None) –The source configuration for cloud flows receiving a stream from a bridge.
-
ndi_source_settings(Optional[NdiSourceSettings], default:None) –The settings for the NDI source. This includes the exact name of the upstream NDI sender that you want to connect to your source.
-
router_integration_state(Optional[State], default:None) –Indicates whether to enable or disable router integration for this flow source.
-
router_integration_transit_decryption(Optional[FlowTransitEncryption], default:None) –The encryption configuration for the flow source when router integration is enabled.
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
3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 | |