Class Flow
- All Implemented Interfaces:
IEnvironmentAware,IFlowRef,IResource,IFlow,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
Example:
Stack stack;
ISecurityGroup securityGroup;
ISubnet subnet;
IRole role;
VpcInterfaceConfig vpcInterface = VpcInterface.define(VpcInterfaceDefineProps.builder()
.vpcInterfaceName("my-vpc-interface")
.role(role)
.securityGroups(List.of(securityGroup))
.subnet(subnet)
.build());
Flow flow = Flow.Builder.create(stack, "MyFlow")
.source(SourceConfiguration.rist(SourceRist.builder()
.flowSourceName("vpc-source")
.description("VPC-based source")
.port(5000)
.maxLatency(Duration.millis(2000))
.network(NetworkConfiguration.vpc(vpcInterface))
.build()))
.vpcInterfaces(List.of(vpcInterface))
.build();
-
Nested Class Summary
Nested ClassesNested 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.services.mediaconnect.alpha.IFlow
IFlow.Jsii$Default, IFlow.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddOutput(String id, OutputConfiguration outputConfig) (experimental) Add an output to this flow.(experimental) Add a VPC interface to this flow.static IFlowfromFlowArn(software.constructs.Construct scope, String id, String flowArn) (experimental) Import an existing Flow from its ARN.static IFlowfromFlowAttributes(software.constructs.Construct scope, String id, FlowAttributes attrs) (experimental) Creates a Flow construct that represents an external (imported) Flow.(experimental) The IP address that the flow uses to send outbound content.(experimental) The Amazon Resource Name (ARN) of the flow.(experimental) The Availability Zone that the flow was created in.(experimental) A reference to this Flow resource.(experimental) Collection of grant methods for this flow.(experimental) Failover Configuration for flow.(experimental) The Amazon Resource Name (ARN) of the source defined on the flow.(experimental) The IP address that the flow listens on for incoming content.(experimental) The port that the flow listens on for incoming content.(experimental) The full ingest URL for the flow source, combining protocol, IP, and port.(experimental) Create a CloudWatch metric for this flow.metric(String metricName, MetricOptions props) (experimental) Create a CloudWatch metric for this flow.(experimental) Metric for the bitrate of content ingested into the flow.metricSourceBitrate(MetricOptions props) (experimental) Metric for the bitrate of content ingested into the flow.(experimental) Metric indicating the connection state of the source.(experimental) Metric indicating the connection state of the source.(experimental) Metric for the number of times the source transitioned from connected to disconnected.(experimental) Metric for the number of times the source transitioned from connected to disconnected.(experimental) Metric for the number of packets lost during transit, measured before any error correction takes place.(experimental) Metric for the number of packets lost during transit, measured before any error correction takes place.(experimental) Metric for the current network jitter of the source, measured in milliseconds.metricSourceJitter(MetricOptions props) (experimental) Metric for the current network jitter of the source, measured in milliseconds.(experimental) Metric for packets that were lost in transit and not recovered by error correction.(experimental) Metric for packets that were lost in transit and not recovered by error correction.(experimental) Metric for the percentage of packets lost during transit, even if they were recovered.(experimental) Metric for the percentage of packets lost during transit, even if they were recovered.(experimental) Metric for the round-trip time between the source and MediaConnect.(experimental) Metric for the round-trip time between the source and MediaConnect.(experimental) Metric indicating which source is selected for ingest when usingFailoverfailover mode.(experimental) Metric indicating which source is selected for ingest when usingFailoverfailover mode.(experimental) Metric for the total number of packets received by the flow sources.(experimental) Metric for the total number of packets received by the flow sources.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
-
Flow
protected Flow(software.amazon.jsii.JsiiObjectRef objRef) -
Flow
protected Flow(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Flow
@Stability(Experimental) public Flow(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull FlowProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromFlowArn
@Stability(Experimental) @NotNull public static IFlow fromFlowArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String flowArn) (experimental) Import an existing Flow from its ARN.Use
fromFlowAttributes()instead if you need access tosourceArnor any other attribute not encoded in the flow ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.flowArn- This parameter is required.
-
fromFlowAttributes
@Stability(Experimental) @NotNull public static IFlow fromFlowAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull FlowAttributes attrs) (experimental) Creates a Flow construct that represents an external (imported) Flow.- Parameters:
scope- This parameter is required.id- This parameter is required.attrs- This parameter is required.
-
addOutput
@Stability(Experimental) @NotNull public IFlowOutput addOutput(@NotNull String id, @NotNull OutputConfiguration outputConfig) (experimental) Add an output to this flow. -
addVpcInterface
@Stability(Experimental) @NotNull public VpcInterfaceConfig addVpcInterface(@NotNull VpcInterfaceConfig vpc) (experimental) Add a VPC interface to this flow.- Parameters:
vpc- This parameter is required.
-
metric
@Stability(Experimental) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props) (experimental) Create a CloudWatch metric for this flow. -
metric
(experimental) Create a CloudWatch metric for this flow. -
metricSourceBitrate
(experimental) Metric for the bitrate of content ingested into the flow.Emits the `SourceBitRate` metric with dimension `FlowARN`, which aggregates across all sources on the flow. To narrow to a specific source on a multi-source flow, call
metric(java.lang.String,software.amazon.awscdk.services.cloudwatch.MetricOptions)with an additional `SourceARN` dimension.Default: - average over 60 seconds
- Specified by:
metricSourceBitratein interfaceIFlow- Parameters:
props-
-
metricSourceBitrate
(experimental) Metric for the bitrate of content ingested into the flow.Emits the `SourceBitRate` metric with dimension `FlowARN`, which aggregates across all sources on the flow. To narrow to a specific source on a multi-source flow, call
metric(java.lang.String,software.amazon.awscdk.services.cloudwatch.MetricOptions)with an additional `SourceARN` dimension.Default: - average over 60 seconds
- Specified by:
metricSourceBitratein interfaceIFlow
-
metricSourceConnected
@Stability(Experimental) @NotNull public Metric metricSourceConnected(@Nullable MetricOptions props) (experimental) Metric indicating the connection state of the source.1 for connected, 0 for disconnected. Applies only to Zixi, SRT, and RIST sources.
Emits the
SourceConnectedmetric with dimensionFlowARN.Default: - minimum over 60 seconds
- Specified by:
metricSourceConnectedin interfaceIFlow- Parameters:
props-
-
metricSourceConnected
(experimental) Metric indicating the connection state of the source.1 for connected, 0 for disconnected. Applies only to Zixi, SRT, and RIST sources.
Emits the
SourceConnectedmetric with dimensionFlowARN.Default: - minimum over 60 seconds
- Specified by:
metricSourceConnectedin interfaceIFlow
-
metricSourceDisconnections
@Stability(Experimental) @NotNull public Metric metricSourceDisconnections(@Nullable MetricOptions props) (experimental) Metric for the number of times the source transitioned from connected to disconnected.Emits the
SourceDisconnectionsmetric with dimensionFlowARN.Default: - sum over 60 seconds
- Specified by:
metricSourceDisconnectionsin interfaceIFlow- Parameters:
props-
-
metricSourceDisconnections
(experimental) Metric for the number of times the source transitioned from connected to disconnected.Emits the
SourceDisconnectionsmetric with dimensionFlowARN.Default: - sum over 60 seconds
- Specified by:
metricSourceDisconnectionsin interfaceIFlow
-
metricSourceDroppedPackets
@Stability(Experimental) @NotNull public Metric metricSourceDroppedPackets(@Nullable MetricOptions props) (experimental) Metric for the number of packets lost during transit, measured before any error correction takes place.Emits the
SourceDroppedPacketsmetric with dimensionFlowARN.Default: - sum over 60 seconds
- Specified by:
metricSourceDroppedPacketsin interfaceIFlow- Parameters:
props-
-
metricSourceDroppedPackets
(experimental) Metric for the number of packets lost during transit, measured before any error correction takes place.Emits the
SourceDroppedPacketsmetric with dimensionFlowARN.Default: - sum over 60 seconds
- Specified by:
metricSourceDroppedPacketsin interfaceIFlow
-
metricSourceJitter
(experimental) Metric for the current network jitter of the source, measured in milliseconds.Emits the
SourceJittermetric with dimensionFlowARN.Default: - average over 60 seconds
- Specified by:
metricSourceJitterin interfaceIFlow- Parameters:
props-
-
metricSourceJitter
(experimental) Metric for the current network jitter of the source, measured in milliseconds.Emits the
SourceJittermetric with dimensionFlowARN.Default: - average over 60 seconds
- Specified by:
metricSourceJitterin interfaceIFlow
-
metricSourceNotRecoveredPackets
@Stability(Experimental) @NotNull public Metric metricSourceNotRecoveredPackets(@Nullable MetricOptions props) (experimental) Metric for packets that were lost in transit and not recovered by error correction.Emits the
SourceNotRecoveredPacketsmetric with dimensionFlowARN, which aggregates across all sources on the flow.Default: - sum over 60 seconds
- Specified by:
metricSourceNotRecoveredPacketsin interfaceIFlow- Parameters:
props-
-
metricSourceNotRecoveredPackets
(experimental) Metric for packets that were lost in transit and not recovered by error correction.Emits the
SourceNotRecoveredPacketsmetric with dimensionFlowARN, which aggregates across all sources on the flow.Default: - sum over 60 seconds
- Specified by:
metricSourceNotRecoveredPacketsin interfaceIFlow
-
metricSourcePacketLossPercent
@Stability(Experimental) @NotNull public Metric metricSourcePacketLossPercent(@Nullable MetricOptions props) (experimental) Metric for the percentage of packets lost during transit, even if they were recovered.Emits the
SourcePacketLossPercentmetric with dimensionFlowARN.Default: - average over 60 seconds
- Specified by:
metricSourcePacketLossPercentin interfaceIFlow- Parameters:
props-
-
metricSourcePacketLossPercent
(experimental) Metric for the percentage of packets lost during transit, even if they were recovered.Emits the
SourcePacketLossPercentmetric with dimensionFlowARN.Default: - average over 60 seconds
- Specified by:
metricSourcePacketLossPercentin interfaceIFlow
-
metricSourceRoundTripTime
@Stability(Experimental) @NotNull public Metric metricSourceRoundTripTime(@Nullable MetricOptions props) (experimental) Metric for the round-trip time between the source and MediaConnect. Applies only to RIST, Zixi, and SRT sources.Emits the
SourceRoundTripTimemetric with dimensionFlowARN.Default: - average over 60 seconds
- Specified by:
metricSourceRoundTripTimein interfaceIFlow- Parameters:
props-
-
metricSourceRoundTripTime
(experimental) Metric for the round-trip time between the source and MediaConnect. Applies only to RIST, Zixi, and SRT sources.Emits the
SourceRoundTripTimemetric with dimensionFlowARN.Default: - average over 60 seconds
- Specified by:
metricSourceRoundTripTimein interfaceIFlow
-
metricSourceSelected
(experimental) Metric indicating which source is selected for ingest when usingFailoverfailover mode.A value of 1 indicates the source is being used as the input; 0 indicates it is standby. Emits the `SourceSelected` metric with dimension `FlowARN`. To narrow to a specific source, call
metric(java.lang.String,software.amazon.awscdk.services.cloudwatch.MetricOptions)with an additional `SourceARN` dimension.Default: - maximum over 60 seconds
- Specified by:
metricSourceSelectedin interfaceIFlow- Parameters:
props-
-
metricSourceSelected
(experimental) Metric indicating which source is selected for ingest when usingFailoverfailover mode.A value of 1 indicates the source is being used as the input; 0 indicates it is standby. Emits the `SourceSelected` metric with dimension `FlowARN`. To narrow to a specific source, call
metric(java.lang.String,software.amazon.awscdk.services.cloudwatch.MetricOptions)with an additional `SourceARN` dimension.Default: - maximum over 60 seconds
- Specified by:
metricSourceSelectedin interfaceIFlow
-
metricSourceTotalPackets
@Stability(Experimental) @NotNull public Metric metricSourceTotalPackets(@Nullable MetricOptions props) (experimental) Metric for the total number of packets received by the flow sources.Emits the
SourceTotalPacketsmetric with dimensionFlowARN, which aggregates across all sources on the flow.Default: - sum over 60 seconds
- Specified by:
metricSourceTotalPacketsin interfaceIFlow- Parameters:
props-
-
metricSourceTotalPackets
(experimental) Metric for the total number of packets received by the flow sources.Emits the
SourceTotalPacketsmetric with dimensionFlowARN, which aggregates across all sources on the flow.Default: - sum over 60 seconds
- Specified by:
metricSourceTotalPacketsin interfaceIFlow
-
getEgressIp
(experimental) The IP address that the flow uses to send outbound content.- Specified by:
getEgressIpin interfaceIFlow
-
getFlowArn
(experimental) The Amazon Resource Name (ARN) of the flow.- Specified by:
getFlowArnin interfaceIFlow
-
getFlowRef
(experimental) A reference to this Flow resource.Required by the auto-generated IFlowRef interface.
- Specified by:
getFlowRefin interfaceIFlowRef
-
getGrants
(experimental) Collection of grant methods for this flow. -
getSourceArn
(experimental) The Amazon Resource Name (ARN) of the source defined on the flow.- Specified by:
getSourceArnin interfaceIFlow
-
getSourceIngestIp
(experimental) The IP address that the flow listens on for incoming content.Available for listener-style source protocols (RTP, RTP-FEC, RIST, SRT listener, Zixi push). Accessing this on SRT caller, entitlement, gateway bridge, router, CDI, JPEG XS, or imported flows throws — those sources don't expose a listening IP address.
- Specified by:
getSourceIngestIpin interfaceIFlow
-
getSourceIngestPort
(experimental) The port that the flow listens on for incoming content.Available for the same listener-style source protocols as
sourceIngestIp. Accessing this on SRT caller, entitlement, gateway bridge, router, CDI, JPEG XS, or imported flows throws.- Specified by:
getSourceIngestPortin interfaceIFlow
-
getSourceIngestUrl
(experimental) The full ingest URL for the flow source, combining protocol, IP, and port. For example:srt://203.0.113.10:5000.Available for listener-style source protocols (RTP, RTP-FEC, RIST, SRT listener, Zixi push) where the flow listens for an upstream sender. Accessing this on SRT caller, entitlement, gateway bridge, router, CDI, JPEG XS, or imported flows throws — those sources don't expose a single host:port ingest URL.
- Specified by:
getSourceIngestUrlin interfaceIFlow
-
getFlowAvailabilityZone
(experimental) The Availability Zone that the flow was created in.- Specified by:
getFlowAvailabilityZonein interfaceIFlow
-
getIsFailoverEnabled
(experimental) Failover Configuration for flow.- Specified by:
getIsFailoverEnabledin interfaceIFlow
-