CreateScraperRequest
¶
Source code in docs_src/capo_amp/types/create_scraper_request.py
alias
instance-attribute
¶
alias: NotRequired[ScraperAlias]
(optional) An alias to associate with the scraper. This is for your use, and does not need to be unique.
client_token
instance-attribute
¶
client_token: NotRequired[IdempotencyToken]
(Optional) A unique, case-sensitive identifier that you can provide to ensure the idempotency of the request.
destination
instance-attribute
¶
destination: Destination
The destination where the scraper sends the collected metrics. Valid destinations are Amazon Managed Service for Prometheus workspaces and CloudWatch datasets.
exporters
instance-attribute
¶
exporters: NotRequired[ExporterList]
The exporter configurations for the scraper. You can configure at most one Amazon OpenSearch Service domain. If you don't specify a value, the scraper is created without an exporter configuration.
role_configuration
instance-attribute
¶
role_configuration: NotRequired[RoleConfiguration]
Use this structure to enable cross-account access, so that you can use a target account to access Prometheus metrics from source accounts.
scrape_configuration
instance-attribute
¶
scrape_configuration: ScrapeConfiguration
The configuration file to use in the new scraper. For more information, see Scraper configuration in the Amazon Managed Service for Prometheus User Guide.