0

Working on one application where creating a object for the AWSRekognition which is throwing an error as follow .

Invalid configuration value provided for "configuration_mode". Expected Aws\\DefaultsMode\\ConfigurationInterface|Aws\\CacheInterface|string|closure, but got array(2)\n\nconfiguration_mode:\n (Aws\\DefaultsMode\\ConfigurationInterface|Aws\\CacheInterface|string|closure)\n\n Sets the default configuration mode. Otherwise provide an instance of\n Aws\\DefaultsMode\\ConfigurationInterfaceyour text``

Where my code like this.

$options = ['region' => 'us-east-1', 'version' => 'latest']; $obj = new RekognitionClient($options);

I have searched the internet for the above error. But didn't got any help.

Thanks in Advance.

I have tried to make object by $options = ['region' => 'us-east-1', 'version' => 'latest']; $obj = new RekognitionClient($options);

Expected to create the object.But giving the above error.

  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Jan 23 '23 at 09:56

0 Answers0