PrincipalPolicyFragment

class aws_cdk.aws_iam.PrincipalPolicyFragment(principal_json, conditions=None)

Bases: object

A collection of the fields in a PolicyStatement that can be used to identify a principal.

This consists of the JSON used in the “Principal” field, and optionally a set of “Condition”s that need to be applied to the policy.

__init__(principal_json, conditions=None)
Parameters
  • principal_json (Mapping[str, List[str]]) –

  • conditions (Optional[Mapping[str, Any]]) –

Return type

None

Attributes

conditions
Return type

Mapping[str, Any]

principal_json
Return type

Mapping[str, List[str]]