Class StaticKeyEncryption.Builder
java.lang.Object
software.amazon.awscdk.services.mediaconnect.alpha.StaticKeyEncryption.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<StaticKeyEncryption>
- Enclosing interface:
StaticKeyEncryption
@Stability(Experimental)
public static final class StaticKeyEncryption.Builder
extends Object
implements software.amazon.jsii.Builder<StaticKeyEncryption>
A builder for
StaticKeyEncryption-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalgorithm(EncryptionAlgorithm algorithm) Sets the value ofStaticKeyEncryption.getAlgorithm()build()Builds the configured instance.Sets the value ofStaticKeyEncryption.getRole()Sets the value ofStaticKeyEncryption.getSecret()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
algorithm
@Stability(Experimental) public StaticKeyEncryption.Builder algorithm(EncryptionAlgorithm algorithm) Sets the value ofStaticKeyEncryption.getAlgorithm()- Parameters:
algorithm- The encryption algorithm to use. This parameter is required.- Returns:
this
-
secret
Sets the value ofStaticKeyEncryption.getSecret()- Parameters:
secret- Secrets Manager secret containing the static encryption key. This parameter is required.- Returns:
this
-
role
Sets the value ofStaticKeyEncryption.getRole()- Parameters:
role- IAM role that MediaConnect assumes to access the Secrets Manager secret. If provided, the role is used as-is; you must grant it the necessary permissions yourself.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StaticKeyEncryption>- Returns:
- a new instance of
StaticKeyEncryption - Throws:
NullPointerException- if any required attribute was not provided
-