Interface Evaluation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Evaluation.Builder,,Evaluation> SdkBuilder<Evaluation.Builder,,Evaluation> SdkPojo
- Enclosing class:
Evaluation
-
Method Summary
Modifier and TypeMethodDescriptionThe action evaluated for this request (for example,iam:PassRole).The context keys and values specific to this evaluation.evaluatedEffect(String evaluatedEffect) The result of the evaluation.evaluatedEffect(EvaluatedEffect evaluatedEffect) The result of the evaluation.matchedPolicies(Collection<MatchedPolicy> matchedPolicies) The policies that matched during evaluation of this action and resource.matchedPolicies(Consumer<MatchedPolicy.Builder>... matchedPolicies) The policies that matched during evaluation of this action and resource.matchedPolicies(MatchedPolicy... matchedPolicies) The policies that matched during evaluation of this action and resource.The resource that the action targeted.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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
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
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
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
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 theMatchedPolicy.Builderavoiding the need to create one manually viaMatchedPolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomatchedPolicies(List<MatchedPolicy>).- Parameters:
matchedPolicies- a consumer that will call methods onMatchedPolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-