Class SecurityGroupIngressRuleArgs.Builder

    • Method Detail

      • cidrIpv4

        public SecurityGroupIngressRuleArgs.Builder cidrIpv4​(@Nullable
                                                             com.pulumi.core.Output<java.lang.String> cidrIpv4)
        Parameters:
        cidrIpv4 - Source IPv4 CIDR range.
        Returns:
        builder
      • cidrIpv6

        public SecurityGroupIngressRuleArgs.Builder cidrIpv6​(@Nullable
                                                             com.pulumi.core.Output<java.lang.String> cidrIpv6)
        Parameters:
        cidrIpv6 - Source IPv6 CIDR range.
        Returns:
        builder
      • description

        public SecurityGroupIngressRuleArgs.Builder description​(@Nullable
                                                                com.pulumi.core.Output<java.lang.String> description)
        Parameters:
        description - Security group rule description.
        Returns:
        builder
      • description

        public SecurityGroupIngressRuleArgs.Builder description​(java.lang.String description)
        Parameters:
        description - Security group rule description.
        Returns:
        builder
      • fromPort

        public SecurityGroupIngressRuleArgs.Builder fromPort​(@Nullable
                                                             com.pulumi.core.Output<java.lang.Integer> fromPort)
        Parameters:
        fromPort - Start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type.
        Returns:
        builder
      • fromPort

        public SecurityGroupIngressRuleArgs.Builder fromPort​(java.lang.Integer fromPort)
        Parameters:
        fromPort - Start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type.
        Returns:
        builder
      • ipProtocol

        public SecurityGroupIngressRuleArgs.Builder ipProtocol​(com.pulumi.core.Output<java.lang.String> ipProtocol)
        Parameters:
        ipProtocol - 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.
        Returns:
        builder
      • ipProtocol

        public SecurityGroupIngressRuleArgs.Builder ipProtocol​(java.lang.String ipProtocol)
        Parameters:
        ipProtocol - 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.
        Returns:
        builder
      • prefixListId

        public SecurityGroupIngressRuleArgs.Builder prefixListId​(@Nullable
                                                                 com.pulumi.core.Output<java.lang.String> prefixListId)
        Parameters:
        prefixListId - ID of the source prefix list.
        Returns:
        builder
      • prefixListId

        public SecurityGroupIngressRuleArgs.Builder prefixListId​(java.lang.String prefixListId)
        Parameters:
        prefixListId - ID of the source prefix list.
        Returns:
        builder
      • referencedSecurityGroupId

        public SecurityGroupIngressRuleArgs.Builder referencedSecurityGroupId​(@Nullable
                                                                              com.pulumi.core.Output<java.lang.String> referencedSecurityGroupId)
        Parameters:
        referencedSecurityGroupId - Source security group that is referenced in the rule.
        Returns:
        builder
      • referencedSecurityGroupId

        public SecurityGroupIngressRuleArgs.Builder referencedSecurityGroupId​(java.lang.String referencedSecurityGroupId)
        Parameters:
        referencedSecurityGroupId - Source security group that is referenced in the rule.
        Returns:
        builder
      • region

        public SecurityGroupIngressRuleArgs.Builder region​(@Nullable
                                                           com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - 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.
        Returns:
        builder
      • region

        public SecurityGroupIngressRuleArgs.Builder region​(java.lang.String region)
        Parameters:
        region - 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.
        Returns:
        builder
      • securityGroupId

        public SecurityGroupIngressRuleArgs.Builder securityGroupId​(com.pulumi.core.Output<java.lang.String> securityGroupId)
        Parameters:
        securityGroupId - ID of the security group.
        Returns:
        builder
      • securityGroupId

        public SecurityGroupIngressRuleArgs.Builder securityGroupId​(java.lang.String securityGroupId)
        Parameters:
        securityGroupId - ID of the security group.
        Returns:
        builder
      • tags

        public SecurityGroupIngressRuleArgs.Builder tags​(@Nullable
                                                         com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - 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.
        Returns:
        builder
      • tags

        public SecurityGroupIngressRuleArgs.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - 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.
        Returns:
        builder
      • toPort

        public SecurityGroupIngressRuleArgs.Builder toPort​(@Nullable
                                                           com.pulumi.core.Output<java.lang.Integer> toPort)
        Parameters:
        toPort - 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`.
        Returns:
        builder
      • toPort

        public SecurityGroupIngressRuleArgs.Builder toPort​(java.lang.Integer toPort)
        Parameters:
        toPort - 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`.
        Returns:
        builder