Skip to content

Commit

Permalink
docs: PythonFunction -> lambda.PythonFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
setu4993 committed Dec 30, 2021
1 parent e9cd424 commit 3f73b0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-lambda-python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Additional build args for bundling that refer to PyPI indexes can be specified a
const entry = '/path/to/function';
const image = DockerImage.fromBuild(entry);

new PythonFunction(this, 'function', {
new lambda.PythonFunction(this, 'function', {
entry,
runtime: Runtime.PYTHON_3_8,
bundling: {
Expand Down Expand Up @@ -162,7 +162,7 @@ const codeArtifactAuthToken = execSync(`aws codeartifact get-authorization-token

const indexUrl = `https://aws:${codeArtifactAuthToken}@${domain}-${domainOwner}.d.codeartifact.${this.stack.env?.region}.amazonaws.com/pypi/${repoName}/simple/`;

new PythonFunction(this, 'function', {
new lambda.PythonFunction(this, 'function', {
entry,
runtime: Runtime.PYTHON_3_8,
bundling: {
Expand Down

0 comments on commit 3f73b0a

Please sign in to comment.