Module Values.CreateScraperRequestSource

Represents the input of a CreateScraper operation.

Sourcetype nonrec t = {
  1. alias : ScraperAlias.t option;
    (*

    (optional) An alias to associate with the scraper. This is for your use, and does not need to be unique.

    *)
  2. scrapeConfiguration : ScrapeConfiguration.t;
    (*

    The configuration file to use in the new scraper. For more information, see Scraper configuration in the Amazon Managed Service for Prometheus User Guide.

    *)
  3. source : Source.t;
    (*

    The Amazon EKS or Amazon Web Services cluster from which the scraper will collect metrics.

    *)
  4. destination : Destination.t;
    (*

    The Amazon Managed Service for Prometheus workspace to send metrics to.

    *)
  5. roleConfiguration : RoleConfiguration.t option;
    (*

    Use this structure to enable cross-account access, so that you can use a target account to access Prometheus metrics from source accounts.

    *)
  6. clientToken : IdempotencyToken.t option;
    (*

    (Optional) A unique, case-sensitive identifier that you can provide to ensure the idempotency of the request.

    *)
  7. tags : TagMap.t option;
    (*

    (Optional) The list of tag keys and values to associate with the scraper.

    *)
}
Sourceval context_ : string
Sourceval make : ?alias:??? -> ?roleConfiguration:??? -> ?clientToken:??? -> ?tags:??? -> scrapeConfiguration:ScrapeConfiguration.t -> source:Source.t -> destination:Destination.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Map of ([> `String of TagKey.t ] * [> `String of TagValue.t ]) list | `String of ScraperAlias.t | `Structure of (string * [> `Blob of Blob.t | `String of IamRoleArn.t | `Structure of (string * [> `List of [> `String of SecurityGroupId.t ] list | `String of ClusterArn.t ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t