Class CfnFlow
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.mediaconnect.CfnFlow
- All Implemented Interfaces:
IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:12.623Z")
@Stability(Stable)
public class CfnFlow
extends CfnResource
implements IInspectable
The 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")
.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()))
.sourceFailoverConfig(FailoverConfigProperty.builder()
.failoverMode("failoverMode")
.recoveryWindow(123)
.sourcePriority(SourcePriorityProperty.builder()
.primarySource("primarySource")
.build())
.state("state")
.build())
.sourceMonitoringConfig(SourceMonitoringConfigProperty.builder()
.thumbnailState("thumbnailState")
.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 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 interfaceThe source configuration for cloud flows receiving a stream from a bridge.static interfaceThe transport parameters associated with an incoming media stream.static interfaceThe VPC interface that you want to use for the media stream associated with the output.static interfaceThe maintenance setting of a flow.static interfaceAttributes that are related to the media stream.static interfaceA single track or stream of media that contains video, audio, or ancillary data.static interfaceThe media stream that is associated with the source, and the parameters for that association.static interfaceThe settings for source monitoring.static interfaceThe priority you want to assign to a source.static interfaceThe details of the sources of the flow.static interfaceThe VPC interface that you want to send your output to.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.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 outgoing IP address that MediaConnect uses to send video from the flow.The Amazon Resource Name (ARN) of the flow.The Availability Zone that the flow was created in.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.The maintenance settings you want to use for the flow.The media streams associated with the flow.getName()The name of the flow.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 that you added to 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.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 associated with the flow.voidsetMediaStreams(IResolvable value) The media streams associated with the flow.voidThe name of the flow.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 that you added to this flow.voidsetVpcInterfaces(IResolvable value) The VPC interfaces that you added to 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.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 outgoing IP address that MediaConnect uses to send video from the flow. -
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.
-
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
-
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. -
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. -
getMaintenance
The maintenance settings you want to use for the flow. -
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 associated with the flow. -
setMediaStreams
The media streams associated with the flow. -
setMediaStreams
The media streams associated with the flow. -
getSourceFailoverConfig
The settings for source failover. -
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. -
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 that you added to this flow. -
setVpcInterfaces
The VPC interfaces that you added to this flow. -
setVpcInterfaces
The VPC interfaces that you added to this flow.
-