Experimental
@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
HlsKeyProviderSettings Class
Key provider settings for HLS encryption.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as medialive_alpha from '@aws-cdk/aws-medialive-alpha';
import * as cdk from 'aws-cdk-lib';
declare const secretValue: cdk.SecretValue;
const hlsKeyProviderSettings = medialive_alpha.HlsKeyProviderSettings.staticKey({
keyProviderServerUrl: 'keyProviderServerUrl',
staticKeyValue: secretValue,
});
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_medialive_alpha as medialive_alpha
import aws_cdk as cdk
# secret_value: cdk.SecretValue
hls_key_provider_settings = medialive_alpha.HlsKeyProviderSettings.static_key(
key_provider_server_url="keyProviderServerUrl",
static_key_value=secret_value
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.medialive.alpha.*;
import software.amazon.awscdk.*;
SecretValue secretValue;
HlsKeyProviderSettings hlsKeyProviderSettings = HlsKeyProviderSettings.staticKey(HlsStaticKeyProps.builder()
.keyProviderServerUrl("keyProviderServerUrl")
.staticKeyValue(secretValue)
.build());
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaLive.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaLive.Alpha;
using Amazon.CDK;
SecretValue secretValue;
var hlsKeyProviderSettings = HlsKeyProviderSettings.StaticKey(new HlsStaticKeyProps {
KeyProviderServerUrl = "keyProviderServerUrl",
StaticKeyValue = secretValue
});
go
// Install: go get github.com/aws/aws-cdk-go/awsmedialivealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import medialive_alpha "github.com/aws/aws-cdk-go/awsmedialivealpha"
import cdk "github.com/aws/aws-cdk-go/awscdk"
var secretValue SecretValue
hlsKeyProviderSettings := medialive_alpha.HlsKeyProviderSettings_StaticKey(&HlsStaticKeyProps{
KeyProviderServerUrl: jsii.String("keyProviderServerUrl"),
StaticKeyValue: secretValue,
})
Methods
staticKey(props: HlsStaticKeyProps): HlsKeyProviderSettings // chainable@staticmethod def static_key(props: HlsStaticKeyProps) -> HlsKeyProviderSettingspublic static HlsKeyProviderSettings staticKey(HlsStaticKeyProps props)public static HlsKeyProviderSettings StaticKey(HlsStaticKeyProps props)func StaticKey(Props HlsStaticKeyProps) HlsKeyProviderSettingsstatic#Use a static key for HLS encryption.