Class CfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.mediapackage.mixins.CfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOriginEndpointPropsMixin.SpekeKeyProviderProperty>
- Enclosing interface:
CfnOriginEndpointPropsMixin.SpekeKeyProviderProperty
@Stability(Stable)
public static final class CfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOriginEndpointPropsMixin.SpekeKeyProviderProperty>
A builder for
CfnOriginEndpointPropsMixin.SpekeKeyProviderProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.certificateArn(String certificateArn) Sets the value ofCfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.getCertificateArn()encryptionContractConfiguration(IResolvable encryptionContractConfiguration) encryptionContractConfiguration(CfnOriginEndpointPropsMixin.EncryptionContractConfigurationProperty encryptionContractConfiguration) resourceId(String resourceId) Sets the value ofCfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.getResourceId()Sets the value ofCfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.getRoleArn()Sets the value ofCfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.getSystemIds()Sets the value ofCfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.getUrl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
certificateArn
@Stability(Stable) public CfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.Builder certificateArn(String certificateArn) Sets the value ofCfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.getCertificateArn()- Parameters:
certificateArn- The Amazon Resource Name (ARN) for the certificate that you imported to Certificate Manager to add content key encryption to this endpoint. For this feature to work, your DRM key provider must support content key encryption.- Returns:
this
-
encryptionContractConfiguration
@Stability(Stable) public CfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.Builder encryptionContractConfiguration(IResolvable encryptionContractConfiguration) Sets the value ofCfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.getEncryptionContractConfiguration()- Parameters:
encryptionContractConfiguration- UseencryptionContractConfigurationto 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 CfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.Builder encryptionContractConfiguration(CfnOriginEndpointPropsMixin.EncryptionContractConfigurationProperty encryptionContractConfiguration) Sets the value ofCfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.getEncryptionContractConfiguration()- Parameters:
encryptionContractConfiguration- UseencryptionContractConfigurationto 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
-
resourceId
@Stability(Stable) public CfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.Builder resourceId(String resourceId) Sets the value ofCfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.getResourceId()- Parameters:
resourceId- Unique identifier for this endpoint, as it is configured in the key provider service.- Returns:
this
-
roleArn
@Stability(Stable) public CfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.Builder roleArn(String roleArn) Sets the value ofCfnOriginEndpointPropsMixin.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 role must have a trust policy that allows AWS Elemental MediaPackage to assume the role, and it must have a sufficient permissions policy to allow access to the specific key retrieval URL. Valid format: arn:aws:iam::{accountID}:role/{name}- Returns:
this
-
systemIds
@Stability(Stable) public CfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.Builder systemIds(List<String> systemIds) Sets the value ofCfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.getSystemIds()- Parameters:
systemIds- List of unique identifiers for the DRM systems to use, as defined in the CPIX specification.- Returns:
this
-
url
@Stability(Stable) public CfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.Builder url(String url) Sets the value ofCfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.getUrl()- Parameters:
url- URL for the key provider’s key retrieval API endpoint. Must start with https://.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnOriginEndpointPropsMixin.SpekeKeyProviderProperty>- Returns:
- a new instance of
CfnOriginEndpointPropsMixin.SpekeKeyProviderProperty - Throws:
NullPointerException- if any required attribute was not provided
-