code: def config_status():
      
      s = boto3.Session()
      client = s.client('config')
      channels = client.describe_delivery_channel_status()[
          'DeliveryChannelsStatus']
      for c in channels:
          print(yaml.safe_dump({
              c['name']: dict(
                  snapshot=str(
                      c['configSnapshotDeliveryInfo'].get('lastSuccessfulTime')),
                  history=str(
                      c['configHistoryDeliveryInfo'].get('lastSuccessfulTime')),
                  stream=str(
                      c['configStreamDeliveryInfo'].get('lastStatusChangeTime'))
              ),
          }, default_flow_style=False))
docs: Check config status in an account.