---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "lib",
    default: None,
   },
   FunctionArgument {
    identifier: "pkgs",
    default: None,
   },
   FunctionArgument {
    identifier: "config",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "cfg",
        position: (5, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (5, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "services",
         position: (5, 16),
        },
        Raw {
         content: "lifecycled",
         position: (5, 25),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "configFile",
        position: (11, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (11, 16),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "writeText",
          position: (11, 21),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "lifecycled",
          position: (11, 32),
         },
        ],
       },
       String {
        parts: [
         Raw {
          content: "LIFECYCLED_HANDLER=",
          position: (12, 1),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (12, 26),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "handler",
              position: (12, 30),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "\n",
          position: (12, 38),
         },
         Expression {
          expression: FunctionApplication {
           function: PropertyAccess {
            expression: Variable {
             identifier: "lib",
             position: (13, 7),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "optionalString",
               position: (13, 11),
              },
             ],
            },
            default: None,
           },
           arguments: [
            BinaryOperation {
             operator: NotEqualTo,
             operands: [
              PropertyAccess {
               expression: Variable {
                identifier: "cfg",
                position: (13, 27),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "cloudwatchGroup",
                  position: (13, 31),
                 },
                ],
               },
               default: None,
              },
              Variable {
               identifier: "null",
               position: (13, 50),
              },
             ],
             position: (13, 47),
            },
            String {
             parts: [
              Raw {
               content: "LIFECYCLED_CLOUDWATCH_GROUP=",
               position: (13, 57),
              },
              Expression {
               expression: PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (13, 87),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "cloudwatchGroup",
                   position: (13, 91),
                  },
                 ],
                },
                default: None,
               },
              },
             ],
            },
           ],
          },
         },
         Raw {
          content: "\n",
          position: (13, 109),
         },
         Expression {
          expression: FunctionApplication {
           function: PropertyAccess {
            expression: Variable {
             identifier: "lib",
             position: (14, 7),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "optionalString",
               position: (14, 11),
              },
             ],
            },
            default: None,
           },
           arguments: [
            BinaryOperation {
             operator: NotEqualTo,
             operands: [
              PropertyAccess {
               expression: Variable {
                identifier: "cfg",
                position: (14, 27),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "cloudwatchStream",
                  position: (14, 31),
                 },
                ],
               },
               default: None,
              },
              Variable {
               identifier: "null",
               position: (14, 51),
              },
             ],
             position: (14, 48),
            },
            String {
             parts: [
              Raw {
               content: "LIFECYCLED_CLOUDWATCH_STREAM=",
               position: (14, 58),
              },
              Expression {
               expression: PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (14, 89),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "cloudwatchStream",
                   position: (14, 93),
                  },
                 ],
                },
                default: None,
               },
              },
             ],
            },
           ],
          },
         },
         Raw {
          content: "\n",
          position: (14, 112),
         },
         Expression {
          expression: FunctionApplication {
           function: PropertyAccess {
            expression: Variable {
             identifier: "lib",
             position: (15, 7),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "optionalString",
               position: (15, 11),
              },
             ],
            },
            default: None,
           },
           arguments: [
            PropertyAccess {
             expression: Variable {
              identifier: "cfg",
              position: (15, 26),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "debug",
                position: (15, 30),
               },
              ],
             },
             default: None,
            },
            String {
             parts: [
              Raw {
               content: "LIFECYCLED_DEBUG=",
               position: (15, 37),
              },
              Expression {
               expression: FunctionApplication {
                function: PropertyAccess {
                 expression: Variable {
                  identifier: "lib",
                  position: (15, 56),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "boolToString",
                    position: (15, 60),
                   },
                  ],
                 },
                 default: None,
                },
                arguments: [
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (15, 73),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "debug",
                     position: (15, 77),
                    },
                   ],
                  },
                  default: None,
                 },
                ],
               },
              },
             ],
            },
           ],
          },
         },
         Raw {
          content: "\n",
          position: (15, 85),
         },
         Expression {
          expression: FunctionApplication {
           function: PropertyAccess {
            expression: Variable {
             identifier: "lib",
             position: (16, 7),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "optionalString",
               position: (16, 11),
              },
             ],
            },
            default: None,
           },
           arguments: [
            BinaryOperation {
             operator: NotEqualTo,
             operands: [
              PropertyAccess {
               expression: Variable {
                identifier: "cfg",
                position: (16, 27),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "instanceId",
                  position: (16, 31),
                 },
                ],
               },
               default: None,
              },
              Variable {
               identifier: "null",
               position: (16, 45),
              },
             ],
             position: (16, 42),
            },
            String {
             parts: [
              Raw {
               content: "LIFECYCLED_INSTANCE_ID=",
               position: (16, 52),
              },
              Expression {
               expression: PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (16, 77),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "instanceId",
                   position: (16, 81),
                  },
                 ],
                },
                default: None,
               },
              },
             ],
            },
           ],
          },
         },
         Raw {
          content: "\n",
          position: (16, 94),
         },
         Expression {
          expression: FunctionApplication {
           function: PropertyAccess {
            expression: Variable {
             identifier: "lib",
             position: (17, 7),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "optionalString",
               position: (17, 11),
              },
             ],
            },
            default: None,
           },
           arguments: [
            PropertyAccess {
             expression: Variable {
              identifier: "cfg",
              position: (17, 26),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "json",
                position: (17, 30),
               },
              ],
             },
             default: None,
            },
            String {
             parts: [
              Raw {
               content: "LIFECYCLED_JSON=",
               position: (17, 36),
              },
              Expression {
               expression: FunctionApplication {
                function: PropertyAccess {
                 expression: Variable {
                  identifier: "lib",
                  position: (17, 54),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "boolToString",
                    position: (17, 58),
                   },
                  ],
                 },
                 default: None,
                },
                arguments: [
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (17, 71),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "json",
                     position: (17, 75),
                    },
                   ],
                  },
                  default: None,
                 },
                ],
               },
              },
             ],
            },
           ],
          },
         },
         Raw {
          content: "\n",
          position: (17, 82),
         },
         Expression {
          expression: FunctionApplication {
           function: PropertyAccess {
            expression: Variable {
             identifier: "lib",
             position: (18, 7),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "optionalString",
               position: (18, 11),
              },
             ],
            },
            default: None,
           },
           arguments: [
            PropertyAccess {
             expression: Variable {
              identifier: "cfg",
              position: (18, 26),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "noSpot",
                position: (18, 30),
               },
              ],
             },
             default: None,
            },
            String {
             parts: [
              Raw {
               content: "LIFECYCLED_NO_SPOT=",
               position: (18, 38),
              },
              Expression {
               expression: FunctionApplication {
                function: PropertyAccess {
                 expression: Variable {
                  identifier: "lib",
                  position: (18, 59),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "boolToString",
                    position: (18, 63),
                   },
                  ],
                 },
                 default: None,
                },
                arguments: [
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (18, 76),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "noSpot",
                     position: (18, 80),
                    },
                   ],
                  },
                  default: None,
                 },
                ],
               },
              },
             ],
            },
           ],
          },
         },
         Raw {
          content: "\n",
          position: (18, 89),
         },
         Expression {
          expression: FunctionApplication {
           function: PropertyAccess {
            expression: Variable {
             identifier: "lib",
             position: (19, 7),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "optionalString",
               position: (19, 11),
              },
             ],
            },
            default: None,
           },
           arguments: [
            BinaryOperation {
             operator: NotEqualTo,
             operands: [
              PropertyAccess {
               expression: Variable {
                identifier: "cfg",
                position: (19, 27),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "snsTopic",
                  position: (19, 31),
                 },
                ],
               },
               default: None,
              },
              Variable {
               identifier: "null",
               position: (19, 43),
              },
             ],
             position: (19, 40),
            },
            String {
             parts: [
              Raw {
               content: "LIFECYCLED_SNS_TOPIC=",
               position: (19, 50),
              },
              Expression {
               expression: PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (19, 73),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "snsTopic",
                   position: (19, 77),
                  },
                 ],
                },
                default: None,
               },
              },
             ],
            },
           ],
          },
         },
         Raw {
          content: "\n",
          position: (19, 88),
         },
         Expression {
          expression: FunctionApplication {
           function: PropertyAccess {
            expression: Variable {
             identifier: "lib",
             position: (20, 7),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "optionalString",
               position: (20, 11),
              },
             ],
            },
            default: None,
           },
           arguments: [
            BinaryOperation {
             operator: NotEqualTo,
             operands: [
              PropertyAccess {
               expression: Variable {
                identifier: "cfg",
                position: (20, 27),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "awsRegion",
                  position: (20, 31),
                 },
                ],
               },
               default: None,
              },
              Variable {
               identifier: "null",
               position: (20, 44),
              },
             ],
             position: (20, 41),
            },
            String {
             parts: [
              Raw {
               content: "AWS_REGION=",
               position: (20, 51),
              },
              Expression {
               expression: PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (20, 64),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "awsRegion",
                   position: (20, 68),
                  },
                 ],
                },
                default: None,
               },
              },
             ],
            },
           ],
          },
         },
         Raw {
          content: "\n",
          position: (20, 80),
         },
        ],
       },
      ],
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "meta",
         position: (24, 3),
        },
        Raw {
         content: "maintainers",
         position: (24, 8),
        },
       ],
      },
      With {
       expression: Variable {
        identifier: "maintainers",
        position: (24, 27),
       },
       target: List {
        elements: [
         Variable {
          identifier: "cole-h",
          position: (24, 42),
         },
         Variable {
          identifier: "grahamc",
          position: (24, 49),
         },
        ],
        position: (24, 40),
       },
       position: (24, 22),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (26, 3),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "services",
            position: (27, 5),
           },
           Raw {
            content: "lifecycled",
            position: (27, 14),
           },
          ],
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "enable",
               position: (28, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkEnableOption",
              position: (28, 16),
             },
             arguments: [
              String {
               parts: [
                Raw {
                 content: "lifecycled",
                 position: (28, 32),
                },
               ],
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "queueCleaner",
               position: (30, 7),
              },
             ],
            },
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "enable",
                  position: (31, 9),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "mkEnableOption",
                 position: (31, 18),
                },
                arguments: [
                 String {
                  parts: [
                   Raw {
                    content: "lifecycled-queue-cleaner",
                    position: (31, 34),
                   },
                  ],
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "frequency",
                  position: (33, 9),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "mkOption",
                 position: (33, 21),
                },
                arguments: [
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "type",
                       position: (34, 11),
                      },
                     ],
                    },
                    PropertyAccess {
                     expression: Variable {
                      identifier: "types",
                      position: (34, 18),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "str",
                        position: (34, 24),
                       },
                      ],
                     },
                     default: None,
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "default",
                       position: (35, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "hourly",
                       position: (35, 22),
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "description",
                       position: (36, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "How often to trigger the queue cleaner.\n\nNOTE: This string should be a valid value for a systemd\ntimer's <literal>OnCalendar</literal> configuration. See\n<citerefentry><refentrytitle>systemd.timer</refentrytitle><manvolnum>5</manvolnum></citerefentry>\nfor more information.\n",
                       position: (37, 1),
                      },
                     ],
                    },
                   ),
                  ],
                  recursive: false,
                  position: (33, 30),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "parallel",
                  position: (46, 9),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "mkOption",
                 position: (46, 20),
                },
                arguments: [
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "type",
                       position: (47, 11),
                      },
                     ],
                    },
                    PropertyAccess {
                     expression: Variable {
                      identifier: "types",
                      position: (47, 18),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "ints",
                        position: (47, 24),
                       },
                       Raw {
                        content: "unsigned",
                        position: (47, 29),
                       },
                      ],
                     },
                     default: None,
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "default",
                       position: (48, 11),
                      },
                     ],
                    },
                    Int {
                     value: 20,
                     position: (48, 21),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "description",
                       position: (49, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "The number of parallel deletes to run.\n",
                       position: (50, 1),
                      },
                     ],
                    },
                   ),
                  ],
                  recursive: false,
                  position: (46, 29),
                 },
                ],
               },
              ),
             ],
             recursive: false,
             position: (30, 22),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "instanceId",
               position: (55, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (55, 20),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (56, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (56, 16),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "nullOr",
                      position: (56, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (56, 29),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "str",
                       position: (56, 35),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (57, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "null",
                  position: (57, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (58, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "The instance ID to listen for events for.\n",
                    position: (59, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (55, 29),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "snsTopic",
               position: (63, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (63, 18),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (64, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (64, 16),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "nullOr",
                      position: (64, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (64, 29),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "str",
                       position: (64, 35),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (65, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "null",
                  position: (65, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (66, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "The SNS topic that receives events.\n",
                    position: (67, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (63, 27),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "noSpot",
               position: (71, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (71, 16),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (72, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (72, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "bool",
                     position: (72, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (73, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "false",
                  position: (73, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (74, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Disable the spot termination listener.\n",
                    position: (75, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (71, 25),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "handler",
               position: (79, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (79, 17),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (80, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (80, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "path",
                     position: (80, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (81, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "The script to invoke to handle events.\n",
                    position: (82, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (79, 26),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "json",
               position: (86, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (86, 14),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (87, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (87, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "bool",
                     position: (87, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (88, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "false",
                  position: (88, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (89, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Enable JSON logging.\n",
                    position: (90, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (86, 23),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "cloudwatchGroup",
               position: (94, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (94, 25),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (95, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (95, 16),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "nullOr",
                      position: (95, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (95, 29),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "str",
                       position: (95, 35),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (96, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "null",
                  position: (96, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (97, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Write logs to a specific Cloudwatch Logs group.\n",
                    position: (98, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (94, 34),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "cloudwatchStream",
               position: (102, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (102, 26),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (103, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (103, 16),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "nullOr",
                      position: (103, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (103, 29),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "str",
                       position: (103, 35),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (104, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "null",
                  position: (104, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (105, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Write logs to a specific Cloudwatch Logs stream. Defaults to the instance ID.\n",
                    position: (106, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (102, 35),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "debug",
               position: (110, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (110, 15),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (111, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (111, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "bool",
                     position: (111, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (112, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "false",
                  position: (112, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (113, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Enable debugging information.\n",
                    position: (114, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (110, 24),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "awsRegion",
               position: (120, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (120, 19),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (121, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (121, 16),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "nullOr",
                      position: (121, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (121, 29),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "str",
                       position: (121, 35),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (122, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "null",
                  position: (122, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (123, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "The region used for accessing AWS services.\n",
                    position: (124, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (120, 28),
              },
             ],
            },
           ),
          ],
          recursive: false,
          position: (27, 27),
         },
        ),
       ],
       recursive: false,
       position: (26, 13),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (132, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkMerge",
        position: (132, 12),
       },
       arguments: [
        List {
         elements: [
          FunctionApplication {
           function: Variable {
            identifier: "mkIf",
            position: (133, 6),
           },
           arguments: [
            PropertyAccess {
             expression: Variable {
              identifier: "cfg",
              position: (133, 11),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "enable",
                position: (133, 15),
               },
              ],
             },
             default: None,
            },
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "environment",
                  position: (134, 7),
                 },
                 Raw {
                  content: "etc",
                  position: (134, 19),
                 },
                 Expression {
                  expression: String {
                   parts: [
                    Raw {
                     content: "lifecycled",
                     position: (134, 24),
                    },
                   ],
                  },
                 },
                 Raw {
                  content: "source",
                  position: (134, 36),
                 },
                ],
               },
               Variable {
                identifier: "configFile",
                position: (134, 45),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "systemd",
                  position: (136, 7),
                 },
                 Raw {
                  content: "packages",
                  position: (136, 15),
                 },
                ],
               },
               List {
                elements: [
                 PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (136, 28),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "lifecycled",
                     position: (136, 33),
                    },
                   ],
                  },
                  default: None,
                 },
                ],
                position: (136, 26),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "systemd",
                  position: (137, 7),
                 },
                 Raw {
                  content: "services",
                  position: (137, 15),
                 },
                 Raw {
                  content: "lifecycled",
                  position: (137, 24),
                 },
                ],
               },
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "wantedBy",
                     position: (138, 9),
                    },
                   ],
                  },
                  List {
                   elements: [
                    String {
                     parts: [
                      Raw {
                       content: "network-online.target",
                       position: (138, 23),
                      },
                     ],
                    },
                   ],
                   position: (138, 20),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "restartTriggers",
                     position: (139, 9),
                    },
                   ],
                  },
                  List {
                   elements: [
                    Variable {
                     identifier: "configFile",
                     position: (139, 29),
                    },
                   ],
                   position: (139, 27),
                  },
                 ),
                ],
                recursive: false,
                position: (137, 37),
               },
              ),
             ],
             recursive: false,
             position: (133, 22),
            },
           ],
          },
          FunctionApplication {
           function: Variable {
            identifier: "mkIf",
            position: (143, 6),
           },
           arguments: [
            PropertyAccess {
             expression: Variable {
              identifier: "cfg",
              position: (143, 11),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "queueCleaner",
                position: (143, 15),
               },
               Raw {
                content: "enable",
                position: (143, 28),
               },
              ],
             },
             default: None,
            },
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "systemd",
                  position: (144, 7),
                 },
                 Raw {
                  content: "services",
                  position: (144, 15),
                 },
                 Raw {
                  content: "lifecycled-queue-cleaner",
                  position: (144, 24),
                 },
                ],
               },
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "description",
                     position: (145, 9),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "Lifecycle Daemon Queue Cleaner",
                     position: (145, 24),
                    },
                   ],
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "environment",
                     position: (146, 9),
                    },
                   ],
                  },
                  FunctionApplication {
                   function: Variable {
                    identifier: "optionalAttrs",
                    position: (146, 23),
                   },
                   arguments: [
                    BinaryOperation {
                     operator: NotEqualTo,
                     operands: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (146, 38),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "awsRegion",
                          position: (146, 42),
                         },
                        ],
                       },
                       default: None,
                      },
                      Variable {
                       identifier: "null",
                       position: (146, 55),
                      },
                     ],
                     position: (146, 52),
                    },
                    Map {
                     bindings: [
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "AWS_REGION",
                          position: (146, 63),
                         },
                        ],
                       },
                       PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (146, 76),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "awsRegion",
                           position: (146, 80),
                          },
                         ],
                        },
                        default: None,
                       },
                      ),
                     ],
                     recursive: false,
                     position: (146, 61),
                    },
                   ],
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "serviceConfig",
                     position: (147, 9),
                    },
                   ],
                  },
                  Map {
                   bindings: [
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "Type",
                        position: (148, 11),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Raw {
                        content: "oneshot",
                        position: (148, 19),
                       },
                      ],
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "ExecStart",
                        position: (149, 11),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Expression {
                        expression: PropertyAccess {
                         expression: Variable {
                          identifier: "pkgs",
                          position: (149, 26),
                         },
                         attribute_path: AttributePath {
                          attributes: [
                           Raw {
                            content: "lifecycled",
                            position: (149, 31),
                           },
                          ],
                         },
                         default: None,
                        },
                       },
                       Raw {
                        content: "/bin/lifecycled-queue-cleaner -parallel ",
                        position: (149, 42),
                       },
                       Expression {
                        expression: FunctionApplication {
                         function: Variable {
                          identifier: "toString",
                          position: (149, 84),
                         },
                         arguments: [
                          PropertyAccess {
                           expression: Variable {
                            identifier: "cfg",
                            position: (149, 93),
                           },
                           attribute_path: AttributePath {
                            attributes: [
                             Raw {
                              content: "queueCleaner",
                              position: (149, 97),
                             },
                             Raw {
                              content: "parallel",
                              position: (149, 110),
                             },
                            ],
                           },
                           default: None,
                          },
                         ],
                        },
                       },
                      ],
                     },
                    ),
                   ],
                   recursive: false,
                   position: (147, 25),
                  },
                 ),
                ],
                recursive: false,
                position: (144, 51),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "systemd",
                  position: (153, 7),
                 },
                 Raw {
                  content: "timers",
                  position: (153, 15),
                 },
                 Raw {
                  content: "lifecycled-queue-cleaner",
                  position: (153, 22),
                 },
                ],
               },
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "description",
                     position: (154, 9),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "Lifecycle Daemon Queue Cleaner Timer",
                     position: (154, 24),
                    },
                   ],
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "wantedBy",
                     position: (155, 9),
                    },
                   ],
                  },
                  List {
                   elements: [
                    String {
                     parts: [
                      Raw {
                       content: "timers.target",
                       position: (155, 23),
                      },
                     ],
                    },
                   ],
                   position: (155, 20),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "after",
                     position: (156, 9),
                    },
                   ],
                  },
                  List {
                   elements: [
                    String {
                     parts: [
                      Raw {
                       content: "network-online.target",
                       position: (156, 20),
                      },
                     ],
                    },
                   ],
                   position: (156, 17),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "timerConfig",
                     position: (157, 9),
                    },
                   ],
                  },
                  Map {
                   bindings: [
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "Unit",
                        position: (158, 11),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Raw {
                        content: "lifecycled-queue-cleaner.service",
                        position: (158, 19),
                       },
                      ],
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "OnCalendar",
                        position: (159, 11),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Expression {
                        expression: PropertyAccess {
                         expression: Variable {
                          identifier: "cfg",
                          position: (159, 27),
                         },
                         attribute_path: AttributePath {
                          attributes: [
                           Raw {
                            content: "queueCleaner",
                            position: (159, 31),
                           },
                           Raw {
                            content: "frequency",
                            position: (159, 44),
                           },
                          ],
                         },
                         default: None,
                        },
                       },
                      ],
                     },
                    ),
                   ],
                   recursive: false,
                   position: (157, 23),
                  },
                 ),
                ],
                recursive: false,
                position: (153, 49),
               },
              ),
             ],
             recursive: false,
             position: (143, 35),
            },
           ],
          },
         ],
         position: (132, 20),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (23, 1),
   },
   position: (4, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}