interface IngressRuleConfig
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EC2.IngressRuleConfig |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#IngressRuleConfig |
Java | software.amazon.awscdk.services.ec2.IngressRuleConfig |
Python | aws_cdk.aws_ec2.IngressRuleConfig |
TypeScript (source) | aws-cdk-lib » aws_ec2 » IngressRuleConfig |
Implements
Rule
Obtainable from
Prefix.toIngressRuleConfig(), Security.toIngressRuleConfig()
Configuration for an ingress 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 ingressRuleConfig: ec2.IngressRuleConfig = {
cidrIp: 'cidrIp',
cidrIpv6: 'cidrIpv6',
sourcePrefixListId: 'sourcePrefixListId',
sourceSecurityGroupId: 'sourceSecurityGroupId',
sourceSecurityGroupOwnerId: 'sourceSecurityGroupOwnerId',
};
Properties
| Name | Type | Description |
|---|---|---|
| cidr | string | The IPv4 address range, in CIDR format. |
| cidr | string | The IPv6 address range, in CIDR format. |
| source | string | The ID of a source prefix list. |
| source | string | The ID of a source security group. |
| source | string | The AWS account ID of the owner of a source security group. |
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.
sourcePrefixListId?
Type:
string
(optional, default: No source prefix list)
The ID of a source prefix list.
sourceSecurityGroupId?
Type:
string
(optional, default: No source security group)
The ID of a source security group.
sourceSecurityGroupOwnerId?
Type:
string
(optional, default: No source security group owner ID)
The AWS account ID of the owner of a source security group.

.NET
Go
Java
Python
TypeScript (