Class ScraperArgs.Builder

  • Enclosing class:
    ScraperArgs

    public static final class ScraperArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • alias

        public ScraperArgs.Builder alias​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> alias)
        Parameters:
        alias - Name to associate with the managed scraper. This is for your use, and does not need to be unique.
        Returns:
        builder
      • alias

        public ScraperArgs.Builder alias​(java.lang.String alias)
        Parameters:
        alias - Name to associate with the managed scraper. This is for your use, and does not need to be unique.
        Returns:
        builder
      • destination

        public ScraperArgs.Builder destination​(com.pulumi.core.Output<ScraperDestinationArgs> destination)
        Parameters:
        destination - Configuration block for the managed scraper to send metrics to. See `destination` Block for details.
        Returns:
        builder
      • destination

        public ScraperArgs.Builder destination​(ScraperDestinationArgs destination)
        Parameters:
        destination - Configuration block for the managed scraper to send metrics to. See `destination` Block for details.
        Returns:
        builder
      • exporter

        public ScraperArgs.Builder exporter​(@Nullable
                                            com.pulumi.core.Output<ScraperExporterArgs> exporter)
        Parameters:
        exporter - Configuration block for additional exporters. See `exporter` Block for details.
        Returns:
        builder
      • exporter

        public ScraperArgs.Builder exporter​(ScraperExporterArgs exporter)
        Parameters:
        exporter - Configuration block for additional exporters. See `exporter` Block for details.
        Returns:
        builder
      • region

        public ScraperArgs.Builder region​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public ScraperArgs.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • roleConfiguration

        public ScraperArgs.Builder roleConfiguration​(@Nullable
                                                     com.pulumi.core.Output<ScraperRoleConfigurationArgs> roleConfiguration)
        Parameters:
        roleConfiguration - Configuration block to enable writing to an Amazon Managed Service for Prometheus workspace in a different account. See `roleConfiguration` Block for details.
        Returns:
        builder
      • roleConfiguration

        public ScraperArgs.Builder roleConfiguration​(ScraperRoleConfigurationArgs roleConfiguration)
        Parameters:
        roleConfiguration - Configuration block to enable writing to an Amazon Managed Service for Prometheus workspace in a different account. See `roleConfiguration` Block for details.
        Returns:
        builder
      • scrapeConfiguration

        public ScraperArgs.Builder scrapeConfiguration​(com.pulumi.core.Output<java.lang.String> scrapeConfiguration)
        Parameters:
        scrapeConfiguration - Configuration file to use in the new scraper. For more information, see [Scraper configuration](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-configuration).
        Returns:
        builder
      • scrapeConfiguration

        public ScraperArgs.Builder scrapeConfiguration​(java.lang.String scrapeConfiguration)
        Parameters:
        scrapeConfiguration - Configuration file to use in the new scraper. For more information, see [Scraper configuration](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-configuration).
        Returns:
        builder
      • source

        public ScraperArgs.Builder source​(@Nullable
                                          com.pulumi.core.Output<ScraperSourceArgs> source)
        Parameters:
        source - Configuration block to specify where the managed scraper will collect metrics from. See `source` Block for details. The following arguments are optional:
        Returns:
        builder
      • source

        public ScraperArgs.Builder source​(ScraperSourceArgs source)
        Parameters:
        source - Configuration block to specify where the managed scraper will collect metrics from. See `source` Block for details. The following arguments are optional:
        Returns:
        builder
      • tags

        public ScraperArgs.Builder tags​(@Nullable
                                        com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        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.
        Returns:
        builder
      • tags

        public ScraperArgs.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        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.
        Returns:
        builder