cdk-real-drift 0.2.31 → 0.2.33

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 CHANGED
@@ -1707,6 +1707,7 @@ const KNOWN_DEFAULTS = {
1707
1707
  };
1708
1708
  const KNOWN_DEFAULT_ONE_OF = { "AWS::ApiGatewayV2::Integration": { TimeoutInMillis: [29e3, 3e4] } };
1709
1709
  const KNOWN_DEFAULT_PATHS = {
1710
+ "AWS::ElasticLoadBalancingV2::TargetGroup": { "Targets.*.AvailabilityZone": "all" },
1710
1711
  "AWS::ApiGatewayV2::Stage": { "DefaultRouteSettings.LoggingLevel": "OFF" },
1711
1712
  "AWS::ServiceCatalog::CloudFormationProduct": { "ProvisioningArtifactParameters.*.Type": "CLOUD_FORMATION_TEMPLATE" },
1712
1713
  "AWS::KinesisAnalyticsV2::Application": { "ApplicationConfiguration.ApplicationEncryptionConfiguration": { KeyType: "AWS_OWNED_KEY" } },
@@ -2317,6 +2318,8 @@ const ELB_ATTRIBUTE_DEFAULTS = {
2317
2318
  },
2318
2319
  "AWS::ElasticLoadBalancingV2::Listener": { "routing.http.response.server.enabled": "true" },
2319
2320
  "AWS::ElasticLoadBalancingV2::TargetGroup": {
2321
+ "deregistration_delay.timeout_seconds": "300",
2322
+ "lambda.multi_value_headers.enabled": "false",
2320
2323
  "load_balancing.algorithm.anomaly_mitigation": "off",
2321
2324
  "load_balancing.algorithm.type": "round_robin",
2322
2325
  "load_balancing.cross_zone.enabled": "use_load_balancer_configuration",
@@ -3280,7 +3283,10 @@ function stripCcApiAwsManagedFields(awsProps) {
3280
3283
  }
3281
3284
  function stripWalk(value, freeForm) {
3282
3285
  if (value === null || value === void 0) return value;
3283
- if (Array.isArray(value)) return value.map((v) => stripWalk(v, freeForm));
3286
+ if (Array.isArray(value)) {
3287
+ const mapped = value.map((v) => stripWalk(v, freeForm));
3288
+ return freeForm ? mapped : mapped.filter((v) => v !== null && v !== void 0);
3289
+ }
3284
3290
  if (typeof value === "object") {
3285
3291
  const out = {};
3286
3292
  for (const [k, child] of Object.entries(value)) {
@@ -3950,6 +3956,18 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
3950
3956
  Encrypted: true,
3951
3957
  AvailabilityZoneRelocationStatus: "enabled"
3952
3958
  };
3959
+ if (resourceType === "AWS::ElasticLoadBalancingV2::TargetGroup") {
3960
+ const targetType = declaredIn?.["TargetType"];
3961
+ const protocolVersion = declaredIn?.["ProtocolVersion"] ?? live["ProtocolVersion"];
3962
+ knownDef = {
3963
+ ...knownDef,
3964
+ HealthyThresholdCount: 5,
3965
+ HealthCheckIntervalSeconds: targetType === "lambda" ? 35 : 30,
3966
+ HealthCheckPath: protocolVersion === "GRPC" ? "/AWS.ALB/healthcheck" : "/",
3967
+ ...targetType === "lambda" ? { HealthCheckTimeoutSeconds: 30 } : {},
3968
+ ...protocolVersion === "GRPC" ? { Matcher: { GrpcCode: "12" } } : {}
3969
+ };
3970
+ }
3953
3971
  const genDef = resolveGeneratedDefault(resourceType, physicalId) ?? {};
3954
3972
  let knownDefPaths = KNOWN_DEFAULT_PATHS[resourceType] ?? {};
3955
3973
  if (resourceType === "AWS::Lambda::Function" && "DurableConfig" in declared) knownDefPaths = {