@Generated(value="software.amazon.awssdk:codegen") public final class EvaluationResult extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EvaluationResult.Builder,EvaluationResult>
Contains the results of a simulation.
This data type is used by the return parameter of SimulateCustomPolicy and
SimulatePrincipalPolicy .
| Modifier and Type | Class and Description |
|---|---|
static interface |
EvaluationResult.Builder |
| Modifier and Type | Method and Description |
|---|---|
static EvaluationResult.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
evalActionName()
The name of the API operation tested on the indicated resource.
|
PolicyEvaluationDecisionType |
evalDecision()
The result of the simulation.
|
String |
evalDecisionAsString()
The result of the simulation.
|
Map<String,PolicyEvaluationDecisionType> |
evalDecisionDetails()
Additional details about the results of the cross-account evaluation decision.
|
Map<String,String> |
evalDecisionDetailsAsStrings()
Additional details about the results of the cross-account evaluation decision.
|
String |
evalResourceName()
The ARN of the resource that the indicated API operation was tested on.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasEvalDecisionDetails()
Returns true if the EvalDecisionDetails property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasMatchedStatements()
Returns true if the MatchedStatements property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasMissingContextValues()
Returns true if the MissingContextValues property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasResourceSpecificResults()
Returns true if the ResourceSpecificResults property was specified by the sender (it may be empty), or false if
the sender did not specify the value (it will be empty).
|
List<Statement> |
matchedStatements()
A list of the statements in the input policies that determine the result for this scenario.
|
List<String> |
missingContextValues()
A list of context keys that are required by the included input policies but that were not provided by one of the
input parameters.
|
OrganizationsDecisionDetail |
organizationsDecisionDetail()
A structure that details how Organizations and its service control policies affect the results of the simulation.
|
PermissionsBoundaryDecisionDetail |
permissionsBoundaryDecisionDetail()
Contains information about the effect that a permissions boundary has on a policy simulation when the boundary is
applied to an IAM entity.
|
List<ResourceSpecificResult> |
resourceSpecificResults()
The individual results of the simulation of the API operation specified in EvalActionName on each resource.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends EvaluationResult.Builder> |
serializableBuilderClass() |
EvaluationResult.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String evalActionName()
The name of the API operation tested on the indicated resource.
public String evalResourceName()
The ARN of the resource that the indicated API operation was tested on.
public PolicyEvaluationDecisionType evalDecision()
The result of the simulation.
If the service returns an enum value that is not available in the current SDK version, evalDecision will
return PolicyEvaluationDecisionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from evalDecisionAsString().
PolicyEvaluationDecisionTypepublic String evalDecisionAsString()
The result of the simulation.
If the service returns an enum value that is not available in the current SDK version, evalDecision will
return PolicyEvaluationDecisionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from evalDecisionAsString().
PolicyEvaluationDecisionTypepublic boolean hasMatchedStatements()
public List<Statement> matchedStatements()
A list of the statements in the input policies that determine the result for this scenario. Remember that even if multiple statements allow the operation on the resource, if only one statement denies that operation, then the explicit deny overrides any allow. In addition, the deny statement is the only entry included in the result.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasMatchedStatements() to see if a value was sent in this field.
public boolean hasMissingContextValues()
public List<String> missingContextValues()
A list of context keys that are required by the included input policies but that were not provided by one of the
input parameters. This list is used when the resource in a simulation is "*", either explicitly, or when the
ResourceArns parameter blank. If you include a list of resources, then any missing context values
are instead included under the ResourceSpecificResults section. To discover the context keys used by
a set of policies, you can call GetContextKeysForCustomPolicy or GetContextKeysForPrincipalPolicy.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasMissingContextValues() to see if a value was sent in this field.
ResourceArns parameter blank. If you include a list of resources, then any
missing context values are instead included under the ResourceSpecificResults section. To
discover the context keys used by a set of policies, you can call GetContextKeysForCustomPolicy or
GetContextKeysForPrincipalPolicy.public OrganizationsDecisionDetail organizationsDecisionDetail()
A structure that details how Organizations and its service control policies affect the results of the simulation. Only applies if the simulated user's account is part of an organization.
public PermissionsBoundaryDecisionDetail permissionsBoundaryDecisionDetail()
Contains information about the effect that a permissions boundary has on a policy simulation when the boundary is applied to an IAM entity.
public Map<String,PolicyEvaluationDecisionType> evalDecisionDetails()
Additional details about the results of the cross-account evaluation decision. This parameter is populated for only cross-account simulations. It contains a brief summary of how each policy type contributes to the final evaluation decision.
If the simulation evaluates policies within the same account and includes a resource ARN, then the parameter is
present but the response is empty. If the simulation evaluates policies within the same account and specifies all
resources (*), then the parameter is not returned.
When you make a cross-account request, AWS evaluates the request in the trusting account and the trusted account.
The request is allowed only if both evaluations return true. For more information about how policies
are evaluated, see Evaluating Policies Within a Single Account.
If an AWS Organizations SCP included in the evaluation denies access, the simulation ends. In this case, policy evaluation does not proceed any further and this parameter is not returned.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasEvalDecisionDetails() to see if a value was sent in this field.
If the simulation evaluates policies within the same account and includes a resource ARN, then the
parameter is present but the response is empty. If the simulation evaluates policies within the same
account and specifies all resources (*), then the parameter is not returned.
When you make a cross-account request, AWS evaluates the request in the trusting account and the trusted
account. The request is allowed only if both evaluations return true. For more information
about how policies are evaluated, see Evaluating Policies Within a Single Account.
If an AWS Organizations SCP included in the evaluation denies access, the simulation ends. In this case, policy evaluation does not proceed any further and this parameter is not returned.
public boolean hasEvalDecisionDetails()
public Map<String,String> evalDecisionDetailsAsStrings()
Additional details about the results of the cross-account evaluation decision. This parameter is populated for only cross-account simulations. It contains a brief summary of how each policy type contributes to the final evaluation decision.
If the simulation evaluates policies within the same account and includes a resource ARN, then the parameter is
present but the response is empty. If the simulation evaluates policies within the same account and specifies all
resources (*), then the parameter is not returned.
When you make a cross-account request, AWS evaluates the request in the trusting account and the trusted account.
The request is allowed only if both evaluations return true. For more information about how policies
are evaluated, see Evaluating Policies Within a Single Account.
If an AWS Organizations SCP included in the evaluation denies access, the simulation ends. In this case, policy evaluation does not proceed any further and this parameter is not returned.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasEvalDecisionDetails() to see if a value was sent in this field.
If the simulation evaluates policies within the same account and includes a resource ARN, then the
parameter is present but the response is empty. If the simulation evaluates policies within the same
account and specifies all resources (*), then the parameter is not returned.
When you make a cross-account request, AWS evaluates the request in the trusting account and the trusted
account. The request is allowed only if both evaluations return true. For more information
about how policies are evaluated, see Evaluating Policies Within a Single Account.
If an AWS Organizations SCP included in the evaluation denies access, the simulation ends. In this case, policy evaluation does not proceed any further and this parameter is not returned.
public boolean hasResourceSpecificResults()
public List<ResourceSpecificResult> resourceSpecificResults()
The individual results of the simulation of the API operation specified in EvalActionName on each resource.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasResourceSpecificResults() to see if a value was sent in this field.
public EvaluationResult.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<EvaluationResult.Builder,EvaluationResult>public static EvaluationResult.Builder builder()
public static Class<? extends EvaluationResult.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.