Class CfnScraperPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.aps.CfnScraperPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScraperPropsMixin>
- Enclosing class:
CfnScraperPropsMixin
@Stability(Stable)
public static final class CfnScraperPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScraperPropsMixin>
A fluent builder for
CfnScraperPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionAn optional user-assigned scraper alias.build()static CfnScraperPropsMixin.Buildercreate()static CfnScraperPropsMixin.Buildercreate(CfnPropertyMixinOptions options) destination(CfnScraperPropsMixin.DestinationProperty destination) The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.destination(IResolvable destination) The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.roleConfiguration(CfnScraperPropsMixin.RoleConfigurationProperty roleConfiguration) The role configuration in an Amazon Managed Service for Prometheus scraper.roleConfiguration(IResolvable roleConfiguration) The role configuration in an Amazon Managed Service for Prometheus scraper.scrapeConfiguration(CfnScraperPropsMixin.ScrapeConfigurationProperty scrapeConfiguration) The configuration in use by the scraper.scrapeConfiguration(IResolvable scrapeConfiguration) The configuration in use by the scraper.scraperLoggingConfiguration(CfnScraperPropsMixin.ScraperLoggingConfigurationProperty scraperLoggingConfiguration) The definition of logging configuration in an Amazon Managed Service for Prometheus workspace.scraperLoggingConfiguration(IResolvable scraperLoggingConfiguration) The definition of logging configuration in an Amazon Managed Service for Prometheus workspace.The Amazon EKS cluster from which the scraper collects metrics.source(IResolvable source) The Amazon EKS cluster from which the scraper collects metrics.(Optional) The list of tag keys and values associated with the scraper.
-
Method Details
-
create
@Stability(Stable) public static CfnScraperPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnScraperPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnScraperPropsMixin.Builder.
-
alias
An optional user-assigned scraper alias.- Parameters:
alias- An optional user-assigned scraper alias. This parameter is required.- Returns:
this- See Also:
-
destination
The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.- Parameters:
destination- The Amazon Managed Service for Prometheus workspace the scraper sends metrics to. This parameter is required.- Returns:
this- See Also:
-
destination
@Stability(Stable) public CfnScraperPropsMixin.Builder destination(CfnScraperPropsMixin.DestinationProperty destination) The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.- Parameters:
destination- The Amazon Managed Service for Prometheus workspace the scraper sends metrics to. This parameter is required.- Returns:
this- See Also:
-
roleConfiguration
@Stability(Stable) public CfnScraperPropsMixin.Builder roleConfiguration(IResolvable roleConfiguration) The role configuration in an Amazon Managed Service for Prometheus scraper.- Parameters:
roleConfiguration- The role configuration in an Amazon Managed Service for Prometheus scraper. This parameter is required.- Returns:
this- See Also:
-
roleConfiguration
@Stability(Stable) public CfnScraperPropsMixin.Builder roleConfiguration(CfnScraperPropsMixin.RoleConfigurationProperty roleConfiguration) The role configuration in an Amazon Managed Service for Prometheus scraper.- Parameters:
roleConfiguration- The role configuration in an Amazon Managed Service for Prometheus scraper. This parameter is required.- Returns:
this- See Also:
-
scrapeConfiguration
@Stability(Stable) public CfnScraperPropsMixin.Builder scrapeConfiguration(IResolvable scrapeConfiguration) The configuration in use by the scraper.- Parameters:
scrapeConfiguration- The configuration in use by the scraper. This parameter is required.- Returns:
this- See Also:
-
scrapeConfiguration
@Stability(Stable) public CfnScraperPropsMixin.Builder scrapeConfiguration(CfnScraperPropsMixin.ScrapeConfigurationProperty scrapeConfiguration) The configuration in use by the scraper.- Parameters:
scrapeConfiguration- The configuration in use by the scraper. This parameter is required.- Returns:
this- See Also:
-
scraperLoggingConfiguration
@Stability(Stable) public CfnScraperPropsMixin.Builder scraperLoggingConfiguration(IResolvable scraperLoggingConfiguration) The definition of logging configuration in an Amazon Managed Service for Prometheus workspace.- Parameters:
scraperLoggingConfiguration- The definition of logging configuration in an Amazon Managed Service for Prometheus workspace. This parameter is required.- Returns:
this- See Also:
-
scraperLoggingConfiguration
@Stability(Stable) public CfnScraperPropsMixin.Builder scraperLoggingConfiguration(CfnScraperPropsMixin.ScraperLoggingConfigurationProperty scraperLoggingConfiguration) The definition of logging configuration in an Amazon Managed Service for Prometheus workspace.- Parameters:
scraperLoggingConfiguration- The definition of logging configuration in an Amazon Managed Service for Prometheus workspace. This parameter is required.- Returns:
this- See Also:
-
source
The Amazon EKS cluster from which the scraper collects metrics.- Parameters:
source- The Amazon EKS cluster from which the scraper collects metrics. This parameter is required.- Returns:
this- See Also:
-
source
@Stability(Stable) public CfnScraperPropsMixin.Builder source(CfnScraperPropsMixin.SourceProperty source) The Amazon EKS cluster from which the scraper collects metrics.- Parameters:
source- The Amazon EKS cluster from which the scraper collects metrics. This parameter is required.- Returns:
this- See Also:
-
tags
(Optional) The list of tag keys and values associated with the scraper.- Parameters:
tags- (Optional) The list of tag keys and values associated with the scraper. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnScraperPropsMixin>- Returns:
- a newly built instance of
CfnScraperPropsMixin.
-