Struct aws_sdk_mediaconnect::types::builders::EncryptionBuilder
source · #[non_exhaustive]pub struct EncryptionBuilder { /* private fields */ }
Expand description
A builder for Encryption
.
Implementations§
source§impl EncryptionBuilder
impl EncryptionBuilder
sourcepub fn algorithm(self, input: Algorithm) -> Self
pub fn algorithm(self, input: Algorithm) -> Self
The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
sourcepub fn set_algorithm(self, input: Option<Algorithm>) -> Self
pub fn set_algorithm(self, input: Option<Algorithm>) -> Self
The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
sourcepub fn get_algorithm(&self) -> &Option<Algorithm>
pub fn get_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, input: impl Into<String>) -> Self
pub fn constant_initialization_vector(self, input: impl Into<String>) -> Self
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 set_constant_initialization_vector(self, input: Option<String>) -> Self
pub fn set_constant_initialization_vector(self, input: Option<String>) -> Self
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 get_constant_initialization_vector(&self) -> &Option<String>
pub fn get_constant_initialization_vector(&self) -> &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.
sourcepub fn device_id(self, input: impl Into<String>) -> Self
pub fn device_id(self, input: impl Into<String>) -> Self
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 set_device_id(self, input: Option<String>) -> Self
pub fn set_device_id(self, input: Option<String>) -> Self
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 get_device_id(&self) -> &Option<String>
pub fn get_device_id(&self) -> &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.
sourcepub fn key_type(self, input: KeyType) -> Self
pub fn key_type(self, input: KeyType) -> Self
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 set_key_type(self, input: Option<KeyType>) -> Self
pub fn set_key_type(self, input: Option<KeyType>) -> Self
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 get_key_type(&self) -> &Option<KeyType>
pub fn get_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, input: impl Into<String>) -> Self
pub fn region(self, input: impl Into<String>) -> Self
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 set_region(self, input: Option<String>) -> Self
pub fn set_region(self, input: Option<String>) -> Self
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 get_region(&self) -> &Option<String>
pub fn get_region(&self) -> &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.
sourcepub fn resource_id(self, input: impl Into<String>) -> Self
pub fn resource_id(self, input: impl Into<String>) -> Self
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 set_resource_id(self, input: Option<String>) -> Self
pub fn set_resource_id(self, input: Option<String>) -> Self
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 get_resource_id(&self) -> &Option<String>
pub fn get_resource_id(&self) -> &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.
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). This field is required.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
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, input: impl Into<String>) -> Self
pub fn secret_arn(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_secret_arn(self, input: Option<String>) -> Self
pub fn set_secret_arn(self, input: Option<String>) -> Self
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.
sourcepub fn get_secret_arn(&self) -> &Option<String>
pub fn get_secret_arn(&self) -> &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.
sourcepub fn url(self, input: impl Into<String>) -> Self
pub fn url(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_url(self, input: Option<String>) -> Self
pub fn set_url(self, input: Option<String>) -> Self
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.
sourcepub fn get_url(&self) -> &Option<String>
pub fn get_url(&self) -> &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.
sourcepub fn build(self) -> Encryption
pub fn build(self) -> Encryption
Consumes the builder and constructs a Encryption
.
Trait Implementations§
source§impl Clone for EncryptionBuilder
impl Clone for EncryptionBuilder
source§fn clone(&self) -> EncryptionBuilder
fn clone(&self) -> EncryptionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EncryptionBuilder
impl Debug for EncryptionBuilder
source§impl Default for EncryptionBuilder
impl Default for EncryptionBuilder
source§fn default() -> EncryptionBuilder
fn default() -> EncryptionBuilder
source§impl PartialEq for EncryptionBuilder
impl PartialEq for EncryptionBuilder
source§fn eq(&self, other: &EncryptionBuilder) -> bool
fn eq(&self, other: &EncryptionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EncryptionBuilder
Auto Trait Implementations§
impl Freeze for EncryptionBuilder
impl RefUnwindSafe for EncryptionBuilder
impl Send for EncryptionBuilder
impl Sync for EncryptionBuilder
impl Unpin for EncryptionBuilder
impl UnwindSafe for EncryptionBuilder
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