interface AnalysisSecurityGroupRuleProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EC2.CfnNetworkInsightsAnalysis.AnalysisSecurityGroupRuleProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnNetworkInsightsAnalysis_AnalysisSecurityGroupRuleProperty |
Java | software.amazon.awscdk.services.ec2.CfnNetworkInsightsAnalysis.AnalysisSecurityGroupRuleProperty |
Python | aws_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
Name | Type | Description |
---|---|---|
cidr? | string | The IPv4 address range, in CIDR notation. |
direction? | string | The direction. The following are the possible values:. |
port | IResolvable | Port | The port range. |
prefix | string | The prefix list ID. |
protocol? | string | The protocol name. |
security | string | The 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
|
Port
(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.