Class SecGroupRuleArgs.Builder

  • Enclosing class:
    SecGroupRuleArgs

    public static final class SecGroupRuleArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • cidr

        public SecGroupRuleArgs.Builder cidr​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> cidr)
        Parameters:
        cidr - Required if `from_group_id` or `self` is empty. The IP range that will be the source of network traffic to the security group. Use 0.0.0.0/0 to allow all IP addresses. Changing this creates a new security group rule. Cannot be combined with `from_group_id` or `self`.
        Returns:
        builder
      • cidr

        public SecGroupRuleArgs.Builder cidr​(java.lang.String cidr)
        Parameters:
        cidr - Required if `from_group_id` or `self` is empty. The IP range that will be the source of network traffic to the security group. Use 0.0.0.0/0 to allow all IP addresses. Changing this creates a new security group rule. Cannot be combined with `from_group_id` or `self`.
        Returns:
        builder
      • fromGroupId

        public SecGroupRuleArgs.Builder fromGroupId​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> fromGroupId)
        Parameters:
        fromGroupId - Required if `cidr` or `self` is empty. The ID of a group from which to forward traffic to the parent group. Changing this creates a new security group rule. Cannot be combined with `cidr` or `self`.
        Returns:
        builder
      • fromGroupId

        public SecGroupRuleArgs.Builder fromGroupId​(java.lang.String fromGroupId)
        Parameters:
        fromGroupId - Required if `cidr` or `self` is empty. The ID of a group from which to forward traffic to the parent group. Changing this creates a new security group rule. Cannot be combined with `cidr` or `self`.
        Returns:
        builder
      • fromPort

        public SecGroupRuleArgs.Builder fromPort​(com.pulumi.core.Output<java.lang.Integer> fromPort)
        Parameters:
        fromPort - An integer representing the lower bound of the port range to open. Changing this creates a new security group rule.
        Returns:
        builder
      • fromPort

        public SecGroupRuleArgs.Builder fromPort​(java.lang.Integer fromPort)
        Parameters:
        fromPort - An integer representing the lower bound of the port range to open. Changing this creates a new security group rule.
        Returns:
        builder
      • ipProtocol

        public SecGroupRuleArgs.Builder ipProtocol​(com.pulumi.core.Output<java.lang.String> ipProtocol)
        Parameters:
        ipProtocol - The protocol type that will be allowed. Changing this creates a new security group rule.
        Returns:
        builder
      • ipProtocol

        public SecGroupRuleArgs.Builder ipProtocol​(java.lang.String ipProtocol)
        Parameters:
        ipProtocol - The protocol type that will be allowed. Changing this creates a new security group rule.
        Returns:
        builder
      • self

        public SecGroupRuleArgs.Builder self​(@Nullable
                                             com.pulumi.core.Output<java.lang.Boolean> self)
        Parameters:
        self - Required if `cidr` and `from_group_id` is empty. If true, the security group itself will be added as a source to this ingress rule. Cannot be combined with `cidr` or `from_group_id`.
        Returns:
        builder
      • self

        public SecGroupRuleArgs.Builder self​(java.lang.Boolean self)
        Parameters:
        self - Required if `cidr` and `from_group_id` is empty. If true, the security group itself will be added as a source to this ingress rule. Cannot be combined with `cidr` or `from_group_id`.
        Returns:
        builder
      • toPort

        public SecGroupRuleArgs.Builder toPort​(com.pulumi.core.Output<java.lang.Integer> toPort)
        Parameters:
        toPort - An integer representing the upper bound of the port range to open. Changing this creates a new security group rule.
        Returns:
        builder
      • toPort

        public SecGroupRuleArgs.Builder toPort​(java.lang.Integer toPort)
        Parameters:
        toPort - An integer representing the upper bound of the port range to open. Changing this creates a new security group rule.
        Returns:
        builder