Skip to content

Commit

Permalink
fix(appconfig): deprecate deploy method (#29021)
Browse files Browse the repository at this point in the history
### Reason for this change

Want to recommend against creating AppConfig resources across multiple stacks.

### Description of changes



### Description of how you validated changes



### Checklist
- [ ] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
chenjane-dev committed Feb 9, 2024
1 parent 0efc6ae commit 9675bcd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-appconfig-alpha/lib/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`;
Expand Down

0 comments on commit 9675bcd

Please sign in to comment.