Class CfnFlow
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
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();
-
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
The priority you want to assign to a source.static interface
The details of the sources 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
-
Method Summary
Modifier and TypeMethodDescriptionThe 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 will be listening on for incoming content.The Availability Zone that you want to create the flow in.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.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
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.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
-
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 newAWS::MediaConnect::Flow
.- 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.
-
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 will be listening on for incoming content. -
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.These options are limited to the Availability Zones within the current AWS Region.
-
setAvailabilityZone
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
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.
-