Class: AWSCDK::MediaPackagev2::CfnOriginEndpoint::DashBaseURLProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_packagev2/cfn_origin_endpoint.rb

Overview

The base URLs to use for retrieving segments.

You can specify multiple locations and indicate the priority and weight for when each should be used, for use in mutli-CDN workflows.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url:, dvb_priority: nil, dvb_weight: nil, service_location: nil) ⇒ DashBaseURLProperty

Returns a new instance of DashBaseURLProperty.

Parameters:

  • url (String)

    A source location for segments.

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

    For use with DVB-DASH profiles only.

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

    For use with DVB-DASH profiles only.

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

    The name of the source location.



766
767
768
769
770
771
772
773
774
775
# File 'media_packagev2/cfn_origin_endpoint.rb', line 766

def initialize(url:, dvb_priority: nil, dvb_weight: nil, service_location: nil)
  @url = url
  Jsii::Type.check_type(@url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "url")
  @dvb_priority = dvb_priority
  Jsii::Type.check_type(@dvb_priority, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "dvbPriority") unless @dvb_priority.nil?
  @dvb_weight = dvb_weight
  Jsii::Type.check_type(@dvb_weight, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "dvbWeight") unless @dvb_weight.nil?
  @service_location = service_location
  Jsii::Type.check_type(@service_location, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serviceLocation") unless @service_location.nil?
end

Instance Attribute Details

#dvb_priorityNumeric? (readonly)

For use with DVB-DASH profiles only.

The priority of this location for servings segments. The lower the number, the higher the priority.



788
789
790
# File 'media_packagev2/cfn_origin_endpoint.rb', line 788

def dvb_priority
  @dvb_priority
end

#dvb_weightNumeric? (readonly)

For use with DVB-DASH profiles only.

The weighting for source locations that have the same priority.



795
796
797
# File 'media_packagev2/cfn_origin_endpoint.rb', line 795

def dvb_weight
  @dvb_weight
end

#service_locationString? (readonly)

The name of the source location.



800
801
802
# File 'media_packagev2/cfn_origin_endpoint.rb', line 800

def service_location
  @service_location
end

#urlString (readonly)

A source location for segments.



781
782
783
# File 'media_packagev2/cfn_origin_endpoint.rb', line 781

def url
  @url
end

Class Method Details

.jsii_propertiesObject



802
803
804
805
806
807
808
809
# File 'media_packagev2/cfn_origin_endpoint.rb', line 802

def self.jsii_properties
  {
    :url => "url",
    :dvb_priority => "dvbPriority",
    :dvb_weight => "dvbWeight",
    :service_location => "serviceLocation",
  }
end

Instance Method Details

#to_jsiiObject



811
812
813
814
815
816
817
818
819
820
# File 'media_packagev2/cfn_origin_endpoint.rb', line 811

def to_jsii
  result = {}
  result.merge!({
    "url" => @url,
    "dvbPriority" => @dvb_priority,
    "dvbWeight" => @dvb_weight,
    "serviceLocation" => @service_location,
  })
  result.compact
end