PolicyAction Class

public final class PolicyAction
extends ExpandableStringEnum<PolicyAction>

The effective outcome of the policy evaluation based on both the policy effect and evaluation result. Possible values are Unknown, Allow, Audit, Deny, Error.

Field Summary

Modifier and Type Field and Description
static final PolicyAction ALLOW

The effective outcome of policy evaluation is to allow the request.

static final PolicyAction AUDIT

The effective outcome of policy evaluation is to audit the request.

static final PolicyAction DENY

The effective outcome of policy evaluation is to deny the request.

static final PolicyAction ERROR

The policy evaluation resulted in an error.

static final PolicyAction UNKNOWN

The effective outcome of policy evaluation is unknown.

Constructor Summary

Constructor Description
PolicyAction()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PolicyAction value.

Method Summary

Modifier and Type Method and Description
static PolicyAction fromString(String name)

Creates or finds a PolicyAction from its string representation.

static Collection<PolicyAction> values()

Gets known PolicyAction values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ALLOW

public static final PolicyAction ALLOW

The effective outcome of policy evaluation is to allow the request.

AUDIT

public static final PolicyAction AUDIT

The effective outcome of policy evaluation is to audit the request.

DENY

public static final PolicyAction DENY

The effective outcome of policy evaluation is to deny the request.

ERROR

public static final PolicyAction ERROR

The policy evaluation resulted in an error.

UNKNOWN

public static final PolicyAction UNKNOWN

The effective outcome of policy evaluation is unknown.

Constructor Details

PolicyAction

@Deprecated
public PolicyAction()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PolicyAction value.

Method Details

fromString

public static PolicyAction fromString(String name)

Creates or finds a PolicyAction from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding PolicyAction.

values

public static Collection<PolicyAction> values()

Gets known PolicyAction values.

Returns:

known PolicyAction values.

Applies to