class Input (construct)
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaLive.Alpha.Input |
Go | github.com/aws/aws-cdk-go/awsmedialivealpha/v2#Input |
Java | software.amazon.awscdk.services.medialive.alpha.Input |
Python | aws_cdk.aws_medialive_alpha.Input |
TypeScript (source) | @aws-cdk/aws-medialive-alpha ยป Input |
Implements
IConstruct, IDependable, IResource, IEnvironment, IInput, IInput
Defines an AWS Elemental MediaLive Input.
Example
declare const stack: Stack;
declare const passphrase: secretsmanager.ISecret;
const sg = new medialive.InputSecurityGroup(stack, 'SrtSg', {
allowlistRules: ['203.0.113.0/24'],
});
new medialive.Input(stack, 'SrtListenerInput', {
inputName: 'srt-listener',
input: medialive.InputConfiguration.srtListener({
inputSecurityGroups: [sg],
minimumLatency: Duration.millis(500),
streamId: 'my-stream-id',
decryption: {
algorithm: medialive.SrtDecryptionAlgorithm.AES256,
passphraseSecret: passphrase,
},
}),
});
Initializer
new Input(scope: Construct, id: string, props: InputProps)
Parameters
- scope
Construct - id
string - props
InputProps
Construct Props
| Name | Type | Description |
|---|---|---|
| input | Input | Input configuration that defines the input type and source settings. |
| input | string | Input name. |
| input | Input | The network location of the input โ AWS cloud or on-premises (MediaLive Anywhere). |
| tags? | { [string]: string } | Tags to add to the input. |
input
Type:
Input
Input configuration that defines the input type and source settings.
inputName?
Type:
string
(optional, default: auto-generated)
Input name.
inputNetworkLocation?
Type:
Input
(optional, default: AWS, applied by MediaLive)
The network location of the input โ AWS cloud or on-premises (MediaLive Anywhere).
tags?
Type:
{ [string]: string }
(optional, default: no tags)
Tags to add to the input.
Properties
| Name | Type | Description |
|---|---|---|
| env | Resource | The environment this resource belongs to. |
| input | string | The Amazon Resource Name (ARN) of the input. |
| input | string | The ID of the input. |
| input | Input | A reference to this Input resource. |
| node | Node | The tree node. |
| stack | Stack | The stack in which this resource is defined. |
| input | string | The input class (STANDARD or SINGLE_PIPELINE). |
| input | string[] | For push inputs, the destination URLs where the upstream system sends content. |
| input | string[] | For pull inputs, the source URLs where MediaLive pulls content from. |
| input | string | The input type (e.g. SRT_CALLER, MP4_FILE, URL_PULL). Undefined for imported inputs. |
| static PROPERTY_INJECTION_ID | string | Uniquely identifies this class. |
env
Type:
Resource
The environment this resource belongs to.
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.
inputArn
Type:
string
The Amazon Resource Name (ARN) of the input.
inputId
Type:
string
The ID of the input.
inputRef
Type:
Input
A reference to this Input resource.
node
Type:
Node
The tree node.
stack
Type:
Stack
The stack in which this resource is defined.
inputClass?
Type:
string
(optional)
The input class (STANDARD or SINGLE_PIPELINE).
Only available for input types where the pipeline count is known at construct time (e.g. mediaConnectRouter). Undefined for imported inputs and other types.
inputDestinations?
Type:
string[]
(optional)
For push inputs, the destination URLs where the upstream system sends content.
inputSources?
Type:
string[]
(optional)
For pull inputs, the source URLs where MediaLive pulls content from.
inputType?
Type:
string
(optional)
The input type (e.g. SRT_CALLER, MP4_FILE, URL_PULL). Undefined for imported inputs.
static PROPERTY_INJECTION_ID
Type:
string
Uniquely identifies this class.
Methods
| Name | Description |
|---|---|
| apply | Override the cross-stack reference strength for this resource. |
| apply | Apply the given removal policy to this resource. |
| to | Returns a string representation of this construct. |
| with(...mixins) | Applies one or more mixins to this construct. |
| static from | Import an existing input by its ARN. |
applyCrossStackReferenceStrength(strength)
public applyCrossStackReferenceStrength(strength: ReferenceStrength): void
Parameters
- strength
Referenceโ - The reference strength to use for this resource.Strength
Override the cross-stack reference strength for this resource.
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.
applyRemovalPolicy(policy)
public applyRemovalPolicy(policy: RemovalPolicy): void
Parameters
- policy
RemovalPolicy
Apply the given removal policy to this resource.
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).
toString()
public toString(): string
Returns
string
Returns a string representation of this construct.
with(...mixins)
public with(...mixins: IMixin[]): IConstruct
Parameters
- mixins
IMixin
Returns
Applies one or more mixins to this construct.
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.
static fromInputArn(scope, id, inputArn)
public static fromInputArn(scope: Construct, id: string, inputArn: string): IInput
Parameters
- scope
Construct - id
string - inputArn
string
Returns
Import an existing input by its ARN.
The id is parsed out of the ARN.

.NET
Go
Java
Python
TypeScript (