Skip to content
v2.278.0

CfnNetworkInsightsAnalysisProps Struct ​

Properties for defining a CfnNetworkInsightsAnalysis.

Example ​

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
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
// 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();
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"
    } }
};
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 ​

additionalAccountsoptionalstring[]additional_accountsoptionaltyping.List[str]additionalAccountsoptionalList<String>AdditionalAccountsoptionalstring[]AdditionalAccountsoptional*[]*string #
The member accounts that contain resources that the path can traverse.
filterInArnsoptionalstring[]filter_in_arnsoptionaltyping.List[str]filterInArnsoptionalList<String>FilterInArnsoptionalstring[]FilterInArnsoptional*[]*string #
The Amazon Resource Names (ARN) of the resources that the path must traverse.
filterOutArnsoptionalstring[]filter_out_arnsoptionaltyping.List[str]filterOutArnsoptionalList<String>FilterOutArnsoptionalstring[]FilterOutArnsoptional*[]*string #
The Amazon Resource Names (ARN) of the resources that the path must ignore.
networkInsightsPathIdstringnetwork_insights_path_idstrnetworkInsightsPathIdStringNetworkInsightsPathIdstringNetworkInsightsPathId*string required #
The ID of the path.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The tags to apply.