# ScraperLoggingConfigurationProperty

Configuration for scraper 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 scraperLoggingConfigurationProperty: aps.CfnScraper.ScraperLoggingConfigurationProperty = {
  loggingDestination: {
    cloudWatchLogs: {
      logGroupArn: 'logGroupArn',
    },
  },
  scraperComponents: [{
    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_logging_configuration_property = aps.CfnScraper.ScraperLoggingConfigurationProperty(
    logging_destination=aps.CfnScraper.ScraperLoggingDestinationProperty(
        cloud_watch_logs=aps.CfnScraper.CloudWatchLogDestinationProperty(
            log_group_arn="logGroupArn"
        )
    ),
    scraper_components=[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.*;

ScraperLoggingConfigurationProperty scraperLoggingConfigurationProperty = ScraperLoggingConfigurationProperty.builder()
        .loggingDestination(ScraperLoggingDestinationProperty.builder()
                .cloudWatchLogs(CloudWatchLogDestinationProperty.builder()
                        .logGroupArn("logGroupArn")
                        .build())
                .build())
        .scraperComponents(List.of(ScraperComponentProperty.builder()
                .type("type")

                // the properties below are optional
                .config(ComponentConfigProperty.builder()
                        .options(Map.of(
                                "optionsKey", "options"))
                        .build())
                .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 scraperLoggingConfigurationProperty = new ScraperLoggingConfigurationProperty {
    LoggingDestination = new ScraperLoggingDestinationProperty {
        CloudWatchLogs = new CloudWatchLogDestinationProperty {
            LogGroupArn = "logGroupArn"
        }
    },
    ScraperComponents = new [] { 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"

scraperLoggingConfigurationProperty := &ScraperLoggingConfigurationProperty{
	LoggingDestination: &ScraperLoggingDestinationProperty{
		CloudWatchLogs: &CloudWatchLogDestinationProperty{
			LogGroupArn: jsii.String("logGroupArn"),
		},
	},
	ScraperComponents: []interface{}{
		&ScraperComponentProperty{
			Type: jsii.String("type"),

			// the properties below are optional
			Config: &ComponentConfigProperty{
				Options: map[string]*string{
					"optionsKey": jsii.String("options"),
				},
			},
		},
	},
}
```

## Properties

- `loggingDestination`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnScraper.ScraperLoggingDestinationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_aps.CfnScraper.ScraperLoggingDestinationProperty.html) (required) — Destination for scraper logging.

- `scraperComponents`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnScraper.ScraperComponentProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_aps.CfnScraper.ScraperComponentProperty.html)[] (required)
