I have created an API using AWS API Gateway, which is protected by an Amazon Cognito User Pool.
I need to obtain a token from Amazon Cognito to invoke or access this API from my Salesforce Apex class. This token must be included in the API request header to invoke the API.
Can anyone please assist me in obtaining the token from Amazon Cognito to call the API from API Gateway in Salesforce Apex code, using the Cognito app client ID and client secret securely?