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

.NET
Go
Java
Python
TypeScript (