Class RouterInput
- All Implemented Interfaces:
IEnvironmentAware,IRouterInputRef,IResource,IRouterInput,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
Example:
Stack stack;
RouterNetworkInterface networkInterface;
RouterInput input = RouterInput.Builder.create(stack, "FailoverInput")
.routerInputName("failover-input")
.maximumBitrate(Bitrate.mbps(10))
.routingScope(RoutingScope.REGIONAL)
.tier(RouterInputTier.INPUT_50)
.configuration(RouterInputConfiguration.failover(FailoverConfigurationProps.builder()
.networkInterface(networkInterface)
.protocols(List.of(RouterInputProtocol.rist(RistProtocolProps.builder()
.port(5000)
.recoveryLatency(Duration.millis(1000))
.build()), RouterInputProtocol.rist(RistProtocolProps.builder()
.port(5002) // Must not be consecutive with primary port
.recoveryLatency(Duration.millis(1000))
.build())))
.sourcePriority(SourcePriorityConfig.primarySecondary(PrimarySource.FIRST_SOURCE))
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forRouterInput.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.mediaconnect.alpha.IRouterInput
IRouterInput.Jsii$Default, IRouterInput.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRouterInput(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedRouterInput(software.amazon.jsii.JsiiObjectRef objRef) RouterInput(software.constructs.Construct scope, String id, RouterInputProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IRouterInputfromRouterInputArn(software.constructs.Construct scope, String id, String routerInputArn) (experimental) Import an existing Router Input from its ARN.static IRouterInputfromRouterInputAttributes(software.constructs.Construct scope, String id, RouterInputAttributes attrs) (experimental) Import an existing Router Input from its attributes.(experimental) The timestamp when the router input was created.(experimental) The ingest endpoints (URL + port) where the router input listens.(experimental) Collection of grant methods for this router input.(experimental) The IP address of the router input.(experimental) The Amazon Resource Name (ARN) of the router input.(experimental) The unique identifier of the router input.(experimental) A reference to this Router Input resource.(experimental) The Secrets Manager secret containing the transit encryption passphrase.(experimental) The timestamp when the router input was last updated.(experimental) Create a CloudWatch metric for this router input.metric(String metricName, MetricOptions props) (experimental) Create a CloudWatch metric for this router input.(experimental) Metric for the bitrate of the router input's payload.metricBitrate(MetricOptions props) (experimental) Metric for the bitrate of the router input's payload.(experimental) Metric for the router input connection state (1 connected, 0 disconnected).metricConnected(MetricOptions props) (experimental) Metric for the router input connection state (1 connected, 0 disconnected).(experimental) Metric for continuity counter errors in the transport stream.(experimental) Metric for continuity counter errors in the transport stream.(experimental) Metric for the number of times the router input has switched sources in Failover mode.(experimental) Metric for the number of times the router input has switched sources in Failover mode.(experimental) Metric for the recovery latency of the input stream.metricLatency(MetricOptions props) (experimental) Metric for the recovery latency of the input stream.(experimental) Metric for packets lost in transit that were not recovered by error correction.(experimental) Metric for packets lost in transit that were not recovered by error correction.(experimental) Metric for the total number of packets received by the router input.metricTotalPackets(MetricOptions props) (experimental) Metric for the total number of packets received by the router input.Methods inherited from class software.amazon.awscdk.Resource
applyCrossStackReferenceStrength, applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource, withMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
-
-
Constructor Details
-
RouterInput
protected RouterInput(software.amazon.jsii.JsiiObjectRef objRef) -
RouterInput
protected RouterInput(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
RouterInput
@Stability(Experimental) public RouterInput(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull RouterInputProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromRouterInputArn
@Stability(Experimental) @NotNull public static IRouterInput fromRouterInputArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String routerInputArn) (experimental) Import an existing Router Input from its ARN.Use
fromRouterInputAttributes()instead if you need to exposerouterInputIdoripAddresson the imported construct.- Parameters:
scope- The parent construct. This parameter is required.id- The construct id. This parameter is required.routerInputArn- The ARN of the Router Input. This parameter is required.- Returns:
- A Router Input construct
-
fromRouterInputAttributes
@Stability(Experimental) @NotNull public static IRouterInput fromRouterInputAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull RouterInputAttributes attrs) (experimental) Import an existing Router Input from its attributes.Provide
routerInputIdand/oripAddresswhen importing an input that was deployed externally — otherwise accessing those properties on the imported construct will throw.- Parameters:
scope- The parent construct. This parameter is required.id- The construct id. This parameter is required.attrs- The Router Input attributes. This parameter is required.- Returns:
- A Router Input construct
-
metric
@Stability(Experimental) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props) (experimental) Create a CloudWatch metric for this router input.- Specified by:
metricin interfaceIRouterInput- Parameters:
metricName- This parameter is required.props-
-
metric
(experimental) Create a CloudWatch metric for this router input.- Specified by:
metricin interfaceIRouterInput- Parameters:
metricName- This parameter is required.
-
metricBitrate
(experimental) Metric for the bitrate of the router input's payload.- Specified by:
metricBitratein interfaceIRouterInput- Parameters:
props-
-
metricBitrate
(experimental) Metric for the bitrate of the router input's payload.- Specified by:
metricBitratein interfaceIRouterInput
-
metricConnected
(experimental) Metric for the router input connection state (1 connected, 0 disconnected).Applies to SRT sources only.
- Specified by:
metricConnectedin interfaceIRouterInput- Parameters:
props-
-
metricConnected
(experimental) Metric for the router input connection state (1 connected, 0 disconnected).Applies to SRT sources only.
- Specified by:
metricConnectedin interfaceIRouterInput
-
metricContinuityCounterErrors
@Stability(Experimental) @NotNull public Metric metricContinuityCounterErrors(@Nullable MetricOptions props) (experimental) Metric for continuity counter errors in the transport stream.- Specified by:
metricContinuityCounterErrorsin interfaceIRouterInput- Parameters:
props-
-
metricContinuityCounterErrors
(experimental) Metric for continuity counter errors in the transport stream.- Specified by:
metricContinuityCounterErrorsin interfaceIRouterInput
-
metricFailoverSwitches
@Stability(Experimental) @NotNull public Metric metricFailoverSwitches(@Nullable MetricOptions props) (experimental) Metric for the number of times the router input has switched sources in Failover mode.- Specified by:
metricFailoverSwitchesin interfaceIRouterInput- Parameters:
props-
-
metricFailoverSwitches
(experimental) Metric for the number of times the router input has switched sources in Failover mode.- Specified by:
metricFailoverSwitchesin interfaceIRouterInput
-
metricLatency
(experimental) Metric for the recovery latency of the input stream.Applies to RIST, SRT, and RTP-FEC.
- Specified by:
metricLatencyin interfaceIRouterInput- Parameters:
props-
-
metricLatency
(experimental) Metric for the recovery latency of the input stream.Applies to RIST, SRT, and RTP-FEC.
- Specified by:
metricLatencyin interfaceIRouterInput
-
metricNotRecoveredPackets
@Stability(Experimental) @NotNull public Metric metricNotRecoveredPackets(@Nullable MetricOptions props) (experimental) Metric for packets lost in transit that were not recovered by error correction.- Specified by:
metricNotRecoveredPacketsin interfaceIRouterInput- Parameters:
props-
-
metricNotRecoveredPackets
(experimental) Metric for packets lost in transit that were not recovered by error correction.- Specified by:
metricNotRecoveredPacketsin interfaceIRouterInput
-
metricTotalPackets
(experimental) Metric for the total number of packets received by the router input.- Specified by:
metricTotalPacketsin interfaceIRouterInput- Parameters:
props-
-
metricTotalPackets
(experimental) Metric for the total number of packets received by the router input.- Specified by:
metricTotalPacketsin interfaceIRouterInput
-
getEndpoints
(experimental) The ingest endpoints (URL + port) where the router input listens.Returns one entry for standard protocol-based variants (RTP, RIST, SRT listener), and one entry per source for failover and merge configurations built from those protocols. For example a failover RTP input will return:
[ { url: 'rtp://203.0.113.10:5000', port: 5000 }, { url: 'rtp://203.0.113.10:5001', port: 5001 }, ]Accessing this on SRT caller (where the router input dials out to a remote source), MediaConnect Flow, MediaLive Channel, or imported inputs throws — those variants do not expose host:port pairs the input listens on.
- Specified by:
getEndpointsin interfaceIRouterInput
-
getGrants
(experimental) Collection of grant methods for this router input.- Specified by:
getGrantsin interfaceIRouterInput
-
getIpAddress
(experimental) The IP address of the router input.- Specified by:
getIpAddressin interfaceIRouterInput
-
getRouterInputArn
(experimental) The Amazon Resource Name (ARN) of the router input.- Specified by:
getRouterInputArnin interfaceIRouterInput
-
getRouterInputId
(experimental) The unique identifier of the router input.- Specified by:
getRouterInputIdin interfaceIRouterInput
-
getRouterInputRef
(experimental) A reference to this Router Input resource.Required by the auto-generated IRouterInputRef interface.
- Specified by:
getRouterInputRefin interfaceIRouterInputRef
-
getCreatedAt
(experimental) The timestamp when the router input was created.- Specified by:
getCreatedAtin interfaceIRouterInput
-
getTransitEncryptionSecret
(experimental) The Secrets Manager secret containing the transit encryption passphrase.Only available when the Router Input was created with explicit
transitEncryptionconfiguration. Not available for automatic encryption or imported inputs.- Specified by:
getTransitEncryptionSecretin interfaceIRouterInput
-
getUpdatedAt
(experimental) The timestamp when the router input was last updated.- Specified by:
getUpdatedAtin interfaceIRouterInput
-