# LoggingInfoProperty

> `LoggingInfo` has been deprecated.

To specify an Amazon S3 bucket to contain logs, instead use the `OutputS3BucketName` and `OutputS3KeyPrefix` options in the `TaskInvocationParameters` structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see [AWS ::SSM::MaintenanceWindowTask MaintenanceWindowRunCommandParameters](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowruncommandparameters.html) .

The `LoggingInfo` property type specifies information about the Amazon S3 bucket to write instance-level logs to.

`LoggingInfo` is a property of the [AWS::SSM::MaintenanceWindowTask](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtask.html) resource.

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

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ssm as ssm } from 'aws-cdk-lib';
const loggingInfoProperty: ssm.CfnMaintenanceWindowTask.LoggingInfoProperty = {
  region: 'region',
  s3Bucket: 's3Bucket',

  // the properties below are optional
  s3Prefix: 's3Prefix',
};
```

## Properties

- `region`: string (required) — The AWS Region where the S3 bucket is located.

- `s3Bucket`: string (required) — The name of an S3 bucket where execution logs are stored.

- `s3Prefix`: string — The Amazon S3 bucket subfolder.
