Class CfnPackagingConfiguration.SpekeKeyProviderProperty.Builder
java.lang.Object
software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.SpekeKeyProviderProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPackagingConfiguration.SpekeKeyProviderProperty>
- Enclosing interface:
CfnPackagingConfiguration.SpekeKeyProviderProperty
@Stability(Stable)
public static final class CfnPackagingConfiguration.SpekeKeyProviderProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPackagingConfiguration.SpekeKeyProviderProperty>
A builder for
CfnPackagingConfiguration.SpekeKeyProviderProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.encryptionContractConfiguration
(IResolvable encryptionContractConfiguration) encryptionContractConfiguration
(CfnPackagingConfiguration.EncryptionContractConfigurationProperty encryptionContractConfiguration) Sets the value ofCfnPackagingConfiguration.SpekeKeyProviderProperty.getRoleArn()
Sets the value ofCfnPackagingConfiguration.SpekeKeyProviderProperty.getSystemIds()
Sets the value ofCfnPackagingConfiguration.SpekeKeyProviderProperty.getUrl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
@Stability(Stable) public CfnPackagingConfiguration.SpekeKeyProviderProperty.Builder roleArn(String roleArn) Sets the value ofCfnPackagingConfiguration.SpekeKeyProviderProperty.getRoleArn()
- Parameters:
roleArn
- The ARN for the IAM role that's granted by the key provider to provide access to the key provider API. This parameter is required. Valid format: arn:aws:iam::{accountID}:role/{name}- Returns:
this
-
systemIds
@Stability(Stable) public CfnPackagingConfiguration.SpekeKeyProviderProperty.Builder systemIds(List<String> systemIds) Sets the value ofCfnPackagingConfiguration.SpekeKeyProviderProperty.getSystemIds()
- Parameters:
systemIds
- List of unique identifiers for the DRM systems to use, as defined in the CPIX specification. This parameter is required.- Returns:
this
-
url
@Stability(Stable) public CfnPackagingConfiguration.SpekeKeyProviderProperty.Builder url(String url) Sets the value ofCfnPackagingConfiguration.SpekeKeyProviderProperty.getUrl()
- Parameters:
url
- URL for the key provider's key retrieval API endpoint. This parameter is required. Must start with https://.- Returns:
this
-
encryptionContractConfiguration
@Stability(Stable) public CfnPackagingConfiguration.SpekeKeyProviderProperty.Builder encryptionContractConfiguration(IResolvable encryptionContractConfiguration) Sets the value ofCfnPackagingConfiguration.SpekeKeyProviderProperty.getEncryptionContractConfiguration()
- Parameters:
encryptionContractConfiguration
- UseencryptionContractConfiguration
to 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.- Returns:
this
-
encryptionContractConfiguration
@Stability(Stable) public CfnPackagingConfiguration.SpekeKeyProviderProperty.Builder encryptionContractConfiguration(CfnPackagingConfiguration.EncryptionContractConfigurationProperty encryptionContractConfiguration) Sets the value ofCfnPackagingConfiguration.SpekeKeyProviderProperty.getEncryptionContractConfiguration()
- Parameters:
encryptionContractConfiguration
- UseencryptionContractConfiguration
to 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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPackagingConfiguration.SpekeKeyProviderProperty>
- Returns:
- a new instance of
CfnPackagingConfiguration.SpekeKeyProviderProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-