Class CfnFlowOutput.EncryptionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.EncryptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlowOutput.EncryptionProperty>
- Enclosing interface:
CfnFlowOutput.EncryptionProperty
@Stability(Stable)
public static final class CfnFlowOutput.EncryptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlowOutput.EncryptionProperty>
A builder for
CfnFlowOutput.EncryptionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnFlowOutput.EncryptionProperty.getAlgorithm()
build()
Builds the configured instance.Sets the value ofCfnFlowOutput.EncryptionProperty.getKeyType()
Sets the value ofCfnFlowOutput.EncryptionProperty.getRoleArn()
Sets the value ofCfnFlowOutput.EncryptionProperty.getSecretArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
Sets the value ofCfnFlowOutput.EncryptionProperty.getRoleArn()
- Parameters:
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.- Returns:
this
-
secretArn
Sets the value ofCfnFlowOutput.EncryptionProperty.getSecretArn()
- Parameters:
secretArn
- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required.- Returns:
this
-
algorithm
Sets the value ofCfnFlowOutput.EncryptionProperty.getAlgorithm()
- Parameters:
algorithm
- The type of algorithm that is used for static key encryption (such as aes128, aes192, or aes256). If you are using SPEKE or SRT-password encryption, this property must be left blank.- Returns:
this
-
keyType
Sets the value ofCfnFlowOutput.EncryptionProperty.getKeyType()
- Parameters:
keyType
- The type of key that is used for the encryption. If you don't specify akeyType
value, the service uses the default setting (static-key
). Valid key types are:static-key
,speke
, andsrt-password
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFlowOutput.EncryptionProperty>
- Returns:
- a new instance of
CfnFlowOutput.EncryptionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-