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

Properties for an RTMP output group.

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

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

## Example

TypeScript:

```ts
declare const video: medialive.EncodeConfiguration;
declare const audio: medialive.EncodeConfiguration;

medialive.OutputGroupConfiguration.rtmp({
  name: 'social',
  outputs: [{
    encodes: [video, audio],
    outputName: 'live',
    destinations: [
      medialive.RtmpDestination.url('rtmp://rtmp.example.com/live', 'your-stream-key'),
    ],
  }],
});
```

Python:

```python
# video: medialive.EncodeConfiguration
# audio: medialive.EncodeConfiguration

medialive.OutputGroupConfiguration.rtmp(
    name="social",
    outputs=[medialive.RtmpOutputDefinition(
        encodes=[video, audio],
        output_name="live",
        destinations=[
            medialive.RtmpDestination.url("rtmp://rtmp.example.com/live", "your-stream-key")
        ]
    )]
)
```

Java:

```java
EncodeConfiguration video;
EncodeConfiguration audio;

OutputGroupConfiguration.rtmp(RtmpOutputGroupProps.builder()
        .name("social")
        .outputs(List.of(RtmpOutputDefinition.builder()
                .encodes(List.of(video, audio))
                .outputName("live")
                .destinations(List.of(RtmpDestination.url("rtmp://rtmp.example.com/live", "your-stream-key")))
                .build()))
        .build());
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaLive.Alpha
EncodeConfiguration video;
EncodeConfiguration audio;

OutputGroupConfiguration.Rtmp(new RtmpOutputGroupProps {
    Name = "social",
    Outputs = new [] { new RtmpOutputDefinition {
        Encodes = new [] { video, audio },
        OutputName = "live",
        Destinations = new [] { RtmpDestination.Url("rtmp://rtmp.example.com/live", "your-stream-key") }
    } }
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awsmedialivealpha/v2
var video EncodeConfiguration
var audio EncodeConfiguration

medialive.OutputGroupConfiguration_Rtmp(&RtmpOutputGroupProps{
	Name: jsii.String("social"),
	Outputs: []RtmpOutputDefinition{
		&RtmpOutputDefinition{
			Encodes: []EncodeConfiguration{
				video,
				audio,
			},
			OutputName: jsii.String("live"),
			Destinations: []RtmpDestination{
				medialive.RtmpDestination_Url(jsii.String("rtmp://rtmp.example.com/live"), jsii.String("your-stream-key")),
			},
		},
	},
})
```

## Properties

- `adMarkers`: [RtmpAdMarkers](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.RtmpAdMarkers.html)[] — Choose the ad marker type for this output group.

  **Default:** no ad markers

- `authenticationScheme`: [RtmpAuthenticationScheme](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.RtmpAuthenticationScheme.html) = RtmpAuthenticationScheme.COMMON — The authentication scheme for the RTMP connection.

- `cacheFullBehavior`: [RtmpCacheFullBehavior](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.RtmpCacheFullBehavior.html) — Controls behavior when the content cache fills up.

  **Default:** service default

- `cacheLength`: [Duration](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Duration.html) — The cache length, in seconds, that is used to calculate buffer size.

  **Default:** service default

- `captionData`: [RtmpCaptionData](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.RtmpCaptionData.html) — Controls the types of data that pass to onCaptionInfo outputs.

  **Default:** service default

- `includeFillerNalUnits`: [RtmpIncludeFillerNalUnits](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.RtmpIncludeFillerNalUnits.html) — Controls whether filler NAL units are included in the output.

  **Default:** service default

- `inputLossAction`: [RtmpInputLossAction](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.RtmpInputLossAction.html) — Controls the behavior of this RTMP group if the input becomes unavailable.

  **Default:** service default

- `name`: string (required) — The name of this output group.

- `outputs`: [RtmpOutputDefinition](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.RtmpOutputDefinition.html)[] (required) — The outputs for this RTMP output group.

  Each output includes its own RTMP destination.

- `restartDelay`: [Duration](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Duration.html) = Duration.seconds(1) — The delay before restarting after a streaming output failure.

  A value of
  `Duration.seconds(0)` means never restart.
