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

A color space correction rule.

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

## 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';

declare const colorSpace: medialive_alpha.ColorSpace;
declare const lut: medialive_alpha.Lut;
const colorCorrection: medialive_alpha.ColorCorrection = {
  inputColorSpace: colorSpace,
  outputColorSpace: colorSpace,

  // the properties below are optional
  lut: lut,
};
```

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

# color_space: medialive_alpha.ColorSpace
# lut: medialive_alpha.Lut

color_correction = medialive_alpha.ColorCorrection(
    input_color_space=color_space,
    output_color_space=color_space,

    # the properties below are optional
    lut=lut
)
```

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

ColorSpace colorSpace;
Lut lut;

ColorCorrection colorCorrection = ColorCorrection.builder()
        .inputColorSpace(colorSpace)
        .outputColorSpace(colorSpace)

        // the properties below are optional
        .lut(lut)
        .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;

ColorSpace colorSpace;
Lut lut;

var colorCorrection = new ColorCorrection {
    InputColorSpace = colorSpace,
    OutputColorSpace = colorSpace,

    // the properties below are optional
    Lut = lut
};
```

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"

var colorSpace ColorSpace
var lut Lut

colorCorrection := &ColorCorrection{
	InputColorSpace: colorSpace,
	OutputColorSpace: colorSpace,

	// the properties below are optional
	Lut: lut,
}
```

## Properties

- `inputColorSpace`: [ColorSpace](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.ColorSpace.html) (required) — The input color space to match.

- `lut`: [Lut](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.Lut.html) — The 3D LUT file for the color correction.

  **Default:** no LUT file

  MediaLive reads the LUT from S3 at runtime, so it
  must be an S3 location — provide it via `Lut.fromBucket()` (which uses the secure `s3ssl://`
  form and auto-grants the channel role read access) or `Lut.url()` with an `s3://`/`s3ssl://` URL.

- `outputColorSpace`: [ColorSpace](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.ColorSpace.html) (required) — The output color space to convert to.
