Class SecurityGroupEgressRuleArgs


  • public final class SecurityGroupEgressRuleArgs
    extends com.pulumi.resources.ResourceArgs
    • Method Detail

      • cidrIpv4

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> cidrIpv4()
        Returns:
        Destination IPv4 CIDR range.
      • cidrIpv6

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> cidrIpv6()
        Returns:
        Destination IPv6 CIDR range.
      • description

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> description()
        Returns:
        Security group rule description.
      • fromPort

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> fromPort()
        Returns:
        Start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type.
      • ipProtocol

        public com.pulumi.core.Output<java.lang.String> ipProtocol()
        Returns:
        IP protocol name or number. Use `-1` to specify all protocols. Note that if `ipProtocol` is set to `-1`, it translates to all protocols, all port ranges, and `fromPort` and `toPort` values should not be defined.
      • prefixListId

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> prefixListId()
        Returns:
        ID of the destination prefix list.
      • referencedSecurityGroupId

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> referencedSecurityGroupId()
        Returns:
        Destination security group that is referenced in the rule.
      • region

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> region()
        Returns:
        Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
      • securityGroupId

        public com.pulumi.core.Output<java.lang.String> securityGroupId()
        Returns:
        ID of the security group.
      • tags

        public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
      • toPort

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> toPort()
        Returns:
        End of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. > **Note** Although `cidrIpv4`, `cidrIpv6`, `prefixListId`, and `referencedSecurityGroupId` are all marked as optional, you *must* provide one of them in order to configure the destination of the traffic. The `fromPort` and `toPort` arguments are required unless `ipProtocol` is set to `-1` or `icmpv6`.