ScraperState constructor

const ScraperState({
  1. Input<String?>? alias,
  2. Input<String?>? arn,
  3. Input<ScraperDestination?>? destination,
  4. Input<ScraperExporter?>? exporter,
  5. Input<String?>? region,
  6. Input<String?>? roleArn,
  7. Input<ScraperRoleConfiguration?>? roleConfiguration,
  8. Input<String?>? scrapeConfiguration,
  9. Input<ScraperSource?>? source,
  10. Input<Map<String, String>?>? tags,
  11. Input<Map<String, String>?>? tagsAll,
  12. Input<ScraperTimeouts?>? timeouts,
})

Creates a new ScraperState. alias Name to associate with the managed scraper. This is for your use, and does not need to be unique. arn ARN of the scraper. destination Configuration block for the managed scraper to send metrics to. See destination Block for details. exporter Configuration block for additional exporters. See exporter Block for details. region Region where this resource will be managed. Defaults to the Region set in the provider configuration. roleArn ARN of the IAM role that provides permissions for the scraper to discover, collect, and produce metrics roleConfiguration Configuration block to enable writing to an Amazon Managed Service for Prometheus workspace in a different account. See roleConfiguration Block for details. scrapeConfiguration Configuration file to use in the new scraper. For more information, see Scraper configuration. source Configuration block to specify where the managed scraper will collect metrics from. See source Block for details. tags Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level. tagsAll Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block. timeouts Optional.

Implementation

const ScraperState({
  this.alias,
  this.arn,
  this.destination,
  this.exporter,
  this.region,
  this.roleArn,
  this.roleConfiguration,
  this.scrapeConfiguration,
  this.source,
  this.tags,
  this.tagsAll,
  this.timeouts,
});