Experimental
@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
PushInputDestination Struct
A destination for a push-type input.
| Stability | Experimental |
|---|---|
| Source | lib/input.ts |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as medialive_alpha from '@aws-cdk/aws-medialive-alpha';
import { aws_medialive as interfaces_medialive } from 'aws-cdk-lib/interfaces';
declare const networkRef: interfaces_medialive.INetworkRef;
const pushInputDestination: medialive_alpha.PushInputDestination = {
network: networkRef,
networkRoutes: [{
cidr: 'cidr',
gateway: 'gateway',
}],
staticIpAddress: 'staticIpAddress',
streamName: 'streamName',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_medialive_alpha as medialive_alpha
from aws_cdk.interfaces import aws_medialive as interfaces_medialive
# network_ref: interfaces_medialive.INetworkRef
push_input_destination = medialive_alpha.PushInputDestination(
network=network_ref,
network_routes=[medialive_alpha.NetworkRoute(
cidr="cidr",
gateway="gateway"
)],
static_ip_address="staticIpAddress",
stream_name="streamName"
)
java
// 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.alpha.*;
import software.amazon.awscdk.interfaces.medialive.*;
INetworkRef networkRef;
PushInputDestination pushInputDestination = PushInputDestination.builder()
.network(networkRef)
.networkRoutes(List.of(NetworkRoute.builder()
.cidr("cidr")
.gateway("gateway")
.build()))
.staticIpAddress("staticIpAddress")
.streamName("streamName")
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaLive.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaLive.Alpha;
using Amazon.CDK.Interfaces.MediaLive;
INetworkRef networkRef;
var pushInputDestination = new PushInputDestination {
Network = networkRef,
NetworkRoutes = new [] { new NetworkRoute {
Cidr = "cidr",
Gateway = "gateway"
} },
StaticIpAddress = "staticIpAddress",
StreamName = "streamName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awsmedialivealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import medialive_alpha "github.com/aws/aws-cdk-go/awsmedialivealpha"
import "github.com/aws/aws-cdk-go/awscdk"
var networkRef INetworkRef
pushInputDestination := &PushInputDestination{
Network: networkRef,
NetworkRoutes: []NetworkRoute{
&NetworkRoute{
Cidr: jsii.String("cidr"),
Gateway: jsii.String("gateway"),
},
},
StaticIpAddress: jsii.String("staticIpAddress"),
StreamName: jsii.String("streamName"),
}
Properties
networkoptionalINetworkRefnetworkoptionalINetworkRefnetworkoptionalINetworkRefNetworkoptionalINetworkRefNetworkoptionalINetworkRef #The MediaLive Anywhere network this push destination lives on.
Default: AWS-managed network
Required when the input's inputNetworkLocation is ON_PREMISES.
networkRoutesoptionalNetworkRoute[]network_routesoptionaltyping.List[NetworkRoute]networkRoutesoptionalList<NetworkRoute>NetworkRoutesoptionalNetworkRoute[]NetworkRoutesoptional*[]NetworkRoute #The routes to the push destination on the local network.
Default: no routes
Required for on-premises (ON_PREMISES) push inputs.
staticIpAddressoptionalstringstatic_ip_addressoptionalstrstaticIpAddressoptionalStringStaticIpAddressoptionalstringStaticIpAddressoptional*string #A static IP address to assign to the push destination on the local network.
Default: MediaLive Anywhere uses one from the IP pool specified on the selected network (service default)
streamNameoptionalstringstream_nameoptionalstrstreamNameoptionalStringStreamNameoptionalstringStreamNameoptional*string = auto-generated #The stream name for RTMP push destinations (application name/instance).