Aria Automation Orchestrator plugin for AWS toString Method returns a incorrect JSON
search cancel

Aria Automation Orchestrator plugin for AWS toString Method returns a incorrect JSON

book

Article ID: 387167

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

Symptoms:

  • using toString() method for data received with the AWS Orchestrator plugin produces an incorrect JSON format
  • example:
    var instanceDetails = ec2Client.describeInstances(new EC2DescribeInstancesRequest().withInstanceIds([instanceId]));
    System.log(instanceDetails.toString());

Environment

Aria Automation Orchestrator AWS plugin 1.3.1

Cause

The toString() method is implemented by the AWS SDK, not by the plug-in code: "Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value."

Resolution

The AWS SDK returns a string and not a JSON format, although the returned objects may look like JSON.