Skip to content

Commit

Permalink
revert readme lint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
setu4993 committed Jun 25, 2021
1 parent c08d414 commit 3245fd0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/@aws-cdk/aws-lambda-python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@ Define a `PythonFunction`:
import * as lambda from "@aws-cdk/aws-lambda";
import { PythonFunction } from "@aws-cdk/aws-lambda-python";

new PythonFunction(this, "MyFunction", {
entry: "/path/to/my/function", // required
index: "my_index.py", // optional, defaults to 'index.py'
handler: "my_exported_func", // optional, defaults to 'handler'
new PythonFunction(this, 'MyFunction', {
entry: '/path/to/my/function', // required
index: 'my_index.py', // optional, defaults to 'index.py'
handler: 'my_exported_func', // optional, defaults to 'handler'
runtime: lambda.Runtime.PYTHON_3_6, // optional, defaults to lambda.Runtime.PYTHON_3_7
});
```

Additional `buildArgs` to use when bundling the Docker building image can be provided as:

```ts
new PythonFunction(this, "my-handler", {
new PythonFunction(this, 'my-handler', {
buildArgs: {
HTTPS_PROXY: "https://127.0.0.1:3001",
HTTPS_PROXY: 'https://127.0.0.1:3001',
},
});
```
Expand Down Expand Up @@ -97,11 +97,11 @@ or `Pipfile` or `poetry.lock` with the associated `pyproject.toml` at the entry
layer.

```ts
new lambda.PythonFunction(this, "MyFunction", {
entry: "/path/to/my/function",
new lambda.PythonFunction(this, 'MyFunction', {
entry: '/path/to/my/function',
layers: [
new lambda.PythonLayerVersion(this, "MyLayer", {
entry: "/path/to/my/layer", // point this to your library's directory
new lambda.PythonLayerVersion(this, 'MyLayer', {
entry: '/path/to/my/layer', // point this to your library's directory
}),
],
});
Expand Down

0 comments on commit 3245fd0

Please sign in to comment.