Skip to main content

flow_sources

Creates, updates, deletes or gets a flow_source resource or lists flow_sources in a region

Overview

Nameflow_sources
TypeResource
DescriptionResource schema for AWS::MediaConnect::FlowSource
Idaws.mediaconnect.flow_sources

Fields

NameDatatypeDescription
flow_arnstringThe ARN of the flow.
source_arnstringThe ARN of the source.
decryptionobjectThe type of encryption that is used on the content ingested from this source.
descriptionstringA description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account.
entitlement_arnstringThe ARN of the entitlement that allows you to subscribe to content that comes from another AWS account. The entitlement is set by the content originator and the ARN is generated as part of the originator's flow.
gateway_bridge_sourceobjectThe source configuration for cloud flows receiving a stream from a bridge.
ingest_ipstringThe IP address that the flow will be listening on for incoming content.
ingest_portintegerThe port that the flow will be listening on for incoming content.
max_bitrateintegerThe smoothing max bitrate for RIST, RTP, and RTP-FEC streams.
max_latencyintegerThe maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams.
min_latencyintegerThe minimum latency in milliseconds.
namestringThe name of the source.
protocolstringThe protocol that is used by the source.
sender_ip_addressstringThe IP address that the flow communicates with to initiate connection with the sender for fujitsu-qos protocol.
sender_control_portintegerThe port that the flow uses to send outbound requests to initiate connection with the sender for fujitsu-qos protocol.
stream_idstringThe stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.
source_ingest_portstringThe port that the flow will be listening on for incoming content.(ReadOnly)
source_listener_addressstringSource IP or domain name for SRT-caller protocol.
source_listener_portintegerSource port for SRT-caller protocol.
vpc_interface_namestringThe name of the VPC Interface this Source is configured with.
whitelist_cidrstringThe range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, Description, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all flow_sources in a region.

SELECT
region,
flow_arn,
source_arn,
decryption,
description,
entitlement_arn,
gateway_bridge_source,
ingest_ip,
ingest_port,
max_bitrate,
max_latency,
min_latency,
name,
protocol,
sender_ip_address,
sender_control_port,
stream_id,
source_ingest_port,
source_listener_address,
source_listener_port,
vpc_interface_name,
whitelist_cidr
FROM aws.mediaconnect.flow_sources
WHERE region = 'us-east-1';

Gets all properties from an individual flow_source.

SELECT
region,
flow_arn,
source_arn,
decryption,
description,
entitlement_arn,
gateway_bridge_source,
ingest_ip,
ingest_port,
max_bitrate,
max_latency,
min_latency,
name,
protocol,
sender_ip_address,
sender_control_port,
stream_id,
source_ingest_port,
source_listener_address,
source_listener_port,
vpc_interface_name,
whitelist_cidr
FROM aws.mediaconnect.flow_sources
WHERE region = 'us-east-1' AND data__Identifier = '<SourceArn>';

INSERT example

Use the following StackQL query and manifest file to create a new flow_source resource, using stack-deploy.

/*+ create */
INSERT INTO aws.mediaconnect.flow_sources (
Description,
Name,
region
)
SELECT
'{{ Description }}',
'{{ Name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.mediaconnect.flow_sources
WHERE data__Identifier = '<SourceArn>'
AND region = 'us-east-1';

Permissions

To operate on the flow_sources resource, the following permissions are required:

Create

mediaconnect:CreateFlow,
mediaconnect:DescribeFlow,
mediaconnect:AddFlowSources,
iam:PassRole

Read

mediaconnect:DescribeFlow

Update

mediaconnect:DescribeFlow,
mediaconnect:UpdateFlowSource

Delete

mediaconnect:DescribeFlow,
mediaconnect:RemoveFlowSource

List

mediaconnect:DescribeFlow