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
Idawscc.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.

For more information, see AWS::MediaConnect::FlowSource.

Methods

NameResourceAccessible byRequired Params
create_resourceflow_sourcesINSERTName, Description, region
delete_resourceflow_sourcesDELETEIdentifier, region
update_resourceflow_sourcesUPDATEIdentifier, PatchDocument, region
list_resourcesflow_sources_list_onlySELECTregion
get_resourceflow_sourcesSELECTIdentifier, region

SELECT examples

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 awscc.mediaconnect.flow_sources
WHERE
region = 'us-east-1' AND
Identifier = '{{ source_arn }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.mediaconnect.flow_sources
SET PatchDocument = string('{{ {
"FlowArn": flow_arn,
"Decryption": decryption,
"Description": description,
"EntitlementArn": entitlement_arn,
"GatewayBridgeSource": gateway_bridge_source,
"IngestPort": ingest_port,
"MaxBitrate": max_bitrate,
"MaxLatency": max_latency,
"MinLatency": min_latency,
"Protocol": protocol,
"SenderIpAddress": sender_ip_address,
"SenderControlPort": sender_control_port,
"StreamId": stream_id,
"SourceListenerAddress": source_listener_address,
"SourceListenerPort": source_listener_port,
"VpcInterfaceName": vpc_interface_name,
"WhitelistCidr": whitelist_cidr
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ source_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.mediaconnect.flow_sources
WHERE
Identifier = '{{ source_arn }}' AND
region = 'us-east-1';

Permissions

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

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