Crate scratchstack_aspen

Source
Expand description

AWS IAM policy document (Aspen) representation and evaluation.

Modules§

condop
Operators for conditions.

Macros§

display_json
Implement Display for a given class by formatting it as pretty-printed JSON.
from_str_json
Implement FromStr for a given class by parsing it as JSON.

Structs§

Condition
Representation of an Aspen condition clause in a statement.
Context
The request context used when evaluating an Aspen policy.
ContextBuilder
Builder for Context.
MapList
$llt allows a JSON field to be represented as the element itself (equivalent to a list of 1 item) or as s list of elements.
Policy
The top-level structure for holding an Aspen policy.
PolicyBuilder
Builder for Policy.
PolicySet
A set of policies being evaluated to determine the permissions in effect.
ResourceArn
An Amazon Resource Name (ARN) statement in an IAM Aspen policy.
SpecifiedPrincipal
A non-wildcard principal statement in an Aspen policy.
SpecifiedPrincipalBuilder
Builder for SpecifiedPrincipal.
Statement
An Aspen policy statement.
StatementBuilder
Builder for Statement.
StringLikeList
$llt allows a JSON field to be represented as the element itself (equivalent to a list of 1 item) or as s list of elements.

Enums§

Action
An action in an Aspen policy.
AspenError
The error type used to convey Aspen errors.
AwsPrincipal
An AWS account principal clause in an Aspen policy.
ConditionOp
An operator for a condition clause.
ConditionVariant
The variant on an operation.
Decision
The outcome of a policy evaluation.
Effect
Effect of an Aspen statement.
PolicyBuilderError
Error type for PolicyBuilder
PolicySource
The source of a policy.
PolicyVersion
Aspen policy versions as represented in an Aspen policy document.
Principal
A principal statement in an Aspen policy.
Resource
A resource in an Aspen policy.
SpecifiedPrincipalBuilderError
Error type for SpecifiedPrincipalBuilder
StatementBuilderError
Error type for StatementBuilder

Type Aliases§

ActionList
A list of actions. In JSON, this may be a string or an array of strings.
ConditionMap
A map of condition variables to their allowed values.
ResourceList
A list of resources. In JSON, this may be a string or an array of strings.
StatementList
A list of statements. In JSON, this may be an object or an array of objects.