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

Options for a Teletext caption source.

Used as argument in: [CaptionSelector.teletext](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.CaptionSelector.html#teletext)

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

## 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 teletextCaptionSourceOptions: medialive_alpha.TeletextCaptionSourceOptions = {
  outputRectangle: {
    height: 123,
    leftOffset: 123,
    topOffset: 123,
    width: 123,
  },
  pageNumber: 'pageNumber',
};
```

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

teletext_caption_source_options = medialive_alpha.TeletextCaptionSourceOptions(
    output_rectangle=medialive_alpha.CaptionRectangle(
        height=123,
        left_offset=123,
        top_offset=123,
        width=123
    ),
    page_number="pageNumber"
)
```

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

TeletextCaptionSourceOptions teletextCaptionSourceOptions = TeletextCaptionSourceOptions.builder()
        .outputRectangle(CaptionRectangle.builder()
                .height(123)
                .leftOffset(123)
                .topOffset(123)
                .width(123)
                .build())
        .pageNumber("pageNumber")
        .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 teletextCaptionSourceOptions = new TeletextCaptionSourceOptions {
    OutputRectangle = new CaptionRectangle {
        Height = 123,
        LeftOffset = 123,
        TopOffset = 123,
        Width = 123
    },
    PageNumber = "pageNumber"
};
```

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"

teletextCaptionSourceOptions := &TeletextCaptionSourceOptions{
	OutputRectangle: &CaptionRectangle{
		Height: jsii.Number(123),
		LeftOffset: jsii.Number(123),
		TopOffset: jsii.Number(123),
		Width: jsii.Number(123),
	},
	PageNumber: jsii.String("pageNumber"),
}
```

## Properties

- `outputRectangle`: [CaptionRectangle](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.CaptionRectangle.html) — The caption rectangle to use when converting this source to EBU-TT-D or TTML.

  **Default:** no rectangle (service default)

- `pageNumber`: string — The Teletext page number to extract captions from, as a hexadecimal string with no `0x` prefix (range `100`–`8FF`).

  **Default:** MediaLive service default

  Unused for passthrough.
