# StaticKeySettingsProperty

Struct · External

The static key settings.

The parent of this entity is KeyProviderSettings.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_medialive as medialive } from 'aws-cdk-lib';
const staticKeySettingsProperty: medialive.CfnChannel.StaticKeySettingsProperty = {
  keyProviderServer: {
    passwordParam: 'passwordParam',
    uri: 'uri',
    username: 'username',
  },
  staticKeyValue: 'staticKeyValue',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_medialive as medialive

static_key_settings_property = medialive.CfnChannel.StaticKeySettingsProperty(
    key_provider_server=medialive.CfnChannel.InputLocationProperty(
        password_param="passwordParam",
        uri="uri",
        username="username"
    ),
    static_key_value="staticKeyValue"
)
```

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.*;

StaticKeySettingsProperty staticKeySettingsProperty = StaticKeySettingsProperty.builder()
        .keyProviderServer(InputLocationProperty.builder()
                .passwordParam("passwordParam")
                .uri("uri")
                .username("username")
                .build())
        .staticKeyValue("staticKeyValue")
        .build();
```

C#:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaLive;

var staticKeySettingsProperty = new StaticKeySettingsProperty {
    KeyProviderServer = new InputLocationProperty {
        PasswordParam = "passwordParam",
        Uri = "uri",
        Username = "username"
    },
    StaticKeyValue = "staticKeyValue"
};
```

Go:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

staticKeySettingsProperty := &StaticKeySettingsProperty{
	KeyProviderServer: &InputLocationProperty{
		PasswordParam: jsii.String("passwordParam"),
		Uri: jsii.String("uri"),
		Username: jsii.String("username"),
	},
	StaticKeyValue: jsii.String("staticKeyValue"),
}
```

## Properties

- `keyProviderServer`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnChannel.InputLocationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_medialive.CfnChannel.InputLocationProperty.html) — The URL of the license server that is used for protecting content.

- `staticKeyValue`: string — The static key value as a 32 character hexadecimal string.
