Skip to content

Commit c820909

Browse files
author
Michael Brewer
authored
docs: Fix doc links and line highlights (#380)
* docs: Fix doc links and line highlights Changes: - docs(batch): Remove archors for `sqs_batch_processor` and `PartialSQSProcessor` - docs(idempotency): Fix link for `IdempotencyConfig` - docs(paramters): Fix link for `AWS AppConfig` - docs(tracer): Fix link highlight for `capture_lambda_handler` * doc: Consitently format Key Features
1 parent ad4092e commit c820909

9 files changed

+10
-14
lines changed

Diff for: docs/core/event_handler.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: Utility
66
Event handler decorators for common Lambda events
77

88

9-
### AppSync Resolver Decorator
9+
## AppSync Resolver Decorator
1010

1111
> New in 1.14.0
1212
@@ -15,7 +15,7 @@ AppSync resolver decorator is a concise way to create lambda functions to handle
1515
[AppSync Resolver ](/utilities/data_classes#appsync-resolver) data class and therefore works with [Amplify GraphQL Transform Library](https://docs.amplify.aws/cli/graphql-transformer/function){target="_blank"} (`@function`),
1616
and [AppSync Direct Lambda Resolvers](https://aws.amazon.com/blogs/mobile/appsync-direct-lambda/){target="_blank"}
1717

18-
#### Key Features
18+
### Key Features
1919

2020
* Works with any of the existing Powertools utilities by allow you to create your own `lambda_handler` function
2121
* Supports an implicit handler where in `app = AppSyncResolver()` can be invoked directly as `app(event, context)`
@@ -24,7 +24,7 @@ and [AppSync Direct Lambda Resolvers](https://aws.amazon.com/blogs/mobile/appsyn
2424
* AppSyncResolver includes `current_event` and `lambda_cotext` fields can be used to pass in the original `AppSyncResolver` or `LambdaContext`
2525
objects
2626

27-
#### Amplify GraphQL Example
27+
### Amplify GraphQL Example
2828

2929
Create a new GraphQL api via `amplify add api` and add the following to the new `schema.graphql`
3030

Diff for: docs/core/logger.md

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ title: Logger
33
description: Core utility
44
---
55

6-
76
Logger provides an opinionated logger with output structured as JSON.
87

98
## Key features

Diff for: docs/core/tracer.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Before your use this utility, your AWS Lambda function [must have permissions](h
4141
You can quickly start by importing the `Tracer` class, initialize it outside the Lambda handler, and use `capture_lambda_handler` decorator.
4242

4343
=== "app.py"
44-
```python hl_lines="1 3 7"
44+
```python hl_lines="1 3 6"
4545
from aws_lambda_powertools import Tracer
4646

4747
tracer = Tracer() # Sets service via env var

Diff for: docs/utilities/batch.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Before your use this utility, your AWS Lambda function must have `sqs:DeleteMess
5454

5555
### Processing messages from SQS
5656

57-
You can use either **[sqs_batch_processor](#sqs_batch_processor-decorator)** decorator, or **[PartialSQSProcessor](#partialsqsprocessor-context-manager)** as a context manager if you'd like access to the processed results.
57+
You can use either `sqs_batch_processor` decorator, or `PartialSQSProcessor` as a context manager if you'd like access to the processed results.
5858

5959
You need to create a function to handle each record from the batch - We call it `record_handler` from here on.
6060

Diff for: docs/utilities/idempotency.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ You can quickly start by initializing the `DynamoDBPersistenceLayer` class and u
124124
!!! tip "Dealing with always changing payloads"
125125
When dealing with a more elaborate payload, where parts of the payload always change, you should use **`event_key_jmespath`** parameter.
126126

127-
Use [`IdempotencyConfig`](#customizing-the-default-behaviour) to instruct the idempotent decorator to only use a portion of your payload to verify whether a request is idempotent, and therefore it should not be retried.
127+
Use [`IdempotencyConfig`](#customizing-the-default-behavior) to instruct the idempotent decorator to only use a portion of your payload to verify whether a request is idempotent, and therefore it should not be retried.
128128

129129
> **Payment scenario**
130130

Diff for: docs/utilities/middleware_factory.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ title: Middleware factory
33
description: Utility
44
---
55

6-
7-
86
Middleware factory provides a decorator factory to create your own middleware to run logic before, and after each Lambda invocation synchronously.
97

10-
**Key features**
8+
## Key features
119

1210
* Run logic before, after, and handle exceptions
1311
* Trace each middleware when requested

Diff for: docs/utilities/parameters.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Utility
44
---
55

66

7-
The parameters utility provides high-level functions to retrieve one or multiple parameter values from [AWS Systems Manager Parameter Store](https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html){target="_blank"}, [AWS Secrets Manager](https://aws.amazon.com/secrets-manager/), [AWS AppConfig](https://aws.amazon.com/appconfig/){target="_blank"}, [Amazon DynamoDB](https://aws.amazon.com/dynamodb/){target="_blank"}, or bring your own.
7+
The parameters utility provides high-level functions to retrieve one or multiple parameter values from [AWS Systems Manager Parameter Store](https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html){target="_blank"}, [AWS Secrets Manager](https://aws.amazon.com/secrets-manager/){target="_blank"}, [AWS AppConfig](https://docs.aws.amazon.com/appconfig/latest/userguide/what-is-appconfig.html){target="_blank"}, [Amazon DynamoDB](https://aws.amazon.com/dynamodb/){target="_blank"}, or bring your own.
88

99
## Key features
1010

Diff for: docs/utilities/parser.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Utility
55

66
This utility provides data parsing and deep validation using [Pydantic](https://pydantic-docs.helpmanual.io/).
77

8-
**Key features**
8+
## Key features
99

1010
* Defines data in pure Python classes, then parse, validate and extract only what you want
1111
* Built-in envelopes to unwrap, extend, and validate popular event sources payloads

Diff for: docs/utilities/validation.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ title: Validation
33
description: Utility
44
---
55

6-
76
This utility provides JSON Schema validation for events and responses, including JMESPath support to unwrap events before validation.
87

9-
**Key features**
8+
## Key features
109

1110
* Validate incoming event and response
1211
* JMESPath support to unwrap events before validation applies

0 commit comments

Comments
 (0)