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-12-11T23:26:36.080Z")
@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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnFlow
.static interface
Information about the encryption of the flow.static interface
The settings for source failover.static interface
A set of parameters that define the media stream.static interface
The source configuration for cloud flows receiving a stream from a bridge.static interface
The transport parameters associated with an incoming media stream.static interface
The VPC interface that you want to use for the media stream associated with the output.static interface
The maintenance setting of a flow.static interface
Attributes that are related to the media stream.static interface
A single track or stream of media that contains video, audio, or ancillary data.static interface
The media stream that is associated with the source, and the parameters for that association.static interface
TheSourceMonitoringConfig
property type specifies the source monitoring settings for an AWS::MediaConnect::Flow.static interface
The priority you want to assign to a source.static interface
The details of the sources of the flow.static interface
The VPC interface that you want to send your output to.static interface
The details of a VPC interface.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.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
ModifierConstructorDescriptionprotected
CfnFlow
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnFlow
(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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setAvailabilityZone
(String value) The Availability Zone that you want to create the flow in.void
setMaintenance
(IResolvable value) The maintenance settings you want to use for the flow.void
The maintenance settings you want to use for the flow.void
setMediaStreams
(List<Object> value) The media streams associated with the flow.void
setMediaStreams
(IResolvable value) The media streams associated with the flow.void
The name of the flow.void
setSource
(IResolvable value) The settings for the source that you want to use for the new flow.void
setSource
(CfnFlow.SourceProperty value) The settings for the source that you want to use for the new flow.void
The settings for source failover.void
The settings for source failover.void
The settings for source monitoring.void
The settings for source monitoring.void
setVpcInterfaces
(List<Object> value) The VPC interfaces that you added to this flow.void
setVpcInterfaces
(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, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
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
-
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:
inspect
in 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:
renderProperties
in 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:
getCfnProperties
in 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.
-