Login
Remember
Register
Ask a Question
What are the key elements in the JSON schema of a policy?
0
votes
asked
Aug 1, 2021
in
AWS Access Management
by
rajeshsharma
What are the key elements in the JSON schema of a policy?
json-schema
json-policy
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Aug 1, 2021
by
rajeshsharma
Following are some key elements in a policy JSON schema.
Version - Specifies the version of the policy language.
Statement - Main policy element that contains the following elements. You can have more than one statement in a policy.
Sid - Statement ID that differentiates between statements.
Effect - Indicates if the policy allows or denies access. Possible values are 'Allow' or 'Deny'.
Principal - The account, user, or role for whom access is allowed or denied. This is applicable only for resource-based policies.
Action - Specifies the list of actions that the policy allows or denies.
Resource - Specifies the list of resources to which the policy applies. This is only applicable for IAM permissions policy.
Condition - Specifies the circumstances under which the policy grants permissions.
...