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.
- Parameters
principal_json (
Mapping
[str
,List
[str
]]) – JSON of the “Principal” section in a policy statement.conditions (
Optional
[Mapping
[str
,Any
]]) – The conditions under which the policy is in effect. See the IAM documentation. conditions that need to be applied to this policy
Attributes
-
conditions
¶ The conditions under which the policy is in effect.
See the IAM documentation. conditions that need to be applied to this policy
- Return type
Mapping
[str
,Any
]
-
principal_json
¶ JSON of the “Principal” section in a policy statement.
- Return type
Mapping
[str
,List
[str
]]