{
  "RecipeFormatVersion": "2020-01-25",
  "ComponentName": "com.custom.requester",
  "ComponentVersion": "1.0.0",
  "ComponentDescription": "A component that requests the image classification.",
  "ComponentPublisher": "Amazon",
  "ComponentConfiguration": {
    "DefaultConfiguration": {
      "accessControl": {
        "aws.greengrass.ipc.pubsub": {
          "com.custom.requester:pubsub:1": {
            "policyDescription": "Allows access to publish/subscribe to the topics.",
            "operations": [
              "aws.greengrass#PublishToTopic",
              "aws.greengrass#SubscribeToTopic"                  
            ],
            "resources": [
              "local/inference",
              "local/result"
            ]
          }
        }
      }
    }
  },
  "Manifests": [{        
    "Platform": {
      "os": "linux"
    },
    "Lifecycle": {
      "Install": {
        "RequiresPrivilege": "false",
        "Script": "pip3 install awsiotsdk"
      },
      "Run": {
        "RequiresPrivilege": "false",
        "Script": "python3 -u {artifacts:path}/requester.py"
      }
    }
  }]
}
