Skip to content

ResourceSpecificResult

Source code in docs_src/capo_iam/types/resource_specific_result.py
class ResourceSpecificResult(TypedDict, closed=True):
    eval_resource_name: "capo_iam.types.resource_name_type.ResourceNameType"
    """<p>The name of the simulated resource, in Amazon Resource Name (ARN) format.</p>"""
    eval_resource_decision: (
        "capo_iam.types.policy_evaluation_decision_type.PolicyEvaluationDecisionType"
    )
    """<p>The result of the simulation of the simulated API operation on the resource specified in <code>EvalResourceName</code>.</p>"""
    matched_statements: NotRequired[
        "capo_iam.types.statement_list_type.StatementListType"
    ]
    """<p>A list of the statements in the input policies that determine the result for this part of the simulation. Remember that even if multiple statements allow the operation on the resource, if <i>any</i> statement denies that operation, then the explicit deny overrides any allow. In addition, the deny statement is the only entry included in the result.</p>"""
    missing_context_values: NotRequired[
        "capo_iam.types.context_key_names_result_list_type.ContextKeyNamesResultListType"
    ]
    """<p>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 a list of ARNs is included in the <code>ResourceArns</code> parameter instead of "*". If you do not specify individual resources, by setting <code>ResourceArns</code> to "*" or by not including the <code>ResourceArns</code> parameter, then any missing context values are instead included under the <code>EvaluationResults</code> section. To discover the context keys used by a set of policies, you can call <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetContextKeysForCustomPolicy.html">GetContextKeysForCustomPolicy</a> or <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetContextKeysForPrincipalPolicy.html">GetContextKeysForPrincipalPolicy</a>.</p>"""
    eval_decision_details: NotRequired[
        "capo_iam.types.eval_decision_details_type.EvalDecisionDetailsType"
    ]
    """<p>Additional details about the results of the evaluation decision on a single resource. This parameter is returned only for cross-account simulations. This parameter explains how each policy type contributes to the resource-specific evaluation decision.</p>"""
    permissions_boundary_decision_detail: NotRequired[
        "capo_iam.types.permissions_boundary_decision_detail.PermissionsBoundaryDecisionDetail"
    ]
    """<p>Contains information about the effect that a permissions boundary has on a policy simulation when that boundary is applied to an IAM entity.</p>"""

eval_decision_details instance-attribute

eval_decision_details: NotRequired[EvalDecisionDetailsType]

Additional details about the results of the evaluation decision on a single resource. This parameter is returned only for cross-account simulations. This parameter explains how each policy type contributes to the resource-specific evaluation decision.

eval_resource_decision instance-attribute

eval_resource_decision: PolicyEvaluationDecisionType

The result of the simulation of the simulated API operation on the resource specified in EvalResourceName.

eval_resource_name instance-attribute

eval_resource_name: ResourceNameType

The name of the simulated resource, in Amazon Resource Name (ARN) format.

matched_statements instance-attribute

matched_statements: NotRequired[StatementListType]

A list of the statements in the input policies that determine the result for this part of the simulation. Remember that even if multiple statements allow the operation on the resource, if any statement denies that operation, then the explicit deny overrides any allow. In addition, the deny statement is the only entry included in the result.

missing_context_values instance-attribute

missing_context_values: NotRequired[ContextKeyNamesResultListType]

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 a list of ARNs is included in the ResourceArns parameter instead of "*". If you do not specify individual resources, by setting ResourceArns to "*" or by not including the ResourceArns parameter, then any missing context values are instead included under the EvaluationResults section. To discover the context keys used by a set of policies, you can call GetContextKeysForCustomPolicy or GetContextKeysForPrincipalPolicy.

permissions_boundary_decision_detail instance-attribute

permissions_boundary_decision_detail: NotRequired[PermissionsBoundaryDecisionDetail]

Contains information about the effect that a permissions boundary has on a policy simulation when that boundary is applied to an IAM entity.