aws-cdk-lib.aws_ec2.CfnNetworkInsightsAnalysis.AnalysisSecurityGroupRuleProperty

interface AnalysisSecurityGroupRuleProperty

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

Describes a security group rule.

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 analysisSecurityGroupRuleProperty: ec2.CfnNetworkInsightsAnalysis.AnalysisSecurityGroupRuleProperty = {
  cidr: 'cidr',
  direction: 'direction',
  portRange: {
    from: 123,
    to: 123,
  },
  prefixListId: 'prefixListId',
  protocol: 'protocol',
  securityGroupId: 'securityGroupId',
};

Properties

NameTypeDescription
cidr?stringThe IPv4 address range, in CIDR notation.
direction?stringThe direction. The following are the possible values:.
portRange?IResolvable | PortRangePropertyThe port range.
prefixListId?stringThe prefix list ID.
protocol?stringThe protocol name.
securityGroupId?stringThe security group ID.

cidr?

Type: string (optional)

The IPv4 address range, in CIDR notation.


direction?

Type: string (optional)

The direction. The following are the possible values:.

  • egress
  • ingress

portRange?

Type: IResolvable | PortRangeProperty (optional)

The port range.


prefixListId?

Type: string (optional)

The prefix list ID.


protocol?

Type: string (optional)

The protocol name.


securityGroupId?

Type: string (optional)

The security group ID.