Skip to content
v2.277.0

Experimental

@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

SrtCallerSourceProps Struct ​

Properties for an SRT caller input.

Example ​

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';
import * as cdk from 'aws-cdk-lib';
import { aws_secretsmanager as secretsmanager } from 'aws-cdk-lib';

declare const secret: secretsmanager.Secret;
declare const srtDecryptionAlgorithm: medialive_alpha.SrtDecryptionAlgorithm;
const srtCallerSourceProps: medialive_alpha.SrtCallerSourceProps = {
  srtListenerAddress: 'srtListenerAddress',
  srtListenerPort: 123,

  // the properties below are optional
  decryption: {
    algorithm: srtDecryptionAlgorithm,
    passphraseSecret: secret,
  },
  minimumLatency: cdk.Duration.minutes(30),
  streamId: 'streamId',
};
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
import aws_cdk as cdk
from aws_cdk import aws_secretsmanager as secretsmanager

# secret: secretsmanager.Secret
# srt_decryption_algorithm: medialive_alpha.SrtDecryptionAlgorithm

srt_caller_source_props = medialive_alpha.SrtCallerSourceProps(
    srt_listener_address="srtListenerAddress",
    srt_listener_port=123,

    # the properties below are optional
    decryption=medialive_alpha.SrtDecryptionProps(
        algorithm=srt_decryption_algorithm,
        passphrase_secret=secret
    ),
    minimum_latency=cdk.Duration.minutes(30),
    stream_id="streamId"
)
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.*;
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.secretsmanager.*;

Secret secret;
SrtDecryptionAlgorithm srtDecryptionAlgorithm;

SrtCallerSourceProps srtCallerSourceProps = SrtCallerSourceProps.builder()
        .srtListenerAddress("srtListenerAddress")
        .srtListenerPort(123)

        // the properties below are optional
        .decryption(SrtDecryptionProps.builder()
                .algorithm(srtDecryptionAlgorithm)
                .passphraseSecret(secret)
                .build())
        .minimumLatency(Duration.minutes(30))
        .streamId("streamId")
        .build();
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;
using Amazon.CDK;
using Amazon.CDK.AWS.SecretsManager;

Secret secret;
SrtDecryptionAlgorithm srtDecryptionAlgorithm;

var srtCallerSourceProps = new SrtCallerSourceProps {
    SrtListenerAddress = "srtListenerAddress",
    SrtListenerPort = 123,

    // the properties below are optional
    Decryption = new SrtDecryptionProps {
        Algorithm = srtDecryptionAlgorithm,
        PassphraseSecret = secret
    },
    MinimumLatency = Duration.Minutes(30),
    StreamId = "streamId"
};
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"
import cdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var secret Secret
var srtDecryptionAlgorithm SrtDecryptionAlgorithm

srtCallerSourceProps := &SrtCallerSourceProps{
	SrtListenerAddress: jsii.String("srtListenerAddress"),
	SrtListenerPort: jsii.Number(123),

	// the properties below are optional
	Decryption: &SrtDecryptionProps{
		Algorithm: srtDecryptionAlgorithm,
		PassphraseSecret: secret,
	},
	MinimumLatency: cdk.Duration_Minutes(jsii.Number(30)),
	StreamId: jsii.String("streamId"),
}

Properties ​

decryptionoptionalSrtDecryptionPropsdecryptionoptionalSrtDecryptionPropsdecryptionoptionalSrtDecryptionPropsDecryptionoptionalSrtDecryptionPropsDecryptionoptionalSrtDecryptionProps #
Decryption settings for the SRT connection.

Default: no decryption

minimumLatencyoptionalDurationminimum_latencyoptionalDurationminimumLatencyoptionalDurationMinimumLatencyoptionalDurationMinimumLatencyoptionalDuration #
The minimum latency.

Default: service default

srtListenerAddressstringsrt_listener_addressstrsrtListenerAddressStringSrtListenerAddressstringSrtListenerAddress*string required #
The address of the SRT listener to connect to.
srtListenerPortnumbersrt_listener_portint | floatsrtListenerPortNumberSrtListenerPortdoubleSrtListenerPort*float64 required #
The port of the SRT listener.
streamIdoptionalstringstream_idoptionalstrstreamIdoptionalStringStreamIdoptionalstringStreamIdoptional*string #
The stream ID for the SRT connection.

Default: no stream ID