cdk-real-drift 0.12.92 → 0.12.93
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/dist/cli.js +20 -3
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -3017,6 +3017,18 @@ const KNOWN_DEFAULT_PATHS = {
|
|
|
3017
3017
|
InCluster: true
|
|
3018
3018
|
}
|
|
3019
3019
|
},
|
|
3020
|
+
"AWS::ElasticBeanstalk::Application": { "ResourceLifecycleConfig.VersionLifecycleConfig": {
|
|
3021
|
+
MaxCountRule: {
|
|
3022
|
+
DeleteSourceFromS3: false,
|
|
3023
|
+
Enabled: false,
|
|
3024
|
+
MaxCount: 200
|
|
3025
|
+
},
|
|
3026
|
+
MaxAgeRule: {
|
|
3027
|
+
DeleteSourceFromS3: false,
|
|
3028
|
+
MaxAgeInDays: 180,
|
|
3029
|
+
Enabled: false
|
|
3030
|
+
}
|
|
3031
|
+
} },
|
|
3020
3032
|
"AWS::Batch::JobDefinition": {
|
|
3021
3033
|
"ContainerProperties.RuntimePlatform.CpuArchitecture": "X86_64",
|
|
3022
3034
|
"ContainerProperties.RuntimePlatform.OperatingSystemFamily": "LINUX",
|
|
@@ -3188,7 +3200,8 @@ const DESCEND_UNDECLARED_OBJECT_PATHS = {
|
|
|
3188
3200
|
"AWS::EKS::Cluster": new Set(["KubernetesNetworkConfig"]),
|
|
3189
3201
|
"AWS::Athena::WorkGroup": new Set(["WorkGroupConfiguration"]),
|
|
3190
3202
|
"AWS::KinesisVideo::Stream": new Set(["StreamStorageConfiguration"]),
|
|
3191
|
-
"AWS::MSK::Cluster": new Set(["EncryptionInfo"])
|
|
3203
|
+
"AWS::MSK::Cluster": new Set(["EncryptionInfo"]),
|
|
3204
|
+
"AWS::ElasticBeanstalk::Application": new Set(["ResourceLifecycleConfig"])
|
|
3192
3205
|
};
|
|
3193
3206
|
const GENERATED_LOGICALID_PREFIX_PATHS = {
|
|
3194
3207
|
"AWS::Cognito::UserPoolClient": new Set(["ClientName"]),
|
|
@@ -3212,7 +3225,8 @@ const GENERATED_NESTED_PATHS = {
|
|
|
3212
3225
|
"AWS::DynamoDB::Table": new Set(["SSESpecification.KMSMasterKeyId"]),
|
|
3213
3226
|
"AWS::DynamoDB::GlobalTable": new Set(["Replicas.*.SSESpecification.KMSMasterKeyId"]),
|
|
3214
3227
|
"AWS::AutoScaling::AutoScalingGroup": new Set(["LaunchTemplate.LaunchTemplateName"]),
|
|
3215
|
-
"AWS::MSK::Cluster": new Set(["EncryptionInfo.EncryptionAtRest", "BrokerNodeGroupInfo.SecurityGroups"])
|
|
3228
|
+
"AWS::MSK::Cluster": new Set(["EncryptionInfo.EncryptionAtRest", "BrokerNodeGroupInfo.SecurityGroups"]),
|
|
3229
|
+
"AWS::ElasticBeanstalk::Application": new Set(["ResourceLifecycleConfig.ServiceRole"])
|
|
3216
3230
|
};
|
|
3217
3231
|
const EB_OPTION_DEFAULTS = {
|
|
3218
3232
|
"aws:autoscaling:asg|Availability Zones": "Any",
|
|
@@ -16811,7 +16825,10 @@ const writeElasticBeanstalkApplication = async (ctx, ops) => {
|
|
|
16811
16825
|
if (top && EB_APPLICATION_MODIFY_PARAMS.has(top)) {
|
|
16812
16826
|
input[top] = op.op === "remove" ? "" : str(ctx.declared[top]) ?? "";
|
|
16813
16827
|
any = true;
|
|
16814
|
-
} else if (top === "ResourceLifecycleConfig")
|
|
16828
|
+
} else if (top === "ResourceLifecycleConfig") {
|
|
16829
|
+
const targetsWholeObject = op.path.replace(/^\//, "") === "ResourceLifecycleConfig";
|
|
16830
|
+
lifecycle = op.op === "remove" ? EB_APPLICATION_DEFAULT_RESOURCE_LIFECYCLE : asObject(ctx.declared["ResourceLifecycleConfig"]) ?? (targetsWholeObject ? asObject(op.value) : void 0) ?? EB_APPLICATION_DEFAULT_RESOURCE_LIFECYCLE;
|
|
16831
|
+
}
|
|
16815
16832
|
}
|
|
16816
16833
|
if (any) await client.send(new UpdateApplicationCommand(input));
|
|
16817
16834
|
if (lifecycle !== void 0) await client.send(new UpdateApplicationResourceLifecycleCommand({
|