Class: AWSCDK::MediaPackagev2::CfnOriginEndpoint::EncryptionMethodProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaPackagev2::CfnOriginEndpoint::EncryptionMethodProperty
- Defined in:
- media_packagev2/cfn_origin_endpoint.rb
Overview
The encryption method associated with the origin endpoint.
Instance Attribute Summary collapse
-
#cmaf_encryption_method ⇒ String?
readonly
The encryption method to use.
-
#ism_encryption_method ⇒ String?
readonly
The encryption method used for Microsoft Smooth Streaming (MSS) content.
-
#ts_encryption_method ⇒ String?
readonly
The encryption method to use.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cmaf_encryption_method: nil, ism_encryption_method: nil, ts_encryption_method: nil) ⇒ EncryptionMethodProperty
constructor
A new instance of EncryptionMethodProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cmaf_encryption_method: nil, ism_encryption_method: nil, ts_encryption_method: nil) ⇒ EncryptionMethodProperty
Returns a new instance of EncryptionMethodProperty.
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_method ⇒ String? (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_method ⇒ String? (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_method ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |