Class SecurityGroupIngressArgs


  • public final class SecurityGroupIngressArgs
    extends com.pulumi.resources.ResourceArgs
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  SecurityGroupIngressArgs.Builder  
      • Nested classes/interfaces inherited from class com.pulumi.resources.InputArgs

        com.pulumi.resources.InputArgs.InputArgsInternal
    • Method Detail

      • cidrBlocks

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> cidrBlocks()
        Returns:
        List of CIDR blocks.
      • description

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> description()
        Returns:
        Description of this ingress rule.
      • fromPort

        public com.pulumi.core.Output<java.lang.Integer> fromPort()
        Returns:
        Start port (or ICMP type number if protocol is `icmp` or `icmpv6`).
      • ipv6CidrBlocks

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> ipv6CidrBlocks()
        Returns:
        List of IPv6 CIDR blocks.
      • prefixListIds

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> prefixListIds()
        Returns:
        List of Prefix List IDs.
      • protocol

        public com.pulumi.core.Output<java.lang.String> protocol()
        Returns:
        Protocol. If you select a protocol of `-1` (semantically equivalent to `all`, which is not a valid value here), you must specify a `from_port` and `to_port` equal to 0. The supported values are defined in the `IpProtocol` argument on the [IpPermission](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_IpPermission.html) API reference. The following arguments are optional: > **Note** Although `cidr_blocks`, `ipv6_cidr_blocks`, `prefix_list_ids`, and `security_groups` are all marked as optional, you _must_ provide one of them in order to configure the source of the traffic.
      • securityGroups

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> securityGroups()
        Returns:
        List of security groups. A group name can be used relative to the default VPC. Otherwise, group ID.
      • self

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> self()
        Returns:
        Whether the security group itself will be added as a source to this ingress rule.
      • toPort

        public com.pulumi.core.Output<java.lang.Integer> toPort()
        Returns:
        End range port (or ICMP code if protocol is `icmp`).