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 - 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 - 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 - ARN of the scraper.
        Returns:
        builder
      • arn

        public ScraperState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - ARN of the 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` Block for details.
        Returns:
        builder
      • destination

        public ScraperState.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 ScraperState.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 ScraperState.Builder exporter​(ScraperExporterArgs exporter)
        Parameters:
        exporter - Configuration block for additional exporters. See `exporter` Block for details.
        Returns:
        builder
      • region

        public ScraperState.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 ScraperState.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
      • roleArn

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

        public ScraperState.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 ScraperState.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 ScraperState.Builder scrapeConfiguration​(@Nullable
                                                        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 ScraperState.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 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` Block for details. 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` Block for details. 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)
        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 ScraperState.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
      • tagsAll

        public ScraperState.Builder tagsAll​(@Nullable
                                            com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • tagsAll

        public ScraperState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder