From eff911dc9533edc63efdd137a378a950e00f75bb Mon Sep 17 00:00:00 2001 From: CorentinDoue Date: Wed, 15 Dec 2021 10:03:06 +0100 Subject: [PATCH] docs(aws-rds): update serverless cluster doc --- packages/@aws-cdk/aws-rds/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/@aws-cdk/aws-rds/README.md b/packages/@aws-cdk/aws-rds/README.md index acc7f61b6022b..dabe1185992f0 100644 --- a/packages/@aws-cdk/aws-rds/README.md +++ b/packages/@aws-cdk/aws-rds/README.md @@ -579,11 +579,8 @@ You can access your Aurora Serverless DB cluster using the built-in Data API. Th The following example shows granting Data API access to a Lamba function. ```ts -declare const vpc: ec2.Vpc; - const cluster = new rds.ServerlessCluster(this, 'AnotherCluster', { engine: rds.DatabaseClusterEngine.AURORA_MYSQL, - vpc, enableDataApi: true, // Optional - will be automatically set if you call grantDataApiAccess() }); @@ -602,4 +599,7 @@ cluster.grantDataApiAccess(fn); **Note**: To invoke the Data API, the resource will need to read the secret associated with the cluster. +**Note**: Using the Data API, you can interact with a ServerlessCluster without using its VPC. Therefore, the parameter "vpc" is optional. +The cluster will be created in a VPC, but you will know nothing about it. + To learn more about using the Data API, see the [documentation](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html).