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

The method MediaLive uses to synchronise pipelines for pipeline output locking.

Obtainable from: PipelineLockingMethod.SOURCE_TIMECODE, PipelineLockingMethod.VIDEO_ALIGNMENT, PipelineLockingMethod.of

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

## Example

TypeScript:

```ts
// Video-aligned pipeline locking — useful when sources lack reliable timecodes
const locking = medialive.OutputLocking.pipeline({
  method: medialive.PipelineLockingMethod.VIDEO_ALIGNMENT,
});
```

Python:

```python
# Video-aligned pipeline locking — useful when sources lack reliable timecodes
locking = medialive.OutputLocking.pipeline(
    method=medialive.PipelineLockingMethod.VIDEO_ALIGNMENT
)
```

Java:

```java
// Video-aligned pipeline locking — useful when sources lack reliable timecodes
OutputLocking locking = OutputLocking.pipeline(PipelineOutputLockingProps.builder()
        .method(PipelineLockingMethod.VIDEO_ALIGNMENT)
        .build());
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaLive.Alpha
// Video-aligned pipeline locking — useful when sources lack reliable timecodes
var locking = OutputLocking.Pipeline(new PipelineOutputLockingProps {
    Method = PipelineLockingMethod.VIDEO_ALIGNMENT
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awsmedialivealpha/v2
// Video-aligned pipeline locking — useful when sources lack reliable timecodes
locking := medialive.OutputLocking_Pipeline(&PipelineOutputLockingProps{
	Method: medialive.PipelineLockingMethod_VIDEO_ALIGNMENT(),
})
```

## Properties

- `SOURCE_TIMECODE`: [PipelineLockingMethod](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.PipelineLockingMethod.html) (static) — Use the timecode in the source (the default).

  Requires reliable embedded timecodes.

- `value`: string — The underlying string value passed to CloudFormation.

- `VIDEO_ALIGNMENT`: [PipelineLockingMethod](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.PipelineLockingMethod.html) (static) — Lock frames the encoder identifies as having matching content (visual signature comparison).

  Does not require embedded timecodes; existing timecodes are ignored for locking decisions.

## Methods

- `of(value: string): PipelineLockingMethod // chainable` (static) — A value not yet modelled by AWS CDK.
