aws-cdk-lib.aws_ec2.CfnNetworkInsightsPathProps

interface CfnNetworkInsightsPathProps

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnNetworkInsightsPathProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnNetworkInsightsPathProps
Javasoftware.amazon.awscdk.services.ec2.CfnNetworkInsightsPathProps
Pythonaws_cdk.aws_ec2.CfnNetworkInsightsPathProps
TypeScript aws-cdk-lib » aws_ec2 » CfnNetworkInsightsPathProps

Properties for defining a CfnNetworkInsightsPath.

Example

// 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 cfnNetworkInsightsPathProps: ec2.CfnNetworkInsightsPathProps = {
  protocol: 'protocol',
  source: 'source',

  // the properties below are optional
  destination: 'destination',
  destinationIp: 'destinationIp',
  destinationPort: 123,
  filterAtDestination: {
    destinationAddress: 'destinationAddress',
    destinationPortRange: {
      fromPort: 123,
      toPort: 123,
    },
    sourceAddress: 'sourceAddress',
    sourcePortRange: {
      fromPort: 123,
      toPort: 123,
    },
  },
  filterAtSource: {
    destinationAddress: 'destinationAddress',
    destinationPortRange: {
      fromPort: 123,
      toPort: 123,
    },
    sourceAddress: 'sourceAddress',
    sourcePortRange: {
      fromPort: 123,
      toPort: 123,
    },
  },
  sourceIp: 'sourceIp',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties

NameTypeDescription
protocolstringThe protocol.
sourcestringThe ID or ARN of the source.
destination?stringThe ID or ARN of the destination.
destinationIp?stringThe IP address of the destination.
destinationPort?numberThe destination port.
filterAtDestination?IResolvable | PathFilterPropertyScopes the analysis to network paths that match specific filters at the destination.
filterAtSource?IResolvable | PathFilterPropertyScopes the analysis to network paths that match specific filters at the source.
sourceIp?stringThe IP address of the source.
tags?CfnTag[]The tags to add to the path.

protocol

Type: string

The protocol.


source

Type: string

The ID or ARN of the source.

If the resource is in another account, you must specify an ARN.


destination?

Type: string (optional)

The ID or ARN of the destination.

If the resource is in another account, you must specify an ARN.


destinationIp?

Type: string (optional)

The IP address of the destination.


destinationPort?

Type: number (optional)

The destination port.


filterAtDestination?

Type: IResolvable | PathFilterProperty (optional)

Scopes the analysis to network paths that match specific filters at the destination.

If you specify this parameter, you can't specify the parameter for the destination IP address.


filterAtSource?

Type: IResolvable | PathFilterProperty (optional)

Scopes the analysis to network paths that match specific filters at the source.

If you specify this parameter, you can't specify the parameters for the source IP address or the destination port.


sourceIp?

Type: string (optional)

The IP address of the source.


tags?

Type: CfnTag[] (optional)

The tags to add to the path.