# AudioLogSettingProperty

Settings for logging audio of conversations between Amazon Lex and a user.

You specify whether to log audio and the Amazon S3 bucket where the audio file is stored.

- 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_lex as lex } from 'aws-cdk-lib';
const audioLogSettingProperty: lex.CfnBotAlias.AudioLogSettingProperty = {
  destination: {
    s3Bucket: {
      logPrefix: 'logPrefix',
      s3BucketArn: 's3BucketArn',

      // the properties below are optional
      kmsKeyArn: 'kmsKeyArn',
    },
  },
  enabled: false,
};
```

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_lex as lex

audio_log_setting_property = lex.CfnBotAlias.AudioLogSettingProperty(
    destination=lex.CfnBotAlias.AudioLogDestinationProperty(
        s3_bucket=lex.CfnBotAlias.S3BucketLogDestinationProperty(
            log_prefix="logPrefix",
            s3_bucket_arn="s3BucketArn",

            # the properties below are optional
            kms_key_arn="kmsKeyArn"
        )
    ),
    enabled=False
)
```

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

AudioLogSettingProperty audioLogSettingProperty = AudioLogSettingProperty.builder()
        .destination(AudioLogDestinationProperty.builder()
                .s3Bucket(S3BucketLogDestinationProperty.builder()
                        .logPrefix("logPrefix")
                        .s3BucketArn("s3BucketArn")

                        // the properties below are optional
                        .kmsKeyArn("kmsKeyArn")
                        .build())
                .build())
        .enabled(false)
        .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.Lex;

var audioLogSettingProperty = new AudioLogSettingProperty {
    Destination = new AudioLogDestinationProperty {
        S3Bucket = new S3BucketLogDestinationProperty {
            LogPrefix = "logPrefix",
            S3BucketArn = "s3BucketArn",

            // the properties below are optional
            KmsKeyArn = "kmsKeyArn"
        }
    },
    Enabled = false
};
```

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"

audioLogSettingProperty := &AudioLogSettingProperty{
	Destination: &AudioLogDestinationProperty{
		S3Bucket: &S3BucketLogDestinationProperty{
			LogPrefix: jsii.String("logPrefix"),
			S3BucketArn: jsii.String("s3BucketArn"),

			// the properties below are optional
			KmsKeyArn: jsii.String("kmsKeyArn"),
		},
	},
	Enabled: jsii.Boolean(false),
}
```

## Properties

- `destination`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBotAlias.AudioLogDestinationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBotAlias.AudioLogDestinationProperty.html) (required) — The location of audio log files collected when conversation logging is enabled for a bot.

- `enabled`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — Determines whether audio logging in enabled for the bot.
