cdk-real-drift 0.22.7 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/cli.js +18 -1
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1193,6 +1193,10 @@ place, since Cloud Control has no handler for the type),
|
|
|
1193
1193
|
`AWS::Config::ConfigurationRecorder` — a whole-recorder upsert re-supplying the
|
|
1194
1194
|
declared RecordingGroup / RecordingMode / RoleARN, since Cloud Control cannot
|
|
1195
1195
|
write the type),
|
|
1196
|
+
`budgets:UpdateBudget` (reverts an `AWS::Budgets::Budget` — a whole-`NewBudget`
|
|
1197
|
+
overwrite reconstructed from the desired values plus the live projection, since
|
|
1198
|
+
Cloud Control cannot write the type; a computed `BudgetLimit` is dropped for an
|
|
1199
|
+
auto-adjusting budget so revert keeps it auto-adjusting),
|
|
1196
1200
|
`ecs:UpdateService` (reverts an `AWS::ECS::Service` `ServiceConnectConfiguration` /
|
|
1197
1201
|
`VolumeConfigurations` drift — the whole writeOnly prop is re-supplied, since Cloud
|
|
1198
1202
|
Control cannot sub-path patch it),
|
package/dist/cli.js
CHANGED
|
@@ -36,7 +36,7 @@ import { DeleteResourcePolicyCommand, GetResourcePolicyCommand, SecretsManagerCl
|
|
|
36
36
|
import { GetTopicAttributesCommand, ListSubscriptionsByTopicCommand, SNSClient, SetTopicAttributesCommand } from "@aws-sdk/client-sns";
|
|
37
37
|
import { GetQueueAttributesCommand, SQSClient, SetQueueAttributesCommand } from "@aws-sdk/client-sqs";
|
|
38
38
|
import { ACMClient, DescribeCertificateCommand, ListTagsForCertificateCommand } from "@aws-sdk/client-acm";
|
|
39
|
-
import { BudgetsClient, DescribeBudgetCommand } from "@aws-sdk/client-budgets";
|
|
39
|
+
import { BudgetsClient, DescribeBudgetCommand, UpdateBudgetCommand } from "@aws-sdk/client-budgets";
|
|
40
40
|
import { DescribeConfigurationSettingsCommand, ElasticBeanstalkClient, UpdateApplicationCommand, UpdateApplicationResourceLifecycleCommand, UpdateEnvironmentCommand } from "@aws-sdk/client-elastic-beanstalk";
|
|
41
41
|
import { CognitoSyncClient, GetCognitoEventsCommand, SetCognitoEventsCommand } from "@aws-sdk/client-cognito-sync";
|
|
42
42
|
import { BatchGetProjectsCommand, BatchGetReportGroupsCommand, CodeBuildClient, UpdateProjectCommand, UpdateReportGroupCommand } from "@aws-sdk/client-codebuild";
|
|
@@ -19116,7 +19116,24 @@ const writeApiGatewayRestApiPolicy = async (ctx) => {
|
|
|
19116
19116
|
}]
|
|
19117
19117
|
}));
|
|
19118
19118
|
};
|
|
19119
|
+
const writeBudget = async (ctx, ops) => {
|
|
19120
|
+
const budget = (await desiredModel("AWS::Budgets::Budget", ctx, ops)).Budget;
|
|
19121
|
+
if (!budget || !str(budget.BudgetName) || !str(budget.BudgetType) || !str(budget.TimeUnit)) throw new Error("cannot resolve Budget identity (BudgetName/BudgetType/TimeUnit) for revert");
|
|
19122
|
+
if (!str(ctx.accountId)) throw new Error("cannot resolve AccountId for Budget revert");
|
|
19123
|
+
const newBudget = budget.AutoAdjustData ? {
|
|
19124
|
+
...budget,
|
|
19125
|
+
BudgetLimit: void 0
|
|
19126
|
+
} : budget;
|
|
19127
|
+
await new BudgetsClient({
|
|
19128
|
+
region: ctx.region,
|
|
19129
|
+
...CLIENT_TIMEOUTS
|
|
19130
|
+
}).send(new UpdateBudgetCommand({
|
|
19131
|
+
AccountId: ctx.accountId,
|
|
19132
|
+
NewBudget: newBudget
|
|
19133
|
+
}));
|
|
19134
|
+
};
|
|
19119
19135
|
const SDK_WRITERS = {
|
|
19136
|
+
"AWS::Budgets::Budget": writeBudget,
|
|
19120
19137
|
"AWS::ApiGatewayV2::Stage": writeApiGatewayV2Stage,
|
|
19121
19138
|
"AWS::ElasticBeanstalk::Application": writeElasticBeanstalkApplication,
|
|
19122
19139
|
"AWS::ElasticBeanstalk::Environment": writeElasticBeanstalkEnvironment,
|