# TargetNetworkProperty

Configuration for the target network topology and addressing.

- Source: Generated at build time
- Type last changed: v2.268.0 · 2 Sep 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mgn as mgn } from 'aws-cdk-lib';
const targetNetworkProperty: mgn.CfnNetworkMigrationDefinition.TargetNetworkProperty = {
  topology: 'topology',

  // the properties below are optional
  inboundCidr: 'inboundCidr',
  inspectionCidr: 'inspectionCidr',
  outboundCidr: 'outboundCidr',
};
```

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_mgn as mgn

target_network_property = mgn.CfnNetworkMigrationDefinition.TargetNetworkProperty(
    topology="topology",

    # the properties below are optional
    inbound_cidr="inboundCidr",
    inspection_cidr="inspectionCidr",
    outbound_cidr="outboundCidr"
)
```

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.mgn.*;

TargetNetworkProperty targetNetworkProperty = TargetNetworkProperty.builder()
        .topology("topology")

        // the properties below are optional
        .inboundCidr("inboundCidr")
        .inspectionCidr("inspectionCidr")
        .outboundCidr("outboundCidr")
        .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.MGN;

var targetNetworkProperty = new TargetNetworkProperty {
    Topology = "topology",

    // the properties below are optional
    InboundCidr = "inboundCidr",
    InspectionCidr = "inspectionCidr",
    OutboundCidr = "outboundCidr"
};
```

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"

targetNetworkProperty := &TargetNetworkProperty{
	Topology: jsii.String("topology"),

	// the properties below are optional
	InboundCidr: jsii.String("inboundCidr"),
	InspectionCidr: jsii.String("inspectionCidr"),
	OutboundCidr: jsii.String("outboundCidr"),
}
```

## Properties

- `inboundCidr`: string — The CIDR block for inbound traffic in the target network.

- `inspectionCidr`: string — The CIDR block for inspection traffic in the target network.

- `outboundCidr`: string — The CIDR block for outbound traffic in the target network.

- `topology`: string (required) — The network topology type for the target environment.
