Interface CreateScraperRequest.Builder

  • Method Details

    • alias

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

      Parameters:
      alias - (optional) An alias to associate with the scraper. This is for your use, and does not need to be unique.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scrapeConfiguration

      CreateScraperRequest.Builder scrapeConfiguration(ScrapeConfiguration 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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scrapeConfiguration

      default CreateScraperRequest.Builder scrapeConfiguration(Consumer<ScrapeConfiguration.Builder> 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.

      This is a convenience method that creates an instance of the ScrapeConfiguration.Builder avoiding the need to create one manually via ScrapeConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to scrapeConfiguration(ScrapeConfiguration).

      Parameters:
      scrapeConfiguration - a consumer that will call methods on ScrapeConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • source

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

      Parameters:
      source - The Amazon EKS or Amazon Web Services cluster from which the scraper will collect metrics.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • source

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

      This is a convenience method that creates an instance of the Source.Builder avoiding the need to create one manually via Source.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to source(Source).

      Parameters:
      source - a consumer that will call methods on Source.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • destination

      CreateScraperRequest.Builder destination(Destination destination)

      The destination where the scraper sends the collected metrics. Valid destinations are Amazon Managed Service for Prometheus workspaces and CloudWatch datasets.

      Parameters:
      destination - The destination where the scraper sends the collected metrics. Valid destinations are Amazon Managed Service for Prometheus workspaces and CloudWatch datasets.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destination

      default CreateScraperRequest.Builder destination(Consumer<Destination.Builder> destination)

      The destination where the scraper sends the collected metrics. Valid destinations are Amazon Managed Service for Prometheus workspaces and CloudWatch datasets.

      This is a convenience method that creates an instance of the Destination.Builder avoiding the need to create one manually via Destination.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to destination(Destination).

      Parameters:
      destination - a consumer that will call methods on Destination.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • roleConfiguration

      CreateScraperRequest.Builder roleConfiguration(RoleConfiguration roleConfiguration)

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

      Parameters:
      roleConfiguration - Use this structure to enable cross-account access, so that you can use a target account to access Prometheus metrics from source accounts.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • roleConfiguration

      default CreateScraperRequest.Builder roleConfiguration(Consumer<RoleConfiguration.Builder> roleConfiguration)

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

      This is a convenience method that creates an instance of the RoleConfiguration.Builder avoiding the need to create one manually via RoleConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to roleConfiguration(RoleConfiguration).

      Parameters:
      roleConfiguration - a consumer that will call methods on RoleConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • clientToken

      CreateScraperRequest.Builder clientToken(String clientToken)

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

      Parameters:
      clientToken - (Optional) A unique, case-sensitive identifier that you can provide to ensure the idempotency of the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

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

      Parameters:
      tags - (Optional) The list of tag keys and values to associate with the scraper.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • exporters

      The exporter configurations for the scraper. You can configure at most one exporter, for either an Amazon OpenSearch Service domain or an Amazon MSK cluster. If you don't specify a value, the scraper is created without an exporter configuration.

      Parameters:
      exporters - The exporter configurations for the scraper. You can configure at most one exporter, for either an Amazon OpenSearch Service domain or an Amazon MSK cluster. If you don't specify a value, the scraper is created without an exporter configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • exporters

      The exporter configurations for the scraper. You can configure at most one exporter, for either an Amazon OpenSearch Service domain or an Amazon MSK cluster. If you don't specify a value, the scraper is created without an exporter configuration.

      Parameters:
      exporters - The exporter configurations for the scraper. You can configure at most one exporter, for either an Amazon OpenSearch Service domain or an Amazon MSK cluster. If you don't specify a value, the scraper is created without an exporter configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • exporters

      The exporter configurations for the scraper. You can configure at most one exporter, for either an Amazon OpenSearch Service domain or an Amazon MSK cluster. If you don't specify a value, the scraper is created without an exporter configuration.

      This is a convenience method that creates an instance of the ExporterConfiguration.Builder avoiding the need to create one manually via ExporterConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to exporters(List<ExporterConfiguration>).

      Parameters:
      exporters - a consumer that will call methods on ExporterConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      CreateScraperRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.