> **Experimental**
>
> `@aws-cdk/aws-mediaconnect-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# IRouterInput

Interface for Router Input.

Extends: IRouterInput
Extends: IResource, IRouterInputRef
Implemented by: RouterInput

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/router-input.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-mediaconnect-alpha/lib/router-input.ts#L72)

## Properties

- `createdAt`: string — The timestamp when the router input was created.

- `endpoints`: [RouterInputEndpoint](/cdk/api/v2/docs/@aws-cdk_aws-mediaconnect-alpha.RouterInputEndpoint.html)[] — The ingest endpoints (URL + port) where the router input listens.

  Returns one entry for standard protocol-based variants (RTP, RIST, SRT listener),
  and one entry per source for failover and merge configurations built from those
  protocols. For example a failover RTP input will return:

  ```
  [
    { url: 'rtp://203.0.113.10:5000', port: 5000 },
    { url: 'rtp://203.0.113.10:5001', port: 5001 },
  ]
  ```

  Accessing this on SRT caller (where the router input dials out to a remote
  source), MediaConnect Flow, MediaLive Channel, or imported inputs throws — those
  variants do not expose host:port pairs the input listens on.

- `env`: [ResourceEnvironment](/cdk/api/v2/docs/aws-cdk-lib.interfaces.ResourceEnvironment.html) — 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.

- `grants`: [RouterInputGrants](/cdk/api/v2/docs/@aws-cdk_aws-mediaconnect-alpha.RouterInputGrants.html) — Collection of grant methods for this router input.

- `ipAddress`: string — The IP address of the router input.

- `node`: [Node](/cdk/api/v2/docs/constructs.Node.html) — The tree node.

- `routerInputArn`: string — The Amazon Resource Name (ARN) of the router input.

- `routerInputId`: string — The unique identifier of the router input.

- `routerInputRef`: [RouterInputReference](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_mediaconnect.RouterInputReference.html) — A reference to a RouterInput resource.

- `stack`: [Stack](/cdk/api/v2/docs/aws-cdk-lib.Stack.html) — The stack in which this resource is defined.

- `transitEncryptionSecret`: [ISecret](/cdk/api/v2/docs/aws-cdk-lib.aws_secretsmanager.ISecret.html) — The Secrets Manager secret containing the transit encryption passphrase.

  Only available when the Router Input was created with explicit
  `transitEncryption` configuration. Not available for
  automatic encryption or imported inputs.

- `updatedAt`: string — The timestamp when the router input was last updated.

## Methods

- `applyRemovalPolicy(policy: RemovalPolicy): void` — 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`).

- `metric(metricName: string, props?: MetricOptions): Metric` — Create a CloudWatch metric for this router input.

  Router input metrics are dimensioned by `RouterInputARN`. See the MediaConnect
  documentation for available metric names (e.g. `RouterInputBitRate`,
  `RouterInputNotRecoveredPackets`).

- `metricBitrate(props?: MetricOptions): Metric` — Metric for the bitrate of the router input's payload.

- `metricConnected(props?: MetricOptions): Metric` — Metric for the router input connection state (1 connected, 0 disconnected).

  Applies to SRT sources only.

- `metricContinuityCounterErrors(props?: MetricOptions): Metric` — Metric for continuity counter errors in the transport stream.

- `metricFailoverSwitches(props?: MetricOptions): Metric` — Metric for the number of times the router input has switched sources in Failover mode.

- `metricLatency(props?: MetricOptions): Metric` — Metric for the recovery latency of the input stream.

  Applies to RIST, SRT, and RTP-FEC.

- `metricNotRecoveredPackets(props?: MetricOptions): Metric` — Metric for packets lost in transit that were not recovered by error correction.

- `metricTotalPackets(props?: MetricOptions): Metric` — Metric for the total number of packets received by the router input.

- `with(...mixins: IMixin[]): IConstruct` — 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.

  **Parameters**

  - `mixins` — The mixins to apply.

  **Returns:** This construct for chaining
