Class: AWSCDK::MediaPackagev2::CfnOriginEndpoint::EncryptionMethodProperty

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

Overview

The encryption method associated with the origin endpoint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cmaf_encryption_method: nil, ism_encryption_method: nil, ts_encryption_method: nil) ⇒ EncryptionMethodProperty

Returns a new instance of EncryptionMethodProperty.

Parameters:

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

    The encryption method to use.

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

    The encryption method used for Microsoft Smooth Streaming (MSS) content.

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

    The encryption method to use.



1464
1465
1466
1467
1468
1469
1470
1471
# File 'media_packagev2/cfn_origin_endpoint.rb', line 1464

def initialize(cmaf_encryption_method: nil, ism_encryption_method: nil, ts_encryption_method: nil)
  @cmaf_encryption_method = cmaf_encryption_method
  Jsii::Type.check_type(@cmaf_encryption_method, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cmafEncryptionMethod") unless @cmaf_encryption_method.nil?
  @ism_encryption_method = ism_encryption_method
  Jsii::Type.check_type(@ism_encryption_method, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ismEncryptionMethod") unless @ism_encryption_method.nil?
  @ts_encryption_method = ts_encryption_method
  Jsii::Type.check_type(@ts_encryption_method, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tsEncryptionMethod") unless @ts_encryption_method.nil?
end

Instance Attribute Details

#cmaf_encryption_methodString? (readonly)

The encryption method to use.



1477
1478
1479
# File 'media_packagev2/cfn_origin_endpoint.rb', line 1477

def cmaf_encryption_method
  @cmaf_encryption_method
end

#ism_encryption_methodString? (readonly)

The encryption method used for Microsoft Smooth Streaming (MSS) content.

This specifies how the MSS segments are encrypted to protect the content during delivery to client players.



1484
1485
1486
# File 'media_packagev2/cfn_origin_endpoint.rb', line 1484

def ism_encryption_method
  @ism_encryption_method
end

#ts_encryption_methodString? (readonly)

The encryption method to use.



1489
1490
1491
# File 'media_packagev2/cfn_origin_endpoint.rb', line 1489

def ts_encryption_method
  @ts_encryption_method
end

Class Method Details

.jsii_propertiesObject



1491
1492
1493
1494
1495
1496
1497
# File 'media_packagev2/cfn_origin_endpoint.rb', line 1491

def self.jsii_properties
  {
    :cmaf_encryption_method => "cmafEncryptionMethod",
    :ism_encryption_method => "ismEncryptionMethod",
    :ts_encryption_method => "tsEncryptionMethod",
  }
end

Instance Method Details

#to_jsiiObject



1499
1500
1501
1502
1503
1504
1505
1506
1507
# File 'media_packagev2/cfn_origin_endpoint.rb', line 1499

def to_jsii
  result = {}
  result.merge!({
    "cmafEncryptionMethod" => @cmaf_encryption_method,
    "ismEncryptionMethod" => @ism_encryption_method,
    "tsEncryptionMethod" => @ts_encryption_method,
  })
  result.compact
end