type SensorValue @model (subscriptions: null) @auth ( rules: [ { allow: private, provider: iam}, { allow: public, provider: apiKey} ] ) { id: ID! sensorId: String! value: Float! timestamp: AWSTimestamp! } type Subscription { onCreateSensorValue(sensorId: String!): SensorValue @aws_subscribe(mutations: ["createSensorValue"]) }