Interface EgressRuleConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,RuleConfig
- All Known Implementing Classes:
EgressRuleConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.130.0 (build 048a5ee)",
date="2026-05-19T19:44:40.715Z")
@Stability(Stable)
public interface EgressRuleConfig
extends software.amazon.jsii.JsiiSerializable, RuleConfig
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 software.amazon.awscdk.services.ec2.*;
EgressRuleConfig egressRuleConfig = EgressRuleConfig.builder()
.cidrIp("cidrIp")
.cidrIpv6("cidrIpv6")
.destinationPrefixListId("destinationPrefixListId")
.destinationSecurityGroupId("destinationSecurityGroupId")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forEgressRuleConfigstatic final classAn implementation forEgressRuleConfig -
Method Summary
Modifier and TypeMethodDescriptionstatic EgressRuleConfig.Builderbuilder()default StringThe ID of a destination prefix list.default StringThe ID of a destination security group.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.ec2.RuleConfig
getCidrIp, getCidrIpv6
-
Method Details
-
getDestinationPrefixListId
The ID of a destination prefix list.Default: - No destination prefix list
-
getDestinationSecurityGroupId
The ID of a destination security group.Default: - No destination security group
-
builder
- Returns:
- a
EgressRuleConfig.BuilderofEgressRuleConfig
-