Skip to content
v2.277.0

Experimental

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

SrtListenerOutputConfig Struct ​

Configuration options for SRT Listener outputs.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as mediaconnect_alpha from '@aws-cdk/aws-mediaconnect-alpha';
import * as cdk from 'aws-cdk-lib';
import { aws_iam as iam } from 'aws-cdk-lib';
import { aws_secretsmanager as secretsmanager } from 'aws-cdk-lib';

declare const role: iam.Role;
declare const secret: secretsmanager.Secret;
const srtListenerOutputConfig: mediaconnect_alpha.SrtListenerOutputConfig = {
  port: 123,

  // the properties below are optional
  cidrAllowList: ['cidrAllowList'],
  encryption: {
    secret: secret,

    // the properties below are optional
    role: role,
  },
  minLatency: cdk.Duration.minutes(30),
  vpcInterfaceAttachmentName: 'vpcInterfaceAttachmentName',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_mediaconnect_alpha as mediaconnect_alpha
import aws_cdk as cdk
from aws_cdk import aws_iam as iam
from aws_cdk import aws_secretsmanager as secretsmanager

# role: iam.Role
# secret: secretsmanager.Secret

srt_listener_output_config = mediaconnect_alpha.SrtListenerOutputConfig(
    port=123,

    # the properties below are optional
    cidr_allow_list=["cidrAllowList"],
    encryption=mediaconnect_alpha.SrtPasswordEncryption(
        secret=secret,

        # the properties below are optional
        role=role
    ),
    min_latency=cdk.Duration.minutes(30),
    vpc_interface_attachment_name="vpcInterfaceAttachmentName"
)
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.mediaconnect.alpha.*;
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.iam.*;
import software.amazon.awscdk.services.secretsmanager.*;

Role role;
Secret secret;

SrtListenerOutputConfig srtListenerOutputConfig = SrtListenerOutputConfig.builder()
        .port(123)

        // the properties below are optional
        .cidrAllowList(List.of("cidrAllowList"))
        .encryption(SrtPasswordEncryption.builder()
                .secret(secret)

                // the properties below are optional
                .role(role)
                .build())
        .minLatency(Duration.minutes(30))
        .vpcInterfaceAttachmentName("vpcInterfaceAttachmentName")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaConnect.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaConnect.Alpha;
using Amazon.CDK;
using Amazon.CDK.AWS.IAM;
using Amazon.CDK.AWS.SecretsManager;

Role role;
Secret secret;

var srtListenerOutputConfig = new SrtListenerOutputConfig {
    Port = 123,

    // the properties below are optional
    CidrAllowList = new [] { "cidrAllowList" },
    Encryption = new SrtPasswordEncryption {
        Secret = secret,

        // the properties below are optional
        Role = role
    },
    MinLatency = Duration.Minutes(30),
    VpcInterfaceAttachmentName = "vpcInterfaceAttachmentName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awsmediaconnectalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import mediaconnect_alpha "github.com/aws/aws-cdk-go/awsmediaconnectalpha"
import cdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var role Role
var secret Secret

srtListenerOutputConfig := &SrtListenerOutputConfig{
	Port: jsii.Number(123),

	// the properties below are optional
	CidrAllowList: []*string{
		jsii.String("cidrAllowList"),
	},
	Encryption: &SrtPasswordEncryption{
		Secret: secret,

		// the properties below are optional
		Role: role,
	},
	MinLatency: cdk.Duration_Minutes(jsii.Number(30)),
	VpcInterfaceAttachmentName: jsii.String("vpcInterfaceAttachmentName"),
}

Properties ​

cidrAllowListoptionalstring[]cidr_allow_listoptionaltyping.List[str]cidrAllowListoptionalList<String>CidrAllowListoptionalstring[]CidrAllowListoptional*[]*string#
The range of IP addresses that should be allowed to initiate output requests to this flow.

Default: no CIDR allow list

These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.

encryptionoptionalSrtPasswordEncryptionencryptionoptionalSrtPasswordEncryptionencryptionoptionalSrtPasswordEncryptionEncryptionoptionalSrtPasswordEncryptionEncryptionoptionalSrtPasswordEncryption#
SRT password encryption for this output.

Default: no encryption

minLatencyoptionalDurationmin_latencyoptionalDurationminLatencyoptionalDurationMinLatencyoptionalDurationMinLatencyoptionalDuration#
The minimum latency in milliseconds for SRT-based streams.

Default: no minimum latency

notes

In streams that use the SRT protocol, this value that you set on your MediaConnect source or output represents the minimal potential latency of that connection. The latency of the stream is set to the highest number between the sender’s minimum latency and the receiver’s minimum latency.

portnumberportint | floatportNumberPortdoublePort*float64required#
The port to use when content is distributed to this output.
vpcInterfaceAttachmentNameoptionalstringvpc_interface_attachment_nameoptionalstrvpcInterfaceAttachmentNameoptionalStringVpcInterfaceAttachmentNameoptionalstringVpcInterfaceAttachmentNameoptional*string#
The name of the VPC interface attachment to use for this output.

Default: no VPC interface attachment