interface RuleConfig
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EC2.RuleConfig |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#RuleConfig |
Java | software.amazon.awscdk.services.ec2.RuleConfig |
Python | aws_cdk.aws_ec2.RuleConfig |
TypeScript (source) | aws-cdk-lib » aws_ec2 » RuleConfig |
Common configuration properties shared by ingress and egress security group rules.
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 ruleConfig: ec2.RuleConfig = {
cidrIp: 'cidrIp',
cidrIpv6: 'cidrIpv6',
};
Properties
| Name | Type | Description |
|---|---|---|
| cidr | string | The IPv4 address range, in CIDR format. |
| cidr | string | The IPv6 address range, in CIDR format. |
cidrIp?
Type:
string
(optional, default: No IPv4 CIDR)
The IPv4 address range, in CIDR format.
cidrIpv6?
Type:
string
(optional, default: No IPv6 CIDR)
The IPv6 address range, in CIDR format.

.NET
Go
Java
Python
TypeScript (