# LogDeliveryConfigurationRequestProperty

Specifies the destination, format and type of the 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_elasticache as elasticache } from 'aws-cdk-lib';
const logDeliveryConfigurationRequestProperty: elasticache.CfnCacheCluster.LogDeliveryConfigurationRequestProperty = {
  destinationDetails: {
    cloudWatchLogsDetails: {
      logGroup: 'logGroup',
    },
    kinesisFirehoseDetails: {
      deliveryStream: 'deliveryStream',
    },
  },
  destinationType: 'destinationType',
  logFormat: 'logFormat',
  logType: 'logType',
};
```

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_elasticache as elasticache

log_delivery_configuration_request_property = elasticache.CfnCacheCluster.LogDeliveryConfigurationRequestProperty(
    destination_details=elasticache.CfnCacheCluster.DestinationDetailsProperty(
        cloud_watch_logs_details=elasticache.CfnCacheCluster.CloudWatchLogsDestinationDetailsProperty(
            log_group="logGroup"
        ),
        kinesis_firehose_details=elasticache.CfnCacheCluster.KinesisFirehoseDestinationDetailsProperty(
            delivery_stream="deliveryStream"
        )
    ),
    destination_type="destinationType",
    log_format="logFormat",
    log_type="logType"
)
```

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

LogDeliveryConfigurationRequestProperty logDeliveryConfigurationRequestProperty = LogDeliveryConfigurationRequestProperty.builder()
        .destinationDetails(DestinationDetailsProperty.builder()
                .cloudWatchLogsDetails(CloudWatchLogsDestinationDetailsProperty.builder()
                        .logGroup("logGroup")
                        .build())
                .kinesisFirehoseDetails(KinesisFirehoseDestinationDetailsProperty.builder()
                        .deliveryStream("deliveryStream")
                        .build())
                .build())
        .destinationType("destinationType")
        .logFormat("logFormat")
        .logType("logType")
        .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.ElastiCache;

var logDeliveryConfigurationRequestProperty = new LogDeliveryConfigurationRequestProperty {
    DestinationDetails = new DestinationDetailsProperty {
        CloudWatchLogsDetails = new CloudWatchLogsDestinationDetailsProperty {
            LogGroup = "logGroup"
        },
        KinesisFirehoseDetails = new KinesisFirehoseDestinationDetailsProperty {
            DeliveryStream = "deliveryStream"
        }
    },
    DestinationType = "destinationType",
    LogFormat = "logFormat",
    LogType = "logType"
};
```

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"

logDeliveryConfigurationRequestProperty := &LogDeliveryConfigurationRequestProperty{
	DestinationDetails: &DestinationDetailsProperty{
		CloudWatchLogsDetails: &CloudWatchLogsDestinationDetailsProperty{
			LogGroup: jsii.String("logGroup"),
		},
		KinesisFirehoseDetails: &KinesisFirehoseDestinationDetailsProperty{
			DeliveryStream: jsii.String("deliveryStream"),
		},
	},
	DestinationType: jsii.String("destinationType"),
	LogFormat: jsii.String("logFormat"),
	LogType: jsii.String("logType"),
}
```

## Properties

- `destinationDetails`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCacheCluster.DestinationDetailsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticache.CfnCacheCluster.DestinationDetailsProperty.html) (required) — Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.

- `destinationType`: string (required) — Specify either CloudWatch Logs or Kinesis Data Firehose as the destination type.

  Valid values are either `cloudwatch-logs` or `kinesis-firehose` .

- `logFormat`: string (required) — Valid values are either `json` or `text` .

- `logType`: string (required) — Valid value is either `slow-log` , which refers to [slow-log](https://docs.aws.amazon.com/https://redis.io/commands/slowlog) or `engine-log` .
