Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(appconfig): environment deletion protection #32737

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
"ApplicationId": {
"Ref": "MyApplicationForEnv1F597ED9"
},
"DeletionProtectionCheck": "ACCOUNT_DEFAULT",
"Description": "This is the environment for integ testing",
"Monitors": [
{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha';
import { App, Duration, PhysicalName, Stack } from 'aws-cdk-lib';
import { Alarm, ComparisonOperator, CompositeAlarm, Metric, TreatMissingData } from 'aws-cdk-lib/aws-cloudwatch';
import { Role, ServicePrincipal, Effect, PolicyStatement, PolicyDocument } from 'aws-cdk-lib/aws-iam';
import { Application, ConfigurationContent, DeploymentStrategy, Environment, HostedConfiguration, Monitor, RolloutStrategy } from 'aws-cdk-lib/aws-appconfig';
import { Application, ConfigurationContent, DeletionProtectionCheck, DeploymentStrategy, Environment, HostedConfiguration, Monitor, RolloutStrategy } from 'aws-cdk-lib/aws-appconfig';

const app = new App();

Expand Down Expand Up @@ -54,6 +54,7 @@ const compositeAlarm = new CompositeAlarm(stack, 'MyCompositeAlarm', {
const env = new Environment(stack, 'MyEnvironment', {
application: appForEnv,
description: 'This is the environment for integ testing',
deletionProtectionCheck: DeletionProtectionCheck.ACCOUNT_DEFAULT,
monitors: [
Monitor.fromCloudWatchAlarm(alarm),
Monitor.fromCfnMonitorsProperty({
Expand Down
Loading
Loading