Struct aws_sdk_mediaconnect::types::Encryption
source · #[non_exhaustive]pub struct Encryption {
pub algorithm: Option<Algorithm>,
pub constant_initialization_vector: Option<String>,
pub device_id: Option<String>,
pub key_type: Option<KeyType>,
pub region: Option<String>,
pub resource_id: Option<String>,
pub role_arn: Option<String>,
pub secret_arn: Option<String>,
pub url: Option<String>,
}
Expand description
Information about the encryption of the flow.
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.algorithm: Option<Algorithm>
The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
constant_initialization_vector: Option<String>
A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption.
device_id: Option<String>
The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption.
key_type: Option<KeyType>
The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
region: Option<String>
The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption.
resource_id: Option<String>
An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.
role_arn: Option<String>
The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
secret_arn: Option<String>
The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption.
url: Option<String>
The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption.
Implementations§
source§impl Encryption
impl Encryption
sourcepub fn algorithm(&self) -> Option<&Algorithm>
pub fn algorithm(&self) -> Option<&Algorithm>
The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
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, to be used with the key for encrypting content. This parameter is not valid for static key encryption.
sourcepub fn device_id(&self) -> Option<&str>
pub fn device_id(&self) -> Option<&str>
The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption.
sourcepub fn key_type(&self) -> Option<&KeyType>
pub fn key_type(&self) -> Option<&KeyType>
The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
sourcepub fn region(&self) -> Option<&str>
pub fn region(&self) -> Option<&str>
The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption.
sourcepub fn resource_id(&self) -> Option<&str>
pub fn resource_id(&self) -> Option<&str>
An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.
sourcepub fn role_arn(&self) -> Option<&str>
pub fn role_arn(&self) -> Option<&str>
The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
sourcepub fn secret_arn(&self) -> Option<&str>
pub fn secret_arn(&self) -> Option<&str>
The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption.
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 ==
.impl StructuralPartialEq for Encryption
Auto Trait Implementations§
impl Freeze for Encryption
impl RefUnwindSafe for Encryption
impl Send for Encryption
impl Sync for Encryption
impl Unpin for Encryption
impl UnwindSafe for Encryption
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more