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

Options for Scan Mode.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/flow.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0-alpha.0/packages/@aws-cdk/aws-mediaconnect-alpha/lib/flow.ts#L533)

## Example

```ts
declare const stack: Stack;
declare const role: iam.IRole;
declare const sg1: ec2.ISecurityGroup;
declare const sg2: ec2.ISecurityGroup;
declare const subnet: ec2.ISubnet;

const efaInterface = VpcInterface.define({
  vpcInterfaceName: 'efa-interface',
  role: role,
  securityGroups: [sg1],
  subnet: subnet,
  networkInterfaceType: NetworkInterface.EFA,
});

const enaInterface = VpcInterface.define({
  vpcInterfaceName: 'ena-interface',
  role: role,
  securityGroups: [sg2],
  subnet: subnet,
  networkInterfaceType: NetworkInterface.ENA,
});

const videoStream = MediaStream.video({
  mediaStreamId: 1,
  mediaStreamName: 'video',
  videoFormat: MediaVideoFormat.UHD_2160P,
  fmtp: {
    exactFramerate: Framerate.FPS_59_94,
    par: PixelAspectRatio.SQUARE,
    colorimetry: Colorimetry.BT2020,
    videoRange: VideoRange.FULL,
    scanMode: ScanMode.PROGRESSIVE,
    tcs: Tcs.PQ,
  },
});

const flow = new Flow(stack, 'MyJpegXsFlow', {
  flowSize: FlowSize.LARGE_4X,  // Required for JPEG XS
  vpcInterfaces: [efaInterface, enaInterface],
  mediaStreams: [videoStream],
  source: SourceConfiguration.jpegXs({
    flowSourceName: 'jpegxs-source',
    maxSyncBuffer: 100,
    mediaStreamSourceConfigurations: [{
      encoding: Encoding.JXSV,
      port: 5000,
      inputInterface: [efaInterface, enaInterface],  // 2 interfaces for redundancy
      mediaStream: videoStream,
    }],
  }),
});
```

## Properties

- `INTERLACE`: [ScanMode](/cdk/api/v2/docs/@aws-cdk_aws-mediaconnect-alpha.ScanMode.html) (required) (static) — Option for Interlace.

- `PROGRESSIVE`: [ScanMode](/cdk/api/v2/docs/@aws-cdk_aws-mediaconnect-alpha.ScanMode.html) (required) (static) — Option for Progressive.

- `PROGRESSIVE_SEGMENTED_FRAME`: [ScanMode](/cdk/api/v2/docs/@aws-cdk_aws-mediaconnect-alpha.ScanMode.html) (required) (static) — Option for Progressive Segmented Frame.

- `value`: string (required) — The scan mode string value.

## Methods

- `of(value: string): ScanMode // chainable` (static) — Use a custom scan mode value.

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