Class: AWSCDK::MediaConnect::CfnFlow::MediaStreamProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_connect/cfn_flow.rb

Overview

A media stream represents one component of your content, such as video, audio, or ancillary data.

After you add a media stream to your flow, you can associate it with sources and outputs that use the ST 2110 JPEG XS or CDI protocol.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(media_stream_id:, media_stream_name:, media_stream_type:, attributes: nil, clock_rate: nil, description: nil, fmt: nil, tags: nil, video_format: nil) ⇒ MediaStreamProperty

Returns a new instance of MediaStreamProperty.

Parameters:

  • media_stream_id (Numeric)

    A unique identifier for the media stream.

  • media_stream_name (String)

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

  • media_stream_type (String)

    The type of media stream.

  • attributes (AWSCDK::IResolvable, AWSCDK::MediaConnect::CfnFlow::MediaStreamAttributesProperty, nil) (defaults to: nil)

    Attributes that are related to the media stream.

  • clock_rate (Numeric, nil) (defaults to: nil)

    The sample rate for the stream.

  • description (String, nil) (defaults to: nil)

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

  • fmt (Numeric, nil) (defaults to: nil)

    The format type number (sometimes referred to as RTP payload type) of the media stream.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    Key-value pairs that can be used to tag this media stream.

  • video_format (String, nil) (defaults to: nil)

    The resolution of the video.



1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
# File 'media_connect/cfn_flow.rb', line 1479

def initialize(media_stream_id:, media_stream_name:, media_stream_type:, attributes: nil, clock_rate: nil, description: nil, fmt: nil, tags: nil, video_format: nil)
  @media_stream_id = media_stream_id
  Jsii::Type.check_type(@media_stream_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "mediaStreamId")
  @media_stream_name = media_stream_name
  Jsii::Type.check_type(@media_stream_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mediaStreamName")
  @media_stream_type = media_stream_type
  Jsii::Type.check_type(@media_stream_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mediaStreamType")
  @attributes = attributes.is_a?(Hash) ? ::AWSCDK::MediaConnect::CfnFlow::MediaStreamAttributesProperty.new(**attributes.transform_keys(&:to_sym)) : attributes
  Jsii::Type.check_type(@attributes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWNvbm5lY3QuQ2ZuRmxvdy5NZWRpYVN0cmVhbUF0dHJpYnV0ZXNQcm9wZXJ0eSJ9XX19")), "attributes") unless @attributes.nil?
  @clock_rate = clock_rate
  Jsii::Type.check_type(@clock_rate, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "clockRate") unless @clock_rate.nil?
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @fmt = fmt
  Jsii::Type.check_type(@fmt, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "fmt") unless @fmt.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
  @video_format = video_format
  Jsii::Type.check_type(@video_format, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "videoFormat") unless @video_format.nil?
end

Instance Attribute Details

#attributesAWSCDK::IResolvable, ... (readonly)

Attributes that are related to the media stream.



1519
1520
1521
# File 'media_connect/cfn_flow.rb', line 1519

def attributes
  @attributes
end

#clock_rateNumeric? (readonly)

The sample rate for the stream.

This value is measured in Hz.



1526
1527
1528
# File 'media_connect/cfn_flow.rb', line 1526

def clock_rate
  @clock_rate
end

#descriptionString? (readonly)

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



1531
1532
1533
# File 'media_connect/cfn_flow.rb', line 1531

def description
  @description
end

#fmtNumeric? (readonly)

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.



1538
1539
1540
# File 'media_connect/cfn_flow.rb', line 1538

def fmt
  @fmt
end

#media_stream_idNumeric (readonly)

A unique identifier for the media stream.



1504
1505
1506
# File 'media_connect/cfn_flow.rb', line 1504

def media_stream_id
  @media_stream_id
end

#media_stream_nameString (readonly)

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



1509
1510
1511
# File 'media_connect/cfn_flow.rb', line 1509

def media_stream_name
  @media_stream_name
end

#media_stream_typeString (readonly)

The type of media stream.



1514
1515
1516
# File 'media_connect/cfn_flow.rb', line 1514

def media_stream_type
  @media_stream_type
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

Key-value pairs that can be used to tag this media stream.



1543
1544
1545
# File 'media_connect/cfn_flow.rb', line 1543

def tags
  @tags
end

#video_formatString? (readonly)

The resolution of the video.



1548
1549
1550
# File 'media_connect/cfn_flow.rb', line 1548

def video_format
  @video_format
end

Class Method Details

.jsii_propertiesObject



1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
# File 'media_connect/cfn_flow.rb', line 1550

def self.jsii_properties
  {
    :media_stream_id => "mediaStreamId",
    :media_stream_name => "mediaStreamName",
    :media_stream_type => "mediaStreamType",
    :attributes => "attributes",
    :clock_rate => "clockRate",
    :description => "description",
    :fmt => "fmt",
    :tags => "tags",
    :video_format => "videoFormat",
  }
end

Instance Method Details

#to_jsiiObject



1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
# File 'media_connect/cfn_flow.rb', line 1564

def to_jsii
  result = {}
  result.merge!({
    "mediaStreamId" => @media_stream_id,
    "mediaStreamName" => @media_stream_name,
    "mediaStreamType" => @media_stream_type,
    "attributes" => @attributes,
    "clockRate" => @clock_rate,
    "description" => @description,
    "fmt" => @fmt,
    "tags" => @tags,
    "videoFormat" => @video_format,
  })
  result.compact
end