# DestinationDetailsProperty

Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.

- 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 destinationDetailsProperty: elasticache.CfnCacheCluster.DestinationDetailsProperty = {
  cloudWatchLogsDetails: {
    logGroup: 'logGroup',
  },
  kinesisFirehoseDetails: {
    deliveryStream: 'deliveryStream',
  },
};
```

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

destination_details_property = elasticache.CfnCacheCluster.DestinationDetailsProperty(
    cloud_watch_logs_details=elasticache.CfnCacheCluster.CloudWatchLogsDestinationDetailsProperty(
        log_group="logGroup"
    ),
    kinesis_firehose_details=elasticache.CfnCacheCluster.KinesisFirehoseDestinationDetailsProperty(
        delivery_stream="deliveryStream"
    )
)
```

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

DestinationDetailsProperty destinationDetailsProperty = DestinationDetailsProperty.builder()
        .cloudWatchLogsDetails(CloudWatchLogsDestinationDetailsProperty.builder()
                .logGroup("logGroup")
                .build())
        .kinesisFirehoseDetails(KinesisFirehoseDestinationDetailsProperty.builder()
                .deliveryStream("deliveryStream")
                .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.ElastiCache;

var destinationDetailsProperty = new DestinationDetailsProperty {
    CloudWatchLogsDetails = new CloudWatchLogsDestinationDetailsProperty {
        LogGroup = "logGroup"
    },
    KinesisFirehoseDetails = new KinesisFirehoseDestinationDetailsProperty {
        DeliveryStream = "deliveryStream"
    }
};
```

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"

destinationDetailsProperty := &DestinationDetailsProperty{
	CloudWatchLogsDetails: &CloudWatchLogsDestinationDetailsProperty{
		LogGroup: jsii.String("logGroup"),
	},
	KinesisFirehoseDetails: &KinesisFirehoseDestinationDetailsProperty{
		DeliveryStream: jsii.String("deliveryStream"),
	},
}
```

## Properties

- `cloudWatchLogsDetails`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCacheCluster.CloudWatchLogsDestinationDetailsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticache.CfnCacheCluster.CloudWatchLogsDestinationDetailsProperty.html) — The configuration details of the CloudWatch Logs destination.

  Note that this field is marked as required but only if CloudWatch Logs was chosen as the destination.

- `kinesisFirehoseDetails`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCacheCluster.KinesisFirehoseDestinationDetailsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticache.CfnCacheCluster.KinesisFirehoseDestinationDetailsProperty.html) — The configuration details of the Kinesis Data Firehose destination.

  Note that this field is marked as required but only if Kinesis Data Firehose was chosen as the destination.
