Class ScraperState.Builder

  • Enclosing class:
    ScraperState

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

      • Builder

        public Builder()
    • Method Detail

      • alias

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

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

        public ScraperState.Builder arn​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - The Amazon Resource Name (ARN) of the new scraper.
        Returns:
        builder
      • arn

        public ScraperState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - The Amazon Resource Name (ARN) of the new scraper.
        Returns:
        builder
      • destination

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

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

        public ScraperState.Builder roleArn​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> roleArn)
        Parameters:
        roleArn - The Amazon Resource Name (ARN) of the IAM role that provides permissions for the scraper to discover, collect, and produce metrics
        Returns:
        builder
      • roleArn

        public ScraperState.Builder roleArn​(java.lang.String roleArn)
        Parameters:
        roleArn - The Amazon Resource Name (ARN) of the IAM role that provides permissions for the scraper to discover, collect, and produce metrics
        Returns:
        builder
      • scrapeConfiguration

        public ScraperState.Builder scrapeConfiguration​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> scrapeConfiguration)
        Parameters:
        scrapeConfiguration - The 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 ScraperState.Builder scrapeConfiguration​(java.lang.String scrapeConfiguration)
        Parameters:
        scrapeConfiguration - The 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 ScraperState.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`. The following arguments are optional:
        Returns:
        builder
      • source

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

        public ScraperState.Builder tags​(@Nullable
                                         com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
      • tags

        public ScraperState.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
      • tagsAll

        @Deprecated
        public ScraperState.Builder tagsAll​(@Nullable
                                            com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Deprecated.
        Please use `tags` instead.
        Returns:
        builder
      • tagsAll

        @Deprecated
        public ScraperState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Deprecated.
        Please use `tags` instead.
        Returns:
        builder