From c306f63133fa3da917c72f6082d60584eb6c77fd Mon Sep 17 00:00:00 2001 From: Jane Chen Date: Wed, 7 Feb 2024 15:06:33 -0500 Subject: [PATCH] fix(appconfig): deprecate deploy method --- packages/@aws-cdk/aws-appconfig-alpha/lib/configuration.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/@aws-cdk/aws-appconfig-alpha/lib/configuration.ts b/packages/@aws-cdk/aws-appconfig-alpha/lib/configuration.ts index 6f0e7306f5b25..2360106869c83 100644 --- a/packages/@aws-cdk/aws-appconfig-alpha/lib/configuration.ts +++ b/packages/@aws-cdk/aws-appconfig-alpha/lib/configuration.ts @@ -307,6 +307,9 @@ abstract class ConfigurationBase extends Construct implements IConfiguration, IE * Deploys the configuration to the specified environment. * * @param environment The environment to deploy the configuration to + * @deprecated Use `deployTo` as a property instead. We do not recommend + * creating resources in multiple stacks. If you want to do this still, + * please take a look into https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig.CfnDeployment.html. */ public deploy(environment: IEnvironment) { const logicalId = `Deployment${this.getDeploymentHash(environment)}`;