Class CfnScraperMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.aps.CfnScraperMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScraperMixinProps>
- Enclosing interface:
CfnScraperMixinProps
@Stability(Stable)
public static final class CfnScraperMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScraperMixinProps>
A builder for
CfnScraperMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnScraperMixinProps.getAlias()build()Builds the configured instance.destination(CfnScraperPropsMixin.DestinationProperty destination) Sets the value ofCfnScraperMixinProps.getDestination()destination(IResolvable destination) Sets the value ofCfnScraperMixinProps.getDestination()roleConfiguration(CfnScraperPropsMixin.RoleConfigurationProperty roleConfiguration) Sets the value ofCfnScraperMixinProps.getRoleConfiguration()roleConfiguration(IResolvable roleConfiguration) Sets the value ofCfnScraperMixinProps.getRoleConfiguration()scrapeConfiguration(CfnScraperPropsMixin.ScrapeConfigurationProperty scrapeConfiguration) Sets the value ofCfnScraperMixinProps.getScrapeConfiguration()scrapeConfiguration(IResolvable scrapeConfiguration) Sets the value ofCfnScraperMixinProps.getScrapeConfiguration()scraperLoggingConfiguration(CfnScraperPropsMixin.ScraperLoggingConfigurationProperty scraperLoggingConfiguration) Sets the value ofCfnScraperMixinProps.getScraperLoggingConfiguration()scraperLoggingConfiguration(IResolvable scraperLoggingConfiguration) Sets the value ofCfnScraperMixinProps.getScraperLoggingConfiguration()Sets the value ofCfnScraperMixinProps.getSource()source(IResolvable source) Sets the value ofCfnScraperMixinProps.getSource()Sets the value ofCfnScraperMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alias
Sets the value ofCfnScraperMixinProps.getAlias()- Parameters:
alias- An optional user-assigned scraper alias.- Returns:
this
-
destination
Sets the value ofCfnScraperMixinProps.getDestination()- Parameters:
destination- The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.- Returns:
this
-
destination
@Stability(Stable) public CfnScraperMixinProps.Builder destination(CfnScraperPropsMixin.DestinationProperty destination) Sets the value ofCfnScraperMixinProps.getDestination()- Parameters:
destination- The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.- Returns:
this
-
roleConfiguration
@Stability(Stable) public CfnScraperMixinProps.Builder roleConfiguration(IResolvable roleConfiguration) Sets the value ofCfnScraperMixinProps.getRoleConfiguration()- Parameters:
roleConfiguration- The role configuration in an Amazon Managed Service for Prometheus scraper.- Returns:
this
-
roleConfiguration
@Stability(Stable) public CfnScraperMixinProps.Builder roleConfiguration(CfnScraperPropsMixin.RoleConfigurationProperty roleConfiguration) Sets the value ofCfnScraperMixinProps.getRoleConfiguration()- Parameters:
roleConfiguration- The role configuration in an Amazon Managed Service for Prometheus scraper.- Returns:
this
-
scrapeConfiguration
@Stability(Stable) public CfnScraperMixinProps.Builder scrapeConfiguration(IResolvable scrapeConfiguration) Sets the value ofCfnScraperMixinProps.getScrapeConfiguration()- Parameters:
scrapeConfiguration- The configuration in use by the scraper.- Returns:
this
-
scrapeConfiguration
@Stability(Stable) public CfnScraperMixinProps.Builder scrapeConfiguration(CfnScraperPropsMixin.ScrapeConfigurationProperty scrapeConfiguration) Sets the value ofCfnScraperMixinProps.getScrapeConfiguration()- Parameters:
scrapeConfiguration- The configuration in use by the scraper.- Returns:
this
-
scraperLoggingConfiguration
@Stability(Stable) public CfnScraperMixinProps.Builder scraperLoggingConfiguration(IResolvable scraperLoggingConfiguration) Sets the value ofCfnScraperMixinProps.getScraperLoggingConfiguration()- Parameters:
scraperLoggingConfiguration- The definition of logging configuration in an Amazon Managed Service for Prometheus workspace.- Returns:
this
-
scraperLoggingConfiguration
@Stability(Stable) public CfnScraperMixinProps.Builder scraperLoggingConfiguration(CfnScraperPropsMixin.ScraperLoggingConfigurationProperty scraperLoggingConfiguration) Sets the value ofCfnScraperMixinProps.getScraperLoggingConfiguration()- Parameters:
scraperLoggingConfiguration- The definition of logging configuration in an Amazon Managed Service for Prometheus workspace.- Returns:
this
-
source
Sets the value ofCfnScraperMixinProps.getSource()- Parameters:
source- The Amazon EKS cluster from which the scraper collects metrics.- Returns:
this
-
source
@Stability(Stable) public CfnScraperMixinProps.Builder source(CfnScraperPropsMixin.SourceProperty source) Sets the value ofCfnScraperMixinProps.getSource()- Parameters:
source- The Amazon EKS cluster from which the scraper collects metrics.- Returns:
this
-
tags
Sets the value ofCfnScraperMixinProps.getTags()- Parameters:
tags- (Optional) The list of tag keys and values associated with the scraper.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnScraperMixinProps>- Returns:
- a new instance of
CfnScraperMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-