Class: AWSCDK::MediaPackage::CfnPackagingConfiguration::CmafEncryptionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_package/cfn_packaging_configuration.rb

Overview

Holds encryption information so that access to the content can be controlled by a DRM solution.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(speke_key_provider:) ⇒ CmafEncryptionProperty

Returns a new instance of CmafEncryptionProperty.

Parameters:



603
604
605
606
# File 'media_package/cfn_packaging_configuration.rb', line 603

def initialize(speke_key_provider:)
  @speke_key_provider = speke_key_provider.is_a?(Hash) ? ::AWSCDK::MediaPackage::CfnPackagingConfiguration::SpekeKeyProviderProperty.new(**speke_key_provider.transform_keys(&:to_sym)) : speke_key_provider
  Jsii::Type.check_type(@speke_key_provider, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYXBhY2thZ2UuQ2ZuUGFja2FnaW5nQ29uZmlndXJhdGlvbi5TcGVrZUtleVByb3ZpZGVyUHJvcGVydHkifV19fQ==")), "spekeKeyProvider")
end

Class Method Details

.jsii_propertiesObject



614
615
616
617
618
# File 'media_package/cfn_packaging_configuration.rb', line 614

def self.jsii_properties
  {
    :speke_key_provider => "spekeKeyProvider",
  }
end

Instance Method Details

#to_jsiiObject



620
621
622
623
624
625
626
# File 'media_package/cfn_packaging_configuration.rb', line 620

def to_jsii
  result = {}
  result.merge!({
    "spekeKeyProvider" => @speke_key_provider,
  })
  result.compact
end