Experimental
@aws-cdk/aws-mediaconnect-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
RouterOutput L2 construct
Defines an AWS Elemental MediaConnect Router Output.
Example
declare const stack: Stack;
declare const networkInterface: RouterNetworkInterface;
const output = new RouterOutput(stack, 'SrtOutput', {
routerOutputName: 'srt-output',
maximumBitrate: Bitrate.mbps(10),
routingScope: RoutingScope.REGIONAL,
// tier defaults to RouterOutputTier.OUTPUT_20 (lowest cost)
configuration: RouterOutputConfiguration.standard({
protocol: RouterOutputProtocol.srtListener({
port: 9001,
minimumLatency: Duration.millis(200),
}),
networkInterface: networkInterface,
}),
});
# stack: Stack
# network_interface: RouterNetworkInterface
output = RouterOutput(stack, "SrtOutput",
router_output_name="srt-output",
maximum_bitrate=Bitrate.mbps(10),
routing_scope=RoutingScope.REGIONAL,
# tier defaults to RouterOutputTier.OUTPUT_20 (lowest cost)
configuration=RouterOutputConfiguration.standard(
protocol=RouterOutputProtocol.srt_listener(
port=9001,
minimum_latency=Duration.millis(200)
),
network_interface=network_interface
)
)
Stack stack;
RouterNetworkInterface networkInterface;
RouterOutput output = RouterOutput.Builder.create(stack, "SrtOutput")
.routerOutputName("srt-output")
.maximumBitrate(Bitrate.mbps(10))
.routingScope(RoutingScope.REGIONAL)
// tier defaults to RouterOutputTier.OUTPUT_20 (lowest cost)
.configuration(RouterOutputConfiguration.standard(StandardOutputConfigurationProps.builder()
.protocol(RouterOutputProtocol.srtListener(SrtListenerOutputProtocolProps.builder()
.port(9001)
.minimumLatency(Duration.millis(200))
.build()))
.networkInterface(networkInterface)
.build()))
.build();
// Install: dotnet add package Amazon.CDK.AWS.MediaConnect.Alpha
Stack stack;
RouterNetworkInterface networkInterface;
var output = new RouterOutput(stack, "SrtOutput", new RouterOutputProps {
RouterOutputName = "srt-output",
MaximumBitrate = Bitrate.Mbps(10),
RoutingScope = RoutingScope.REGIONAL,
// tier defaults to RouterOutputTier.OUTPUT_20 (lowest cost)
Configuration = RouterOutputConfiguration.Standard(new StandardOutputConfigurationProps {
Protocol = RouterOutputProtocol.SrtListener(new SrtListenerOutputProtocolProps {
Port = 9001,
MinimumLatency = Duration.Millis(200)
}),
NetworkInterface = networkInterface
})
});
// Install: go get github.com/aws/aws-cdk-go/awsmediaconnectalpha/v2
var stack Stack
var networkInterface RouterNetworkInterface
output := awsmediaconnectalpha.NewRouterOutput(stack, jsii.String("SrtOutput"), &RouterOutputProps{
RouterOutputName: jsii.String("srt-output"),
MaximumBitrate: awscdk.Bitrate_Mbps(jsii.Number(10)),
RoutingScope: awsmediaconnectalpha.RoutingScope_REGIONAL(),
// tier defaults to RouterOutputTier.OUTPUT_20 (lowest cost)
Configuration: awsmediaconnectalpha.RouterOutputConfiguration_Standard(&StandardOutputConfigurationProps{
Protocol: awsmediaconnectalpha.RouterOutputProtocol_SrtListener(&SrtListenerOutputProtocolProps{
Port: jsii.Number(9001),
MinimumLatency: awscdk.Duration_Millis(jsii.Number(200)),
}),
NetworkInterface: networkInterface,
}),
})
Initializer
new RouterOutput(scope: Construct, id: string, props: RouterOutputProps)
RouterOutput(scope: Construct, id: str, props: RouterOutputProps)
new RouterOutput(Construct scope, String id, RouterOutputProps props)
new RouterOutput(Construct scope, string id, RouterOutputProps props)
NewRouterOutput(Scope Construct, Id *string, Props RouterOutputProps)
Construct Props
configurationRouterOutputConfigurationconfigurationRouterOutputConfigurationconfigurationRouterOutputConfigurationConfigurationRouterOutputConfigurationConfigurationRouterOutputConfigurationrequired#maintenanceConfigurationoptionalMaintenanceConfigurationmaintenance_configurationoptionalMaintenanceConfigurationmaintenanceConfigurationoptionalMaintenanceConfigurationMaintenanceConfigurationoptionalMaintenanceConfigurationMaintenanceConfigurationoptionalMaintenanceConfiguration#Default: Default maintenance window will be used
maximumBitrateBitratemaximum_bitrateBitratemaximumBitrateBitrateMaximumBitrateBitrateMaximumBitrateBitraterequired#Must fall within the limits of the selected tier.
regionNameoptionalstringregion_nameoptionalstrregionNameoptionalStringRegionNameoptionalstringRegionNameoptional*string#Default: Defaults to the same region as stack
routerOutputNameoptionalstringrouter_output_nameoptionalstrrouterOutputNameoptionalStringRouterOutputNameoptionalstringRouterOutputNameoptional*string#Default: Generated automatically
routingScopeRoutingScoperouting_scopeRoutingScoperoutingScopeRoutingScopeRoutingScopeRoutingScopeRoutingScopeRoutingScoperequired#tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string#Default: No tagging
tieroptionalRouterOutputTiertieroptionalRouterOutputTiertieroptionalRouterOutputTierTieroptionalRouterOutputTierTieroptionalRouterOutputTier= RouterOutputTier.OUTPUT_20#The tier determines the capacity limits, performance characteristics, and associated costs; maximumBitrate must fall within its limits.
Properties
createdAtmay be undefinedstringcreated_atmay be undefinedstrcreatedAtmay be undefinedStringCreatedAtmay be undefinedstringCreatedAtmay be undefined*string#envResourceEnvironmentenvResourceEnvironmentenvResourceEnvironmentEnvResourceEnvironmentEnvResourceEnvironmentrequired#notes
For resources that are created and managed in a Stack (those created by creating new class instances like new Role(), new Bucket(), etc.), this is always the same as the environment of the stack they belong to.
For referenced resources (those obtained from referencing methods like Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.
PROPERTY_INJECTION_IDstringproperty_injection_idstrPROPERTY_INJECTION_IDStringPROPERTY_INJECTION_IDstringPROPERTY_INJECTION_ID*stringrequiredstatic#routerOutputArnstringrouter_output_arnstrrouterOutputArnStringRouterOutputArnstringRouterOutputArn*stringrequired#routerOutputIdstringrouter_output_idstrrouterOutputIdStringRouterOutputIdstringRouterOutputId*stringrequired#routerOutputNamestringrouter_output_namestrrouterOutputNameStringRouterOutputNamestringRouterOutputName*stringrequired#routerOutputRefRouterOutputReferencerouter_output_refRouterOutputReferencerouterOutputRefRouterOutputReferenceRouterOutputRefRouterOutputReferenceRouterOutputRefRouterOutputReferencerequired#Required by the auto-generated IRouterOutputRef interface.
updatedAtmay be undefinedstringupdated_atmay be undefinedstrupdatedAtmay be undefinedStringUpdatedAtmay be undefinedstringUpdatedAtmay be undefined*string#Methods
applyCrossStackReferenceStrength(strength: ReferenceStrength): voiddef apply_cross_stack_reference_strength(self, strength: ReferenceStrength) -> Nonepublic void applyCrossStackReferenceStrength(ReferenceStrength strength)public void ApplyCrossStackReferenceStrength(ReferenceStrength strength)func ApplyCrossStackReferenceStrength(Strength ReferenceStrength)#notes · 1 parameter
When set, any cross-stack reference to this resource will use the specified mechanism instead of the global default determined by the @aws-cdk/core:defaultCrossStackReferences context key. This is useful for selectively weakening specific references to avoid the "deadly embrace" problem without changing the app-wide default.
Parameters
strengthstrengthstrengthstrengthStrength— - The reference strength to use for this resource.
applyRemovalPolicy(policy: RemovalPolicy): voiddef apply_removal_policy(self, policy: RemovalPolicy) -> Nonepublic void applyRemovalPolicy(RemovalPolicy policy)public void ApplyRemovalPolicy(RemovalPolicy policy)func ApplyRemovalPolicy(Policy RemovalPolicy)#notes
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).
fromRouterOutputArn(scope: Construct, id: string, routerOutputArn: string): IRouterOutput@staticmethod def from_router_output_arn(scope: Construct, id: str, router_output_arn: str) -> IRouterOutputpublic static IRouterOutput fromRouterOutputArn(Construct scope, String id, String routerOutputArn)public static IRouterOutput FromRouterOutputArn(Construct scope, string id, string routerOutputArn)func FromRouterOutputArn(Scope Construct, Id *string, RouterOutputArn *string) IRouterOutputstatic#The ARN only contains the service-generated ID (not the router output name). Accessing routerOutputName on an ARN import throws — use fromRouterOutputAttributes() to provide the name explicitly.
3 parameters · returns
Parameters
scopescopescopescopeScope— The parent construct.ididididId— The construct id.routerOutputArnrouter_output_arnrouterOutputArnrouterOutputArnRouterOutputArn— The ARN of the Router Output.
Returns: A Router Output construct
fromRouterOutputAttributes(scope: Construct, id: string, attrs: RouterOutputAttributes): IRouterOutput@staticmethod def from_router_output_attributes(scope: Construct, id: str, attrs: RouterOutputAttributes) -> IRouterOutputpublic static IRouterOutput fromRouterOutputAttributes(Construct scope, String id, RouterOutputAttributes attrs)public static IRouterOutput FromRouterOutputAttributes(Construct scope, string id, RouterOutputAttributes attrs)func FromRouterOutputAttributes(Scope Construct, Id *string, Attrs RouterOutputAttributes) IRouterOutputstatic#Use this when you need to reference a router output by name.
3 parameters · returns
Parameters
scopescopescopescopeScope— The parent construct.ididididId— The construct id.attrsattrsattrsattrsAttrs— The Router Output attributes.
Returns: A Router Output construct
isConstruct(x: any): boolean@staticmethod def is_construct(x: Any) -> boolpublic static Boolean isConstruct(Object x)public static bool IsConstruct(object x)func IsConstruct(X interface{}) *boolstatic#notes · 1 parameter · returns
Use this method instead of instanceof to properly detect Construct instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on disk are seen as independent, completely different libraries. As a consequence, the class Construct in each copy of the constructs library is seen as a different class, and an instance of one class will not test as instanceof the other class. npm install will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the constructs library can be accidentally installed, and instanceof will behave unpredictably. It is safest to avoid using instanceof, and using this type-testing method instead.
Parameters
xxxxX— Any object.
Returns: true if x is an object created from a class which extends Construct.
isOwnedResource(construct: IConstruct): boolean@staticmethod def is_owned_resource(construct: IConstruct) -> boolpublic static Boolean isOwnedResource(IConstruct construct)public static bool IsOwnedResource(IConstruct construct)func IsOwnedResource(Construct IConstruct) *boolstatic#isResource(construct: IConstruct): boolean@staticmethod def is_resource(construct: IConstruct) -> boolpublic static Boolean isResource(IConstruct construct)public static bool IsResource(IConstruct construct)func IsResource(Construct IConstruct) *boolstatic#metric(metricName: string, props?: MetricOptions): Metricdef metric(self, metric_name: str, props: typing.Optional[MetricOptions] = None) -> Metricpublic Metric metric(String metricName, MetricOptions props)public Metric Metric(string metricName, MetricOptions? props = null)func Metric(MetricName *string, Props MetricOptions) Metric#metricArqRequests(props?: MetricOptions): Metricdef metric_arq_requests(self, props: typing.Optional[MetricOptions] = None) -> Metricpublic Metric metricArqRequests(MetricOptions props)public Metric MetricArqRequests(MetricOptions? props = null)func MetricArqRequests(Props MetricOptions) Metric#Applies to RIST and SRT outputs.
metricBitrate(props?: MetricOptions): Metricdef metric_bitrate(self, props: typing.Optional[MetricOptions] = None) -> Metricpublic Metric metricBitrate(MetricOptions props)public Metric MetricBitrate(MetricOptions? props = null)func MetricBitrate(Props MetricOptions) Metric#metricConnected(props?: MetricOptions): Metricdef metric_connected(self, props: typing.Optional[MetricOptions] = None) -> Metricpublic Metric metricConnected(MetricOptions props)public Metric MetricConnected(MetricOptions? props = null)func MetricConnected(Props MetricOptions) Metric#Applies to SRT outputs only.
metricTotalPackets(props?: MetricOptions): Metricdef metric_total_packets(self, props: typing.Optional[MetricOptions] = None) -> Metricpublic Metric metricTotalPackets(MetricOptions props)public Metric MetricTotalPackets(MetricOptions? props = null)func MetricTotalPackets(Props MetricOptions) Metric#toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string#with(...mixins: IMixin[]): IConstructdef with(self, mixins: IMixin) -> IConstructpublic IConstruct with(IMixin mixins)public IConstruct With(IMixin mixins)func With(Mixins IMixin) IConstruct#Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited. Use multiple with() calls if subsequent mixins should apply to added constructs.