Class ScraperState


  • public final class ScraperState
    extends com.pulumi.resources.ResourceArgs
    • Method Detail

      • alias

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> alias()
        Returns:
        Name to associate with the managed scraper. This is for your use, and does not need to be unique.
      • arn

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> arn()
        Returns:
        ARN of the scraper.
      • destination

        public java.util.Optional<com.pulumi.core.Output<ScraperDestinationArgs>> destination()
        Returns:
        Configuration block for the managed scraper to send metrics to. See `destination` Block for details.
      • exporter

        public java.util.Optional<com.pulumi.core.Output<ScraperExporterArgs>> exporter()
        Returns:
        Configuration block for additional exporters. See `exporter` Block for details.
      • region

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> region()
        Returns:
        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.
      • roleArn

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> roleArn()
        Returns:
        ARN of the IAM role that provides permissions for the scraper to discover, collect, and produce metrics
      • roleConfiguration

        public java.util.Optional<com.pulumi.core.Output<ScraperRoleConfigurationArgs>> roleConfiguration()
        Returns:
        Configuration block to enable writing to an Amazon Managed Service for Prometheus workspace in a different account. See `roleConfiguration` Block for details.
      • scrapeConfiguration

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> scrapeConfiguration()
        Returns:
        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).
      • source

        public java.util.Optional<com.pulumi.core.Output<ScraperSourceArgs>> source()
        Returns:
        Configuration block to specify where the managed scraper will collect metrics from. See `source` Block for details. The following arguments are optional:
      • tags

        public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        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.
      • tagsAll

        public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>>> tagsAll()
        Returns:
        Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.