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