16 lines
553 B
Python
16 lines
553 B
Python
def lambda_handler(event, context):
|
|
# Extract query parameters from the event
|
|
params = event.get('queryStringParameters', {})
|
|
|
|
# Print all query parameters
|
|
print("Received query parameters:", params)
|
|
|
|
# Example: If you want to print a specific parameter, e.g., 'param1'
|
|
if params and 'inputValue' in params:
|
|
print("Value of 'inputValue':", params['inputValue'])
|
|
|
|
# You can return the input parameters as response if needed
|
|
return {
|
|
'statusCode': 200,
|
|
'body': f"Received parameters: {params}"
|
|
} |