LogDeliveryConfigurationRequestProperty Struct
Specifies the destination, format and type of the logs.
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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"
};
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
destinationDetailsIResolvable | CfnCacheCluster.destination_detailstyping.Union[IResolvable, DestinationDetailsProperty]destinationDetailsIResolvableDestinationDetailsIResolvableDestinationDetailsinterface{} required #Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.
destinationTypestringdestination_typestrdestinationTypeStringDestinationTypestringDestinationType*string required #Specify either CloudWatch Logs or Kinesis Data Firehose as the destination type.
Valid values are either cloudwatch-logs or kinesis-firehose .
Valid values are either `json` or `text` .