Class TransitEncryption.Builder
java.lang.Object
software.amazon.awscdk.services.mediaconnect.alpha.TransitEncryption.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TransitEncryption>
- Enclosing interface:
TransitEncryption
@Stability(Experimental)
public static final class TransitEncryption.Builder
extends Object
implements software.amazon.jsii.Builder<TransitEncryption>
A builder for
TransitEncryption-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofTransitEncryption.getRole()Sets the value ofTransitEncryption.getSecret()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
secret
Sets the value ofTransitEncryption.getSecret()- Parameters:
secret- Secrets Manager secret containing the transit encryption key. This parameter is required.- Returns:
this
-
role
Sets the value ofTransitEncryption.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<TransitEncryption>- Returns:
- a new instance of
TransitEncryption - Throws:
NullPointerException- if any required attribute was not provided
-