#[non_exhaustive]pub struct SpekeKeyProviderBuilder { /* private fields */ }
Expand description
A builder for SpekeKeyProvider
.
Implementations§
source§impl SpekeKeyProviderBuilder
impl SpekeKeyProviderBuilder
sourcepub fn encryption_contract_configuration(
self,
input: EncryptionContractConfiguration
) -> Self
pub fn encryption_contract_configuration( self, input: EncryptionContractConfiguration ) -> Self
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.
This field is required.sourcepub fn set_encryption_contract_configuration(
self,
input: Option<EncryptionContractConfiguration>
) -> Self
pub fn set_encryption_contract_configuration( self, input: Option<EncryptionContractConfiguration> ) -> Self
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 get_encryption_contract_configuration(
&self
) -> &Option<EncryptionContractConfiguration>
pub fn get_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, input: impl Into<String>) -> Self
pub fn resource_id(self, input: impl Into<String>) -> Self
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 set_resource_id(self, input: Option<String>) -> Self
pub fn set_resource_id(self, input: Option<String>) -> Self
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 get_resource_id(&self) -> &Option<String>
pub fn get_resource_id(&self) -> &Option<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
sourcepub fn drm_systems(self, input: DrmSystem) -> Self
pub fn drm_systems(self, input: DrmSystem) -> Self
Appends an item to drm_systems
.
To override the contents of this collection use set_drm_systems
.
The DRM solution provider you're using to protect your content during distribution.
sourcepub fn set_drm_systems(self, input: Option<Vec<DrmSystem>>) -> Self
pub fn set_drm_systems(self, input: Option<Vec<DrmSystem>>) -> Self
The DRM solution provider you're using to protect your content during distribution.
sourcepub fn get_drm_systems(&self) -> &Option<Vec<DrmSystem>>
pub fn get_drm_systems(&self) -> &Option<Vec<DrmSystem>>
The DRM solution provider you're using to protect your content during distribution.
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
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 set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
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 get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<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
sourcepub fn url(self, input: impl Into<String>) -> Self
pub fn url(self, input: impl Into<String>) -> Self
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
sourcepub fn set_url(self, input: Option<String>) -> Self
pub fn set_url(self, input: Option<String>) -> Self
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
sourcepub fn get_url(&self) -> &Option<String>
pub fn get_url(&self) -> &Option<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
sourcepub fn build(self) -> Result<SpekeKeyProvider, BuildError>
pub fn build(self) -> Result<SpekeKeyProvider, BuildError>
Consumes the builder and constructs a SpekeKeyProvider
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SpekeKeyProviderBuilder
impl Clone for SpekeKeyProviderBuilder
source§fn clone(&self) -> SpekeKeyProviderBuilder
fn clone(&self) -> SpekeKeyProviderBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SpekeKeyProviderBuilder
impl Debug for SpekeKeyProviderBuilder
source§impl Default for SpekeKeyProviderBuilder
impl Default for SpekeKeyProviderBuilder
source§fn default() -> SpekeKeyProviderBuilder
fn default() -> SpekeKeyProviderBuilder
source§impl PartialEq for SpekeKeyProviderBuilder
impl PartialEq for SpekeKeyProviderBuilder
source§fn eq(&self, other: &SpekeKeyProviderBuilder) -> bool
fn eq(&self, other: &SpekeKeyProviderBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.