ExitAWS SDKs: Service client calls1 / 9
Explanationassociate9 steps · 4 exercises

Follow one service client call

How an application configures a service client, uses provider-supplied credentials to call an AWS operation, and handles the returned result or error.

A Python AWS Lambda function uses Boto3, the AWS SDK for Python, to look up an order in DynamoDB. The application creates a service client and calls get_item. The SDK signs and sends the request; the application decides what to do with the outcome.

The diagram splits one client into a request stage and a response stage. If the client cannot prepare or send the request, it can raise an exception without a service response. That path goes straight from the request stage back to the application.

Lambda execution environment
Region and inputsTemporary role credentialsSigned GetItem requestService responseResult or ClientErrorClient-side exception
Application: configure client and call GetItemAWS Lambda
Lambda runtime: supply execution role credentialsAWS Lambda
Boto3 client: prepare and send requestAWS Tools and SDKs
Orders tableAmazon DynamoDB table
Same Boto3 client: interpret service responseAWS Tools and SDKs
Application: handle the result or exceptionAWS Lambda

Stage 1 of 6: The application chooses a Region and prepares the table name and primary key. The Lambda runtime makes temporary credentials for the function’s execution role available in the environment.

Next up: Complete the diagram on what you just read.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.