ResolverForwardRule

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

Bases: ResolverRule

ResolverForwardRule model.

Attributes:

ACTION_FORWARD

A constant which can be used with the action property of a ResolverRule.

action

[Required] Gets the action of this ResolverRule.

client_address_conditions

[Required] Gets the client_address_conditions of this ResolverRule.

destination_addresses

[Required] Gets the destination_addresses of this ResolverForwardRule.

qname_cover_conditions

[Required] Gets the qname_cover_conditions of this ResolverRule.

source_endpoint_name

Gets the source_endpoint_name of this ResolverForwardRule.

Methods:

__init__(**kwargs)

Initializes a new ResolverForwardRule 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'

A constant which can be used with the action property of a ResolverRule. This constant has a value of “FORWARD”

__init__(**kwargs)

Initializes a new ResolverForwardRule 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 ResolverForwardRule.

  • qname_cover_conditions (list[str]) – The value to assign to the qname_cover_conditions property of this ResolverForwardRule.

  • action (str) – The value to assign to the action property of this ResolverForwardRule. Allowed values for this property are: “FORWARD”

  • destination_addresses (list[str]) – The value to assign to the destination_addresses property of this ResolverForwardRule.

  • source_endpoint_name (str) – The value to assign to the source_endpoint_name property of this ResolverForwardRule.

property action

[Required] Gets the action of this ResolverRule. 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”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The action of this ResolverRule.

Return type

str

property client_address_conditions

[Required] Gets the client_address_conditions of this ResolverRule. A list of CIDR blocks. In order for the rule action to apply, the query must come from a client within one of the CIDR blocks.

Returns

The client_address_conditions of this ResolverRule.

Return type

list[str]

property destination_addresses

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

Returns

The destination_addresses of this ResolverForwardRule.

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.

property qname_cover_conditions

[Required] Gets the qname_cover_conditions of this ResolverRule. A list of domain names. In order for the rule action to apply, the query must either match or be a subdomain of one of the listed domains.

Returns

The qname_cover_conditions of this ResolverRule.

Return type

list[str]

property source_endpoint_name

Gets the source_endpoint_name of this ResolverForwardRule. 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 ResolverForwardRule.

Return type

str