> **Experimental**
>
> `@aws-cdk/aws-medialive-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# MulticastInputSource

A source for a multicast input.

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/input.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/@aws-cdk/aws-medialive-alpha/lib/input.ts#L389)

## Example

TypeScript:

```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';

declare const multicastProtocol: medialive_alpha.MulticastProtocol;
const multicastInputSource: medialive_alpha.MulticastInputSource = {
  address: 'address',
  port: 123,

  // the properties below are optional
  protocol: multicastProtocol,
  sourceIp: 'sourceIp',
};
```

Python:

```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

# multicast_protocol: medialive_alpha.MulticastProtocol

multicast_input_source = medialive_alpha.MulticastInputSource(
    address="address",
    port=123,

    # the properties below are optional
    protocol=multicast_protocol,
    source_ip="sourceIp"
)
```

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.medialive.alpha.*;

MulticastProtocol multicastProtocol;

MulticastInputSource multicastInputSource = MulticastInputSource.builder()
        .address("address")
        .port(123)

        // the properties below are optional
        .protocol(multicastProtocol)
        .sourceIp("sourceIp")
        .build();
```

C# / .NET:

```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;

MulticastProtocol multicastProtocol;

var multicastInputSource = new MulticastInputSource {
    Address = "address",
    Port = 123,

    // the properties below are optional
    Protocol = multicastProtocol,
    SourceIp = "sourceIp"
};
```

Golang:

```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"

var multicastProtocol MulticastProtocol

multicastInputSource := &MulticastInputSource{
	Address: jsii.String("address"),
	Port: jsii.Number(123),

	// the properties below are optional
	Protocol: multicastProtocol,
	SourceIp: jsii.String("sourceIp"),
}
```

## Properties

- `address`: string (required) — The multicast group address.

- `port`: number (required) — The multicast port.

- `protocol`: [MulticastProtocol](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.MulticastProtocol.html) = MulticastProtocol.UDP — The transport protocol.

- `sourceIp`: string — Filter to a specific source IP (source-specific multicast).

  **Default:** accept any source
