> **Experimental**
>
> `@aws-cdk/aws-medialive-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# HlsKeyProviderSettings

Key provider settings for HLS encryption.

Obtainable from: HlsKeyProviderSettings.staticKey

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/output-group.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-medialive-alpha/lib/output-group.ts#L311)

## Example

TypeScript:

```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:

```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:

```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());
```

C# / .NET:

```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
});
```

Golang:

```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` (static) — Use a static key for HLS encryption.
