Class CfnInput
- All Implemented Interfaces:
IInspectable,ITaggable,IInputRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
A MediaLive input holds information that describes how the MediaLive channel is connected to the upstream system that is providing the source content that is to be transcoded.
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.medialive.*;
Object tags;
CfnInput cfnInput = CfnInput.Builder.create(this, "MyCfnInput")
.destinations(List.of(InputDestinationRequestProperty.builder()
.network("network")
.networkRoutes(List.of(InputRequestDestinationRouteProperty.builder()
.cidr("cidr")
.gateway("gateway")
.build()))
.staticIpAddress("staticIpAddress")
.streamName("streamName")
.build()))
.inputDevices(List.of(InputDeviceSettingsProperty.builder()
.id("id")
.build()))
.inputNetworkLocation("inputNetworkLocation")
.inputSecurityGroups(List.of("inputSecurityGroups"))
.mediaConnectFlows(List.of(MediaConnectFlowRequestProperty.builder()
.flowArn("flowArn")
.build()))
.multicastSettings(MulticastSettingsCreateRequestProperty.builder()
.sources(List.of(MulticastSourceCreateRequestProperty.builder()
.sourceIp("sourceIp")
.url("url")
.build()))
.build())
.name("name")
.roleArn("roleArn")
.sdiSources(List.of("sdiSources"))
.smpte2110ReceiverGroupSettings(Smpte2110ReceiverGroupSettingsProperty.builder()
.smpte2110ReceiverGroups(List.of(Smpte2110ReceiverGroupProperty.builder()
.sdpSettings(Smpte2110ReceiverGroupSdpSettingsProperty.builder()
.ancillarySdps(List.of(InputSdpLocationProperty.builder()
.mediaIndex(123)
.sdpUrl("sdpUrl")
.build()))
.audioSdps(List.of(InputSdpLocationProperty.builder()
.mediaIndex(123)
.sdpUrl("sdpUrl")
.build()))
.videoSdp(InputSdpLocationProperty.builder()
.mediaIndex(123)
.sdpUrl("sdpUrl")
.build())
.build())
.build()))
.build())
.sources(List.of(InputSourceRequestProperty.builder()
.passwordParam("passwordParam")
.url("url")
.username("username")
.build()))
.srtSettings(SrtSettingsRequestProperty.builder()
.srtCallerSources(List.of(SrtCallerSourceRequestProperty.builder()
.decryption(SrtCallerDecryptionRequestProperty.builder()
.algorithm("algorithm")
.passphraseSecretArn("passphraseSecretArn")
.build())
.minimumLatency(123)
.srtListenerAddress("srtListenerAddress")
.srtListenerPort("srtListenerPort")
.streamId("streamId")
.build()))
.build())
.tags(tags)
.type("type")
.vpc(InputVpcRequestProperty.builder()
.securityGroupIds(List.of("securityGroupIds"))
.subnetIds(List.of("subnetIds"))
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnInput.static interfaceSettings that apply only if the input is a push type of input.static interfaceExample:static interfaceSettings that apply only if the input is an Elemental Link input.static interfaceExample:static interfaceExample:static interfaceSettings that apply only if the input is a pull type of input.static interfaceSettings that apply only if the input is an push input where the source is on Amazon VPC.static interfaceSettings that apply only if the input is a MediaConnect input.static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample: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.medialive.IInputRef
IInputRef.Jsii$Default, IInputRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnInput(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnInput(software.amazon.jsii.JsiiObjectRef objRef) CfnInput(software.constructs.Construct scope, String id, CfnInputProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IInputReffromInputArn(software.constructs.Construct scope, String id, String arn) Creates a new IInputRef from an ARN.static IInputReffromInputId(software.constructs.Construct scope, String id, String inputId) Creates a new IInputRef from a inputId.The ARN of the MediaLive input.For a push input, the the destination or destinations for the input.The unique ID for the device.For a pull input, the source or sources for the input.Settings that apply only if the input is a push type of input.Settings that apply only if the input is an Elemental Link input.A reference to a Input resource.The list of input security groups (referenced by IDs) to attach to the input if the input is a push type.Settings that apply only if the input is a MediaConnect input.Returns union: eitherIResolvableorCfnInput.MulticastSettingsCreateRequestPropertygetName()A name for the input.The IAM role for MediaLive to assume when creating a MediaConnect input or Amazon VPC input.Returns union: eitherIResolvableorCfnInput.Smpte2110ReceiverGroupSettingsPropertySettings that apply only if the input is a pull type of input.Returns union: eitherIResolvableorCfnInput.SrtSettingsRequestPropertygetTags()Tag Manager which manages the tags for this resource.A collection of tags for this input.getType()The type for this input.getVpc()Settings that apply only if the input is an push input where the source is on Amazon VPC.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDestinations(List<Object> value) Settings that apply only if the input is a push type of input.voidsetDestinations(IResolvable value) Settings that apply only if the input is a push type of input.voidsetInputDevices(List<Object> value) Settings that apply only if the input is an Elemental Link input.voidsetInputDevices(IResolvable value) Settings that apply only if the input is an Elemental Link input.voidsetInputNetworkLocation(String value) voidsetInputSecurityGroups(List<String> value) The list of input security groups (referenced by IDs) to attach to the input if the input is a push type.voidsetMediaConnectFlows(List<Object> value) Settings that apply only if the input is a MediaConnect input.voidsetMediaConnectFlows(IResolvable value) Settings that apply only if the input is a MediaConnect input.voidsetMulticastSettings(IResolvable value) voidvoidA name for the input.voidsetRoleArn(String value) The IAM role for MediaLive to assume when creating a MediaConnect input or Amazon VPC input.voidsetSdiSources(List<String> value) voidvoidvoidsetSources(List<Object> value) Settings that apply only if the input is a pull type of input.voidsetSources(IResolvable value) Settings that apply only if the input is a pull type of input.voidsetSrtSettings(IResolvable value) voidvoidsetTagsRaw(Object value) A collection of tags for this input.voidThe type for this input.voidsetVpc(IResolvable value) Settings that apply only if the input is an push input where the source is on Amazon VPC.voidSettings that apply only if the input is an push input where the source is on Amazon VPC.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
-
CfnInput
protected CfnInput(software.amazon.jsii.JsiiObjectRef objRef) -
CfnInput
protected CfnInput(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnInput
@Stability(Stable) public CfnInput(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnInputProps 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.
-
CfnInput
@Stability(Stable) public CfnInput(@NotNull software.constructs.Construct scope, @NotNull String id) - 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.
-
-
Method Details
-
fromInputArn
@Stability(Stable) @NotNull public static IInputRef fromInputArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IInputRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromInputId
@Stability(Stable) @NotNull public static IInputRef fromInputId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String inputId) Creates a new IInputRef from a inputId.- Parameters:
scope- This parameter is required.id- This parameter is required.inputId- This parameter is required.
-
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.
-
getAttrArn
The ARN of the MediaLive input.For example: arn:aws:medialive:us-west-1:111122223333:medialive:input:1234567. MediaLive creates this ARN when it creates the input.
-
getAttrDestinations
For a push input, the the destination or destinations for the input.The destinations are the URLs of locations on MediaLive where the upstream system pushes the content to, for this input. MediaLive creates these addresses when it creates the input.
-
getAttrId
The unique ID for the device. -
getAttrSources
For a pull input, the source or sources for the input.The sources are the URLs of locations on the upstream system where MediaLive pulls the content from, for this input. You included these URLs in the create request.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getInputRef
A reference to a Input resource.- Specified by:
getInputRefin interfaceIInputRef
-
getTags
Tag Manager which manages the tags for this resource. -
getDestinations
Settings that apply only if the input is a push type of input.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnInput.InputDestinationRequestProperty> -
setDestinations
Settings that apply only if the input is a push type of input. -
setDestinations
Settings that apply only if the input is a push type of input. -
getInputDevices
Settings that apply only if the input is an Elemental Link input.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnInput.InputDeviceSettingsProperty> -
setInputDevices
Settings that apply only if the input is an Elemental Link input. -
setInputDevices
Settings that apply only if the input is an Elemental Link input. -
getInputNetworkLocation
-
setInputNetworkLocation
-
getInputSecurityGroups
The list of input security groups (referenced by IDs) to attach to the input if the input is a push type. -
setInputSecurityGroups
The list of input security groups (referenced by IDs) to attach to the input if the input is a push type. -
getMediaConnectFlows
Settings that apply only if the input is a MediaConnect input.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnInput.MediaConnectFlowRequestProperty> -
setMediaConnectFlows
Settings that apply only if the input is a MediaConnect input. -
setMediaConnectFlows
Settings that apply only if the input is a MediaConnect input. -
getMulticastSettings
Returns union: eitherIResolvableorCfnInput.MulticastSettingsCreateRequestProperty -
setMulticastSettings
-
setMulticastSettings
@Stability(Stable) public void setMulticastSettings(@Nullable CfnInput.MulticastSettingsCreateRequestProperty value) -
getName
A name for the input. -
setName
A name for the input. -
getRoleArn
The IAM role for MediaLive to assume when creating a MediaConnect input or Amazon VPC input. -
setRoleArn
The IAM role for MediaLive to assume when creating a MediaConnect input or Amazon VPC input. -
getSdiSources
-
setSdiSources
-
getSmpte2110ReceiverGroupSettings
Returns union: eitherIResolvableorCfnInput.Smpte2110ReceiverGroupSettingsProperty -
setSmpte2110ReceiverGroupSettings
-
setSmpte2110ReceiverGroupSettings
@Stability(Stable) public void setSmpte2110ReceiverGroupSettings(@Nullable CfnInput.Smpte2110ReceiverGroupSettingsProperty value) -
getSources
Settings that apply only if the input is a pull type of input.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnInput.InputSourceRequestProperty> -
setSources
Settings that apply only if the input is a pull type of input. -
setSources
Settings that apply only if the input is a pull type of input. -
getSrtSettings
Returns union: eitherIResolvableorCfnInput.SrtSettingsRequestProperty -
setSrtSettings
-
setSrtSettings
-
getTagsRaw
A collection of tags for this input. -
setTagsRaw
A collection of tags for this input. -
getType
The type for this input. -
setType
The type for this input. -
getVpc
Settings that apply only if the input is an push input where the source is on Amazon VPC.Returns union: either
IResolvableorCfnInput.InputVpcRequestProperty -
setVpc
Settings that apply only if the input is an push input where the source is on Amazon VPC. -
setVpc
Settings that apply only if the input is an push input where the source is on Amazon VPC.
-