code: def dynamodb_autoscaling_policy(tables):
      
      return Policy(
          Statement=[
              Statement(
                  Effect=Allow,
                  Resource=dynamodb_arns(tables),
                  Action=[
                      dynamodb.DescribeTable,
                      dynamodb.UpdateTable,
                  ]
              ),
              Statement(
                  Effect=Allow,
                  Resource=['*'],
                  Action=[
                      cloudwatch.PutMetricAlarm,
                      cloudwatch.DescribeAlarms,
                      cloudwatch.GetMetricStatistics,
                      cloudwatch.SetAlarmState,
                      cloudwatch.DeleteAlarms,
                  ]
              ),
          ]
      )
docs: Policy to allow AutoScaling a list of DynamoDB tables.