Class CfnOriginEndpoint.SpekeKeyProviderProperty.Builder
java.lang.Object
software.amazon.awscdk.services.mediapackagev2.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.drmSystems
(List<String> drmSystems) Sets the value ofCfnOriginEndpoint.SpekeKeyProviderProperty.getDrmSystems()
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.getUrl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
drmSystems
@Stability(Stable) public CfnOriginEndpoint.SpekeKeyProviderProperty.Builder drmSystems(List<String> drmSystems) Sets the value ofCfnOriginEndpoint.SpekeKeyProviderProperty.getDrmSystems()
- Parameters:
drmSystems
- The DRM solution provider you're using to protect your content during distribution. This parameter is required.- Returns:
this
-
encryptionContractConfiguration
@Stability(Stable) public CfnOriginEndpoint.SpekeKeyProviderProperty.Builder encryptionContractConfiguration(IResolvable encryptionContractConfiguration) - Parameters:
encryptionContractConfiguration
- The encryption contract configuration associated with the SPEKE key provider. This parameter is required.- Returns:
this
-
encryptionContractConfiguration
@Stability(Stable) public CfnOriginEndpoint.SpekeKeyProviderProperty.Builder encryptionContractConfiguration(CfnOriginEndpoint.EncryptionContractConfigurationProperty encryptionContractConfiguration) - Parameters:
encryptionContractConfiguration
- The encryption contract configuration associated with the SPEKE key provider. This parameter is required.- Returns:
this
-
resourceId
@Stability(Stable) public CfnOriginEndpoint.SpekeKeyProviderProperty.Builder resourceId(String resourceId) Sets the value ofCfnOriginEndpoint.SpekeKeyProviderProperty.getResourceId()
- Parameters:
resourceId
- The unique identifier for the content. This parameter is required. 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 CfnOriginEndpoint.SpekeKeyProviderProperty.Builder roleArn(String roleArn) Sets the value ofCfnOriginEndpoint.SpekeKeyProviderProperty.getRoleArn()
- Parameters:
roleArn
- The ARN for the IAM role granted by the key provider that provides access to the key provider API. This parameter is required. 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
Sets the value ofCfnOriginEndpoint.SpekeKeyProviderProperty.getUrl()
- Parameters:
url
- The URL of the SPEKE key provider. This parameter is required.- 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
-