Interface TransitEncryption
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
TransitEncryption.Jsii$Proxy
Uses AWS Secrets Manager for key management.
The secret must live in the same AWS account and Region as the consuming resource. MediaConnect does not support cross-account or cross-Region secrets.
Trust-policy scope on routers. Router I/O ids are service-generated (unknown at synth
time), and pinning the live ARN would create a CloudFormation dependency cycle — so the
auto-created role pins aws:SourceArn to a wildcarded ARN (arn:...:routerInput:* /
arn:...:routerOutput:*) plus aws:SourceAccount. To pin a tighter trust policy, supply
your own role.
Example:
Stack stack;
Flow flow;
IRole role;
ISecret secret;
RouterOutput existingRouterOutput;
// Flow output to router with transit encryption
FlowOutput routerOutput = FlowOutput.Builder.create(stack, "RouterOutput")
.flow(flow)
.output(OutputConfiguration.router(RouterTransitConfig.builder()
.encryption(TransitEncryption.builder().role(role).secret(secret).build())
.build()))
.build();
// Flow source from router with transit encryption
Flow flowFromRouter = Flow.Builder.create(stack, "FlowFromRouter")
.source(SourceConfiguration.router(RouterSource.builder()
.routerOutput(existingRouterOutput)
.decryption(TransitEncryption.builder().role(role).secret(secret).build())
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forTransitEncryptionstatic final classAn implementation forTransitEncryption -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSecret
(experimental) Secrets Manager secret containing the transit encryption key. -
getRole
(experimental) 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.
Default: - a scoped role is auto-created with read access to the secret and a confused-deputy trust condition. See the **Encryption** section of the module README for the generated trust policy.
-
builder
- Returns:
- a
TransitEncryption.BuilderofTransitEncryption
-