ScraperArgs constructor
- Input<
String?> ? alias, - required Input<
ScraperDestination> destination, - Input<
ScraperExporter?> ? exporter, - Input<
String?> ? region, - Input<
ScraperRoleConfiguration?> ? roleConfiguration, - required Input<
String> scrapeConfiguration, - Input<
ScraperSource?> ? source, - Input<
Map< ? tags,String, String> ?> - Input<
ScraperTimeouts?> ? timeouts,
Creates a new ScraperArgs.
alias Name to associate with the managed scraper. This is for your use, and does not need to be unique.
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.
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.
timeouts Optional.
Implementation
const ScraperArgs({
this.alias,
required this.destination,
this.exporter,
this.region,
this.roleConfiguration,
required this.scrapeConfiguration,
this.source,
this.tags,
this.timeouts,
});