#[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
Use encryptionContractConfiguration to configure one or more content encryption keys for your endpoints that use SPEKE 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. Note the following considerations when using encryptionContractConfiguration: encryptionContractConfiguration can be used for DASH endpoints that use SPEKE 2.0. SPEKE 2.0 relies on the CPIX 2.3 specification. You must disable key rotation for this endpoint by setting keyRotationIntervalSeconds to 0.
sourcepub fn set_encryption_contract_configuration(
self,
input: Option<EncryptionContractConfiguration>,
) -> Self
pub fn set_encryption_contract_configuration( self, input: Option<EncryptionContractConfiguration>, ) -> Self
Use encryptionContractConfiguration to configure one or more content encryption keys for your endpoints that use SPEKE 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. Note the following considerations when using encryptionContractConfiguration: encryptionContractConfiguration can be used for DASH endpoints that use SPEKE 2.0. SPEKE 2.0 relies on the CPIX 2.3 specification. You must disable key rotation for this endpoint by setting keyRotationIntervalSeconds to 0.
sourcepub fn get_encryption_contract_configuration(
&self,
) -> &Option<EncryptionContractConfiguration>
pub fn get_encryption_contract_configuration( &self, ) -> &Option<EncryptionContractConfiguration>
Use encryptionContractConfiguration to configure one or more content encryption keys for your endpoints that use SPEKE 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. Note the following considerations when using encryptionContractConfiguration: encryptionContractConfiguration can be used for DASH endpoints that use SPEKE 2.0. SPEKE 2.0 relies on the CPIX 2.3 specification. You must disable key rotation for this endpoint by setting keyRotationIntervalSeconds to 0.
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service. This field is required.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.
sourcepub fn system_ids(self, input: impl Into<String>) -> Self
pub fn system_ids(self, input: impl Into<String>) -> Self
Appends an item to system_ids
.
To override the contents of this collection use set_system_ids
.
The system IDs to include in key requests.
sourcepub fn set_system_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_system_ids(self, input: Option<Vec<String>>) -> Self
The system IDs to include in key requests.
sourcepub fn get_system_ids(&self) -> &Option<Vec<String>>
pub fn get_system_ids(&self) -> &Option<Vec<String>>
The system IDs to include in key requests.
sourcepub fn url(self, input: impl Into<String>) -> Self
pub fn url(self, input: impl Into<String>) -> Self
The URL of the external key provider service. This field is required.
sourcepub fn set_url(self, input: Option<String>) -> Self
pub fn set_url(self, input: Option<String>) -> Self
The URL of the external key provider service.
sourcepub fn build(self) -> SpekeKeyProvider
pub fn build(self) -> SpekeKeyProvider
Consumes the builder and constructs a SpekeKeyProvider
.
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 ==
.impl StructuralPartialEq for SpekeKeyProviderBuilder
Auto Trait Implementations§
impl Freeze for SpekeKeyProviderBuilder
impl RefUnwindSafe for SpekeKeyProviderBuilder
impl Send for SpekeKeyProviderBuilder
impl Sync for SpekeKeyProviderBuilder
impl Unpin for SpekeKeyProviderBuilder
impl UnwindSafe for SpekeKeyProviderBuilder
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