# ImageLoggingConfigurationProperty

The logging configuration that's defined for the image.

Image Builder uses the defined settings to direct execution log output during image creation.

- Source: Generated at build time
- Type last changed: v2.220.0 · 14 Oct 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_imagebuilder as imagebuilder } from 'aws-cdk-lib';
const imageLoggingConfigurationProperty: imagebuilder.CfnImage.ImageLoggingConfigurationProperty = {
  logGroupName: 'logGroupName',
};
```

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

image_logging_configuration_property = imagebuilder.CfnImage.ImageLoggingConfigurationProperty(
    log_group_name="logGroupName"
)
```

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

ImageLoggingConfigurationProperty imageLoggingConfigurationProperty = ImageLoggingConfigurationProperty.builder()
        .logGroupName("logGroupName")
        .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 imageLoggingConfigurationProperty = new ImageLoggingConfigurationProperty {
    LogGroupName = "logGroupName"
};
```

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"

imageLoggingConfigurationProperty := &ImageLoggingConfigurationProperty{
	LogGroupName: jsii.String("logGroupName"),
}
```

## Properties

- `logGroupName`: string — The log group name that Image Builder uses for image creation.

  If not specified, the log group name defaults to `/aws/imagebuilder/image-name` .
