> **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.
# HlsStaticKeyProps

Properties for HLS static key encryption.

Used as argument in: [HlsKeyProviderSettings.staticKey](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.HlsKeyProviderSettings.html#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#L246)

## 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 hlsStaticKeyProps: medialive_alpha.HlsStaticKeyProps = {
  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_static_key_props = medialive_alpha.HlsStaticKeyProps(
    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;

HlsStaticKeyProps hlsStaticKeyProps = 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 hlsStaticKeyProps = 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

hlsStaticKeyProps := &HlsStaticKeyProps{
	KeyProviderServerUrl: jsii.String("keyProviderServerUrl"),
	StaticKeyValue: secretValue,
}
```

## Properties

- `keyProviderServerUrl`: string (required) — The URL of the license server that serves the static key.

  Required — MediaLive rejects this without a server URL, even though the underlying
  CloudFormation property is typed as optional.

- `staticKeyValue`: [SecretValue](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.SecretValue.html) (required) — The static key value as a 32-character hexadecimal string.
