Class CfnFlow
- All Implemented Interfaces:
IInspectable,IFlowRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
AWS::MediaConnect::Flow resource defines a connection between one or more video sources and one or more outputs.
For each flow, you specify the transport protocol to use, encryption information, and details for any outputs or entitlements that you want. AWS Elemental MediaConnect returns an ingest endpoint where you can send your live video as a single unicast stream. The service replicates and distributes the video to every output that you specify, whether inside or outside the AWS Cloud. You can also set up entitlements on a flow to allow other AWS accounts to access your content.
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.*;
CfnFlow cfnFlow = CfnFlow.Builder.create(this, "MyCfnFlow")
.name("name")
.source(SourceProperty.builder()
.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())
.description("description")
.entitlementArn("entitlementArn")
.gatewayBridgeSource(GatewayBridgeSourceProperty.builder()
.bridgeArn("bridgeArn")
// the properties below are optional
.vpcInterfaceAttachment(VpcInterfaceAttachmentProperty.builder()
.vpcInterfaceName("vpcInterfaceName")
.build())
.build())
.ingestIp("ingestIp")
.ingestPort(123)
.maxBitrate(123)
.maxLatency(123)
.maxSyncBuffer(123)
.mediaStreamSourceConfigurations(List.of(MediaStreamSourceConfigurationProperty.builder()
.encodingName("encodingName")
.mediaStreamName("mediaStreamName")
// the properties below are optional
.inputConfigurations(List.of(InputConfigurationProperty.builder()
.inputPort(123)
.interface(InterfaceProperty.builder()
.name("name")
.build())
.build()))
.build()))
.minLatency(123)
.name("name")
.protocol("protocol")
.senderControlPort(123)
.senderIpAddress("senderIpAddress")
.sourceArn("sourceArn")
.sourceIngestPort("sourceIngestPort")
.sourceListenerAddress("sourceListenerAddress")
.sourceListenerPort(123)
.streamId("streamId")
.vpcInterfaceName("vpcInterfaceName")
.whitelistCidr("whitelistCidr")
.build())
// the properties below are optional
.availabilityZone("availabilityZone")
.flowSize("flowSize")
.maintenance(MaintenanceProperty.builder()
.maintenanceDay("maintenanceDay")
.maintenanceStartHour("maintenanceStartHour")
.build())
.mediaStreams(List.of(MediaStreamProperty.builder()
.mediaStreamId(123)
.mediaStreamName("mediaStreamName")
.mediaStreamType("mediaStreamType")
// the properties below are optional
.attributes(MediaStreamAttributesProperty.builder()
.fmtp(FmtpProperty.builder()
.channelOrder("channelOrder")
.colorimetry("colorimetry")
.exactFramerate("exactFramerate")
.par("par")
.range("range")
.scanMode("scanMode")
.tcs("tcs")
.build())
.lang("lang")
.build())
.clockRate(123)
.description("description")
.fmt(123)
.videoFormat("videoFormat")
.build()))
.ndiConfig(NdiConfigProperty.builder()
.machineName("machineName")
.ndiDiscoveryServers(List.of(NdiDiscoveryServerConfigProperty.builder()
.discoveryServerAddress("discoveryServerAddress")
.vpcInterfaceAdapter("vpcInterfaceAdapter")
// the properties below are optional
.discoveryServerPort(123)
.build()))
.ndiState("ndiState")
.build())
.sourceFailoverConfig(FailoverConfigProperty.builder()
.failoverMode("failoverMode")
.recoveryWindow(123)
.sourcePriority(SourcePriorityProperty.builder()
.primarySource("primarySource")
.build())
.state("state")
.build())
.sourceMonitoringConfig(SourceMonitoringConfigProperty.builder()
.audioMonitoringSettings(List.of(AudioMonitoringSettingProperty.builder()
.silentAudio(SilentAudioProperty.builder()
.state("state")
.thresholdSeconds(123)
.build())
.build()))
.contentQualityAnalysisState("contentQualityAnalysisState")
.thumbnailState("thumbnailState")
.videoMonitoringSettings(List.of(VideoMonitoringSettingProperty.builder()
.blackFrames(BlackFramesProperty.builder()
.state("state")
.thresholdSeconds(123)
.build())
.frozenFrames(FrozenFramesProperty.builder()
.state("state")
.thresholdSeconds(123)
.build())
.build()))
.build())
.vpcInterfaces(List.of(VpcInterfaceProperty.builder()
.name("name")
.roleArn("roleArn")
.securityGroupIds(List.of("securityGroupIds"))
.subnetId("subnetId")
// the properties below are optional
.networkInterfaceIds(List.of("networkInterfaceIds"))
.networkInterfaceType("networkInterfaceType")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceSpecifies the configuration for audio stream metrics monitoring.static interfaceConfigures settings for theBlackFramesmetric.static final classA fluent builder forCfnFlow.static interfaceInformation about the encryption of the flow.static interfaceThe settings for source failover.static interfaceA set of parameters that define the media stream.static interfaceConfigures settings for theFrozenFramesmetric.static interfaceThe source configuration for cloud flows receiving a stream from a bridge.static interfaceThe transport parameters that are associated with an incoming media stream.static interfaceThe VPC interface that is used for the media stream associated with the source or output.static interfaceThe maintenance setting of a flow.static interfaceAttributes that are related to the media stream.static interfaceA media stream represents one component of your content, such as video, audio, or ancillary data.static interfaceThe media stream that is associated with the source, and the parameters for that association.static interfaceSpecifies the configuration settings for NDI outputs.static interfaceSpecifies the configuration settings for individual NDI discovery servers.static interfaceConfigures settings for theSilentAudiometric.static interfaceTheSourceMonitoringConfigproperty type specifies the source monitoring settings for anAWS::MediaConnect::Flow.static interfaceThe priority you want to assign to a source.static interfaceThe details of the sources of the flow.static interfaceSpecifies the configuration for video stream metrics monitoring.static interfaceThe settings for attaching a VPC interface to an resource.static interfaceThe details of a VPC interface.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.services.mediaconnect.IFlowRef
IFlowRef.Jsii$Default, IFlowRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnFlow(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnFlow(software.amazon.jsii.JsiiObjectRef objRef) CfnFlow(software.constructs.Construct scope, String id, CfnFlowProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe IP address from which video will be sent to output destinations.The Amazon Resource Name (ARN) of the flow.The Availability Zone that the flow was created in.This read-only value represents the automatically-generated NDI machine name that MediaConnect generated for this flow.The IP address that the flow listens on for incoming content.The ARN of the source.The port that the flow listens on for incoming content.The Availability Zone that you want to create the flow in.A reference to a Flow resource.Determines the processing capacity and feature set of the flow.The maintenance settings you want to use for the flow.The media streams that are associated with the flow.getName()The name of the flow.Specifies the configuration settings for NDI outputs.The settings for the source that you want to use for the new flow.The settings for source failover.The settings for source monitoring.The VPC Interfaces for this flow.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAvailabilityZone(String value) The Availability Zone that you want to create the flow in.voidsetFlowSize(String value) Determines the processing capacity and feature set of the flow.voidsetMaintenance(IResolvable value) The maintenance settings you want to use for the flow.voidThe maintenance settings you want to use for the flow.voidsetMediaStreams(List<Object> value) The media streams that are associated with the flow.voidsetMediaStreams(IResolvable value) The media streams that are associated with the flow.voidThe name of the flow.voidsetNdiConfig(IResolvable value) Specifies the configuration settings for NDI outputs.voidSpecifies the configuration settings for NDI outputs.voidsetSource(IResolvable value) The settings for the source that you want to use for the new flow.voidsetSource(CfnFlow.SourceProperty value) The settings for the source that you want to use for the new flow.voidThe settings for source failover.voidThe settings for source failover.voidThe settings for source monitoring.voidThe settings for source monitoring.voidsetVpcInterfaces(List<Object> value) The VPC Interfaces for this flow.voidsetVpcInterfaces(IResolvable value) The VPC Interfaces for this flow.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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
getNodeMethods 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
-
CfnFlow
protected CfnFlow(software.amazon.jsii.JsiiObjectRef objRef) -
CfnFlow
protected CfnFlow(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnFlow
@Stability(Stable) public CfnFlow(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnFlowProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrEgressIp
The IP address from which video will be sent to output destinations. -
getAttrFlowArn
The Amazon Resource Name (ARN) of the flow. -
getAttrFlowAvailabilityZone
The Availability Zone that the flow was created in.These options are limited to the Availability Zones within the current AWS Region.
-
getAttrFlowNdiMachineName
This read-only value represents the automatically-generated NDI machine name that MediaConnect generated for this flow.These NDI machine names are only generated when you don't specify your own custom name.
-
getAttrSourceIngestIp
The IP address that the flow listens on for incoming content. -
getAttrSourceSourceArn
The ARN of the source. -
getAttrSourceSourceIngestPort
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.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getFlowRef
A reference to a Flow resource.- Specified by:
getFlowRefin interfaceIFlowRef
-
getName
The name of the flow. -
setName
The name of the flow. -
getSource
The settings for the source that you want to use for the new flow.Returns union: either
IResolvableorCfnFlow.SourceProperty -
setSource
The settings for the source that you want to use for the new flow. -
setSource
The settings for the source that you want to use for the new flow. -
getAvailabilityZone
The Availability Zone that you want to create the flow in. -
setAvailabilityZone
The Availability Zone that you want to create the flow in. -
getFlowSize
Determines the processing capacity and feature set of the flow. -
setFlowSize
Determines the processing capacity and feature set of the flow. -
getMaintenance
The maintenance settings you want to use for the flow.Returns union: either
IResolvableorCfnFlow.MaintenanceProperty -
setMaintenance
The maintenance settings you want to use for the flow. -
setMaintenance
The maintenance settings you want to use for the flow. -
getMediaStreams
The media streams that are associated with the flow.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnFlow.MediaStreamProperty> -
setMediaStreams
The media streams that are associated with the flow. -
setMediaStreams
The media streams that are associated with the flow. -
getNdiConfig
Specifies the configuration settings for NDI outputs.Returns union: either
IResolvableorCfnFlow.NdiConfigProperty -
setNdiConfig
Specifies the configuration settings for NDI outputs. -
setNdiConfig
Specifies the configuration settings for NDI outputs. -
getSourceFailoverConfig
The settings for source failover.Returns union: either
IResolvableorCfnFlow.FailoverConfigProperty -
setSourceFailoverConfig
The settings for source failover. -
setSourceFailoverConfig
@Stability(Stable) public void setSourceFailoverConfig(@Nullable CfnFlow.FailoverConfigProperty value) The settings for source failover. -
getSourceMonitoringConfig
The settings for source monitoring.Returns union: either
IResolvableorCfnFlow.SourceMonitoringConfigProperty -
setSourceMonitoringConfig
The settings for source monitoring. -
setSourceMonitoringConfig
@Stability(Stable) public void setSourceMonitoringConfig(@Nullable CfnFlow.SourceMonitoringConfigProperty value) The settings for source monitoring. -
getVpcInterfaces
The VPC Interfaces for this flow.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnFlow.VpcInterfaceProperty> -
setVpcInterfaces
The VPC Interfaces for this flow. -
setVpcInterfaces
The VPC Interfaces for this flow.
-