ResolverForwardRuleDetails

class oci.dns.models.ResolverForwardRuleDetails(**kwargs)

Bases: oci.dns.models.resolver_rule_details.ResolverRuleDetails

ResolverForwardRuleDetails model.

Attributes

ACTION_FORWARD str(object=’’) -> str
action [Required] Gets the action of this ResolverRuleDetails.
client_address_conditions Gets the client_address_conditions of this ResolverRuleDetails.
destination_addresses [Required] Gets the destination_addresses of this ResolverForwardRuleDetails.
qname_cover_conditions Gets the qname_cover_conditions of this ResolverRuleDetails.
source_endpoint_name [Required] Gets the source_endpoint_name of this ResolverForwardRuleDetails.

Methods

__init__(**kwargs) Initializes a new ResolverForwardRuleDetails object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
ACTION_FORWARD = 'FORWARD'
__init__(**kwargs)

Initializes a new ResolverForwardRuleDetails object with values from keyword arguments. The default value of the action attribute of this class is FORWARD and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • client_address_conditions (list[str]) – The value to assign to the client_address_conditions property of this ResolverForwardRuleDetails.
  • qname_cover_conditions (list[str]) – The value to assign to the qname_cover_conditions property of this ResolverForwardRuleDetails.
  • action (str) – The value to assign to the action property of this ResolverForwardRuleDetails. Allowed values for this property are: “FORWARD”
  • destination_addresses (list[str]) – The value to assign to the destination_addresses property of this ResolverForwardRuleDetails.
  • source_endpoint_name (str) – The value to assign to the source_endpoint_name property of this ResolverForwardRuleDetails.
action

[Required] Gets the action of this ResolverRuleDetails. The action determines the behavior of the rule. If a query matches a supplied condition, the action will apply. If there are no conditions on the rule, all queries are subject to the specified action. * FORWARD - Matching requests will be forwarded from the source interface to the destination address.

Allowed values for this property are: “FORWARD”

Returns:The action of this ResolverRuleDetails.
Return type:str
client_address_conditions

Gets the client_address_conditions of this ResolverRuleDetails. A list of CIDR blocks. The query must come from a client within one of the blocks in order for the rule action to apply.

Returns:The client_address_conditions of this ResolverRuleDetails.
Return type:list[str]
destination_addresses

[Required] Gets the destination_addresses of this ResolverForwardRuleDetails. IP addresses to which queries should be forwarded. Currently limited to a single address.

Returns:The destination_addresses of this ResolverForwardRuleDetails.
Return type:list[str]
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

qname_cover_conditions

Gets the qname_cover_conditions of this ResolverRuleDetails. A list of domain names. The query must be covered by one of the domains in order for the rule action to apply.

Returns:The qname_cover_conditions of this ResolverRuleDetails.
Return type:list[str]
source_endpoint_name

[Required] Gets the source_endpoint_name of this ResolverForwardRuleDetails. Case-insensitive name of an endpoint, that is a sub-resource of the resolver, to use as the forwarding interface. The endpoint must have isForwarding set to true.

Returns:The source_endpoint_name of this ResolverForwardRuleDetails.
Return type:str