# CfnNetworkInsightsAnalysisProps

Properties for defining a `CfnNetworkInsightsAnalysis`.

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

- Source: Generated at build time
- Type last changed: v2.196.0 · 16 May 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_ec2 as ec2 } from 'aws-cdk-lib';
const cfnNetworkInsightsAnalysisProps: ec2.CfnNetworkInsightsAnalysisProps = {
  networkInsightsPathId: 'networkInsightsPathId',

  // the properties below are optional
  additionalAccounts: ['additionalAccounts'],
  filterInArns: ['filterInArns'],
  filterOutArns: ['filterOutArns'],
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

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

cfn_network_insights_analysis_props = ec2.CfnNetworkInsightsAnalysisProps(
    network_insights_path_id="networkInsightsPathId",

    # the properties below are optional
    additional_accounts=["additionalAccounts"],
    filter_in_arns=["filterInArns"],
    filter_out_arns=["filterOutArns"],
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

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

CfnNetworkInsightsAnalysisProps cfnNetworkInsightsAnalysisProps = CfnNetworkInsightsAnalysisProps.builder()
        .networkInsightsPathId("networkInsightsPathId")

        // the properties below are optional
        .additionalAccounts(List.of("additionalAccounts"))
        .filterInArns(List.of("filterInArns"))
        .filterOutArns(List.of("filterOutArns"))
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .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.EC2;

var cfnNetworkInsightsAnalysisProps = new CfnNetworkInsightsAnalysisProps {
    NetworkInsightsPathId = "networkInsightsPathId",

    // the properties below are optional
    AdditionalAccounts = new [] { "additionalAccounts" },
    FilterInArns = new [] { "filterInArns" },
    FilterOutArns = new [] { "filterOutArns" },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

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"

cfnNetworkInsightsAnalysisProps := &CfnNetworkInsightsAnalysisProps{
	NetworkInsightsPathId: jsii.String("networkInsightsPathId"),

	// the properties below are optional
	AdditionalAccounts: []*string{
		jsii.String("additionalAccounts"),
	},
	FilterInArns: []*string{
		jsii.String("filterInArns"),
	},
	FilterOutArns: []*string{
		jsii.String("filterOutArns"),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `additionalAccounts`: string[] — The member accounts that contain resources that the path can traverse.

- `filterInArns`: string[] — The Amazon Resource Names (ARN) of the resources that the path must traverse.

- `filterOutArns`: string[] — The Amazon Resource Names (ARN) of the resources that the path must ignore.

- `networkInsightsPathId`: string (required) — The ID of the path.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags to apply.
