Interface CfnScraperProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnScraperProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:04.518Z")
@Stability(Stable)
public interface CfnScraperProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnScraper.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.aps.*;
CfnScraperProps cfnScraperProps = CfnScraperProps.builder()
.destination(DestinationProperty.builder()
.ampConfiguration(AmpConfigurationProperty.builder()
.workspaceArn("workspaceArn")
.build())
.build())
.scrapeConfiguration(ScrapeConfigurationProperty.builder()
.configurationBlob("configurationBlob")
.build())
.source(SourceProperty.builder()
.eksConfiguration(EksConfigurationProperty.builder()
.clusterArn("clusterArn")
.subnetIds(List.of("subnetIds"))
// the properties below are optional
.securityGroupIds(List.of("securityGroupIds"))
.build())
.build())
// the properties below are optional
.alias("alias")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnScraperPropsstatic final classAn implementation forCfnScraperProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnScraperProps.Builderbuilder()default StringgetAlias()An optional user-assigned scraper alias.The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.The configuration in use by the scraper.The Amazon EKS cluster from which the scraper collects metrics.getTags()(Optional) The list of tag keys and values associated with the scraper.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDestination
The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.- See Also:
-
getScrapeConfiguration
The configuration in use by the scraper.- See Also:
-
getSource
The Amazon EKS cluster from which the scraper collects metrics.- See Also:
-
getAlias
An optional user-assigned scraper alias.- See Also:
-
getTags
(Optional) The list of tag keys and values associated with the scraper.- See Also:
-
builder
- Returns:
- a
CfnScraperProps.BuilderofCfnScraperProps
-