Interface IngressRuleConfig

All Superinterfaces:
software.amazon.jsii.JsiiSerializable, RuleConfig
All Known Implementing Classes:
IngressRuleConfig.Jsii$Proxy

@Generated(value="jsii-pacmak/1.130.0 (build 048a5ee)", date="2026-05-20T12:39:45.434Z") @Stability(Stable) public interface IngressRuleConfig extends software.amazon.jsii.JsiiSerializable, RuleConfig
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 software.amazon.awscdk.services.ec2.*;
 IngressRuleConfig ingressRuleConfig = IngressRuleConfig.builder()
         .cidrIp("cidrIp")
         .cidrIpv6("cidrIpv6")
         .sourcePrefixListId("sourcePrefixListId")
         .sourceSecurityGroupId("sourceSecurityGroupId")
         .sourceSecurityGroupOwnerId("sourceSecurityGroupOwnerId")
         .build();
 

See Also:
  • Method Details

    • getSourcePrefixListId

      @Stability(Stable) @Nullable default String getSourcePrefixListId()
      The ID of a source prefix list.

      Default: - No source prefix list

    • getSourceSecurityGroupId

      @Stability(Stable) @Nullable default String getSourceSecurityGroupId()
      The ID of a source security group.

      Default: - No source security group

    • getSourceSecurityGroupOwnerId

      @Stability(Stable) @Nullable default String getSourceSecurityGroupOwnerId()
      The AWS account ID of the owner of a source security group.

      Default: - No source security group owner ID

    • builder

      @Stability(Stable) static IngressRuleConfig.Builder builder()
      Returns:
      a IngressRuleConfig.Builder of IngressRuleConfig