Experimental
@aws-cdk/aws-mediaconnect-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
StaticKeyEncryption Struct
Static key encryption/decryption configuration for Zixi protocol sources and outputs, and flow entitlements.
The secret must live in the same AWS account and Region as the resource (source, output, or entitlement) that uses it. MediaConnect does not support cross-account or cross-Region secrets.
Example
declare const stack: Stack;
declare const flow: Flow;
declare const role: iam.IRole;
declare const secret: secretsmanager.ISecret;
const entitlement = new FlowEntitlement(stack, 'MyEntitlement', {
flow: flow,
description: 'Grant partner access to live feed',
subscribers: ['111122223333'],
encryption: {
role,
secret,
algorithm: EncryptionAlgorithm.AES256,
},
});
from aws_cdk.aws_mediaconnect_alpha import StaticKeyEncryption
# stack: Stack
# flow: Flow
# role: iam.IRole
# secret: secretsmanager.ISecret
entitlement = FlowEntitlement(stack, "MyEntitlement",
flow=flow,
description="Grant partner access to live feed",
subscribers=["111122223333"],
encryption=StaticKeyEncryption(
role=role,
secret=secret,
algorithm=EncryptionAlgorithm.AES256
)
)
Stack stack;
Flow flow;
IRole role;
ISecret secret;
FlowEntitlement entitlement = FlowEntitlement.Builder.create(stack, "MyEntitlement")
.flow(flow)
.description("Grant partner access to live feed")
.subscribers(List.of("111122223333"))
.encryption(StaticKeyEncryption.builder()
.role(role)
.secret(secret)
.algorithm(EncryptionAlgorithm.AES256)
.build())
.build();
// Install: dotnet add package Amazon.CDK.AWS.MediaConnect.Alpha
Stack stack;
Flow flow;
IRole role;
ISecret secret;
var entitlement = new FlowEntitlement(stack, "MyEntitlement", new FlowEntitlementProps {
Flow = flow,
Description = "Grant partner access to live feed",
Subscribers = new [] { "111122223333" },
Encryption = new StaticKeyEncryption {
Role = role,
Secret = secret,
Algorithm = EncryptionAlgorithm.AES256
}
});
// Install: go get github.com/aws/aws-cdk-go/awsmediaconnectalpha/v2
var stack Stack
var flow Flow
var role IRole
var secret ISecret
entitlement := awsmediaconnectalpha.NewFlowEntitlement(stack, jsii.String("MyEntitlement"), &FlowEntitlementProps{
Flow: flow,
Description: jsii.String("Grant partner access to live feed"),
Subscribers: []*string{
jsii.String("111122223333"),
},
Encryption: &StaticKeyEncryption{
Role: *Role,
Secret: *Secret,
Algorithm: awsmediaconnectalpha.EncryptionAlgorithm_AES256(),
},
})
Properties
algorithmEncryptionAlgorithmalgorithmEncryptionAlgorithmalgorithmEncryptionAlgorithmAlgorithmEncryptionAlgorithmAlgorithmEncryptionAlgorithmrequired#Default: a scoped role is auto-created with read access to the secret (including kms:Decrypt for a customer-managed key) and a confused-deputy trust condition. See the Encryption section of the module README for the generated trust policy.
If provided, the role is used as-is; you must grant it the necessary permissions yourself.