PolicyStatement constructor
- Input? action,
- Input<
Map< ? condition,String, dynamic> ?> - required Input<
PolicyStatementEffect> effect, - Input? notAction,
- Input? notPrincipal,
- Input? notResource,
- Input? principal,
- Input? resource,
- Input<
String?> ? sid,
Creates a new PolicyStatement.
action Include a list of actions that the policy allows or denies. Required (either Action or NotAction)
condition Specify the circumstances under which the policy grants permission.
effect Indicate whether the policy allows or denies access.
notAction Include a list of actions that are not covered by this policy. Required (either Action or NotAction)
notPrincipal Indicate the account, user, role, or federated user to which this policy does not apply.
notResource A list of resources that are specifically excluded by this policy.
principal Indicate the account, user, role, or federated user to which you would like to allow or deny access. If you are creating a policy to attach to a user or role, you cannot include this element. The principal is implied as that user or role.
resource A list of resources to which the actions apply.
sid An optional statement ID to differentiate between your statements.
Implementation
const PolicyStatement({
this.action,
this.condition,
required this.effect,
this.notAction,
this.notPrincipal,
this.notResource,
this.principal,
this.resource,
this.sid,
});