cdk-real-drift 0.18.0 → 0.18.2
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 +20 -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";
|
|
@@ -2940,6 +2940,10 @@ const KNOWN_DEFAULT_PATHS = {
|
|
|
2940
2940
|
"DataQualityJobInput.EndpointInput.S3DataDistributionType": "FullyReplicated",
|
|
2941
2941
|
"DataQualityJobInput.EndpointInput.S3InputMode": "File"
|
|
2942
2942
|
},
|
|
2943
|
+
"AWS::SageMaker::MonitoringSchedule": {
|
|
2944
|
+
"MonitoringScheduleConfig.MonitoringType": "DataQuality",
|
|
2945
|
+
"MonitoringScheduleConfig.MonitoringJobDefinition.StoppingCondition": { MaxRuntimeInSeconds: 3600 }
|
|
2946
|
+
},
|
|
2943
2947
|
"AWS::SageMaker::Model": {
|
|
2944
2948
|
"PrimaryContainer.Mode": "SingleModel",
|
|
2945
2949
|
"Containers.*.Mode": "SingleModel"
|
|
@@ -16907,6 +16911,20 @@ const writeServiceDiscoveryService = async (ctx, ops) => {
|
|
|
16907
16911
|
}
|
|
16908
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" : ""}`);
|
|
16909
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
|
+
};
|
|
16910
16928
|
const DOCDB_CLUSTER_MODIFY_PARAMS = new Set([
|
|
16911
16929
|
"BackupRetentionPeriod",
|
|
16912
16930
|
"PreferredBackupWindow",
|
|
@@ -18331,6 +18349,7 @@ const SDK_WRITERS = {
|
|
|
18331
18349
|
"AWS::DocDB::DBInstance": writeDocDbInstance,
|
|
18332
18350
|
"AWS::ServiceDiscovery::HttpNamespace": writeServiceDiscoveryHttpNamespace,
|
|
18333
18351
|
"AWS::ServiceDiscovery::Service": writeServiceDiscoveryService,
|
|
18352
|
+
"AWS::SageMaker::MonitoringSchedule": writeSageMakerMonitoringSchedule,
|
|
18334
18353
|
"AWS::S3::BucketPolicy": writeS3BucketPolicy,
|
|
18335
18354
|
"AWS::SNS::TopicPolicy": writeSnsTopicPolicy,
|
|
18336
18355
|
"AWS::SQS::QueuePolicy": writeSqsQueuePolicy,
|