# NetworkReference

A reference to a Network resource.

- Source: Generated at build time
- Type last changed: v2.224.0 · 13 Nov 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_medialive as interfaces_medialive } from 'aws-cdk-lib/interfaces';
const networkReference: interfaces_medialive.NetworkReference = {
  networkArn: 'networkArn',
  networkId: 'networkId',
};
```

Python:

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

network_reference = interfaces_medialive.NetworkReference(
    network_arn="networkArn",
    network_id="networkId"
)
```

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

NetworkReference networkReference = NetworkReference.builder()
        .networkArn("networkArn")
        .networkId("networkId")
        .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.Interfaces.MediaLive;

var networkReference = new NetworkReference {
    NetworkArn = "networkArn",
    NetworkId = "networkId"
};
```

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"

networkReference := &NetworkReference{
	NetworkArn: jsii.String("networkArn"),
	NetworkId: jsii.String("networkId"),
}
```

## Properties

- `networkArn`: string (required) — The ARN of the Network resource.

- `networkId`: string (required) — The Id of the Network resource.
