updateScraper

Updates an existing scraper.

You can't use this function to update the source from which the scraper is collecting metrics. To change the source, delete the scraper and create a new one.

Samples

// UpdateScraper with all optional parameters
val resp = ampClient.updateScraper {
    scraperId = "scraper-123"
    alias = "alias-update"
    scrapeConfiguration = ScrapeConfiguration.ConfigurationBlob("blob-update".encodeAsByteArray())
    destination = Destination.AmpConfiguration(AmpConfiguration {
        workspaceArn = "arn:aws:aps:us-west-2:123456789012:workspace/ws-ogh2u499-ce12-hg89-v6c7-123412341234-update"
    }
    )
    clientToken = "token"
}