Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

strongishllama/aws-iam-constants

Repository files navigation

Deprecation Notice

Hi all, I'm deprecating this repository as I've moved the functionality provided in this package over to this repository and package. Hope to see you there :)

AWS IAM Constants

NPN version License: MIT CI

Introduction

  • Contains a generated enum list of all AWS IAM actions.
  • Start building AWS IAM policy statements without having to check for typos in your actions.
  • See a full list of available actions for a service.

Installation

npm install @strongishllama/aws-iam-constants

Example

new iam.PolicyStatement({
    actions: [
        DynamoDB.GET_ITEM,
        DynamoDB.PUT_ITEM,
        DynamoDB.QUERY
    ],
    resources: [
        `${table.tableArn}/index/*`,
        table.tableArn
    ]
})