Skip to content
v2.277.0

Experimental

@aws-cdk/aws-mediaconnect-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

EncryptionAlgorithm Class ​

Encryption Algorithms used in AWS Elemental MediaConnect.

Example ​

ts
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,
  },
});
python
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
    )
)
java
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();
csharp
// 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
    }
});
go
// 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 ​

valuestringvaluestrvalueStringValuestringValue*string #
The encryption algorithm string value.

Methods ​

of(value: string): EncryptionAlgorithm // chainable@staticmethod def of(value: str) -> EncryptionAlgorithmpublic static EncryptionAlgorithm of(String value)public static EncryptionAlgorithm Of(string value)func Of(Value *string) EncryptionAlgorithm static #
Use a custom encryption algorithm value.
1 parameter

Parameters

  • valuevaluevaluevalueValue — The encryption algorithm string value.
toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string #
Returns the string value.