AccessPolicyRule

class oci.service_mesh.models.AccessPolicyRule(**kwargs)

Bases: object

Access policy rule.

Attributes

ACTION_ALLOW A constant which can be used with the action property of a AccessPolicyRule.
action [Required] Gets the action of this AccessPolicyRule.
destination [Required] Gets the destination of this AccessPolicyRule.
source [Required] Gets the source of this AccessPolicyRule.

Methods

__init__(**kwargs) Initializes a new AccessPolicyRule object with values from keyword arguments.
ACTION_ALLOW = 'ALLOW'

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

__init__(**kwargs)

Initializes a new AccessPolicyRule object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • action (str) – The value to assign to the action property of this AccessPolicyRule. Allowed values for this property are: “ALLOW”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • source (oci.service_mesh.models.AccessPolicyTarget) – The value to assign to the source property of this AccessPolicyRule.
  • destination (oci.service_mesh.models.AccessPolicyTarget) – The value to assign to the destination property of this AccessPolicyRule.
action

[Required] Gets the action of this AccessPolicyRule. Action for the traffic between the source and the destination.

Allowed values for this property are: “ALLOW”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The action of this AccessPolicyRule.
Return type:str
destination

[Required] Gets the destination of this AccessPolicyRule.

Returns:The destination of this AccessPolicyRule.
Return type:oci.service_mesh.models.AccessPolicyTarget
source

[Required] Gets the source of this AccessPolicyRule.

Returns:The source of this AccessPolicyRule.
Return type:oci.service_mesh.models.AccessPolicyTarget