Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

Path and query parameters

What is a VPC: your own private network inside one AWS Region, example ThreeTierVpc 10.0.0.0/16.

Path and query parameters Hard-coded ids do not scale. Routes must carry resource ids. Path params: /notes/{id}. Query: /notes?limit=10. Both appear in the event. Define {id} in the route; read event.pathParameters.id in Lambda. DELETE /notes/abc-123 deletes that item.
Path and query parameters · Download PNG
Read card text

What this card says

Why do we need it?

Hard-coded ids do not scale. Routes must carry resource ids.

What is it?

Path params: /notes/{id}. Query: /notes?limit=10. Both appear in the event.

How to do it

Define {id} in the route; read event.pathParameters.id in Lambda.

/notes/{id}

Example

DELETE /notes/abc-123 deletes that item.

See all AWS revision cards