Struct aws_sdk_mediapackagev2::types::SpekeKeyProvider
source · #[non_exhaustive]pub struct SpekeKeyProvider {
pub encryption_contract_configuration: Option<EncryptionContractConfiguration>,
pub resource_id: String,
pub drm_systems: Vec<DrmSystem>,
pub role_arn: String,
pub url: String,
}
Expand description
The parameters for the SPEKE key provider.
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.encryption_contract_configuration: Option<EncryptionContractConfiguration>
Configure one or more content encryption keys for your endpoints that use SPEKE Version 2.0. The encryption contract defines which content keys are used to encrypt the audio and video tracks in your stream. To configure the encryption contract, specify which audio and video encryption presets to use.
resource_id: String
The unique identifier for the content. The service sends this to the key server to identify the current endpoint. How unique you make this depends on how fine-grained you want access controls to be. The service does not permit you to use the same ID for two simultaneous encryption processes. The resource ID is also known as the content ID.
The following example shows a resource ID: MovieNight20171126093045
drm_systems: Vec<DrmSystem>
The DRM solution provider you're using to protect your content during distribution.
role_arn: String
The ARN for the IAM role granted by the key provider that provides access to the key provider API. This role must have a trust policy that allows MediaPackage to assume the role, and it must have a sufficient permissions policy to allow access to the specific key retrieval URL. Get this from your DRM solution provider.
Valid format: arn:aws:iam::{accountID}:role/{name}
. The following example shows a role ARN: arn:aws:iam::444455556666:role/SpekeAccess
url: String
The URL of the API Gateway proxy that you set up to talk to your key server. The API Gateway proxy must reside in the same AWS Region as MediaPackage and must start with https://.
The following example shows a URL: https://1wm2dx1f33.execute-api.us-west-2.amazonaws.com/SpekeSample/copyProtection
Implementations§
source§impl SpekeKeyProvider
impl SpekeKeyProvider
sourcepub fn encryption_contract_configuration(
&self
) -> Option<&EncryptionContractConfiguration>
pub fn encryption_contract_configuration( &self ) -> Option<&EncryptionContractConfiguration>
Configure one or more content encryption keys for your endpoints that use SPEKE Version 2.0. The encryption contract defines which content keys are used to encrypt the audio and video tracks in your stream. To configure the encryption contract, specify which audio and video encryption presets to use.
sourcepub fn resource_id(&self) -> &str
pub fn resource_id(&self) -> &str
The unique identifier for the content. The service sends this to the key server to identify the current endpoint. How unique you make this depends on how fine-grained you want access controls to be. The service does not permit you to use the same ID for two simultaneous encryption processes. The resource ID is also known as the content ID.
The following example shows a resource ID: MovieNight20171126093045
sourcepub fn drm_systems(&self) -> &[DrmSystem]
pub fn drm_systems(&self) -> &[DrmSystem]
The DRM solution provider you're using to protect your content during distribution.
sourcepub fn role_arn(&self) -> &str
pub fn role_arn(&self) -> &str
The ARN for the IAM role granted by the key provider that provides access to the key provider API. This role must have a trust policy that allows MediaPackage to assume the role, and it must have a sufficient permissions policy to allow access to the specific key retrieval URL. Get this from your DRM solution provider.
Valid format: arn:aws:iam::{accountID}:role/{name}
. The following example shows a role ARN: arn:aws:iam::444455556666:role/SpekeAccess
sourcepub fn url(&self) -> &str
pub fn url(&self) -> &str
The URL of the API Gateway proxy that you set up to talk to your key server. The API Gateway proxy must reside in the same AWS Region as MediaPackage and must start with https://.
The following example shows a URL: https://1wm2dx1f33.execute-api.us-west-2.amazonaws.com/SpekeSample/copyProtection
source§impl SpekeKeyProvider
impl SpekeKeyProvider
sourcepub fn builder() -> SpekeKeyProviderBuilder
pub fn builder() -> SpekeKeyProviderBuilder
Creates a new builder-style object to manufacture SpekeKeyProvider
.
Trait Implementations§
source§impl Clone for SpekeKeyProvider
impl Clone for SpekeKeyProvider
source§fn clone(&self) -> SpekeKeyProvider
fn clone(&self) -> SpekeKeyProvider
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SpekeKeyProvider
impl Debug for SpekeKeyProvider
source§impl PartialEq for SpekeKeyProvider
impl PartialEq for SpekeKeyProvider
source§fn eq(&self, other: &SpekeKeyProvider) -> bool
fn eq(&self, other: &SpekeKeyProvider) -> bool
self
and other
values to be equal, and is used
by ==
.