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
import aws.sdk.kotlin.services.amp.model.AmpConfiguration
import aws.sdk.kotlin.services.amp.model.Destination
import aws.sdk.kotlin.services.amp.model.ScrapeConfiguration
fun main() {
//sampleStart
// 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"
}
//sampleEnd
}