Class CfnScraper.Builder
java.lang.Object
software.amazon.awscdk.services.aps.CfnScraper.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScraper>
- Enclosing class:
CfnScraper
@Stability(Stable)
public static final class CfnScraper.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScraper>
A fluent builder for
CfnScraper
.-
Method Summary
Modifier and TypeMethodDescriptionAn optional user-assigned scraper alias.build()
static CfnScraper.Builder
destination
(IResolvable destination) The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.destination
(CfnScraper.DestinationProperty destination) The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.roleConfiguration
(IResolvable roleConfiguration) Role configuration.roleConfiguration
(CfnScraper.RoleConfigurationProperty roleConfiguration) Role configuration.scrapeConfiguration
(IResolvable scrapeConfiguration) The configuration in use by the scraper.scrapeConfiguration
(CfnScraper.ScrapeConfigurationProperty scrapeConfiguration) The configuration in use by the scraper.source
(IResolvable source) The Amazon EKS cluster from which the scraper collects metrics.source
(CfnScraper.SourceProperty 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 CfnScraper.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnScraper.Builder
.
-
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 CfnScraper.Builder destination(CfnScraper.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:
-
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 CfnScraper.Builder scrapeConfiguration(CfnScraper.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:
-
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
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:
-
alias
An optional user-assigned scraper alias.- Parameters:
alias
- An optional user-assigned scraper alias. This parameter is required.- Returns:
this
- See Also:
-
roleConfiguration
Role configuration.- Parameters:
roleConfiguration
- Role configuration. This parameter is required.- Returns:
this
- See Also:
-
roleConfiguration
@Stability(Stable) public CfnScraper.Builder roleConfiguration(CfnScraper.RoleConfigurationProperty roleConfiguration) Role configuration.- Parameters:
roleConfiguration
- Role configuration. 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:
build
in interfacesoftware.amazon.jsii.Builder<CfnScraper>
- Returns:
- a newly built instance of
CfnScraper
.
-