You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Correct link targets and line highlights (#390)
* docs: Correct links and line highlights
Changes:
- Use target _blank for external links
- Correct some of the line highlighted in the examples
- Fix links to Tracer
* docs: Correct internal links to tracer
* docs: Include .md in internal links
Copy file name to clipboardExpand all lines: docs/core/event_handler/appsync.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ This is the sample infrastructure we are using for the initial examples with a A
32
32
=== "schema.graphql"
33
33
34
34
!!! tip "Designing GraphQL Schemas for the first time?"
35
-
Visit [AWS AppSync schema documentation](https://docs.aws.amazon.com/appsync/latest/devguide/designing-your-schema.html) for understanding how to define types, nesting, and pagination.
35
+
Visit [AWS AppSync schema documentation](https://docs.aws.amazon.com/appsync/latest/devguide/designing-your-schema.html){target="_blank"} for understanding how to define types, nesting, and pagination.
| [Tracing](./core/tracer) | Decorators and utilities to trace Lambda function handlers, and both synchronous and asynchronous functions
145
-
| [Logger](./core/logger) | Structured logging made easier, and decorator to enrich structured logging with key Lambda context details
146
-
| [Metrics](./core/metrics) | Custom Metrics created asynchronously via CloudWatch Embedded Metric Format (EMF)
144
+
| [Tracing](./core/tracer.md) | Decorators and utilities to trace Lambda function handlers, and both synchronous and asynchronous functions
145
+
| [Logger](./core/logger.md) | Structured logging made easier, and decorator to enrich structured logging with key Lambda context details
146
+
| [Metrics](./core/metrics.md) | Custom Metrics created asynchronously via CloudWatch Embedded Metric Format (EMF)
147
147
| [Event handler](./core/event_handler) | Event handler decorators for common Lambda events
148
-
| [Middleware factory](./utilities/middleware_factory) | Decorator factory to create your own middleware to run logic before, and after each Lambda invocation
149
-
| [Parameters](./utilities/parameters) | Retrieve parameter values from AWS Systems Manager Parameter Store, AWS Secrets Manager, or Amazon DynamoDB, and cache them for a specific amount of time
| [Middleware factory](./utilities/middleware_factory.md) | Decorator factory to create your own middleware to run logic before, and after each Lambda invocation
149
+
| [Parameters](./utilities/parameters.md) | Retrieve parameter values from AWS Systems Manager Parameter Store, AWS Secrets Manager, or Amazon DynamoDB, and cache them for a specific amount of time
Copy file name to clipboardExpand all lines: docs/utilities/middleware_factory.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -78,9 +78,9 @@ This makes use of an existing Tracer instance that you may have initialized anyw
78
78
...
79
79
```
80
80
81
-
When executed, your middleware name will [appear in AWS X-Ray Trace details as](../core/tracer)`## middleware_name`.
81
+
When executed, your middleware name will [appear in AWS X-Ray Trace details as](../core/tracer.md)`## middleware_name`.
82
82
83
-
For advanced use cases, you can instantiate [Tracer](../core/tracer) inside your middleware, and add annotations as well as metadata for additional operational insights.
83
+
For advanced use cases, you can instantiate [Tracer](../core/tracer.md) inside your middleware, and add annotations as well as metadata for additional operational insights.
84
84
85
85
=== "app.py"
86
86
@@ -100,7 +100,7 @@ For advanced use cases, you can instantiate [Tracer](../core/tracer) inside your
100
100
101
101
* Use `trace_execution` to quickly understand the performance impact of your middlewares, and reduce or merge tasks when necessary
102
102
* When nesting multiple middlewares, always return the handler with event and context, or response
103
-
* Keep in mind [Python decorators execution order](https://realpython.com/primer-on-python-decorators/#nesting-decorators). Lambda handler is actually called once (top-down)
103
+
* Keep in mind [Python decorators execution order](https://realpython.com/primer-on-python-decorators/#nesting-decorators){target="_blank"}. Lambda handler is actually called once (top-down)
Copy file name to clipboardExpand all lines: docs/utilities/validation.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ You can validate inbound and outbound events using [`validator` decorator](#vali
20
20
21
21
You can also use the standalone `validate` function, if you want more control over the validation process such as handling a validation error.
22
22
23
-
We support any JSONSchema draft supported by [fastjsonschema](https://horejsek.github.io/python-fastjsonschema/) library.
23
+
We support any JSONSchema draft supported by [fastjsonschema](https://horejsek.github.io/python-fastjsonschema/){target="_blank"} library.
24
24
25
25
!!! warning
26
26
Both `validator` decorator and `validate` standalone function expects your JSON Schema to be a **dictionary**, not a filename.
@@ -184,7 +184,7 @@ Envelope name | JMESPath expression
184
184
### Validating custom formats
185
185
186
186
!!! note "New in 1.10.0"
187
-
JSON Schema DRAFT 7 [has many new built-in formats](https://json-schema.org/understanding-json-schema/reference/string.html#format) such as date, time, and specifically a regex format which might be a better replacement for a custom format, if you do have control over the schema.
187
+
JSON Schema DRAFT 7 [has many new built-in formats](https://json-schema.org/understanding-json-schema/reference/string.html#format){target="_blank"} such as date, time, and specifically a regex format which might be a better replacement for a custom format, if you do have control over the schema.
188
188
189
189
JSON Schemas with custom formats like `int64` will fail validation. If you have these, you can pass them using `formats` parameter:
190
190
@@ -528,7 +528,7 @@ This sample will decompress and decode base64 data, then use JMESPath pipeline e
528
528
529
529
This will **replace all provided built-in functions such as `powertools_json`, so you will no longer be able to use them**.
530
530
531
-
For special binary formats that you want to decode before applying JSON Schema validation, you can bring your own [JMESPath function](https://github.com/jmespath/jmespath.py#custom-functions) and any additional option via `jmespath_options` param.
531
+
For special binary formats that you want to decode before applying JSON Schema validation, you can bring your own [JMESPath function](https://github.com/jmespath/jmespath.py#custom-functions){target="_blank"} and any additional option via `jmespath_options` param.
0 commit comments