Interface Evaluation.Builder

  • Method Details

    • action

      Evaluation.Builder action(String action)

      The action evaluated for this request (for example, iam:PassRole).

      Parameters:
      action - The action evaluated for this request (for example, iam:PassRole).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resource

      Evaluation.Builder resource(String resource)

      The resource that the action targeted. This is typically a resource ARN, but can be a wildcard ARN that matches multiple resources, or empty for actions that are not resource-specific.

      Parameters:
      resource - The resource that the action targeted. This is typically a resource ARN, but can be a wildcard ARN that matches multiple resources, or empty for actions that are not resource-specific.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • context

      The context keys and values specific to this evaluation. These are applied on top of the request context.

      Parameters:
      context - The context keys and values specific to this evaluation. These are applied on top of the request context.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evaluatedEffect

      Evaluation.Builder evaluatedEffect(String evaluatedEffect)

      The result of the evaluation. Valid values:

      • ALLOW - The action was allowed.

      • EXPLICIT_DENY - The action was explicitly denied by a policy.

      • IMPLICIT_DENY - The action was denied because no policy allowed it.

      Parameters:
      evaluatedEffect - The result of the evaluation. Valid values:

      • ALLOW - The action was allowed.

      • EXPLICIT_DENY - The action was explicitly denied by a policy.

      • IMPLICIT_DENY - The action was denied because no policy allowed it.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • evaluatedEffect

      Evaluation.Builder evaluatedEffect(EvaluatedEffect evaluatedEffect)

      The result of the evaluation. Valid values:

      • ALLOW - The action was allowed.

      • EXPLICIT_DENY - The action was explicitly denied by a policy.

      • IMPLICIT_DENY - The action was denied because no policy allowed it.

      Parameters:
      evaluatedEffect - The result of the evaluation. Valid values:

      • ALLOW - The action was allowed.

      • EXPLICIT_DENY - The action was explicitly denied by a policy.

      • IMPLICIT_DENY - The action was denied because no policy allowed it.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • matchedPolicies

      Evaluation.Builder matchedPolicies(Collection<MatchedPolicy> matchedPolicies)

      The policies that matched during evaluation of this action and resource. An implicit denial produces no matched policies.

      Parameters:
      matchedPolicies - The policies that matched during evaluation of this action and resource. An implicit denial produces no matched policies.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • matchedPolicies

      Evaluation.Builder matchedPolicies(MatchedPolicy... matchedPolicies)

      The policies that matched during evaluation of this action and resource. An implicit denial produces no matched policies.

      Parameters:
      matchedPolicies - The policies that matched during evaluation of this action and resource. An implicit denial produces no matched policies.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • matchedPolicies

      Evaluation.Builder matchedPolicies(Consumer<MatchedPolicy.Builder>... matchedPolicies)

      The policies that matched during evaluation of this action and resource. An implicit denial produces no matched policies.

      This is a convenience method that creates an instance of the MatchedPolicy.Builder avoiding the need to create one manually via MatchedPolicy.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to matchedPolicies(List<MatchedPolicy>).

      Parameters:
      matchedPolicies - a consumer that will call methods on MatchedPolicy.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: