aws comprehend start-pii-entities-detection-job Error parsing parameter 'cli-input-json': Invalid JSON received.

0

I am trying to supply the configuration for the job in a file in S3. My command in Cloud Shell is: aws comprehend start-pii-entities-detection-job --region <region>--cli-input-json s3://<bucket>/<prefix>/config.json

I'm fairly certain my JSON format is good. If I enter all the config values on the CLI, the job runs. Is there another syntax I should be using to specify the config file?

1 Answer
0

--cli-input-json is a generic way of passing parameters to the AWS CLI from a file,as described here - https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-skeleton.html.

You mentioned you want to specify a config file to start-pii-entities-detection-job - maybe you want to use --input-data-config?

start-pii-entities-detection-job
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Description
***********

Starts an asynchronous PII entity detection job for a collection of
documents.

See also: AWS API Documentation

See 'aws help' for descriptions of global parameters.

Synopsis
********
     start-pii-entities-detection-job
   --input-data-config <value>
   --output-data-config <value>
   --mode <value>
   [--redaction-config <value>]
   --data-access-role-arn <value>
   [--job-name <value>]
   --language-code <value>
   [--client-request-token <value>]
   [--cli-input-json | --cli-input-yaml]
   [--generate-cli-skeleton <value>]

EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions