> **Experimental**
>
> `@aws-cdk/aws-mediapackagev2-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# InputConfiguration

Input configuration for a MediaPackage V2 Channel.

Use the static factory methods to create instances:
- InputConfiguration.hls() for HLS input
- InputConfiguration.cmaf() for CMAF input with optional CMAF-specific features

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/channel.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0-alpha.0/packages/@aws-cdk/aws-mediapackagev2-alpha/lib/channel.ts#L247)

## Example

```ts
declare const stack: Stack;
const group = new ChannelGroup(stack, 'MyChannelGroup', {
    channelGroupName: 'my-test-channel-group',
});

const channel = new Channel(stack, 'MyChannel', {
    channelGroup: group,
    channelName: 'my-testchannel',
    input: InputConfiguration.cmaf(),
});

const endpoint = new OriginEndpoint(stack, 'MyOriginEndpoint', {
    channel,
    originEndpointName: 'my-test-endpoint',
    segment: Segment.cmaf(),
    manifests: [Manifest.hls({
        manifestName: 'index',
    })],
});
```

## Properties

- `inputSwitchConfiguration`: [InputSwitchConfiguration](/cdk/api/v2/docs/@aws-cdk_aws-mediapackagev2-alpha.InputSwitchConfiguration.html) — Input switch configuration (CMAF only).

- `inputType`: [InputType](/cdk/api/v2/docs/@aws-cdk_aws-mediapackagev2-alpha.InputType.html) — The input type (HLS or CMAF).

- `outputHeaders`: [HeadersCMSD](/cdk/api/v2/docs/@aws-cdk_aws-mediapackagev2-alpha.HeadersCMSD.html)[] — Output headers configuration (CMAF only).

## Methods

- `cmaf(props?: CmafInputProps): InputConfiguration // chainable` (static) — Create a CMAF input configuration.

  **Parameters**

  - `props` — CMAF-specific configuration including input switching and output headers.

- `hls(): InputConfiguration // chainable` (static) — Create an HLS input configuration.
