The following screenshot shows an example policy. Take note of the various parameters:Â
Let's understand these parameters one by one:
- Version: The 2012-10-17 version number shows the version of the policy language being used by AWS. The latest version at the time of writing this book is 2012-10-17.
- Statement: This acts as a group for the parameters that follow, and each policy can have a number of statements within them.
- Sid: This is simply a statement identification, the value of which can be anything to make logical sense of the statement itself. In this example, we have simply added a value of SamplePolicy, allowing us to easily identify what we are using the policy for.
- Effect: This can be a value of either Allow or Deny. This simply allows or denies access to the resources within the statement using the actions listed.
- Action: Here you can list a number of different actions that you want to either allow or deny access...