Interface CfnScraperMixinProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnScraperMixinProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:19:56.037Z")
@Stability(Stable)
public interface CfnScraperMixinProps
extends software.amazon.jsii.JsiiSerializable
Properties for CfnScraperPropsMixin.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.aps.*;
CfnScraperMixinProps cfnScraperMixinProps = CfnScraperMixinProps.builder()
.alias("alias")
.destination(DestinationProperty.builder()
.ampConfiguration(AmpConfigurationProperty.builder()
.workspaceArn("workspaceArn")
.build())
.build())
.roleConfiguration(RoleConfigurationProperty.builder()
.sourceRoleArn("sourceRoleArn")
.targetRoleArn("targetRoleArn")
.build())
.scrapeConfiguration(ScrapeConfigurationProperty.builder()
.configurationBlob("configurationBlob")
.build())
.scraperLoggingConfiguration(ScraperLoggingConfigurationProperty.builder()
.loggingDestination(ScraperLoggingDestinationProperty.builder()
.cloudWatchLogs(CloudWatchLogDestinationProperty.builder()
.logGroupArn("logGroupArn")
.build())
.build())
.scraperComponents(List.of(ScraperComponentProperty.builder()
.config(ComponentConfigProperty.builder()
.options(Map.of(
"optionsKey", "options"))
.build())
.type("type")
.build()))
.build())
.source(SourceProperty.builder()
.eksConfiguration(EksConfigurationProperty.builder()
.clusterArn("clusterArn")
.securityGroupIds(List.of("securityGroupIds"))
.subnetIds(List.of("subnetIds"))
.build())
.vpcConfiguration(VpcConfigurationProperty.builder()
.securityGroupIds(List.of("securityGroupIds"))
.subnetIds(List.of("subnetIds"))
.build())
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnScraperMixinPropsstatic final classAn implementation forCfnScraperMixinProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnScraperMixinProps.Builderbuilder()default StringgetAlias()An optional user-assigned scraper alias.default ObjectThe Amazon Managed Service for Prometheus workspace the scraper sends metrics to.default ObjectThe role configuration in an Amazon Managed Service for Prometheus scraper.default ObjectThe configuration in use by the scraper.default ObjectThe definition of logging configuration in an Amazon Managed Service for Prometheus workspace.default ObjectThe 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
-
getAlias
An optional user-assigned scraper alias.- See Also:
-
getDestination
The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.Returns union: either
IResolvableorCfnScraperPropsMixin.DestinationProperty- See Also:
-
getRoleConfiguration
The role configuration in an Amazon Managed Service for Prometheus scraper.Returns union: either
IResolvableorCfnScraperPropsMixin.RoleConfigurationProperty- See Also:
-
getScrapeConfiguration
The configuration in use by the scraper.Returns union: either
IResolvableorCfnScraperPropsMixin.ScrapeConfigurationProperty- See Also:
-
getScraperLoggingConfiguration
The definition of logging configuration in an Amazon Managed Service for Prometheus workspace.Returns union: either
IResolvableorCfnScraperPropsMixin.ScraperLoggingConfigurationProperty- See Also:
-
getSource
The Amazon EKS cluster from which the scraper collects metrics.Returns union: either
IResolvableorCfnScraperPropsMixin.SourceProperty- See Also:
-
getTags
(Optional) The list of tag keys and values associated with the scraper.- See Also:
-
builder
- Returns:
- a
CfnScraperMixinProps.BuilderofCfnScraperMixinProps
-