Class CfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.mediapackagev2.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()drmSystems(List<String> drmSystems) Sets the value ofCfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.getDrmSystems()encryptionContractConfiguration(CfnOriginEndpointPropsMixin.EncryptionContractConfigurationProperty encryptionContractConfiguration) encryptionContractConfiguration(IResolvable encryptionContractConfiguration) resourceId(String resourceId) Sets the value ofCfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.getResourceId()Sets the value ofCfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.getRoleArn()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 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
-
drmSystems
@Stability(Stable) public CfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.Builder drmSystems(List<String> drmSystems) Sets the value ofCfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.getDrmSystems()- Parameters:
drmSystems- The DRM solution provider you're using to protect your content during distribution.- Returns:
this
-
encryptionContractConfiguration
@Stability(Stable) public CfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.Builder encryptionContractConfiguration(IResolvable encryptionContractConfiguration) Sets the value ofCfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.getEncryptionContractConfiguration()- Parameters:
encryptionContractConfiguration- The encryption contract configuration associated with the SPEKE key provider.- Returns:
this
-
encryptionContractConfiguration
@Stability(Stable) public CfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.Builder encryptionContractConfiguration(CfnOriginEndpointPropsMixin.EncryptionContractConfigurationProperty encryptionContractConfiguration) Sets the value ofCfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.getEncryptionContractConfiguration()- Parameters:
encryptionContractConfiguration- The encryption contract configuration associated with the SPEKE key provider.- Returns:
this
-
resourceId
@Stability(Stable) public CfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.Builder resourceId(String resourceId) Sets the value ofCfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.getResourceId()- Parameters:
resourceId- The unique identifier for the content. The service sends this identifier to the key server to identify the current endpoint. How unique you make this identifier 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- 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 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- Returns:
this
-
url
@Stability(Stable) public CfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.Builder url(String url) Sets the value ofCfnOriginEndpointPropsMixin.SpekeKeyProviderProperty.getUrl()- Parameters:
url- The URL of the SPEKE key provider.- 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
-