AWS IoT Things Graph
User Guide

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

Logging AWS IoT Things Graph API Calls with AWS CloudTrail

AWS IoT Things Graph is integrated with AWS CloudTrail. The CloudTrail service provides a record of actions that a user, role, or an AWS service takes in AWS IoT Things Graph. CloudTrail captures all API calls for AWS IoT Things Graph as events. Captured calls include those from the AWS IoT Things Graph console and code calls to the AWS IoT Things Graph API operations.

If you create a trail, you can enable continuous delivery of CloudTrail events to an Amazon S3 bucket, including events for AWS IoT Things Graph. If you don't configure a trail, you can still view the most recent events in the CloudTrail console in Event history.

Using the information that CloudTrail collects, you can determine the request that was made to AWS IoT Things Graph, the IP address from which the request was made, who made the request and when, and more details.

To learn more about CloudTrail, see the AWS CloudTrail User Guide.

AWS IoT Things Graph Information in CloudTrail

AWS CloudTrail is enabled on your AWS account when you create the account. When activity occurs in AWS IoT Things Graph, that activity is recorded in a CloudTrail event with other AWS service events in Event history. You can view, search, and download recent events in your AWS account. For more information, see Viewing Events with CloudTrail Event History.

For an ongoing record of events in your AWS account, including events for AWS IoT Things Graph, create a trail. A trail enables CloudTrail to deliver log files to an Amazon Simple Storage Service (Amazon S3) bucket. By default, when you create a trail in the console, the trail applies to all AWS Regions. The trail logs events from all Regions in the AWS partition and delivers the log files to the Amazon S3 bucket that you specify.

You can also configure other AWS services to further analyze and act on the event data collected in CloudTrail logs. For more information, see the following:

CloudTrail logs all AWS IoT Things Graph actions. They're documented in the AWS IoT Things Graph API Reference. For example, calls to the UploadEntityDefinitions, CreateSystemInstance and CreateFlowTemplate actions generate entries in the CloudTrail log files.

Every event or log entry contains information about who generated the request. The identity information helps you determine the following:

  • Whether the request was made with root or AWS Identity and Access Management (IAM) user credentials.

  • Whether the request was made with temporary security credentials for a role or federated user.

  • Whether the request was made by another AWS service.

For more information, see the CloudTrail userIdentity Element.

Understanding AWS IoT Things Graph Log File Entries

A trail is a configuration that enables delivery of events as log files to an Amazon S3 bucket that you specify.

CloudTrail log files contain one or more log entries. An event represents a single request from any source and includes information about the requested action, the date and time of the action, request parameters, and so on.

CloudTrail log files aren't an ordered stack trace of the public API calls, so they don't appear in any specific order.

Example

The following CloudTrail log entry shows information about the UploadEntityDefinitions action.

{ "eventVersion": "1.05", "userIdentity": { "type": "IAMUser", "principalId": "principal-id", "arn": "arn:aws:iam::123456789012:user/TodRunner", "accountId": "123456789012", "accessKeyId": "access-key-id", "userName": "TodRunner" }, "eventTime": "2019-02-22T22:56:35Z", "eventSource": "iotthingsgraph.amazonaws.com", "eventName": "UploadEntityDefinitions", "awsRegion": "us-east-1", "sourceIPAddress": "127.0.0.1", "userAgent": "aws-internal/3 aws-sdk-java/1.11.498 Mac_OS_X/10.12.6 Java_HotSpot(TM)_64-Bit_Server_VM/25.181-b13 java/1.8.0_181", "requestParameters": { "document": { "language": "GRAPHQL", "text": "{type Uri @propertyType(id: \"urn:tdm:us-east-1/123456789012/default:Property:UriAcceptanceSimpleFlow\", dataType: STRING){ignore:void}\ntype MotionDetected @propertyType(id: \"urn:tdm:us-east-1/123456789012/default:Property:MotionDetectedAcceptanceSimpleFlow\", dataType: String){ignore:void}\n type BoundingBoxProperty @propertyType(id:'urn:tdm:us-east-1/123456789012/default:Property:BoundingBoxPropertyAcceptanceSimpleFlow' dataType:'urn:tdm:us-east-1/123456789012/default:dataType:EntityType', instanceOf:'urn:tdm:us-east-1/123456789012/default:State:SimpleFlow') {ignore:void}\n type FaceDetailsProperty @propertyType(id:'urn:tdm:us-east-1/123456789012/default:Property:FaceDetailsPropertyAcceptanceSimpleFlow' dataType:'urn:tdm:us-east-1/123456789012/default:dataType:EntityType', instanceOf:'urn:tdm:us-east-1/123456789012/default:State:FaceDetailsStateAcceptanceSimpleFlow') {ignore:void}\n type LandmarksProperty @propertyType(id:'urn:tdm:us-east-1/123456789012/default:Property:LandmarksPropertyAcceptanceSimpleFlow' dataType:'urn:tdm:us-east-1/123456789012/default:dataType:EntityType', instanceOf:'urn:tdm:us-east-1/123456789012/default:State:LandmarkStateAcceptanceSimpleFlow') {ignore:void}\ntype PoseProperty @propertyType(id:'urn:tdm:us-east-1/123456789012/default:Property:PosePropertyAcceptanceSimpleFlow' dataType:'urn:tdm:us-east-1/123456789012/default:dataType:EntityType', instanceOf:'urn:tdm:us-east-1/123456789012/default:State:PoseStateAcceptanceSimpleFlow') {ignore:void}\n type QualityProperty @propertyType(id:'urn:tdm:us-east-1/123456789012/default:Property:QualityPropertyAcceptanceSimpleFlow' dataType:'urn:tdm:us-east-1/123456789012/default:dataType:EntityType', instanceOf:'urn:tdm:us-east-1/123456789012/default:State:QualityStateAcceptanceSimpleFlow') {ignore:void}\n type ResponseProperty @propertyType(id:'urn:tdm:us-east-1/123456789012/default:Property:ResponsePropertyAcceptanceSimpleFlow' dataType:'urn:tdm:us-east-1/123456789012/default:dataType:EntityType', instanceOf:'urn:tdm:us-east-1/123456789012/default:State:ResponseStateAcceptanceSimpleFlow') {ignore:void}\n type CameraState @stateType(id: \"urn:tdm:us-east-1/123456789012/default:State:CameraStateAcceptanceSimpleFlow\"){ lastClickedImage : Uri @property(id: \"urn:tdm:us-east-1/123456789012/default:Property:UriAcceptanceSimpleFlow\") }\n type CameraState_V2 @stateType(id: \"urn:tdm:us-east-1/123456789012/default:State:CameraState_V2AcceptanceSimpleFlow\"){ lastClickedImage : Uri @property(id: \"urn:tdm:us-east-1/123456789012/default:Property:UriAcceptanceSimpleFlow\") }\n type ScreenState @stateType(id: \"urn:tdm:us-east-1/123456789012/default:State:ScreenStateAcceptanceSimpleFlow\") { currentDisplayImage : Uri @property(id: \"urn:tdm:us-east-1/123456789012/default:Property:UriAcceptanceSimpleFlow\") }\n type MotionSensorState @stateType(id: \"urn:tdm:us-east-1/123456789012/default:State:MotionSensorStateAcceptanceSimpleFlow\") { isMotionDetected : MotionDetected @property(id:\"urn:tdm:us-east-1/123456789012/default:Property:MotionDetectedAcceptanceSimpleFlow\") }\n type LightState @stateType(id: \"urn:tdm:us-east-1/123456789012/default:State:LightStateAcceptanceSimpleFlow\") { OnOff : Boolean @property(id: 'urn:tdm:aws:Property:Boolean') }\ntype BoundingBoxState @stateType(id:'urn:tdm:us-east-1/123456789012/default:State:SimpleFlow') { Height: Float64 @property(id:'urn:tdm:aws:Property:Float64'), Left: Float64 @property(id:'urn:tdm:aws:Property:Float64'), Top: Float64 @property(id:'urn:tdm:aws:Property:Float64'), Width: Float64 @property(id:'urn:tdm:aws:Property:Float64')}\ntype FaceDetailsState @stateType(id:'urn:tdm:us-east-1/123456789012/default:State:FaceDetailsStateAcceptanceSimpleFlow') { BoundingBox: BoundingBoxProperty @property(id:'urn:tdm:us-east-1/123456789012/default:Property:BoundingBoxPropertyAcceptanceSimpleFlow'), Confidence: Float64 @property(id:'urn:tdm:aws:Property:Float64'), Landmarks: [LandmarksProperty] @property(id:'urn:tdm:us-east-1/123456789012/default:Property:LandmarksPropertyAcceptanceSimpleFlow'), Pose: PoseProperty @property(id:'urn:tdm:us-east-1/123456789012/default:Property:PosePropertyAcceptanceSimpleFlow'), Quality: QualityProperty @property(id:'urn:tdm:us-east-1/123456789012/default:Property:QualityPropertyAcceptanceSimpleFlow')}\ntype LandmarkState @stateType(id:'urn:tdm:us-east-1/123456789012/default:State:LandmarkStateAcceptanceSimpleFlow') { Type: String @property(id:'urn:tdm:aws:Property:String'), X: Float64 @property(id:'urn:tdm:aws:Property:Float64'), Y: Float64 @property(id:'urn:tdm:aws:Property:Float64')}\ntype PoseState @stateType(id:'urn:tdm:us-east-1/123456789012/default:State:PoseStateAcceptanceSimpleFlow') { Pitch: Float64 @property(id:'urn:tdm:aws:Property:Float64'), Roll: Float64 @property(id:'urn:tdm:aws:Property:Float64'), Yaw: Float64 @property(id:'urn:tdm:aws:Property:Float64')}\ntype QualityState @stateType(id:'urn:tdm:us-east-1/123456789012/default:State:QualityStateAcceptanceSimpleFlow') { Brightness: Float64 @property(id:'urn:tdm:aws:Property:Float64'), Sharpness: Float64 @property(id:'urn:tdm:aws:Property:Float64')}\ntype ResponseState @stateType(id:'urn:tdm:us-east-1/123456789012/default:State:ResponseStateAcceptanceSimpleFlow') { FaceDetails: [FaceDetailsProperty] @property(id:'urn:tdm:us-east-1/123456789012/default:Property:FaceDetailsPropertyAcceptanceSimpleFlow'), OrientationCorrection: String @property(id:'urn:tdm:aws:Property:String')}\n type Capture @actionType(id:\"urn:tdm:us-east-1/123456789012/default:Action:CaptureAcceptanceSimpleFlow\") { return : Uri @property(id: \"urn:tdm:us-east-1/123456789012/default:Property:UriAcceptanceSimpleFlow\") }\n type Display @actionType(id: \"urn:tdm:us-east-1/123456789012/default:Action:DisplayAcceptanceSimpleFlow\") { url : Uri @property(id: \"urn:tdm:us-east-1/123456789012/default:Property:UriAcceptanceSimpleFlow\") }\n type Switch @actionType(id: \"urn:tdm:us-east-1/123456789012/default:Action:SwitchAcceptanceSimpleFlow\") { input : Boolean @property(id: 'urn:tdm:aws:Property:Boolean') }\n type MatchImage @actionType(id: \"urn:tdm:us-east-1/123456789012/default:Action:MatchImageAcceptanceSimpleFlow\") {\n url : Uri @property(id: \"urn:tdm:us-east-1/123456789012/default:Property:UriAcceptanceSimpleFlow\")\n return : Boolean @property(id: 'urn:tdm:aws:Property:Boolean')\n }\n\n type CreateQueue @actionType(id: \"urn:tdm:us-east-1/123456789012/default:action:CreateQueueAcceptanceSimpleFlow\") {\n queueName: String @property(id: 'urn:tdm:aws:Property:String')\n }\n\n type SendMessage @actionType(id: \"urn:tdm:us-east-1/123456789012/default:action:SendMessageAcceptanceSimpleFlow\") {\n message: String @property(id: 'urn:tdm:aws:Property:String')\n }\n\n type DetectFaces @actionType(id: \"urn:tdm:us-east-1/123456789012/default:action:DetectFacesAcceptanceSimpleFlow\") {\n bucketName: String @property(id: 'urn:tdm:aws:Property:String')\n itemName: String @property(id: 'urn:tdm:aws:Property:String')\n return: ResponseProperty @property(id: 'urn:tdm:us-east-1/123456789012/default:Property:ResponsePropertyAcceptanceSimpleFlow')\n }\n\n type MotionDetectedEvent @eventType(id: \"urn:tdm:us-east-1/123456789012/default:Event:MotionDetectedEventAcceptanceSimpleFlow\", payload: \"urn:tdm:us-east-1/123456789012/default:Property:MotionDetectedAcceptanceSimpleFlow\") {ignore:void}\n type CameraCap @capabilityType(id: \"urn:tdm:us-east-1/123456789012/default:Capability:CameraCapAcceptanceSimpleFlow\") { STATE: CameraState @state(id: \"urn:tdm:us-east-1/123456789012/default:State:CameraStateAcceptanceSimpleFlow\") capture: Capture @action(id: \"urn:tdm:us-east-1/123456789012/default:Action:CaptureAcceptanceSimpleFlow\") }\n type CameraCap_V2 @capabilityType(id: \"urn:tdm:us-east-1/123456789012/default:Capability:CameraCap_V2AcceptanceSimpleFlow\") { STATE: CameraState_V2 @state(id: \"urn:tdm:us-east-1/123456789012/default:State:CameraState_V2AcceptanceSimpleFlow\") capture: Capture @action(id: \"urn:tdm:us-east-1/123456789012/default:Action:CaptureAcceptanceSimpleFlow\") }\n type ScreenCap @capabilityType(id: \"urn:tdm:us-east-1/123456789012/default:Capability:ScreenCapAcceptanceSimpleFlow\") { STATE: ScreenState @state(id: \"urn:tdm:us-east-1/123456789012/default:State:ScreenStateAcceptanceSimpleFlow\") display: Display @action(id: \"urn:tdm:us-east-1/123456789012/default:Action:DisplayAcceptanceSimpleFlow\") }\n type MotionSensorCap @capabilityType(id: \"urn:tdm:us-east-1/123456789012/default:Capability:MotionSensorCapAcceptanceSimpleFlow\") { STATE: MotionSensorState @state(id: \"urn:tdm:us-east-1/123456789012/default:State:MotionSensorStateAcceptanceSimpleFlow\") motionDetected: MotionDetectedEvent @event(id: \"urn:tdm:us-east-1/123456789012/default:Event:MotionDetectedEventAcceptanceSimpleFlow\") }\n type MlLambdasCap @capabilityType(id: \"urn:tdm:us-east-1/123456789012/default:Capability:MlLambdasCapAcceptanceSimpleFlow\") {\n matchImageLocal: MatchImage @action(id: \"urn:tdm:us-east-1/123456789012/default:Action:MatchImageAcceptanceSimpleFlow\")\n matchImageGlobal: MatchImage @action(id: \"urn:tdm:us-east-1/123456789012/default:Action:MatchImageAcceptanceSimpleFlow\")\n }\n\n type SqsCap @capabilityType(id: \"urn:tdm:us-east-1/123456789012/default:capability:SqsCapAcceptanceSimpleFlow\") {\n createQueue: CreateQueue @action(id: \"urn:tdm:us-east-1/123456789012/default:action:CreateQueueAcceptanceSimpleFlow\")\n sendMessage: SendMessage @action(id: \"urn:tdm:us-east-1/123456789012/default:action:SendMessageAcceptanceSimpleFlow\")\n }\n\n type RekognitionCap @capabilityType(id: \"urn:tdm:us-east-1/123456789012/default:capability:RekognitionCapAcceptanceSimpleFlow\") {\n detectFaces: DetectFaces @action(id: \"urn:tdm:us-east-1/123456789012/default:action:DetectFacesAcceptanceSimpleFlow\")\n }\n\n type LightCap @capabilityType(id: \"urn:tdm:us-east-1/123456789012/default:Capability:LightCapAcceptanceSimpleFlow\") { state: LightState @state(id: \"urn:tdm:us-east-1/123456789012/default:State:LightStateAcceptanceSimpleFlow\") switch: Switch @action(id: \"urn:tdm:us-east-1/123456789012/default:Action:SwitchAcceptanceSimpleFlow\") }\n type Camera @deviceModel(id:\"urn:tdm:us-east-1/123456789012/default:DeviceModel:CameraAcceptanceSimpleFlow\", capability: \"urn:tdm:us-east-1/123456789012/default:Capability:CameraCapAcceptanceSimpleFlow\"){ IGNORE : VOID }\n type Camera_V2 @deviceModel(id:\"urn:tdm:us-east-1/123456789012/default:DeviceModel:Camera_V2AcceptanceSimpleFlow\", capability: \"urn:tdm:us-east-1/123456789012/default:Capability:CameraCap_V2AcceptanceSimpleFlow\"){ IGNORE : VOID }\n type Screen @deviceModel(id:\"urn:tdm:us-east-1/123456789012/default:DeviceModel:ScreenAcceptanceSimpleFlow\", capability: \"urn:tdm:us-east-1/123456789012/default:Capability:ScreenCapAcceptanceSimpleFlow\"){ IGNORE : VOID }\n type MotionSensor @deviceModel(id: \"urn:tdm:us-east-1/123456789012/default:DeviceModel:MotionSensorAcceptanceSimpleFlow\", capability: \"urn:tdm:us-east-1/123456789012/default:Capability:MotionSensorCapAcceptanceSimpleFlow\") { IGNORE : VOID }\n type Light @deviceModel(id: \"urn:tdm:us-east-1/123456789012/default:DeviceModel:LightAcceptanceSimpleFlow\", capability: \"urn:tdm:us-east-1/123456789012/default:Capability:LightCapAcceptanceSimpleFlow\") { IGNORE : VOID }\n query PhyCamera @device(id: \"urn:tdm:us-east-1/123456789012/default:Device:PhyCameraAcceptanceSimpleFlow\", deviceModel: \"urn:tdm:us-east-1/123456789012/default:DeviceModel:CameraAcceptanceSimpleFlow\") { MQTT { CameraCap(id: \"urn:tdm:us-east-1/123456789012/default:Capability:CameraCapAcceptanceSimpleFlow\") { state { lastClickedImage(name: \"lastImage\", property: \"urn:tdm:us-east-1/123456789012/default:Property:UriAcceptanceSimpleFlow\") } Action(name: \"capture\") { Publish { Request(topic: \"camera/capture\") { params } Response(topic: \"camera/capture/finished\") { responsePayload(property: \"urn:tdm:us-east-1/123456789012/default:Property:UriAcceptanceSimpleFlow\") } } } } } }\n query PhyCamera_V2 @device(id: \"urn:tdm:us-east-1/123456789012/default:Device:PhyCamera_V2AcceptanceSimpleFlow\", deviceModel: \"urn:tdm:us-east-1/123456789012/default:DeviceModel:Camera_V2AcceptanceSimpleFlow\") { MQTT { CameraCap_V2(id: \"urn:tdm:us-east-1/123456789012/default:Capability:CameraCap_V2AcceptanceSimpleFlow\") { state { lastClickedImage(name: \"lastImage\", property: \"urn:tdm:us-east-1/123456789012/default:Property:UriAcceptanceSimpleFlow\") } Action(name: \"capture\") { Publish { Request(topic: \"camera_v2/capture\") { params } Response(topic: \"camera_v2/capture/finished\") { responsePayload(property: \"urn:tdm:us-east-1/123456789012/default:Property:UriAcceptanceSimpleFlow\") } } } } } }\n query PhyScreen @device(id: \"urn:tdm:us-east-1/123456789012/default:Device:PhyScreenAcceptanceSimpleFlow\", deviceModel: \"urn:tdm:us-east-1/123456789012/default:DeviceModel:ScreenAcceptanceSimpleFlow\") { MQTT { ScreenCap(id: \"urn:tdm:us-east-1/123456789012/default:Capability:ScreenCapAcceptanceSimpleFlow\") { state { currentDisplayImage(name: \"displayUri\", property: \"urn:tdm:us-east-1/123456789012/default:Property:UriAcceptanceSimpleFlow\") } Action(name: \"display\") { params { param(name:\"url\", property:\"urn:tdm:us-east-1/123456789012/default:Property:UriAcceptanceSimpleFlow\") } Payload { Request(topic: \"screen/display\") { params { param(name: \"imageUri\", property: \"urn:tdm:us-east-1/123456789012/default:Property:UriAcceptanceSimpleFlow\", value: \"${url.value}\") } } } } } } }\n query PhyMotionSensor @device(id: \"urn:tdm:us-east-1/123456789012/default:Device:PhyMotionSensorAcceptanceSimpleFlow\", deviceModel: \"urn:tdm:us-east-1/123456789012/default:DeviceModel:MotionSensorAcceptanceSimpleFlow\") { MQTT { MotionSensorCap(id: \"urn:tdm:us-east-1/123456789012/default:Capability:MotionSensorCapAcceptanceSimpleFlow\") { state { isMotionDetected(name:\"\", property:\"urn:tdm:us-east-1/123456789012/default:Property:MotionDetectedAcceptanceSimpleFlow\") } Event(name: \"motionDetected\") { Subscribe(topic: \"motionsensor/motion\") { responsepayload(property: \"urn:tdm:us-east-1/123456789012/default:Property:MotionDetectedAcceptanceSimpleFlow\") } } } } }\n query PhyLight @device(id: \"urn:tdm:us-east-1/123456789012/default:Device:PhyLightAcceptanceSimpleFlow\", deviceModel: \"urn:tdm:us-east-1/123456789012/default:DeviceModel:LightAcceptanceSimpleFlow\") { MODBUS(serverId: \"1\") { LightCap(id: \"urn:tdm:us-east-1/123456789012/default:Capability:LightCapAcceptanceSimpleFlow\") { state { OnOff(name:\"ON_OFF\", property:'urn:tdm:aws:Property:Boolean') } Action(name: \"switch\") { params { param(name:\"input\", property:'urn:tdm:aws:Property:Boolean') } WriteSingleCoil{ Request(Address: 1) { params { param(name: \"lightStatus\" property: 'urn:tdm:aws:Property:Boolean' value: \"${input.value ?? false}\") } } } } } } }\n query MlLambdas @service(id: \"urn:tdm:us-east-1/123456789012/default:Service:MlLambdasAcceptanceSimpleFlow\") {\n AwsLambda {\n MlLambdasCap(id: \"urn:tdm:us-east-1/123456789012/default:Capability:MlLambdasCapAcceptanceSimpleFlow\") {\n Action(name: \"matchImageLocal\") {\n params { param(name:'url', property:'urn:tdm:us-east-1/123456789012/default:property:UriAcceptanceSimpleFlow') } InvokeGreengrassLambda {\n Request( arn: \"arn:aws:lambda:us-east-1:123456789012:function:rekognition:1\") {\n params {\n param(name: \"imageUri\", property: \"urn:tdm:us-east-1/123456789012/default:Property:UriAcceptanceSimpleFlow\", value: \"${url.value}\")\n }\n }\n Response {\n responsePayload(property: 'urn:tdm:aws:Property:Boolean')\n }\n }\n }\n Action(name: \"matchImageGlobal\") {\n params { param(name:'url', property:'urn:tdm:us-east-1/123456789012/default:property:UriAcceptanceSimpleFlow') } InvokeCloudLambda {\n Request( arn: \"arn:aws:lambda:us-east-1:123456789012:function:rekognition:1\") {\n params {\n param(name: \"imageUri\", property: \"urn:tdm:us-east-1/123456789012/default:Property:UriAcceptanceSimpleFlow\", value: \"${url.value}\")\n }\n }\n Response {\n responsePayload(property: 'urn:tdm:aws:Property:Boolean')\n }\n }\n }\n }\n }\n }\n\n query Sqs @service(id: \"urn:tdm:us-east-1/123456789012/default:service:SqsAcceptanceSimpleFlow\") {\n REST {\n SqsCap(id: \"urn:tdm:us-east-1/123456789012/default:capability:SqsCapAcceptanceSimpleFlow\") {\n Action(name: \"createQueue\") {\n params { param(name:'queueName', property:'urn:tdm:aws:Property:String') } HttpGet {\n Request(url: \"https://sqs.us-east-1.amazonaws.com\", auth: \"SigV4\", awsServiceName: \"sqs\") {\n headerParams {\n param(name: \"Accept\", property: 'urn:tdm:aws:Property:String', value: \"application/json\")\n param(name: \"Content-Type\", property: 'urn:tdm:aws:Property:String', value: \"application/json\")\n }\n queryParams {\n param(name: \"Action\", property: 'urn:tdm:aws:Property:String', value: \"CreateQueue\")\n param(name: \"QueueName\", property: 'urn:tdm:aws:Property:String', value: \"${queueName.value}\")\n param(name: \"Attribute.1.Name\", property: 'urn:tdm:aws:Property:String', value: \"VisibilityTimeout\")\n param(name: \"Attribute.1.Value\", property: 'urn:tdm:aws:Property:Int32', value: \"40\")\n param(name: \"Expires\", property: 'urn:tdm:aws:Property:String', value: \"2020-10-18T22:52:43PST\")\n param(name: \"Version\", property: 'urn:tdm:aws:Property:String', value: \"2012-11-05\")\n }\n }\n }\n }\n Action(name: \"sendMessage\") {\n params { param(name:'message', property:'urn:tdm:aws:Property:String') } HttpPost {\n Request(url: \"https://sqs.us-east-1.amazonaws.com/123456789012/testQueue\", auth: \"SigV4\", awsServiceName: \"sqs\") {\n headerParams {\n param(name: \"Accept\", property: 'urn:tdm:aws:Property:String', value: \"application/json\")\n param(name: \"Content-Type\", property: 'urn:tdm:aws:Property:String', value: \"application/json\")\n }\n queryParams {\n param(name: \"Action\", property: 'urn:tdm:aws:Property:String', value: \"SendMessage\")\n param(name: \"MessageBody\", property: 'urn:tdm:aws:Property:String', value: \"${message.value}\")\n param(name: \"Expires\", property: 'urn:tdm:aws:Property:String', value: \"2020-10-18T22:52:43PST\")\n param(name: \"Version\", property: 'urn:tdm:aws:Property:String', value: \"2012-11-05\")\n }\n }\n }\n }\n }\n }\n }\n\n query Rekognition @service(id: \"urn:tdm:us-east-1/123456789012/default:service:RekognitionAcceptanceSimpleFlow\") {\n REST {\n RekognitionCap(id: \"urn:tdm:us-east-1/123456789012/default:capability:RekognitionCapAcceptanceSimpleFlow\") {\n Action(name: \"detectFaces\") {\n params { param(name:'bucketName', property:'urn:tdm:aws:Property:String') param(name:'itemName', property:'urn:tdm:aws:Property:String') } HttpPost {\n Request(url: 'https://rekognition.us-east-1.amazonaws.com', auth: 'SigV4', awsServiceName: 'rekognition') {\n headerParams {\n param(name: 'Accept', property: 'urn:tdm:aws:Property:String', value: 'application/json')\n param(name: 'Content-Type', property: 'urn:tdm:aws:Property:String', value: 'application/x-amz-json-1.1')\n param(name: 'X-Amz-Target', property: 'urn:tdm:aws:Property:String', value: 'RekognitionService.DetectFaces')\n }\n bodyParams {\n param(name: '', property: 'urn:tdm:aws:Property:String', value: '$macro({\"Image\":{\"S3Object\":{\"Bucket\":\"${bucketName.value}\",\"Name\":\"${itemName.value}\"}}})')\n }\n }\n Response {\n responsePayload(property: 'urn:tdm:us-east-1/123456789012/default:Property:ResponsePropertyAcceptanceSimpleFlow')\n }\n }\n }\n }\n }\n }\n}" }, "syncWithPublicNamespace": false, "deprecateExistingEntities": false }, "responseElements": { "uploadId": "2a109660-2576-4436-8e6c-5f3fee08b401" }, "requestID": "eb0ca2d9-7aa2-48bf-96d1-8d568a8c3bf0", "eventID": "0ab25065-2ff8-4f91-ae7f-29ee0ab812c3", "eventType": "AwsApiCall", "recipientAccountId": "123456789012" }