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

A mapping from input channels to an output channel.

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

## 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';
const audioChannelMapping: medialive_alpha.AudioChannelMapping = {
  inputChannelLevels: [{
    inputChannel: 123,

    // the properties below are optional
    gain: 123,
  }],
  outputChannel: 123,
};
```

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

audio_channel_mapping = medialive_alpha.AudioChannelMapping(
    input_channel_levels=[medialive_alpha.InputChannelLevel(
        input_channel=123,

        # the properties below are optional
        gain=123
    )],
    output_channel=123
)
```

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

AudioChannelMapping audioChannelMapping = AudioChannelMapping.builder()
        .inputChannelLevels(List.of(InputChannelLevel.builder()
                .inputChannel(123)

                // the properties below are optional
                .gain(123)
                .build()))
        .outputChannel(123)
        .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;

var audioChannelMapping = new AudioChannelMapping {
    InputChannelLevels = new [] { new InputChannelLevel {
        InputChannel = 123,

        // the properties below are optional
        Gain = 123
    } },
    OutputChannel = 123
};
```

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"

audioChannelMapping := &AudioChannelMapping{
	InputChannelLevels: []InputChannelLevel{
		&InputChannelLevel{
			InputChannel: jsii.Number(123),

			// the properties below are optional
			Gain: jsii.Number(123),
		},
	},
	OutputChannel: jsii.Number(123),
}
```

## Properties

- `inputChannelLevels`: [InputChannelLevel](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.InputChannelLevel.html)[] (required) — The input channels and their gain levels to mix into this output channel.

- `outputChannel`: number (required) — The index of the output channel being produced.
