Class CfnFlowSource
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::MediaConnect::FlowSource
.
The AWS::MediaConnect::FlowSource resource is used to add additional sources to an existing flow. Adding an additional source requires Failover to be enabled. When you enable Failover, the additional source must use the same protocol as the existing source. A source is the external video content that includes configuration information (encryption and source type) and a network address. Each flow has at least one source. A standard source comes from a source other than another AWS Elemental MediaConnect flow, such as an on-premises encoder.
Example:
// 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.*; CfnFlowSource cfnFlowSource = CfnFlowSource.Builder.create(this, "MyCfnFlowSource") .description("description") .name("name") // the properties below are optional .decryption(EncryptionProperty.builder() .roleArn("roleArn") // the properties below are optional .algorithm("algorithm") .constantInitializationVector("constantInitializationVector") .deviceId("deviceId") .keyType("keyType") .region("region") .resourceId("resourceId") .secretArn("secretArn") .url("url") .build()) .entitlementArn("entitlementArn") .flowArn("flowArn") .ingestPort(123) .maxBitrate(123) .maxLatency(123) .minLatency(123) .protocol("protocol") .senderControlPort(123) .senderIpAddress("senderIpAddress") .sourceListenerAddress("sourceListenerAddress") .sourceListenerPort(123) .streamId("streamId") .vpcInterfaceName("vpcInterfaceName") .whitelistCidr("whitelistCidr") .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnFlowSource
.static interface
Information about the encryption of the flow.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnFlowSource
(Construct scope, String id, CfnFlowSourceProps props) Create a newAWS::MediaConnect::FlowSource
.protected
CfnFlowSource
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnFlowSource
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe IP address that the flow listens on for incoming content.The ARN of the source.The type of encryption that is used on the content ingested from the source.A description of the source.The ARN of the entitlement that allows you to subscribe to the flow.The Amazon Resource Name (ARN) of the flow this source is connected to.The port that the flow listens on for incoming content.The maximum bitrate for RIST, RTP, and RTP-FEC streams.The maximum latency in milliseconds.The minimum latency in milliseconds for SRT-based streams.getName()
The name of the source.The protocol that the source uses to deliver the content to MediaConnect.The port that the flow uses to send outbound requests to initiate connection with the sender.The IP address that the flow communicates with to initiate connection with the sender.Source IP or domain name for SRT-caller protocol.Source port for SRT-caller protocol.The stream ID that you want to use for this transport.The name of the VPC interface that you want to send your output to.The range of IP addresses that are allowed to contribute content to your source.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setDecryption
(IResolvable value) The type of encryption that is used on the content ingested from the source.void
The type of encryption that is used on the content ingested from the source.void
setDescription
(String value) A description of the source.void
setEntitlementArn
(String value) The ARN of the entitlement that allows you to subscribe to the flow.void
setFlowArn
(String value) The Amazon Resource Name (ARN) of the flow this source is connected to.void
setIngestPort
(Number value) The port that the flow listens on for incoming content.void
setMaxBitrate
(Number value) The maximum bitrate for RIST, RTP, and RTP-FEC streams.void
setMaxLatency
(Number value) The maximum latency in milliseconds.void
setMinLatency
(Number value) The minimum latency in milliseconds for SRT-based streams.void
The name of the source.void
setProtocol
(String value) The protocol that the source uses to deliver the content to MediaConnect.void
setSenderControlPort
(Number value) The port that the flow uses to send outbound requests to initiate connection with the sender.void
setSenderIpAddress
(String value) The IP address that the flow communicates with to initiate connection with the sender.void
setSourceListenerAddress
(String value) Source IP or domain name for SRT-caller protocol.void
setSourceListenerPort
(Number value) Source port for SRT-caller protocol.void
setStreamId
(String value) The stream ID that you want to use for this transport.void
setVpcInterfaceName
(String value) The name of the VPC interface that you want to send your output to.void
setWhitelistCidr
(String value) The range of IP addresses that are allowed to contribute content to your source.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnFlowSource
protected CfnFlowSource(software.amazon.jsii.JsiiObjectRef objRef) -
CfnFlowSource
protected CfnFlowSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnFlowSource
@Stability(Stable) public CfnFlowSource(@NotNull Construct scope, @NotNull String id, @NotNull CfnFlowSourceProps props) Create a newAWS::MediaConnect::FlowSource
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrIngestIp
The IP address that the flow listens on for incoming content. -
getAttrSourceArn
The ARN of the source. -
getAttrSourceIngestPort
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getDescription
A description of the source.This description is not visible outside of the current AWS account.
-
setDescription
A description of the source.This description is not visible outside of the current AWS account.
-
getName
The name of the source. -
setName
The name of the source. -
getDecryption
The type of encryption that is used on the content ingested from the source. -
setDecryption
The type of encryption that is used on the content ingested from the source. -
setDecryption
The type of encryption that is used on the content ingested from the source. -
getEntitlementArn
The ARN of the entitlement that allows you to subscribe to the flow.The entitlement is set by the content originator, and the ARN is generated as part of the originator's flow.
-
setEntitlementArn
The ARN of the entitlement that allows you to subscribe to the flow.The entitlement is set by the content originator, and the ARN is generated as part of the originator's flow.
-
getFlowArn
The Amazon Resource Name (ARN) of the flow this source is connected to.The flow must have Failover enabled to add an additional source.
-
setFlowArn
The Amazon Resource Name (ARN) of the flow this source is connected to.The flow must have Failover enabled to add an additional source.
-
getIngestPort
The port that the flow listens on for incoming content.If the protocol of the source is Zixi, the port must be set to 2088.
-
setIngestPort
The port that the flow listens on for incoming content.If the protocol of the source is Zixi, the port must be set to 2088.
-
getMaxBitrate
The maximum bitrate for RIST, RTP, and RTP-FEC streams. -
setMaxBitrate
The maximum bitrate for RIST, RTP, and RTP-FEC streams. -
getMaxLatency
The maximum latency in milliseconds.This parameter applies only to RIST-based, Zixi-based, and Fujitsu-based streams.
-
setMaxLatency
The maximum latency in milliseconds.This parameter applies only to RIST-based, Zixi-based, and Fujitsu-based streams.
-
getMinLatency
The minimum latency in milliseconds for SRT-based streams.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.
-
setMinLatency
The minimum latency in milliseconds for SRT-based streams.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.
-
getProtocol
The protocol that the source uses to deliver the content to MediaConnect.Adding additional sources to an existing flow requires Failover to be enabled. When you enable Failover, the additional source must use the same protocol as the existing source. Only the following protocols support failover: Zixi-push, RTP-FEC, RTP, RIST and SRT protocols.
If you use failover with SRT caller or listener, the
FailoverMode
property must be set toFAILOVER
. TheFailoverMode
property is found in theFailoverConfig
resource of the same flow ARN you used for the source'sFlowArn
property. SRT caller/listener does not support merge mode failover. -
setProtocol
The protocol that the source uses to deliver the content to MediaConnect.Adding additional sources to an existing flow requires Failover to be enabled. When you enable Failover, the additional source must use the same protocol as the existing source. Only the following protocols support failover: Zixi-push, RTP-FEC, RTP, RIST and SRT protocols.
If you use failover with SRT caller or listener, the
FailoverMode
property must be set toFAILOVER
. TheFailoverMode
property is found in theFailoverConfig
resource of the same flow ARN you used for the source'sFlowArn
property. SRT caller/listener does not support merge mode failover. -
getSenderControlPort
The port that the flow uses to send outbound requests to initiate connection with the sender. -
setSenderControlPort
The port that the flow uses to send outbound requests to initiate connection with the sender. -
getSenderIpAddress
The IP address that the flow communicates with to initiate connection with the sender. -
setSenderIpAddress
The IP address that the flow communicates with to initiate connection with the sender. -
getSourceListenerAddress
Source IP or domain name for SRT-caller protocol. -
setSourceListenerAddress
Source IP or domain name for SRT-caller protocol. -
getSourceListenerPort
Source port for SRT-caller protocol. -
setSourceListenerPort
Source port for SRT-caller protocol. -
getStreamId
The stream ID that you want to use for this transport.This parameter applies only to Zixi and SRT caller-based streams.
-
setStreamId
The stream ID that you want to use for this transport.This parameter applies only to Zixi and SRT caller-based streams.
-
getVpcInterfaceName
The name of the VPC interface that you want to send your output to. -
setVpcInterfaceName
The name of the VPC interface that you want to send your output to. -
getWhitelistCidr
The range of IP addresses that are allowed to contribute content to your source.Format the IP addresses as a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
-
setWhitelistCidr
The range of IP addresses that are allowed to contribute content to your source.Format the IP addresses as a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
-