#[non_exhaustive]pub struct HlsContentProtection {
pub method: Option<String>,
pub key: Option<String>,
pub key_md5: Option<String>,
pub initialization_vector: Option<String>,
pub license_acquisition_url: Option<String>,
pub key_storage_policy: Option<String>,
}
Expand description
The HLS content protection settings, if any, that you want Elastic Transcoder to apply to your output files.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.method: Option<String>
The content protection method for your output. The only valid value is: aes-128
.
This value is written into the method attribute of the EXT-X-KEY
metadata tag in the output playlist.
key: Option<String>
If you want Elastic Transcoder to generate a key for you, leave this field blank.
If you choose to supply your own key, you must encrypt the key by using AWS KMS. The key must be base64-encoded, and it must be one of the following bit lengths before being base64-encoded:
128
, 192
, or 256
.
key_md5: Option<String>
If Elastic Transcoder is generating your key for you, you must leave this field blank.
The MD5 digest of the key that you want Elastic Transcoder to use to encrypt your output file, and that you want Elastic Transcoder to use as a checksum to make sure your key was not corrupted in transit. The key MD5 must be base64-encoded, and it must be exactly 16 bytes before being base64- encoded.
initialization_vector: Option<String>
If Elastic Transcoder is generating your key for you, you must leave this field blank.
The series of random bits created by a random bit generator, unique for every encryption operation, that you want Elastic Transcoder to use to encrypt your output files. The initialization vector must be base64-encoded, and it must be exactly 16 bytes before being base64-encoded.
license_acquisition_url: Option<String>
The location of the license key required to decrypt your HLS playlist. The URL must be an absolute path, and is referenced in the URI attribute of the EXT-X-KEY metadata tag in the playlist file.
key_storage_policy: Option<String>
Specify whether you want Elastic Transcoder to write your HLS license key to an Amazon S3 bucket. If you choose WithVariantPlaylists
, LicenseAcquisitionUrl
must be left blank and Elastic Transcoder writes your data key into the same bucket as the associated playlist.
Implementations
sourceimpl HlsContentProtection
impl HlsContentProtection
sourcepub fn method(&self) -> Option<&str>
pub fn method(&self) -> Option<&str>
The content protection method for your output. The only valid value is: aes-128
.
This value is written into the method attribute of the EXT-X-KEY
metadata tag in the output playlist.
sourcepub fn key(&self) -> Option<&str>
pub fn key(&self) -> Option<&str>
If you want Elastic Transcoder to generate a key for you, leave this field blank.
If you choose to supply your own key, you must encrypt the key by using AWS KMS. The key must be base64-encoded, and it must be one of the following bit lengths before being base64-encoded:
128
, 192
, or 256
.
sourcepub fn key_md5(&self) -> Option<&str>
pub fn key_md5(&self) -> Option<&str>
If Elastic Transcoder is generating your key for you, you must leave this field blank.
The MD5 digest of the key that you want Elastic Transcoder to use to encrypt your output file, and that you want Elastic Transcoder to use as a checksum to make sure your key was not corrupted in transit. The key MD5 must be base64-encoded, and it must be exactly 16 bytes before being base64- encoded.
sourcepub fn initialization_vector(&self) -> Option<&str>
pub fn initialization_vector(&self) -> Option<&str>
If Elastic Transcoder is generating your key for you, you must leave this field blank.
The series of random bits created by a random bit generator, unique for every encryption operation, that you want Elastic Transcoder to use to encrypt your output files. The initialization vector must be base64-encoded, and it must be exactly 16 bytes before being base64-encoded.
sourcepub fn license_acquisition_url(&self) -> Option<&str>
pub fn license_acquisition_url(&self) -> Option<&str>
The location of the license key required to decrypt your HLS playlist. The URL must be an absolute path, and is referenced in the URI attribute of the EXT-X-KEY metadata tag in the playlist file.
sourcepub fn key_storage_policy(&self) -> Option<&str>
pub fn key_storage_policy(&self) -> Option<&str>
Specify whether you want Elastic Transcoder to write your HLS license key to an Amazon S3 bucket. If you choose WithVariantPlaylists
, LicenseAcquisitionUrl
must be left blank and Elastic Transcoder writes your data key into the same bucket as the associated playlist.
sourceimpl HlsContentProtection
impl HlsContentProtection
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture HlsContentProtection
.
Trait Implementations
sourceimpl Clone for HlsContentProtection
impl Clone for HlsContentProtection
sourcefn clone(&self) -> HlsContentProtection
fn clone(&self) -> HlsContentProtection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for HlsContentProtection
impl Debug for HlsContentProtection
sourceimpl PartialEq<HlsContentProtection> for HlsContentProtection
impl PartialEq<HlsContentProtection> for HlsContentProtection
sourcefn eq(&self, other: &HlsContentProtection) -> bool
fn eq(&self, other: &HlsContentProtection) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &HlsContentProtection) -> bool
fn ne(&self, other: &HlsContentProtection) -> bool
This method tests for !=
.
impl StructuralPartialEq for HlsContentProtection
Auto Trait Implementations
impl RefUnwindSafe for HlsContentProtection
impl Send for HlsContentProtection
impl Sync for HlsContentProtection
impl Unpin for HlsContentProtection
impl UnwindSafe for HlsContentProtection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more