# LoggingProperty

Logging configuration defines where Image Builder uploads your logs.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_imagebuilder as imagebuilder } from 'aws-cdk-lib';
const loggingProperty: imagebuilder.CfnInfrastructureConfiguration.LoggingProperty = {
  s3Logs: {
    s3BucketName: 's3BucketName',
    s3KeyPrefix: 's3KeyPrefix',
  },
};
```

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_imagebuilder as imagebuilder

logging_property = imagebuilder.CfnInfrastructureConfiguration.LoggingProperty(
    s3_logs=imagebuilder.CfnInfrastructureConfiguration.S3LogsProperty(
        s3_bucket_name="s3BucketName",
        s3_key_prefix="s3KeyPrefix"
    )
)
```

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.imagebuilder.*;

LoggingProperty loggingProperty = LoggingProperty.builder()
        .s3Logs(S3LogsProperty.builder()
                .s3BucketName("s3BucketName")
                .s3KeyPrefix("s3KeyPrefix")
                .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.ImageBuilder;

var loggingProperty = new LoggingProperty {
    S3Logs = new S3LogsProperty {
        S3BucketName = "s3BucketName",
        S3KeyPrefix = "s3KeyPrefix"
    }
};
```

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"

loggingProperty := &LoggingProperty{
	S3Logs: &S3LogsProperty{
		S3BucketName: jsii.String("s3BucketName"),
		S3KeyPrefix: jsii.String("s3KeyPrefix"),
	},
}
```

## Properties

- `s3Logs`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnInfrastructureConfiguration.S3LogsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_imagebuilder.CfnInfrastructureConfiguration.S3LogsProperty.html) — The Amazon S3 logging configuration.
