# CfnBridgeSourceProps

Properties for defining a `CfnBridgeSource`.

Used as props by: [CfnBridgeSource](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_mediaconnect.CfnBridgeSource.html)

- Source: Generated at build time
- Type last changed: v2.85.0 · 21 Jun 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mediaconnect as mediaconnect } from 'aws-cdk-lib';
const cfnBridgeSourceProps: mediaconnect.CfnBridgeSourceProps = {
  bridgeArn: 'bridgeArn',
  name: 'name',

  // the properties below are optional
  flowSource: {
    flowArn: 'flowArn',

    // the properties below are optional
    flowVpcInterfaceAttachment: {
      vpcInterfaceName: 'vpcInterfaceName',
    },
  },
  networkSource: {
    multicastIp: 'multicastIp',
    networkName: 'networkName',
    port: 123,
    protocol: 'protocol',

    // the properties below are optional
    multicastSourceSettings: {
      multicastSourceIp: 'multicastSourceIp',
    },
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_mediaconnect as mediaconnect

cfn_bridge_source_props = mediaconnect.CfnBridgeSourceProps(
    bridge_arn="bridgeArn",
    name="name",

    # the properties below are optional
    flow_source=mediaconnect.CfnBridgeSource.BridgeFlowSourceProperty(
        flow_arn="flowArn",

        # the properties below are optional
        flow_vpc_interface_attachment=mediaconnect.CfnBridgeSource.VpcInterfaceAttachmentProperty(
            vpc_interface_name="vpcInterfaceName"
        )
    ),
    network_source=mediaconnect.CfnBridgeSource.BridgeNetworkSourceProperty(
        multicast_ip="multicastIp",
        network_name="networkName",
        port=123,
        protocol="protocol",

        # the properties below are optional
        multicast_source_settings=mediaconnect.CfnBridgeSource.MulticastSourceSettingsProperty(
            multicast_source_ip="multicastSourceIp"
        )
    )
)
```

Java:

```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.mediaconnect.*;

CfnBridgeSourceProps cfnBridgeSourceProps = CfnBridgeSourceProps.builder()
        .bridgeArn("bridgeArn")
        .name("name")

        // the properties below are optional
        .flowSource(BridgeFlowSourceProperty.builder()
                .flowArn("flowArn")

                // the properties below are optional
                .flowVpcInterfaceAttachment(VpcInterfaceAttachmentProperty.builder()
                        .vpcInterfaceName("vpcInterfaceName")
                        .build())
                .build())
        .networkSource(BridgeNetworkSourceProperty.builder()
                .multicastIp("multicastIp")
                .networkName("networkName")
                .port(123)
                .protocol("protocol")

                // the properties below are optional
                .multicastSourceSettings(MulticastSourceSettingsProperty.builder()
                        .multicastSourceIp("multicastSourceIp")
                        .build())
                .build())
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaConnect;

var cfnBridgeSourceProps = new CfnBridgeSourceProps {
    BridgeArn = "bridgeArn",
    Name = "name",

    // the properties below are optional
    FlowSource = new BridgeFlowSourceProperty {
        FlowArn = "flowArn",

        // the properties below are optional
        FlowVpcInterfaceAttachment = new VpcInterfaceAttachmentProperty {
            VpcInterfaceName = "vpcInterfaceName"
        }
    },
    NetworkSource = new BridgeNetworkSourceProperty {
        MulticastIp = "multicastIp",
        NetworkName = "networkName",
        Port = 123,
        Protocol = "protocol",

        // the properties below are optional
        MulticastSourceSettings = new MulticastSourceSettingsProperty {
            MulticastSourceIp = "multicastSourceIp"
        }
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnBridgeSourceProps := &CfnBridgeSourceProps{
	BridgeArn: jsii.String("bridgeArn"),
	Name: jsii.String("name"),

	// the properties below are optional
	FlowSource: &BridgeFlowSourceProperty{
		FlowArn: jsii.String("flowArn"),

		// the properties below are optional
		FlowVpcInterfaceAttachment: &VpcInterfaceAttachmentProperty{
			VpcInterfaceName: jsii.String("vpcInterfaceName"),
		},
	},
	NetworkSource: &BridgeNetworkSourceProperty{
		MulticastIp: jsii.String("multicastIp"),
		NetworkName: jsii.String("networkName"),
		Port: jsii.Number(123),
		Protocol: jsii.String("protocol"),

		// the properties below are optional
		MulticastSourceSettings: &MulticastSourceSettingsProperty{
			MulticastSourceIp: jsii.String("multicastSourceIp"),
		},
	},
}
```

## Properties

- `bridgeArn`: string (required) — The ARN of the bridge feeding this flow.

- `flowSource`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBridgeSource.BridgeFlowSourceProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_mediaconnect.CfnBridgeSource.BridgeFlowSourceProperty.html) — The source of the flow.

- `name`: string (required) — The name of the flow source.

  This name is used to reference the source and must be unique among sources in this bridge.

- `networkSource`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBridgeSource.BridgeNetworkSourceProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_mediaconnect.CfnBridgeSource.BridgeNetworkSourceProperty.html) — The source of the network.
