View a markdown version of this page

AWS::MediaConnect::FlowMediaStream - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.

AWS::MediaConnect::FlowMediaStream

Adds media streams to an existing flow. After you add a media stream to a flow, you can associate it with a source and/or an output that uses the ST 2110 JPEG XS or CDI protocol.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::MediaConnect::FlowMediaStream", "Properties" : { "Attributes" : MediaStreamAttributes, "ClockRate" : Integer, "Description" : String, "FlowArn" : String, "MediaStreamId" : Integer, "MediaStreamName" : String, "MediaStreamType" : String, "Tags" : [ Tag, ... ], "VideoFormat" : String } }

YAML

Type: AWS::MediaConnect::FlowMediaStream Properties: Attributes: MediaStreamAttributes ClockRate: Integer Description: String FlowArn: String MediaStreamId: Integer MediaStreamName: String MediaStreamType: String Tags: - Tag VideoFormat: String

Properties

Attributes

The attributes that you want to assign to the new media stream.

Required: No

Type: MediaStreamAttributes

Update requires: No interruption

ClockRate

The sample rate (in Hz) for the stream. If the media stream type is video or ancillary data, set this value to 90000. If the media stream type is audio, set this value to either 48000 or 96000.

Required: No

Type: Integer

Update requires: No interruption

Description

A description that can help you quickly identify what your media stream is used for.

Required: No

Type: String

Update requires: No interruption

FlowArn

The Amazon Resource Name (ARN) of the flow.

Required: Yes

Type: String

Pattern: ^arn:(aws[a-zA-Z-]*):mediaconnect:[a-z0-9-]+:[0-9]{12}:flow:[a-zA-Z0-9-]+:[a-zA-Z0-9_-]+$

Update requires: Replacement

MediaStreamId

A unique identifier for the media stream.

Required: Yes

Type: Integer

Update requires: Replacement

MediaStreamName

A name that helps you distinguish one media stream from another.

Required: Yes

Type: String

Update requires: Replacement

MediaStreamType

The type of media stream.

Required: Yes

Type: String

Allowed values: video | audio | ancillary-data

Update requires: No interruption

Tags

An array of key-value pairs to apply to this resource.

For more information, see Resource tags.

Required: No

Type: Array of Tag

Update requires: No interruption

VideoFormat

The resolution of the video.

Required: No

Type: String

Update requires: No interruption

Return values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the media stream ARN. For example:

{ "Ref": "arn:aws:mediaconnect:us-east-1:111122223333:flow:1-23aBC45dEF67hiJ8-12AbC34DE5fG:BasketballGame/mediaStream/Video1" }

For more information about using the Ref function, see Ref.

Fn::GetAtt

Arn

The Amazon Resource Name (ARN) of the media stream.

Fmt

The format type number (sometimes referred to as RTP payload type) of the media stream. MediaConnect assigns this value to the media stream. For ST 2110 JPEG XS outputs, you need to provide this value to the receiver.