> **Experimental**
>
> `@aws-cdk/aws-mediapackagev2-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.
# Segment

Helper class for creating segment configurations.

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

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as mediapackagev2_alpha from '@aws-cdk/aws-mediapackagev2-alpha';
const segment = new mediapackagev2_alpha.Segment();
```

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_mediapackagev2_alpha as mediapackagev2_alpha

segment = mediapackagev2_alpha.Segment()
```

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

Segment segment = new Segment();
```

C# / .NET:

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

var segment = new Segment();
```

Golang:

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

segment := mediapackagev2_alpha.NewSegment()
```

## Initializer

TypeScript:

```ts
new Segment()
```

Python:

```python
Segment()
```

Java:

```java
new Segment()
```

C# / .NET:

```csharp
new Segment()
```

Golang:

```go
NewSegment()
```

## Methods

- `cmaf(props?: CmafSegmentProps): SegmentConfiguration` (static) — Create a CMAF segment configuration.

  Use this for endpoints with ContainerType.CMAF.

- `ism(props?: IsmSegmentProps): SegmentConfiguration` (static) — Create an ISM (Microsoft Smooth Streaming) segment configuration.

  Use this for endpoints with ContainerType.ISM.

- `ts(props?: TsSegmentProps): SegmentConfiguration` (static) — Create a TS (Transport Stream) segment configuration.

  Use this for endpoints with ContainerType.TS.
