PolicyStatement class

The Statement element is the main element for a policy. This element is required. It can include multiple elements (see the subsequent sections in this page). The Statement element contains an array of individual statements.

Constructors

PolicyStatement({Input? action, Input<Map<String, dynamic>?>? condition, 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.
const
PolicyStatement.fromMap(Map<String, dynamic> map)
factory

Properties

action → Input?
Include a list of actions that the policy allows or denies. Required (either Action or NotAction)
final
condition → Input<Map<String, dynamic>?>?
Specify the circumstances under which the policy grants permission.
final
effect → Input<PolicyStatementEffect>
Indicate whether the policy allows or denies access.
final
hashCode → int
The hash code for this object.
no setterinherited
notAction → Input?
Include a list of actions that are not covered by this policy. Required (either Action or NotAction)
final
notPrincipal → Input?
Indicate the account, user, role, or federated user to which this policy does not apply.
final
notResource → Input?
A list of resources that are specifically excluded by this policy.
final
principal → Input?
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.
final
resource → Input?
A list of resources to which the actions apply.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sid → Input<String?>?
An optional statement ID to differentiate between your statements.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited