aws-cdk-lib.aws_ec2.CfnNetworkInsightsAnalysis.AnalysisAclRuleProperty

interface AnalysisAclRuleProperty

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

Describes a network access control (ACL) 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 analysisAclRuleProperty: ec2.CfnNetworkInsightsAnalysis.AnalysisAclRuleProperty = {
  cidr: 'cidr',
  egress: false,
  portRange: {
    from: 123,
    to: 123,
  },
  protocol: 'protocol',
  ruleAction: 'ruleAction',
  ruleNumber: 123,
};

Properties

NameTypeDescription
cidr?stringThe IPv4 address range, in CIDR notation.
egress?boolean | IResolvableIndicates whether the rule is an outbound rule.
portRange?IResolvable | PortRangePropertyThe range of ports.
protocol?stringThe protocol.
ruleAction?stringIndicates whether to allow or deny traffic that matches the rule.
ruleNumber?numberThe rule number.

cidr?

Type: string (optional)

The IPv4 address range, in CIDR notation.


egress?

Type: boolean | IResolvable (optional)

Indicates whether the rule is an outbound rule.


portRange?

Type: IResolvable | PortRangeProperty (optional)

The range of ports.


protocol?

Type: string (optional)

The protocol.


ruleAction?

Type: string (optional)

Indicates whether to allow or deny traffic that matches the rule.


ruleNumber?

Type: number (optional)

The rule number.