ScraperComponentProperty Struct
A component of a Amazon Managed Service for Prometheus scraper that can be configured for logging.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_aps as aps } from 'aws-cdk-lib';
const scraperComponentProperty: aps.CfnScraper.ScraperComponentProperty = {
type: 'type',
// the properties below are optional
config: {
options: {
optionsKey: 'options',
},
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_aps as aps
scraper_component_property = aps.CfnScraper.ScraperComponentProperty(
type="type",
# the properties below are optional
config=aps.CfnScraper.ComponentConfigProperty(
options={
"options_key": "options"
}
)
)
java
// 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.*;
ScraperComponentProperty scraperComponentProperty = ScraperComponentProperty.builder()
.type("type")
// the properties below are optional
.config(ComponentConfigProperty.builder()
.options(Map.of(
"optionsKey", "options"))
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.APS;
var scraperComponentProperty = new ScraperComponentProperty {
Type = "type",
// the properties below are optional
Config = new ComponentConfigProperty {
Options = new Dictionary<string, string> {
{ "optionsKey", "options" }
}
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
scraperComponentProperty := &ScraperComponentProperty{
Type: jsii.String("type"),
// the properties below are optional
Config: &ComponentConfigProperty{
Options: map[string]*string{
"optionsKey": jsii.String("options"),
},
},
}
Properties
configoptionalIResolvable | CfnScraper.configoptionaltyping.Union[IResolvable, ComponentConfigProperty]configoptionalIResolvableConfigoptionalIResolvableConfigoptionalinterface{} #The configuration settings for the scraper component.
The type of the scraper component.