Class SecurityGroupRuleState.Builder

  • Enclosing class:
    SecurityGroupRuleState

    public static final class SecurityGroupRuleState.Builder
    extends java.lang.Object
    • Method Detail

      • cidrIp

        public SecurityGroupRuleState.Builder cidrIp​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> cidrIp)
        Parameters:
        cidrIp - The target IP address range. The default value is 0.0.0.0/0 (which means no restriction will be applied). Other supported formats include 10.159.6.18/12. Only IPv4 is supported.
        Returns:
        builder
      • cidrIp

        public SecurityGroupRuleState.Builder cidrIp​(java.lang.String cidrIp)
        Parameters:
        cidrIp - The target IP address range. The default value is 0.0.0.0/0 (which means no restriction will be applied). Other supported formats include 10.159.6.18/12. Only IPv4 is supported.
        Returns:
        builder
      • description

        public SecurityGroupRuleState.Builder description​(@Nullable
                                                          com.pulumi.core.Output<java.lang.String> description)
        Parameters:
        description - The description of the security group rule. The description can be up to 1 to 512 characters in length. Defaults to null.
        Returns:
        builder
      • description

        public SecurityGroupRuleState.Builder description​(java.lang.String description)
        Parameters:
        description - The description of the security group rule. The description can be up to 1 to 512 characters in length. Defaults to null.
        Returns:
        builder
      • ipProtocol

        public SecurityGroupRuleState.Builder ipProtocol​(@Nullable
                                                         com.pulumi.core.Output<java.lang.String> ipProtocol)
        Parameters:
        ipProtocol - The protocol. Can be `tcp`, `udp`, `icmp`, `gre` or `all`.
        Returns:
        builder
      • ipProtocol

        public SecurityGroupRuleState.Builder ipProtocol​(java.lang.String ipProtocol)
        Parameters:
        ipProtocol - The protocol. Can be `tcp`, `udp`, `icmp`, `gre` or `all`.
        Returns:
        builder
      • ipv6CidrIp

        public SecurityGroupRuleState.Builder ipv6CidrIp​(@Nullable
                                                         com.pulumi.core.Output<java.lang.String> ipv6CidrIp)
        Parameters:
        ipv6CidrIp - Source IPv6 CIDR address block that requires access. Supports IP address ranges in CIDR format and IPv6 format. **NOTE:** This parameter cannot be set at the same time as the `cidr_ip` parameter. > **NOTE:** You must specify one of the following field: `cidr_ip`,`source_security_group_id`,`prefix_list_id`,`ipv6_cidr_ip`.
        Returns:
        builder
      • ipv6CidrIp

        public SecurityGroupRuleState.Builder ipv6CidrIp​(java.lang.String ipv6CidrIp)
        Parameters:
        ipv6CidrIp - Source IPv6 CIDR address block that requires access. Supports IP address ranges in CIDR format and IPv6 format. **NOTE:** This parameter cannot be set at the same time as the `cidr_ip` parameter. > **NOTE:** You must specify one of the following field: `cidr_ip`,`source_security_group_id`,`prefix_list_id`,`ipv6_cidr_ip`.
        Returns:
        builder
      • nicType

        public SecurityGroupRuleState.Builder nicType​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> nicType)
        Parameters:
        nicType - Network type, can be either `internet` or `intranet`, the default value is `internet`.
        Returns:
        builder
      • nicType

        public SecurityGroupRuleState.Builder nicType​(java.lang.String nicType)
        Parameters:
        nicType - Network type, can be either `internet` or `intranet`, the default value is `internet`.
        Returns:
        builder
      • policy

        public SecurityGroupRuleState.Builder policy​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> policy)
        Parameters:
        policy - Authorization policy, can be either `accept` or `drop`, the default value is `accept`.
        Returns:
        builder
      • policy

        public SecurityGroupRuleState.Builder policy​(java.lang.String policy)
        Parameters:
        policy - Authorization policy, can be either `accept` or `drop`, the default value is `accept`.
        Returns:
        builder
      • portRange

        public SecurityGroupRuleState.Builder portRange​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> portRange)
        Parameters:
        portRange - The range of port numbers relevant to the IP protocol. Default to "-1/-1". When the protocol is tcp or udp, each side port number range from 1 to 65535 and '-1/-1' will be invalid. For example, `1/200` means that the range of the port numbers is 1-200. Other protocols' 'port_range' can only be "-1/-1", and other values will be invalid.
        Returns:
        builder
      • portRange

        public SecurityGroupRuleState.Builder portRange​(java.lang.String portRange)
        Parameters:
        portRange - The range of port numbers relevant to the IP protocol. Default to "-1/-1". When the protocol is tcp or udp, each side port number range from 1 to 65535 and '-1/-1' will be invalid. For example, `1/200` means that the range of the port numbers is 1-200. Other protocols' 'port_range' can only be "-1/-1", and other values will be invalid.
        Returns:
        builder
      • prefixListId

        public SecurityGroupRuleState.Builder prefixListId​(@Nullable
                                                           com.pulumi.core.Output<java.lang.String> prefixListId)
        Parameters:
        prefixListId - The ID of the source/destination prefix list to which you want to control access. **NOTE:** If you specify `cidr_ip`,`source_security_group_id`,`ipv6_cidr_ip` parameter, this parameter is ignored.
        Returns:
        builder
      • prefixListId

        public SecurityGroupRuleState.Builder prefixListId​(java.lang.String prefixListId)
        Parameters:
        prefixListId - The ID of the source/destination prefix list to which you want to control access. **NOTE:** If you specify `cidr_ip`,`source_security_group_id`,`ipv6_cidr_ip` parameter, this parameter is ignored.
        Returns:
        builder
      • priority

        public SecurityGroupRuleState.Builder priority​(@Nullable
                                                       com.pulumi.core.Output<java.lang.Integer> priority)
        Parameters:
        priority - Authorization policy priority, with parameter values: `1-100`, default value: 1.
        Returns:
        builder
      • priority

        public SecurityGroupRuleState.Builder priority​(java.lang.Integer priority)
        Parameters:
        priority - Authorization policy priority, with parameter values: `1-100`, default value: 1.
        Returns:
        builder
      • securityGroupId

        public SecurityGroupRuleState.Builder securityGroupId​(@Nullable
                                                              com.pulumi.core.Output<java.lang.String> securityGroupId)
        Parameters:
        securityGroupId - The security group to apply this rule to.
        Returns:
        builder
      • securityGroupId

        public SecurityGroupRuleState.Builder securityGroupId​(java.lang.String securityGroupId)
        Parameters:
        securityGroupId - The security group to apply this rule to.
        Returns:
        builder
      • sourceGroupOwnerAccount

        public SecurityGroupRuleState.Builder sourceGroupOwnerAccount​(@Nullable
                                                                      com.pulumi.core.Output<java.lang.String> sourceGroupOwnerAccount)
        Parameters:
        sourceGroupOwnerAccount - The Alibaba Cloud user account Id of the target security group when security groups are authorized across accounts. This parameter is invalid if `cidr_ip` has already been set.
        Returns:
        builder
      • sourceGroupOwnerAccount

        public SecurityGroupRuleState.Builder sourceGroupOwnerAccount​(java.lang.String sourceGroupOwnerAccount)
        Parameters:
        sourceGroupOwnerAccount - The Alibaba Cloud user account Id of the target security group when security groups are authorized across accounts. This parameter is invalid if `cidr_ip` has already been set.
        Returns:
        builder
      • sourceSecurityGroupId

        public SecurityGroupRuleState.Builder sourceSecurityGroupId​(@Nullable
                                                                    com.pulumi.core.Output<java.lang.String> sourceSecurityGroupId)
        Parameters:
        sourceSecurityGroupId - The target security group ID within the same region. If this field is specified, the `nic_type` can only select `intranet`.
        Returns:
        builder
      • sourceSecurityGroupId

        public SecurityGroupRuleState.Builder sourceSecurityGroupId​(java.lang.String sourceSecurityGroupId)
        Parameters:
        sourceSecurityGroupId - The target security group ID within the same region. If this field is specified, the `nic_type` can only select `intranet`.
        Returns:
        builder
      • type

        public SecurityGroupRuleState.Builder type​(@Nullable
                                                   com.pulumi.core.Output<java.lang.String> type)
        Parameters:
        type - The type of rule being created. Valid options are `ingress` (inbound) or `egress` (outbound).
        Returns:
        builder
      • type

        public SecurityGroupRuleState.Builder type​(java.lang.String type)
        Parameters:
        type - The type of rule being created. Valid options are `ingress` (inbound) or `egress` (outbound).
        Returns:
        builder