cdk-real-drift 0.18.1 → 0.18.3
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 +17 -1
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1184,6 +1184,10 @@ Control cannot sub-path patch it),
|
|
|
1184
1184
|
`servicediscovery:UpdateService` (reverts an `AWS::ServiceDiscovery::Service`'s
|
|
1185
1185
|
`Description` / `DnsConfig.DnsRecords` / `HealthCheckConfig` — a DNS-namespace
|
|
1186
1186
|
service; an API-only (HTTP) namespace service cannot be updated),
|
|
1187
|
+
`sagemaker:UpdateMonitoringSchedule` (reverts an
|
|
1188
|
+
`AWS::SageMaker::MonitoringSchedule`'s `MonitoringScheduleConfig` — e.g. an
|
|
1189
|
+
out-of-band `ScheduleExpression` cron change; the API re-PUTs the whole config,
|
|
1190
|
+
which cdkrd reconstructs from the live read),
|
|
1187
1191
|
`cognito-sync:SetCognitoEvents` (reverts an `AWS::Cognito::IdentityPool`'s
|
|
1188
1192
|
writeOnly `CognitoEvents`),
|
|
1189
1193
|
`kinesisvideo:UpdateDataRetention` / `kinesisvideo:UpdateSignalingChannel` /
|
package/dist/cli.js
CHANGED
|
@@ -55,7 +55,7 @@ import { GetWorkgroupCommand, RedshiftServerlessClient } from "@aws-sdk/client-r
|
|
|
55
55
|
import { BuildBotLocaleCommand, CreateIntentCommand, CreateSlotCommand, CreateSlotTypeCommand, DeleteIntentCommand, DeleteSlotCommand, DeleteSlotTypeCommand, DescribeBotLocaleCommand, DescribeIntentCommand, DescribeSlotCommand, DescribeSlotTypeCommand, LexModelsV2Client, ListBotLocalesCommand, ListIntentsCommand, ListSlotTypesCommand, ListSlotsCommand, UpdateBotLocaleCommand, UpdateIntentCommand, UpdateSlotCommand, UpdateSlotTypeCommand } from "@aws-sdk/client-lex-models-v2";
|
|
56
56
|
import { GetScheduleCommand, SchedulerClient } from "@aws-sdk/client-scheduler";
|
|
57
57
|
import { DescribeReceiptRuleCommand, DescribeReceiptRuleSetCommand, ListReceiptFiltersCommand, SESClient, UpdateReceiptRuleCommand } from "@aws-sdk/client-ses";
|
|
58
|
-
import { DescribeEndpointConfigCommand, DescribeMonitoringScheduleCommand, ListTagsCommand as ListTagsCommand$1, SageMakerClient } from "@aws-sdk/client-sagemaker";
|
|
58
|
+
import { DescribeEndpointConfigCommand, DescribeMonitoringScheduleCommand, ListTagsCommand as ListTagsCommand$1, SageMakerClient, UpdateMonitoringScheduleCommand } from "@aws-sdk/client-sagemaker";
|
|
59
59
|
import { GetNamespaceCommand, GetServiceCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$4, ServiceDiscoveryClient, UpdateHttpNamespaceCommand, UpdateServiceCommand as UpdateServiceCommand$1 } from "@aws-sdk/client-servicediscovery";
|
|
60
60
|
import { createHash } from "node:crypto";
|
|
61
61
|
import { S_BAR, S_BAR_END, S_BAR_START, S_CHECKBOX_INACTIVE, S_CHECKBOX_SELECTED, confirm, isCancel, select, spinner } from "@clack/prompts";
|
|
@@ -16911,6 +16911,20 @@ const writeServiceDiscoveryService = async (ctx, ops) => {
|
|
|
16911
16911
|
}
|
|
16912
16912
|
if (unExpressible.size > 0) throw new Error(`ServiceDiscovery Service ${id}: UpdateService cannot express ${[...unExpressible].join(", ")} (create-only / immutable)${anyExpressible ? " — the other drifted values were reverted" : ""}`);
|
|
16913
16913
|
};
|
|
16914
|
+
const writeSageMakerMonitoringSchedule = async (ctx, ops) => {
|
|
16915
|
+
const raw = str(ctx.physicalId) ?? str(ctx.declared["MonitoringScheduleName"]);
|
|
16916
|
+
if (!raw) throw new Error("cannot resolve MonitoringSchedule name for revert");
|
|
16917
|
+
const name = raw.startsWith("arn:") ? raw.split("/").pop() ?? raw : raw;
|
|
16918
|
+
const config = (await desiredModel("AWS::SageMaker::MonitoringSchedule", ctx, ops)).MonitoringScheduleConfig;
|
|
16919
|
+
if (config === void 0 || config === null) throw new Error("SageMaker MonitoringSchedule revert requires the full MonitoringScheduleConfig, which the live read did not return; update it manually");
|
|
16920
|
+
await new SageMakerClient({
|
|
16921
|
+
region: ctx.region,
|
|
16922
|
+
...CLIENT_TIMEOUTS
|
|
16923
|
+
}).send(new UpdateMonitoringScheduleCommand({
|
|
16924
|
+
MonitoringScheduleName: name,
|
|
16925
|
+
MonitoringScheduleConfig: config
|
|
16926
|
+
}));
|
|
16927
|
+
};
|
|
16914
16928
|
const DOCDB_CLUSTER_MODIFY_PARAMS = new Set([
|
|
16915
16929
|
"BackupRetentionPeriod",
|
|
16916
16930
|
"PreferredBackupWindow",
|
|
@@ -18335,6 +18349,7 @@ const SDK_WRITERS = {
|
|
|
18335
18349
|
"AWS::DocDB::DBInstance": writeDocDbInstance,
|
|
18336
18350
|
"AWS::ServiceDiscovery::HttpNamespace": writeServiceDiscoveryHttpNamespace,
|
|
18337
18351
|
"AWS::ServiceDiscovery::Service": writeServiceDiscoveryService,
|
|
18352
|
+
"AWS::SageMaker::MonitoringSchedule": writeSageMakerMonitoringSchedule,
|
|
18338
18353
|
"AWS::S3::BucketPolicy": writeS3BucketPolicy,
|
|
18339
18354
|
"AWS::SNS::TopicPolicy": writeSnsTopicPolicy,
|
|
18340
18355
|
"AWS::SQS::QueuePolicy": writeSqsQueuePolicy,
|
|
@@ -18637,6 +18652,7 @@ const REVERT_SET_DEFAULT_PATHS = new Set([
|
|
|
18637
18652
|
"AWS::Cognito::UserPool\0WebAuthnFactorConfiguration",
|
|
18638
18653
|
"AWS::SNS::Subscription\0FilterPolicyScope",
|
|
18639
18654
|
"AWS::InternetMonitor::Monitor\0Status",
|
|
18655
|
+
"AWS::ECR::Repository\0ImageTagMutability",
|
|
18640
18656
|
"AWS::RolesAnywhere::Profile\0DurationSeconds",
|
|
18641
18657
|
"AWS::RolesAnywhere::Profile\0AttributeMappings",
|
|
18642
18658
|
"AWS::EC2::Subnet\0AssignIpv6AddressOnCreation",
|