Experimental
@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
SrtDecryptionAlgorithm Class
The encryption algorithm for SRT decryption.
| Stability | Experimental |
|---|---|
| Source | lib/input.ts |
Example
ts
declare const stack: Stack;
declare const passphrase: secretsmanager.ISecret;
const sg = new medialive.InputSecurityGroup(stack, 'SrtSg', {
allowlistRules: ['203.0.113.0/24'],
});
new medialive.Input(stack, 'SrtListenerInput', {
inputName: 'srt-listener',
input: medialive.InputConfiguration.srtListener({
inputSecurityGroups: [sg],
minimumLatency: Duration.millis(500),
streamId: 'my-stream-id',
decryption: {
algorithm: medialive.SrtDecryptionAlgorithm.AES256,
passphraseSecret: passphrase,
},
}),
});
python
# stack: Stack
# passphrase: secretsmanager.ISecret
sg = medialive.InputSecurityGroup(stack, "SrtSg",
allowlist_rules=["203.0.113.0/24"]
)
medialive.Input(stack, "SrtListenerInput",
input_name="srt-listener",
input=medialive.InputConfiguration.srt_listener(
input_security_groups=[sg],
minimum_latency=Duration.millis(500),
stream_id="my-stream-id",
decryption=medialive.SrtDecryptionProps(
algorithm=medialive.SrtDecryptionAlgorithm.AES256,
passphrase_secret=passphrase
)
)
)
java
Stack stack;
ISecret passphrase;
InputSecurityGroup sg = InputSecurityGroup.Builder.create(stack, "SrtSg")
.allowlistRules(List.of("203.0.113.0/24"))
.build();
Input.Builder.create(stack, "SrtListenerInput")
.inputName("srt-listener")
.input(InputConfiguration.srtListener(SrtListenerInputProps.builder()
.inputSecurityGroups(List.of(sg))
.minimumLatency(Duration.millis(500))
.streamId("my-stream-id")
.decryption(SrtDecryptionProps.builder()
.algorithm(SrtDecryptionAlgorithm.AES256)
.passphraseSecret(passphrase)
.build())
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaLive.Alpha
Stack stack;
ISecret passphrase;
var sg = new InputSecurityGroup(stack, "SrtSg", new InputSecurityGroupProps {
AllowlistRules = new [] { "203.0.113.0/24" }
});
new Input(stack, "SrtListenerInput", new InputProps {
InputName = "srt-listener",
Input = InputConfiguration.SrtListener(new SrtListenerInputProps {
InputSecurityGroups = new [] { sg },
MinimumLatency = Duration.Millis(500),
StreamId = "my-stream-id",
Decryption = new SrtDecryptionProps {
Algorithm = SrtDecryptionAlgorithm.AES256,
PassphraseSecret = passphrase
}
})
});
go
// Install: go get github.com/aws/aws-cdk-go/awsmedialivealpha/v2
var stack Stack
var passphrase ISecret
sg := medialive.NewInputSecurityGroup(stack, jsii.String("SrtSg"), &InputSecurityGroupProps{
AllowlistRules: []*string{
jsii.String("203.0.113.0/24"),
},
})
medialive.NewInput(stack, jsii.String("SrtListenerInput"), &InputProps{
InputName: jsii.String("srt-listener"),
Input: medialive.InputConfiguration_SrtListener(&SrtListenerInputProps{
InputSecurityGroups: []IInputSecurityGroupRef{
sg,
},
MinimumLatency: awscdk.Duration_Millis(jsii.Number(500)),
StreamId: jsii.String("my-stream-id"),
Decryption: &SrtDecryptionProps{
Algorithm: medialive.SrtDecryptionAlgorithm_AES256(),
PassphraseSecret: passphrase,
},
}),
})
Properties
AES128SrtDecryptionAlgorithmAES128SrtDecryptionAlgorithmAES128SrtDecryptionAlgorithmAES128SrtDecryptionAlgorithmAES128SrtDecryptionAlgorithm static #AES-128.
AES192SrtDecryptionAlgorithmAES192SrtDecryptionAlgorithmAES192SrtDecryptionAlgorithmAES192SrtDecryptionAlgorithmAES192SrtDecryptionAlgorithm static #AES-192.
AES256SrtDecryptionAlgorithmAES256SrtDecryptionAlgorithmAES256SrtDecryptionAlgorithmAES256SrtDecryptionAlgorithmAES256SrtDecryptionAlgorithm static #AES-256.
The underlying string value passed to CloudFormation.
Methods
of(value: string): SrtDecryptionAlgorithm // chainable@staticmethod def of(value: str) -> SrtDecryptionAlgorithmpublic static SrtDecryptionAlgorithm of(String value)public static SrtDecryptionAlgorithm Of(string value)func Of(Value *string) SrtDecryptionAlgorithm static #A value not yet modelled by AWS CDK.