Questions tagged with Support API

Content language: English

Sort by most recent

Browse through the questions and answers listed below or filter and sort to narrow down your results.

StartCallAnalyticsJob : User is not authorized to access this resource

Hi everybody, I wanna ask you about AWS Transcribe Analytics Call. API is well with AWS Transcribe but I need also sentiment Analysis, so I try to use AWS Transcribe Analytics. There is my code : ``` from __future__ import print_function import time import boto3 transcribe = boto3.client('transcribe', 'us-east-1') job_name = "my-first-call-analytics-job" job_uri = "PATH_S3_TO_WAV_WHO_HAD_WORD_FOR_AWS_TRANSCRIBE" output_location = "PATH_TO_CREATED_FOLDER" data_access_role = "arn:aws:s3:::MY_BUCKET_NAME_WHERE_WAV_FILES" transcribe.start_call_analytics_job( CallAnalyticsJobName = job_name, Media = { 'MediaFileUri': job_uri }, DataAccessRoleArn = data_access_role, OutputLocation = output_location, ChannelDefinitions = [ { 'ChannelId': 0, 'ParticipantRole': 'AGENT' }, { 'ChannelId': 1, 'ParticipantRole': 'CUSTOMER' } ] ) while True: status = transcribe.get_call_analytics_job(CallAnalyticsJobName = job_name) if status['CallAnalyticsJob']['CallAnalyticsJobStatus'] in ['COMPLETED', 'FAILED']: break print("Not ready yet...") time.sleep(5) print(status) ``` I had done aws configure and I use a IAM user who have AdministratorAccess. > **botocore.exceptions.ClientError: An error occurred (AccessDeniedException) when calling the StartCallAnalyticsJob operation: User: MY_ARN_USER is not authorized to access this resource** Any help please ? Thank you very much!
1
answers
0
votes
62
views
asked 5 months ago

SMS never arrive from PHP API

Hello, I tested the SNS service to send SMS to france (my country) using the php api, it worked perfectly until I reach the limit. Then I asked amazon to use the service in production, they switch my account from the sandbox to production, I've been able to send one sms and nor more. When I try now I get a statusCode of 200 with a message ID but the message never arrives. This is my code: ``` $SnSclient = new SnsClient([ 'region' => 'eu-west-3', 'version' => 'latest', 'credentials' => [ 'key' => '**********************', 'secret' => '*************************************', ],]); $sms = "Simple test"; $phone = "+33123456789"; try { $result = $SnSclient->publish([ "MessageAttributes" => [ 'AWS.SNS.SMS.SMSType' => [ 'DataType' => 'String', 'StringValue' => 'Transactional' ] ], 'Message' => $sms, 'PhoneNumber' => $phone ]); } catch (AwsException $e) { print_r($e); } print_r($result); ``` The return is like that: ```Aws\Result Object ( [data:Aws\Result:private] => Array ( [MessageId] => 9d7489b2-3662-5b52-ad7c-d299afb0fcd4 [@metadata] => Array ( [statusCode] => 200 [effectiveUri] => https://sns.eu-west-3.amazonaws.com [headers] => Array ( [x-amzn-requestid] => 2de95f01-356e-5303-9b85-042aacbc0485 [content-type] => text/xml [content-length] => 294 [date] => Tue, 21 Jun 2022 10:04:01 GMT ) [transferStats] => Array ( [http] => Array ( [0] => Array ( ) ) ) ) ) [monitoringEvents:Aws\Result:private] => Array ( ) )``` What can I check ? Thanks
0
answers
0
votes
32
views
asked 5 months ago