update_flow_source
¶
update_flow_source(
flow_arn: FlowArn,
source_arn: str,
*,
config_overrides: Optional[MediaConnectClientConfig] = 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,
rtmp_push_settings: Optional[SetRtmpPushSourceSettings] = 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.
-
rtmp_push_settings(Optional[SetRtmpPushSourceSettings], default:None) –The settings for the RTMP (Real-Time Messaging Protocol) source.
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
3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 | |