#[non_exhaustive]pub struct EncryptionBuilder { /* private fields */ }
Expand description
A builder for Encryption
.
Implementations§
source§impl EncryptionBuilder
impl EncryptionBuilder
sourcepub fn mode(self, input: impl Into<String>) -> Self
pub fn mode(self, input: impl Into<String>) -> Self
The specific server-side encryption mode that you want Elastic Transcoder to use when decrypting your input files or encrypting your output files. Elastic Transcoder supports the following options:
-
s3: Amazon S3 creates and manages the keys used for encrypting your files.
-
s3-aws-kms: Amazon S3 calls the Amazon Key Management Service, which creates and manages the keys that are used for encrypting your files. If you specify
s3-aws-kms
and you don't want to use the default key, you must add the AWS-KMS key that you want to use to your pipeline. -
aes-cbc-pkcs7: A padded cipher-block mode of operation originally used for HLS files.
-
aes-ctr: AES Counter Mode.
-
aes-gcm: AES Galois Counter Mode, a mode of operation that is an authenticated encryption format, meaning that a file, key, or initialization vector that has been tampered with fails the decryption process.
For all three AES options, you must provide the following settings, which must be base64-encoded:
-
Key
-
Key MD5
-
Initialization Vector
For the AES modes, your private encryption keys and your unencrypted data are never stored by AWS; therefore, it is important that you safely manage your encryption keys. If you lose them, you won't be able to unencrypt your data.
sourcepub fn set_mode(self, input: Option<String>) -> Self
pub fn set_mode(self, input: Option<String>) -> Self
The specific server-side encryption mode that you want Elastic Transcoder to use when decrypting your input files or encrypting your output files. Elastic Transcoder supports the following options:
-
s3: Amazon S3 creates and manages the keys used for encrypting your files.
-
s3-aws-kms: Amazon S3 calls the Amazon Key Management Service, which creates and manages the keys that are used for encrypting your files. If you specify
s3-aws-kms
and you don't want to use the default key, you must add the AWS-KMS key that you want to use to your pipeline. -
aes-cbc-pkcs7: A padded cipher-block mode of operation originally used for HLS files.
-
aes-ctr: AES Counter Mode.
-
aes-gcm: AES Galois Counter Mode, a mode of operation that is an authenticated encryption format, meaning that a file, key, or initialization vector that has been tampered with fails the decryption process.
For all three AES options, you must provide the following settings, which must be base64-encoded:
-
Key
-
Key MD5
-
Initialization Vector
For the AES modes, your private encryption keys and your unencrypted data are never stored by AWS; therefore, it is important that you safely manage your encryption keys. If you lose them, you won't be able to unencrypt your data.
sourcepub fn get_mode(&self) -> &Option<String>
pub fn get_mode(&self) -> &Option<String>
The specific server-side encryption mode that you want Elastic Transcoder to use when decrypting your input files or encrypting your output files. Elastic Transcoder supports the following options:
-
s3: Amazon S3 creates and manages the keys used for encrypting your files.
-
s3-aws-kms: Amazon S3 calls the Amazon Key Management Service, which creates and manages the keys that are used for encrypting your files. If you specify
s3-aws-kms
and you don't want to use the default key, you must add the AWS-KMS key that you want to use to your pipeline. -
aes-cbc-pkcs7: A padded cipher-block mode of operation originally used for HLS files.
-
aes-ctr: AES Counter Mode.
-
aes-gcm: AES Galois Counter Mode, a mode of operation that is an authenticated encryption format, meaning that a file, key, or initialization vector that has been tampered with fails the decryption process.
For all three AES options, you must provide the following settings, which must be base64-encoded:
-
Key
-
Key MD5
-
Initialization Vector
For the AES modes, your private encryption keys and your unencrypted data are never stored by AWS; therefore, it is important that you safely manage your encryption keys. If you lose them, you won't be able to unencrypt your data.
sourcepub fn key(self, input: impl Into<String>) -> Self
pub fn key(self, input: impl Into<String>) -> Self
The data encryption key that you want Elastic Transcoder to use to encrypt your output file, or that was used to encrypt your input file. The key must be base64-encoded and it must be one of the following bit lengths before being base64-encoded:
128
, 192
, or 256
.
The key must also be encrypted by using the Amazon Key Management Service.
sourcepub fn set_key(self, input: Option<String>) -> Self
pub fn set_key(self, input: Option<String>) -> Self
The data encryption key that you want Elastic Transcoder to use to encrypt your output file, or that was used to encrypt your input file. The key must be base64-encoded and it must be one of the following bit lengths before being base64-encoded:
128
, 192
, or 256
.
The key must also be encrypted by using the Amazon Key Management Service.
sourcepub fn get_key(&self) -> &Option<String>
pub fn get_key(&self) -> &Option<String>
The data encryption key that you want Elastic Transcoder to use to encrypt your output file, or that was used to encrypt your input file. The key must be base64-encoded and it must be one of the following bit lengths before being base64-encoded:
128
, 192
, or 256
.
The key must also be encrypted by using the Amazon Key Management Service.
sourcepub fn key_md5(self, input: impl Into<String>) -> Self
pub fn key_md5(self, input: impl Into<String>) -> Self
The MD5 digest of the key that you used to encrypt your input file, or that you want Elastic Transcoder to use to encrypt your output file. Elastic Transcoder uses the key digest 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 long before being base64-encoded.
sourcepub fn set_key_md5(self, input: Option<String>) -> Self
pub fn set_key_md5(self, input: Option<String>) -> Self
The MD5 digest of the key that you used to encrypt your input file, or that you want Elastic Transcoder to use to encrypt your output file. Elastic Transcoder uses the key digest 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 long before being base64-encoded.
sourcepub fn get_key_md5(&self) -> &Option<String>
pub fn get_key_md5(&self) -> &Option<String>
The MD5 digest of the key that you used to encrypt your input file, or that you want Elastic Transcoder to use to encrypt your output file. Elastic Transcoder uses the key digest 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 long before being base64-encoded.
sourcepub fn initialization_vector(self, input: impl Into<String>) -> Self
pub fn initialization_vector(self, input: impl Into<String>) -> Self
The series of random bits created by a random bit generator, unique for every encryption operation, that you used to encrypt your input files or 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 long before being base64-encoded.
sourcepub fn set_initialization_vector(self, input: Option<String>) -> Self
pub fn set_initialization_vector(self, input: Option<String>) -> Self
The series of random bits created by a random bit generator, unique for every encryption operation, that you used to encrypt your input files or 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 long before being base64-encoded.
sourcepub fn get_initialization_vector(&self) -> &Option<String>
pub fn get_initialization_vector(&self) -> &Option<String>
The series of random bits created by a random bit generator, unique for every encryption operation, that you used to encrypt your input files or 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 long before being base64-encoded.
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<EncryptionBuilder> for EncryptionBuilder
impl PartialEq<EncryptionBuilder> 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 ==
.