Class CfnOriginEndpoint.SpekeKeyProviderProperty.Builder
java.lang.Object
software.amazon.awscdk.services.mediapackage.CfnOriginEndpoint.SpekeKeyProviderProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOriginEndpoint.SpekeKeyProviderProperty>
- Enclosing interface:
CfnOriginEndpoint.SpekeKeyProviderProperty
@Stability(Stable)
public static final class CfnOriginEndpoint.SpekeKeyProviderProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOriginEndpoint.SpekeKeyProviderProperty>
A builder for
CfnOriginEndpoint.SpekeKeyProviderProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.certificateArn
(String certificateArn) Sets the value ofCfnOriginEndpoint.SpekeKeyProviderProperty.getCertificateArn()
encryptionContractConfiguration
(IResolvable encryptionContractConfiguration) encryptionContractConfiguration
(CfnOriginEndpoint.EncryptionContractConfigurationProperty encryptionContractConfiguration) resourceId
(String resourceId) Sets the value ofCfnOriginEndpoint.SpekeKeyProviderProperty.getResourceId()
Sets the value ofCfnOriginEndpoint.SpekeKeyProviderProperty.getRoleArn()
Sets the value ofCfnOriginEndpoint.SpekeKeyProviderProperty.getSystemIds()
Sets the value ofCfnOriginEndpoint.SpekeKeyProviderProperty.getUrl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resourceId
@Stability(Stable) public CfnOriginEndpoint.SpekeKeyProviderProperty.Builder resourceId(String resourceId) Sets the value ofCfnOriginEndpoint.SpekeKeyProviderProperty.getResourceId()
- Parameters:
resourceId
- Unique identifier for this endpoint, as it is configured in the key provider service. This parameter is required.- Returns:
this
-
roleArn
@Stability(Stable) public CfnOriginEndpoint.SpekeKeyProviderProperty.Builder roleArn(String roleArn) Sets the value ofCfnOriginEndpoint.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. 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 CfnOriginEndpoint.SpekeKeyProviderProperty.Builder systemIds(List<String> systemIds) Sets the value ofCfnOriginEndpoint.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
Sets the value ofCfnOriginEndpoint.SpekeKeyProviderProperty.getUrl()
- Parameters:
url
- URL for the key provider’s key retrieval API endpoint. This parameter is required. Must start with https://.- Returns:
this
-
certificateArn
@Stability(Stable) public CfnOriginEndpoint.SpekeKeyProviderProperty.Builder certificateArn(String certificateArn) Sets the value ofCfnOriginEndpoint.SpekeKeyProviderProperty.getCertificateArn()
- Parameters:
certificateArn
- The Amazon Resource Name (ARN) for the certificate that you imported to AWS 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 CfnOriginEndpoint.SpekeKeyProviderProperty.Builder encryptionContractConfiguration(IResolvable encryptionContractConfiguration) - 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 CfnOriginEndpoint.SpekeKeyProviderProperty.Builder encryptionContractConfiguration(CfnOriginEndpoint.EncryptionContractConfigurationProperty encryptionContractConfiguration) - 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<CfnOriginEndpoint.SpekeKeyProviderProperty>
- Returns:
- a new instance of
CfnOriginEndpoint.SpekeKeyProviderProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-