HTTP Resolver: x-amz-target
I learned how to access AWS services by HTTP Resolver at the following thread:
I have one new question.
How can I find out what "x-amz-target" to specify for each AWS service?
"AWSKendraFrontendService.Query", "AmazonForecastRuntime.QueryForecast", "AWSHawksNestServiceFacade.GetPrediction", "Comprehend_20171127.DetectSentiment", "DynamoDB_20120810.CreateTable", "AWSStepFunctions.ListStateMachines", ...
I use aws-cli's debug option.
aws transcribe list-transcription-jobs --debug
2020-01-09 16:24:26,323 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth. 2020-01-09 16:24:26,323 - MainThread - botocore.auth - DEBUG - CanonicalRequest: POST / content-type:application/x-amz-json-1.1 host:transcribe.ap-northeast-1.amazonaws.com x-amz-date:20200109T072426Z x-amz-target:Transcribe.ListTranscriptionJobs
Or, I may find out by referring to service-2.json of each service from https://github.com/boto/botocore/tree/develop/botocore/data
Is there the best way to find out what to specify for "x-amz-target" ?
Is there a list of "x-amz-target" ?
You can have a look at the normal.json files for each service and it usually is a combination of the targetPrefix property and the actual operation name:
My question has been resolved by your answer. Thank you for your help !!
AWS Route53 Resolver Query Log Config - Terraform - error [RSLVR-00200]asked 4 months ago
AppSync resolver size limitsAccepted Answerasked 3 years ago
How do I compose a BULK request to OpenSearch via AppSync resolver mapping templates?asked 3 months ago
Running services without a HTTP interface on AWS Lightsail Containersasked 3 months ago
Setting up DCV connection gateway and a Session Resolver with the url that is not at the root?asked a month ago
How does the Route 53 Resolver share endpoints across multiple accounts and VPCs?Accepted Answerasked 3 years ago
Appsync HTTP resolver supported content typesasked 3 years ago
Appsync resolver conditional update of AWSJSON attributeAccepted Answerasked 3 years ago
HTTP Resolver: x-amz-targetasked 2 years ago
Access "aud" claim in resolver mapping for AWS AppSyncAccepted Answerasked 3 months ago