# ScraperComponentProperty

A component of a Amazon Managed Service for Prometheus scraper that can be configured for logging.

- Source: Generated at build time
- Type last changed: v2.217.0 · 25 Sep 2025

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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" }
        }
    }
};
```

Golang:

```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

- `config`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnScraper.ComponentConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_aps.CfnScraper.ComponentConfigProperty.html) — The configuration settings for the scraper component.

- `type`: string (required) — The type of the scraper component.
