java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IConstruct, IDependable, IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:59.882Z") @Stability(Stable) public class CfnFlow extends CfnResource implements IInspectable
A CloudFormation AWS::MediaConnect::Flow.

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")
                 .ingestIp("ingestIp")
                 .ingestPort(123)
                 .maxBitrate(123)
                 .maxLatency(123)
                 .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")
         .sourceFailoverConfig(FailoverConfigProperty.builder()
                 .failoverMode("failoverMode")
                 .recoveryWindow(123)
                 .sourcePriority(SourcePriorityProperty.builder()
                         .primarySource("primarySource")
                         .build())
                 .state("state")
                 .build())
         .build();
 
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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 Construct scope, @NotNull String id, @NotNull CfnFlowProps props)
      Create a new AWS::MediaConnect::Flow.

      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      props -
      • resource properties.
      This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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 class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrFlowArn

      @Stability(Stable) @NotNull public String getAttrFlowArn()
      The Amazon Resource Name (ARN) of the flow.
    • getAttrFlowAvailabilityZone

      @Stability(Stable) @NotNull public String getAttrFlowAvailabilityZone()
      The Availability Zone that the flow was created in.

      These options are limited to the Availability Zones within the current AWS Region.

    • getAttrSourceIngestIp

      @Stability(Stable) @NotNull public String getAttrSourceIngestIp()
      The IP address that the flow listens on for incoming content.
    • getAttrSourceSourceArn

      @Stability(Stable) @NotNull public String getAttrSourceSourceArn()
      The ARN of the source.
    • getAttrSourceSourceIngestPort

      @Stability(Stable) @NotNull public String getAttrSourceSourceIngestPort()
      The port that the flow will be listening on for incoming content.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getName

      @Stability(Stable) @NotNull public String getName()
      The name of the flow.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      The name of the flow.
    • getSource

      @Stability(Stable) @NotNull public Object getSource()
      The settings for the source that you want to use for the new flow.
    • setSource

      @Stability(Stable) public void setSource(@NotNull CfnFlow.SourceProperty value)
      The settings for the source that you want to use for the new flow.
    • setSource

      @Stability(Stable) public void setSource(@NotNull IResolvable value)
      The settings for the source that you want to use for the new flow.
    • getAvailabilityZone

      @Stability(Stable) @Nullable public String getAvailabilityZone()
      The Availability Zone that you want to create the flow in.

      These options are limited to the Availability Zones within the current AWS Region.

    • setAvailabilityZone

      @Stability(Stable) public void setAvailabilityZone(@Nullable String value)
      The Availability Zone that you want to create the flow in.

      These options are limited to the Availability Zones within the current AWS Region.

    • getSourceFailoverConfig

      @Stability(Stable) @Nullable public Object getSourceFailoverConfig()
      The settings for source failover.
    • setSourceFailoverConfig

      @Stability(Stable) public void setSourceFailoverConfig(@Nullable IResolvable value)
      The settings for source failover.
    • setSourceFailoverConfig

      @Stability(Stable) public void setSourceFailoverConfig(@Nullable CfnFlow.FailoverConfigProperty value)
      The settings for source failover.