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

Base properties common to all 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#L2414)

## 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';
import * as cdk from 'aws-cdk-lib';
const segmentPropsBase: mediapackagev2_alpha.SegmentPropsBase = {
  duration: cdk.Duration.minutes(30),
  includeIframeOnlyStreams: false,
  name: 'name',
};
```

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
import aws_cdk as cdk

segment_props_base = mediapackagev2_alpha.SegmentPropsBase(
    duration=cdk.Duration.minutes(30),
    include_iframe_only_streams=False,
    name="name"
)
```

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.*;
import software.amazon.awscdk.*;

SegmentPropsBase segmentPropsBase = SegmentPropsBase.builder()
        .duration(Duration.minutes(30))
        .includeIframeOnlyStreams(false)
        .name("name")
        .build();
```

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;
using Amazon.CDK;

var segmentPropsBase = new SegmentPropsBase {
    Duration = Duration.Minutes(30),
    IncludeIframeOnlyStreams = false,
    Name = "name"
};
```

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"
import cdk "github.com/aws/aws-cdk-go/awscdk"

segmentPropsBase := &SegmentPropsBase{
	Duration: cdk.Duration_Minutes(jsii.Number(30)),
	IncludeIframeOnlyStreams: jsii.Boolean(false),
	Name: jsii.String("name"),
}
```

## Properties

- `duration`: [Duration](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Duration.html) = Duration.seconds(6) — Duration of each segment.

- `includeIframeOnlyStreams`: boolean = false — Whether to include I-frame-only streams.

- `name`: string = 'segment' — Name of the segment.
