Skip to content
v2.277.0

LogConfigurationProperty Struct ​

The configuration of the log.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_workspacesweb as workspacesweb } from 'aws-cdk-lib';
const logConfigurationProperty: workspacesweb.CfnSessionLogger.LogConfigurationProperty = {
  s3: {
    bucket: 'bucket',
    folderStructure: 'folderStructure',
    logFileFormat: 'logFileFormat',

    // the properties below are optional
    bucketOwner: 'bucketOwner',
    keyPrefix: 'keyPrefix',
  },
};
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_workspacesweb as workspacesweb

log_configuration_property = workspacesweb.CfnSessionLogger.LogConfigurationProperty(
    s3=workspacesweb.CfnSessionLogger.S3LogConfigurationProperty(
        bucket="bucket",
        folder_structure="folderStructure",
        log_file_format="logFileFormat",

        # the properties below are optional
        bucket_owner="bucketOwner",
        key_prefix="keyPrefix"
    )
)
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.workspacesweb.*;

LogConfigurationProperty logConfigurationProperty = LogConfigurationProperty.builder()
        .s3(S3LogConfigurationProperty.builder()
                .bucket("bucket")
                .folderStructure("folderStructure")
                .logFileFormat("logFileFormat")

                // the properties below are optional
                .bucketOwner("bucketOwner")
                .keyPrefix("keyPrefix")
                .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.WorkSpacesWeb;

var logConfigurationProperty = new LogConfigurationProperty {
    S3 = new S3LogConfigurationProperty {
        Bucket = "bucket",
        FolderStructure = "folderStructure",
        LogFileFormat = "logFileFormat",

        // the properties below are optional
        BucketOwner = "bucketOwner",
        KeyPrefix = "keyPrefix"
    }
};
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"

logConfigurationProperty := &LogConfigurationProperty{
	S3: &S3LogConfigurationProperty{
		Bucket: jsii.String("bucket"),
		FolderStructure: jsii.String("folderStructure"),
		LogFileFormat: jsii.String("logFileFormat"),

		// the properties below are optional
		BucketOwner: jsii.String("bucketOwner"),
		KeyPrefix: jsii.String("keyPrefix"),
	},
}

Properties ​

s3optionalIResolvable | CfnSessionLogger.S3LogConfigurationPropertys3optionaltyping.Union[IResolvable, S3LogConfigurationProperty]s3optionalIResolvableS3optionalIResolvableS3optionalinterface{}#
The configuration for delivering the logs to S3.