cdk-real-drift 0.15.0 → 0.16.1
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 +48 -3
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1121,6 +1121,10 @@ Description / State / ExecutionRoleArn / PolicyDetails shape is re-supplied in
|
|
|
1121
1121
|
place, since Cloud Control has no handler for the type),
|
|
1122
1122
|
`docdb:ModifyDBCluster` / `ModifyDBInstance`,
|
|
1123
1123
|
`config:DescribeConfigRules` / `config:PutConfigRule`,
|
|
1124
|
+
`config:PutConfigurationRecorder` (reverts an
|
|
1125
|
+
`AWS::Config::ConfigurationRecorder` — a whole-recorder upsert re-supplying the
|
|
1126
|
+
declared RecordingGroup / RecordingMode / RoleARN, since Cloud Control cannot
|
|
1127
|
+
write the type),
|
|
1124
1128
|
`ecs:UpdateService` (reverts an `AWS::ECS::Service` `ServiceConnectConfiguration` /
|
|
1125
1129
|
`VolumeConfigurations` drift — the whole writeOnly prop is re-supplied, since Cloud
|
|
1126
1130
|
Control cannot sub-path patch it),
|
package/dist/cli.js
CHANGED
|
@@ -49,7 +49,7 @@ import { DLMClient, GetLifecyclePolicyCommand, UpdateLifecyclePolicyCommand } fr
|
|
|
49
49
|
import { DatabaseMigrationServiceClient, DescribeEndpointsCommand, DescribeReplicationInstancesCommand, DescribeReplicationSubnetGroupsCommand, DescribeReplicationTasksCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$2 } from "@aws-sdk/client-database-migration-service";
|
|
50
50
|
import { DescribeResourceCommand, EntityNotFoundException, LakeFormationClient } from "@aws-sdk/client-lakeformation";
|
|
51
51
|
import { GetJobTemplateCommand, GetQueueCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$3, MediaConvertClient } from "@aws-sdk/client-mediaconvert";
|
|
52
|
-
import { ConfigServiceClient, DescribeConfigRulesCommand, DescribeConfigurationRecordersCommand, DescribeDeliveryChannelsCommand, PutConfigRuleCommand } from "@aws-sdk/client-config-service";
|
|
52
|
+
import { ConfigServiceClient, DescribeConfigRulesCommand, DescribeConfigurationRecordersCommand, DescribeDeliveryChannelsCommand, PutConfigRuleCommand, PutConfigurationRecorderCommand } from "@aws-sdk/client-config-service";
|
|
53
53
|
import { DescribeConfigurationCommand, DescribeConfigurationRevisionCommand, KafkaClient, UpdateConfigurationCommand } from "@aws-sdk/client-kafka";
|
|
54
54
|
import { GetWorkgroupCommand, RedshiftServerlessClient } from "@aws-sdk/client-redshift-serverless";
|
|
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";
|
|
@@ -2065,6 +2065,7 @@ const KNOWN_DEFAULTS = {
|
|
|
2065
2065
|
Path: "/",
|
|
2066
2066
|
Description: ""
|
|
2067
2067
|
},
|
|
2068
|
+
"AWS::KinesisFirehose::DeliveryStream": { DeliveryStreamType: "DirectPut" },
|
|
2068
2069
|
"AWS::SageMaker::DataQualityJobDefinition": { StoppingCondition: { MaxRuntimeInSeconds: 3600 } },
|
|
2069
2070
|
"AWS::Config::ConfigurationRecorder": { RecordingMode: { RecordingFrequency: "CONTINUOUS" } },
|
|
2070
2071
|
"AWS::IAM::ServerCertificate": { Path: "/" },
|
|
@@ -3067,7 +3068,11 @@ const KNOWN_DEFAULT_PATHS = {
|
|
|
3067
3068
|
"AWS::KinesisFirehose::DeliveryStream": {
|
|
3068
3069
|
"ExtendedS3DestinationConfiguration.S3BackupMode": "Disabled",
|
|
3069
3070
|
"ExtendedS3DestinationConfiguration.CompressionFormat": "UNCOMPRESSED",
|
|
3070
|
-
"ExtendedS3DestinationConfiguration.EncryptionConfiguration": { NoEncryptionConfig: "NoEncryption" }
|
|
3071
|
+
"ExtendedS3DestinationConfiguration.EncryptionConfiguration": { NoEncryptionConfig: "NoEncryption" },
|
|
3072
|
+
"ExtendedS3DestinationConfiguration.BufferingHints": {
|
|
3073
|
+
IntervalInSeconds: 300,
|
|
3074
|
+
SizeInMBs: 5
|
|
3075
|
+
}
|
|
3071
3076
|
},
|
|
3072
3077
|
"AWS::Athena::WorkGroup": {
|
|
3073
3078
|
"WorkGroupConfiguration.EnforceWorkGroupConfiguration": true,
|
|
@@ -17070,6 +17075,45 @@ const writeConfigRuleInputParameters = async (ctx, ops) => {
|
|
|
17070
17075
|
InputParameters: configInputParametersString(op.value)
|
|
17071
17076
|
} }));
|
|
17072
17077
|
};
|
|
17078
|
+
const writeConfigConfigurationRecorder = async (ctx, ops) => {
|
|
17079
|
+
const desired = await desiredModel("AWS::Config::ConfigurationRecorder", ctx, ops);
|
|
17080
|
+
const name = str(desired.Name) ?? str(ctx.physicalId);
|
|
17081
|
+
const roleARN = str(desired.RoleARN);
|
|
17082
|
+
if (!name) throw new Error("cannot resolve Config recorder name for revert");
|
|
17083
|
+
if (!roleARN) throw new Error("cannot resolve Config recorder RoleARN for revert");
|
|
17084
|
+
const recorder = {
|
|
17085
|
+
name,
|
|
17086
|
+
roleARN
|
|
17087
|
+
};
|
|
17088
|
+
const rg = desired.RecordingGroup;
|
|
17089
|
+
if (rg) {
|
|
17090
|
+
const group = {};
|
|
17091
|
+
if (typeof rg.AllSupported === "boolean") group.allSupported = rg.AllSupported;
|
|
17092
|
+
if (typeof rg.IncludeGlobalResourceTypes === "boolean") group.includeGlobalResourceTypes = rg.IncludeGlobalResourceTypes;
|
|
17093
|
+
if (Array.isArray(rg.ResourceTypes)) group.resourceTypes = rg.ResourceTypes;
|
|
17094
|
+
const excl = rg.ExclusionByResourceTypes;
|
|
17095
|
+
if (excl && Array.isArray(excl.ResourceTypes) && excl.ResourceTypes.length > 0) group.exclusionByResourceTypes = { resourceTypes: excl.ResourceTypes };
|
|
17096
|
+
recorder.recordingGroup = group;
|
|
17097
|
+
}
|
|
17098
|
+
const rm = desired.RecordingMode;
|
|
17099
|
+
if (rm && str(rm.RecordingFrequency)) {
|
|
17100
|
+
const mode = { recordingFrequency: rm.RecordingFrequency };
|
|
17101
|
+
const overrides = rm.RecordingModeOverrides;
|
|
17102
|
+
if (Array.isArray(overrides) && overrides.length > 0) mode.recordingModeOverrides = overrides.map((o) => {
|
|
17103
|
+
const oo = o;
|
|
17104
|
+
return {
|
|
17105
|
+
resourceTypes: oo.ResourceTypes,
|
|
17106
|
+
recordingFrequency: oo.RecordingFrequency,
|
|
17107
|
+
...str(oo.Description) ? { description: oo.Description } : {}
|
|
17108
|
+
};
|
|
17109
|
+
});
|
|
17110
|
+
recorder.recordingMode = mode;
|
|
17111
|
+
}
|
|
17112
|
+
await new ConfigServiceClient({
|
|
17113
|
+
region: ctx.region,
|
|
17114
|
+
...CLIENT_TIMEOUTS
|
|
17115
|
+
}).send(new PutConfigurationRecorderCommand({ ConfigurationRecorder: recorder }));
|
|
17116
|
+
};
|
|
17073
17117
|
const OS_UPDATABLE_OPTIONS = new Set([
|
|
17074
17118
|
"ClusterConfig",
|
|
17075
17119
|
"EBSOptions",
|
|
@@ -18063,7 +18107,8 @@ const SDK_WRITERS = {
|
|
|
18063
18107
|
"AWS::SQS::QueuePolicy": writeSqsQueuePolicy,
|
|
18064
18108
|
"AWS::Events::EventBusPolicy": writeEventBusPolicy,
|
|
18065
18109
|
"AWS::IAM::Policy": writeIamPolicy,
|
|
18066
|
-
"AWS::IAM::ManagedPolicy": writeIamManagedPolicy
|
|
18110
|
+
"AWS::IAM::ManagedPolicy": writeIamManagedPolicy,
|
|
18111
|
+
"AWS::Config::ConfigurationRecorder": writeConfigConfigurationRecorder
|
|
18067
18112
|
};
|
|
18068
18113
|
const SDK_PROP_WRITERS = {
|
|
18069
18114
|
"AWS::Cognito::IdentityPool": { CognitoEvents: writeCognitoIdentityPoolEvents },
|