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
Idaws.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.
regionstringAWS region.

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 flows in a region.

SELECT
region,
flow_arn,
egress_ip,
name,
availability_zone,
flow_availability_zone,
source,
source_failover_config,
vpc_interfaces,
media_streams,
maintenance
FROM aws.mediaconnect.flows
WHERE region = 'us-east-1';

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
FROM aws.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 aws.mediaconnect.flows (
Name,
Source,
region
)
SELECT
'{{ Name }}',
'{{ Source }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.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,
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

List

mediaconnect:ListFlows