Skip to content
v2.278.0

ScraperLoggingConfigurationProperty Struct ​

Configuration for scraper logging.

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 scraperLoggingConfigurationProperty: aps.CfnScraper.ScraperLoggingConfigurationProperty = {
  loggingDestination: {
    cloudWatchLogs: {
      logGroupArn: 'logGroupArn',
    },
  },
  scraperComponents: [{
    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_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
// 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();
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" }
            }
        }
    } }
};
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 ​

loggingDestinationIResolvable | CfnScraper.ScraperLoggingDestinationPropertylogging_destinationtyping.Union[IResolvable, ScraperLoggingDestinationProperty]loggingDestinationIResolvableLoggingDestinationIResolvableLoggingDestinationinterface{} required #
Destination for scraper logging.
scraperComponentsIResolvable | IResolvable | CfnScraper.ScraperComponentProperty[]scraper_componentstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ScraperComponentProperty]]]scraperComponentsIResolvableScraperComponentsIResolvableScraperComponentsinterface{} required #