Skip to main content

flows

Creates, updates, deletes or gets a flow resource or lists flows in a region

Overview

Nameflows
TypeResource
DescriptionResource schema for AWS::MediaConnect::Flow
Idawscc.mediaconnect.flows

Fields

NameDatatypeDescription
flow_arnstringThe Amazon Resource Name (ARN), a unique identifier for any AWS resource, of the flow.
egress_ipstringThe IP address from which video will be sent to output destinations.
namestringThe name of the flow.
availability_zonestringThe Availability Zone that you want to create the flow in. These options are limited to the Availability Zones within the current AWS.
flow_availability_zonestringThe Availability Zone that you want to create the flow in. These options are limited to the Availability Zones within the current AWS.(ReadOnly)
sourceobjectThe source of the flow.
source_failover_configobjectThe source failover config of the flow.
vpc_interfacesarrayThe VPC interfaces that you added to this flow.
media_streamsarrayThe media streams associated with the flow. You can associate any of these media streams with sources and outputs on the flow.
maintenanceobjectThe maintenance settings you want to use for the flow.
source_monitoring_configobjectThe source monitoring config of the flow.
flow_sizestringDetermines the processing capacity and feature set of the flow. Set this optional parameter to LARGE if you want to enable NDI outputs on the flow.
ndi_configobjectSpecifies the configuration settings for NDI outputs. Required when the flow includes NDI outputs.
flow_ndi_machine_namestringA prefix for the names of the NDI sources that the flow creates.(ReadOnly)
regionstringAWS region.

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

Methods

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

SELECT examples

Gets all properties from an individual flow.

SELECT
region,
flow_arn,
egress_ip,
name,
availability_zone,
flow_availability_zone,
source,
source_failover_config,
vpc_interfaces,
media_streams,
maintenance,
source_monitoring_config,
flow_size,
ndi_config,
flow_ndi_machine_name
FROM awscc.mediaconnect.flows
WHERE region = 'us-east-1' AND data__Identifier = '<FlowArn>';

INSERT example

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

/*+ create */
INSERT INTO awscc.mediaconnect.flows (
Name,
Source,
region
)
SELECT
'{{ Name }}',
'{{ Source }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.mediaconnect.flows
WHERE data__Identifier = '<FlowArn>'
AND region = 'us-east-1';

Permissions

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

Create

mediaconnect:CreateFlow,
mediaconnect:AddFlowMediaStreams,
mediaconnect:AddFlowSources,
mediaconnect:AddFlowVpcInterfaces,
iam:PassRole

Read

mediaconnect:DescribeFlow

Update

mediaconnect:DescribeFlow,
mediaconnect:UpdateFlow,
mediaconnect:UpdateFlowSource,
mediaconnect:UpdateFlowMediaStream,
mediaconnect:AddFlowMediaStreams,
mediaconnect:RemoveFlowMediaStream,
mediaconnect:AddFlowVpcInterfaces,
mediaconnect:RemoveFlowVpcInterface

Delete

mediaconnect:DescribeFlow,
mediaconnect:DeleteFlow,
mediaconnect:RemoveFlowMediaStream,
mediaconnect:RemoveFlowOutput,
mediaconnect:RemoveFlowSource,
mediaconnect:RemoveFlowVpcInterface,
mediaconnect:RevokeFlowEntitlement

List

mediaconnect:ListFlows