async function getConfiguration()

in governance/3-custom-rules/src/generic-by-params.js [22:30]


async function getConfiguration(resourceType, resourceId, configurationCaptureTime) {
  let params = {
    resourceType,
    resourceId,
    laterTime: new Date(configurationCaptureTime),
    limit: 1
  }
  return config.getResourceConfigHistory(params).promise()
}