From 18ada5eed5d3fe556c78a965e5b8a830419b1727 Mon Sep 17 00:00:00 2001 From: Ash Date: Mon, 11 May 2020 20:46:44 +0200 Subject: [PATCH] Update README.md (#7868) Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- packages/@aws-cdk/core/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@aws-cdk/core/README.md b/packages/@aws-cdk/core/README.md index db0bc2dd54a5d..4808b94857a04 100644 --- a/packages/@aws-cdk/core/README.md +++ b/packages/@aws-cdk/core/README.md @@ -426,14 +426,14 @@ export class Sum extends Construct { super(scope, id); const resourceType = 'Custom::Sum'; - const provider = CustomResourceProvider.getOrCreate(this, resourceType, { + const serviceToken = CustomResourceProvider.getOrCreate(this, resourceType, { codeDirectory: `${__dirname}/sum-handler`, runtime: CustomResourceProviderRuntime.NODEJS_12, }); const resource = new CustomResource(this, 'Resource', { resourceType: resourceType, - serviceToken: provider.serviceToken, + serviceToken: serviceToken, properties: { lhs: props.lhs, rhs: props.rhs