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

The container (transport stream) for an Archive output.

Use the static factory methods to
select between an MPEG-TS (M2TS) container or a raw container.

Obtainable from: ArchiveContainer.m2ts, ArchiveContainer.raw

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

## 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';

declare const m2tsSettings: medialive_alpha.M2tsSettings;
const archiveContainer = medialive_alpha.ArchiveContainer.m2ts(/* all optional props */ m2tsSettings);
```

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

# m2ts_settings: medialive_alpha.M2tsSettings

archive_container = medialive_alpha.ArchiveContainer.m2ts(m2ts_settings)
```

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

M2tsSettings m2tsSettings;

ArchiveContainer archiveContainer = ArchiveContainer.m2ts(m2tsSettings);
```

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;

M2tsSettings m2tsSettings;

var archiveContainer = ArchiveContainer.M2ts(m2tsSettings);
```

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"

var m2tsSettings M2tsSettings

archiveContainer := medialive_alpha.ArchiveContainer_M2ts(m2tsSettings)
```

## Initializer

TypeScript:

```ts
new ArchiveContainer()
```

Python:

```python
ArchiveContainer()
```

Java:

```java
new ArchiveContainer()
```

C# / .NET:

```csharp
new ArchiveContainer()
```

Golang:

```go
NewArchiveContainer()
```

## Methods

- `m2ts(settings?: M2tsSettings): ArchiveContainer // chainable` (static) — An MPEG-TS (M2TS) container, optionally configured via `M2tsSettings`.

- `raw(): ArchiveContainer // chainable` (static) — A raw container (no transport-stream wrapping).
