# RtmpOutputSettingsProperty

Struct · External

The settings for one RTMP output.

The parent of this entity is OutputSettings.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_medialive as medialive } from 'aws-cdk-lib';
const rtmpOutputSettingsProperty: medialive.CfnChannel.RtmpOutputSettingsProperty = {
  certificateMode: 'certificateMode',
  connectionRetryInterval: 123,
  destination: {
    destinationRefId: 'destinationRefId',
  },
  numRetries: 123,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_medialive as medialive

rtmp_output_settings_property = medialive.CfnChannel.RtmpOutputSettingsProperty(
    certificate_mode="certificateMode",
    connection_retry_interval=123,
    destination=medialive.CfnChannel.OutputLocationRefProperty(
        destination_ref_id="destinationRefId"
    ),
    num_retries=123
)
```

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

RtmpOutputSettingsProperty rtmpOutputSettingsProperty = RtmpOutputSettingsProperty.builder()
        .certificateMode("certificateMode")
        .connectionRetryInterval(123)
        .destination(OutputLocationRefProperty.builder()
                .destinationRefId("destinationRefId")
                .build())
        .numRetries(123)
        .build();
```

C#:

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

var rtmpOutputSettingsProperty = new RtmpOutputSettingsProperty {
    CertificateMode = "certificateMode",
    ConnectionRetryInterval = 123,
    Destination = new OutputLocationRefProperty {
        DestinationRefId = "destinationRefId"
    },
    NumRetries = 123
};
```

Go:

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

rtmpOutputSettingsProperty := &RtmpOutputSettingsProperty{
	CertificateMode: jsii.String("certificateMode"),
	ConnectionRetryInterval: jsii.Number(123),
	Destination: &OutputLocationRefProperty{
		DestinationRefId: jsii.String("destinationRefId"),
	},
	NumRetries: jsii.Number(123),
}
```

## Properties

- `certificateMode`: string — If set to verifyAuthenticity, verifies the TLS certificate chain to a trusted certificate authority (CA).

  This causes RTMPS outputs with self-signed certificates to fail.

- `connectionRetryInterval`: number — The number of seconds to wait before retrying a connection to the Flash Media server if the connection is lost.

- `destination`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnChannel.OutputLocationRefProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_medialive.CfnChannel.OutputLocationRefProperty.html) — The RTMP endpoint excluding the stream name (for example, rtmp://host/appname).

- `numRetries`: number — The number of retry attempts.
