I'm creating a Telegram bot using AWS API Gateway and AWS Lambda, and defining the infrastructure using AWS CDK v2.
After deploying my stack with cdk deploy
I get the URL that has been generated for the API Gateway in the console output. Ideally, I would like to use that URL to register a webhook in Telegram as part of the deployment process. This would just involve making a GET
request to an URL, passing a secret from AWS Secrets Manager and the generated URL for the gateway.
Is there any way to perform that HTTP request during the deployment within CDK?