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

Bridge configuration to set ingress and egress options on the bridge.

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

## Example

```ts
declare const stack: Stack;

const productionNetwork = GatewayNetwork.define({
  cidrBlock: '192.168.1.0/24',
  name: 'production-network',
});

const gateway = new Gateway(stack, 'MyGateway', {
  gatewayName: 'my-gateway',
  egressCidrBlocks: ['10.0.0.0/16'],
  networks: [productionNetwork],
});

const ingressBridge = new Bridge(stack, 'MyIngressBridge', {
  bridgeName: 'my-ingress-bridge',
  config: BridgeConfiguration.ingress({
    maxBitrate: Bitrate.mbps(10),
    maxOutputs: 2,
    networkSources: [{
      name: 'on-prem-source',
      source: {
        protocol: BridgeProtocol.RTP,
        network: productionNetwork,
        multicastIp: '239.1.1.1',
        port: 5000,
      },
    }],
  }),
  gateway: gateway,
});
```

## Methods

- `egress(config: EgressBridgeConfiguration): BridgeConfiguration // chainable` (static) — An egress bridge is a cloud-to-ground bridge.

  The content comes from an existing MediaConnect flow and is delivered to your premises.

- `ingress(config: IngressBridgeConfiguration): BridgeConfiguration // chainable` (static) — An ingress bridge is a ground-to-cloud bridge.

  The content originates at your premises and is delivered to the cloud.
