Struct aws_sdk_mediapackagev2::types::Encryption
source · #[non_exhaustive]pub struct Encryption {
pub constant_initialization_vector: Option<String>,
pub encryption_method: Option<EncryptionMethod>,
pub key_rotation_interval_seconds: Option<i32>,
pub speke_key_provider: Option<SpekeKeyProvider>,
}
Expand description
The parameters for encrypting content.
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.constant_initialization_vector: Option<String>
A 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with the key for encrypting content. If you don't specify a value, then MediaPackage creates the constant initialization vector (IV).
encryption_method: Option<EncryptionMethod>
The encryption method to use.
key_rotation_interval_seconds: Option<i32>
The frequency (in seconds) of key changes for live workflows, in which content is streamed real time. The service retrieves content keys before the live content begins streaming, and then retrieves them as needed over the lifetime of the workflow. By default, key rotation is set to 300 seconds (5 minutes), the minimum rotation interval, which is equivalent to setting it to 300. If you don't enter an interval, content keys aren't rotated.
The following example setting causes the service to rotate keys every thirty minutes: 1800
speke_key_provider: Option<SpekeKeyProvider>
The parameters for the SPEKE key provider.
Implementations§
source§impl Encryption
impl Encryption
sourcepub fn constant_initialization_vector(&self) -> Option<&str>
pub fn constant_initialization_vector(&self) -> Option<&str>
A 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with the key for encrypting content. If you don't specify a value, then MediaPackage creates the constant initialization vector (IV).
sourcepub fn encryption_method(&self) -> Option<&EncryptionMethod>
pub fn encryption_method(&self) -> Option<&EncryptionMethod>
The encryption method to use.
sourcepub fn key_rotation_interval_seconds(&self) -> Option<i32>
pub fn key_rotation_interval_seconds(&self) -> Option<i32>
The frequency (in seconds) of key changes for live workflows, in which content is streamed real time. The service retrieves content keys before the live content begins streaming, and then retrieves them as needed over the lifetime of the workflow. By default, key rotation is set to 300 seconds (5 minutes), the minimum rotation interval, which is equivalent to setting it to 300. If you don't enter an interval, content keys aren't rotated.
The following example setting causes the service to rotate keys every thirty minutes: 1800
sourcepub fn speke_key_provider(&self) -> Option<&SpekeKeyProvider>
pub fn speke_key_provider(&self) -> Option<&SpekeKeyProvider>
The parameters for the SPEKE key provider.
source§impl Encryption
impl Encryption
sourcepub fn builder() -> EncryptionBuilder
pub fn builder() -> EncryptionBuilder
Creates a new builder-style object to manufacture Encryption
.
Trait Implementations§
source§impl Clone for Encryption
impl Clone for Encryption
source§fn clone(&self) -> Encryption
fn clone(&self) -> Encryption
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Encryption
impl Debug for Encryption
source§impl PartialEq for Encryption
impl PartialEq for Encryption
source§fn eq(&self, other: &Encryption) -> bool
fn eq(&self, other: &Encryption) -> bool
self
and other
values to be equal, and is used
by ==
.