public static final class CfnFlowSource.EncryptionProperty.Builder
extends java.lang.Object
CfnFlowSource.EncryptionProperty
Constructor and Description |
---|
Builder() |
public CfnFlowSource.EncryptionProperty.Builder algorithm(java.lang.String algorithm)
CfnFlowSource.EncryptionProperty.getAlgorithm()
algorithm
- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). This parameter is required.this
public CfnFlowSource.EncryptionProperty.Builder roleArn(java.lang.String roleArn)
CfnFlowSource.EncryptionProperty.getRoleArn()
roleArn
- The Amazon Resource Name (ARN) of the role that you created during setup (when you set up MediaConnect as a trusted entity). This parameter is required.this
public CfnFlowSource.EncryptionProperty.Builder constantInitializationVector(java.lang.String constantInitializationVector)
CfnFlowSource.EncryptionProperty.getConstantInitializationVector()
constantInitializationVector
- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content.
This parameter is not valid for static key encryption.this
public CfnFlowSource.EncryptionProperty.Builder deviceId(java.lang.String deviceId)
CfnFlowSource.EncryptionProperty.getDeviceId()
deviceId
- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider.
This parameter is required for SPEKE encryption and is not valid for static key encryption.this
public CfnFlowSource.EncryptionProperty.Builder keyType(java.lang.String keyType)
CfnFlowSource.EncryptionProperty.getKeyType()
keyType
- The type of key that is used for the encryption.
If you don't specify a keyType
value, the service uses the default setting ( static-key
).this
public CfnFlowSource.EncryptionProperty.Builder region(java.lang.String region)
CfnFlowSource.EncryptionProperty.getRegion()
region
- The AWS Region that the API Gateway proxy endpoint was created in.
This parameter is required for SPEKE encryption and is not valid for static key encryption.this
public CfnFlowSource.EncryptionProperty.Builder resourceId(java.lang.String resourceId)
CfnFlowSource.EncryptionProperty.getResourceId()
resourceId
- An identifier for the content.
The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.this
public CfnFlowSource.EncryptionProperty.Builder secretArn(java.lang.String secretArn)
CfnFlowSource.EncryptionProperty.getSecretArn()
secretArn
- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key.this
public CfnFlowSource.EncryptionProperty.Builder url(java.lang.String url)
CfnFlowSource.EncryptionProperty.getUrl()
url
- The URL from the API Gateway proxy that you set up to talk to your key server.
This parameter is required for SPEKE encryption and is not valid for static key encryption.this
public CfnFlowSource.EncryptionProperty build()
CfnFlowSource.EncryptionProperty
java.lang.NullPointerException
- if any required attribute was not provided