Resource

Resource class.

class EffectiveResource(inclusion, exclusions=None)

EffectiveResources are the representation of the difference between an Resource and its exclusion.

The allowed Resource is the difference (subtraction) of the excluded Resources from the included Resource.

exclusions: FrozenSet[policyglass.effective_arp.T]

Exclusions must always be a subset of the include and must not be subsets of each other

inclusion: policyglass.effective_arp.T

Inclusion must be a superset of any exclusions

class Resource

A resource ARN may be case sensitive or case insensitive depending on the resource type.

property arn_elements: List[str]

Return a list of arn elements, replacing blanks with *.

issubset(other)

Whether this object contains all the elements of another object (i.e. is a subset of the other object).

Parameters

other (object) – The object to determine if our object contains.

Raises

ValueError – If the other object is not of the same type as this object.

Return type

bool