> **Experimental**
>
> `@aws-cdk/aws-mediaconnect-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# SourceSrtCaller

Configuration for SRT Caller.

Extends: [SourceBase](/cdk/api/v2/docs/@aws-cdk_aws-mediaconnect-alpha.SourceBase.html)

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/flow-source-configuration.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/@aws-cdk/aws-mediaconnect-alpha/lib/flow-source-configuration.ts#L233)

## Example

TypeScript:

```ts
declare const stack: Stack;

const flow = new Flow(stack, 'MyFlow', {
  source: SourceConfiguration.srtCaller({
    flowSourceName: 'remote-source',
    sourceListenerAddress: '203.0.113.50',
    sourceListenerPort: 5000,
    minLatency: Duration.millis(200),
  }),
});
```

Python:

```python
# stack: Stack

flow = Flow(stack, "MyFlow",
    source=SourceConfiguration.srt_caller(
        flow_source_name="remote-source",
        source_listener_address="203.0.113.50",
        source_listener_port=5000,
        min_latency=Duration.millis(200)
    )
)
```

Java:

```java
Stack stack;

Flow flow = Flow.Builder.create(stack, "MyFlow")
        .source(SourceConfiguration.srtCaller(SourceSrtCaller.builder()
                .flowSourceName("remote-source")
                .sourceListenerAddress("203.0.113.50")
                .sourceListenerPort(5000)
                .minLatency(Duration.millis(200))
                .build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaConnect.Alpha
Stack stack;

var flow = new Flow(stack, "MyFlow", new FlowProps {
    Source = SourceConfiguration.SrtCaller(new SourceSrtCaller {
        FlowSourceName = "remote-source",
        SourceListenerAddress = "203.0.113.50",
        SourceListenerPort = 5000,
        MinLatency = Duration.Millis(200)
    })
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awsmediaconnectalpha/v2
var stack Stack

flow := awsmediaconnectalpha.NewFlow(stack, jsii.String("MyFlow"), &FlowProps{
	Source: awsmediaconnectalpha.SourceConfiguration_SrtCaller(&SourceSrtCaller{
		FlowSourceName: jsii.String("remote-source"),
		SourceListenerAddress: jsii.String("203.0.113.50"),
		SourceListenerPort: jsii.Number(5000),
		MinLatency: awscdk.Duration_Millis(jsii.Number(200)),
	}),
})
```

## Properties

- `decryption`: [SrtPasswordEncryption](/cdk/api/v2/docs/@aws-cdk_aws-mediaconnect-alpha.SrtPasswordEncryption.html) — SRT Decryption options.

  **Default:** no decryption

- `description`: string — A description of the source.

  **Default:** no description

  This description appears only on the MediaConnect console and will not be seen by the end user.

- `flowSourceName`: string — The name of the source.

  **Default:** a name is generated automatically

- `maxBitrate`: [Bitrate](/cdk/api/v2/docs/aws-cdk-lib.Bitrate.html) — The maximum bitrate for streams.

  **Default:** no maximum bitrate

- `maxLatency`: [Duration](/cdk/api/v2/docs/aws-cdk-lib.Duration.html) — The maximum latency in milliseconds for SRT-based streams.

  **Default:** no maximum latency

- `minLatency`: [Duration](/cdk/api/v2/docs/aws-cdk-lib.Duration.html) — The minimum latency in milliseconds for SRT-based streams.

  **Default:** no minimum latency

  The value you set on your
  MediaConnect source represents the minimal potential latency of that connection. The
  latency of the stream is set to the higher of the sender's minimum latency and the
  receiver's minimum latency.

- `sourceListenerAddress`: string (required) — Source IP or domain name for SRT-caller protocol.

- `sourceListenerPort`: number (required) — Source port for SRT-caller protocol.

  Valid range: 1024–65535. Ports 2077 and 2088 are reserved by MediaConnect for Zixi
  traffic and cannot be used for SRT Caller.

- `streamId`: string — The stream ID that you want to use for the transport.

  **Default:** no stream ID

- `vpcInterface`: [VpcInterfaceConfig](/cdk/api/v2/docs/@aws-cdk_aws-mediaconnect-alpha.VpcInterfaceConfig.html) — Optional VPC interface for the outbound SRT Caller connection.

  **Default:** outbound connection via the public internet; no VPC interface

  SRT Caller initiates
  the connection to the configured `sourceListenerAddress` and `sourceListenerPort`,
  so no CIDR allow list is needed.
