From 5dc029a5adc382f6d4b9b882e3df0ec82d938c30 Mon Sep 17 00:00:00 2001 From: Kazuho CryerShinozuka Date: Thu, 24 Oct 2024 20:52:04 +0900 Subject: [PATCH] docs: update readme --- README.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/README.md b/README.md index 918e47c..777ac46 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ npm i cdk-iot-core-certificates-v3 ```typescript import { ThingWithCert } from 'cdk-iot-core-certificate-v3'; -const thing = new ThingWithCert(this, 'MyThing', { +const { thingArn, certId, certPem, privKey } = new ThingWithCert(this, 'MyThing', { // The name of the thing thingName: 'MyThing', // Whether to save the certificate and private key to the SSM Parameter Store @@ -35,9 +35,4 @@ const thing = new ThingWithCert(this, 'MyThing', { // The prefix to use for the SSM Parameter Store parameters paramPrefix: 'test', }); - -const thingArn = thing.thingArn; -const certId = thing.certId; -const certPem = thing.certPem; -const privateKey = thing.privKey; ```