# TransitionProperty

Program transition configuration.

- Source: Generated at build time
- Type last changed: v2.273.0 · 8 Oct 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mediatailor as mediatailor } from 'aws-cdk-lib';
const transitionProperty: mediatailor.CfnProgram.TransitionProperty = {
  relativePosition: 'relativePosition',
  type: 'type',

  // the properties below are optional
  durationMillis: 123,
  relativeProgram: 'relativeProgram',
  scheduledStartTimeMillis: 123,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_mediatailor as mediatailor

transition_property = mediatailor.CfnProgram.TransitionProperty(
    relative_position="relativePosition",
    type="type",

    # the properties below are optional
    duration_millis=123,
    relative_program="relativeProgram",
    scheduled_start_time_millis=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.mediatailor.*;

TransitionProperty transitionProperty = TransitionProperty.builder()
        .relativePosition("relativePosition")
        .type("type")

        // the properties below are optional
        .durationMillis(123)
        .relativeProgram("relativeProgram")
        .scheduledStartTimeMillis(123)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaTailor;

var transitionProperty = new TransitionProperty {
    RelativePosition = "relativePosition",
    Type = "type",

    // the properties below are optional
    DurationMillis = 123,
    RelativeProgram = "relativeProgram",
    ScheduledStartTimeMillis = 123
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

transitionProperty := &TransitionProperty{
	RelativePosition: jsii.String("relativePosition"),
	Type: jsii.String("type"),

	// the properties below are optional
	DurationMillis: jsii.Number(123),
	RelativeProgram: jsii.String("relativeProgram"),
	ScheduledStartTimeMillis: jsii.Number(123),
}
```

## Properties

- `durationMillis`: number — The duration of the live program in seconds.

- `relativePosition`: string (required) — The position where this program will be inserted relative to the RelativePosition.

- `relativeProgram`: string — The name of the program that this program will be inserted next to.

- `scheduledStartTimeMillis`: number — The date and time that the program is scheduled to start, in epoch milliseconds.

- `type`: string (required) — Defines when the program plays in the schedule.

  You can set the value to ABSOLUTE or RELATIVE.
