To keep a record of SageMaker AI and Amazon Bedrock API calls for longer than the 90 days of CloudTrail event history,…