> **Experimental**
>
> `@aws-cdk/aws-mediaconnect-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.
# KeyType

Key types used across AWS Elemental MediaConnect.

Obtainable from: KeyType.SRT_PASSWORD, KeyType.STATIC_KEY, KeyType.of

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

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as mediaconnect_alpha from '@aws-cdk/aws-mediaconnect-alpha';
const keyType = mediaconnect_alpha.KeyType.of('value');
```

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_mediaconnect_alpha as mediaconnect_alpha

key_type = mediaconnect_alpha.KeyType.of("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.mediaconnect.alpha.*;

KeyType keyType = KeyType.of("value");
```

C# / .NET:

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

var keyType = KeyType.Of("value");
```

Golang:

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

keyType := mediaconnect_alpha.KeyType_Of(jsii.String("value"))
```

## Properties

- `SRT_PASSWORD`: [KeyType](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-mediaconnect-alpha.KeyType.html) (static) — Option for SRT Password.

- `STATIC_KEY`: [KeyType](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-mediaconnect-alpha.KeyType.html) (static) — Option for Static Key.

- `value`: string — The key type string value.

## Methods

- `of(value: string): KeyType // chainable` (static) — Use a custom key type value.

  **Parameters**

  - `value` — The key type string value.

- `toString(): string` — Returns the string value.
