CloudWatchDestinationProperty Struct
An object that defines an Amazon CloudWatch destination for email events.
You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pinpointemail as pinpointemail } from 'aws-cdk-lib';
const cloudWatchDestinationProperty: pinpointemail.CfnConfigurationSetEventDestination.CloudWatchDestinationProperty = {
dimensionConfigurations: [{
defaultDimensionValue: 'defaultDimensionValue',
dimensionName: 'dimensionName',
dimensionValueSource: 'dimensionValueSource',
}],
};
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_pinpointemail as pinpointemail
cloud_watch_destination_property = pinpointemail.CfnConfigurationSetEventDestination.CloudWatchDestinationProperty(
dimension_configurations=[pinpointemail.CfnConfigurationSetEventDestination.DimensionConfigurationProperty(
default_dimension_value="defaultDimensionValue",
dimension_name="dimensionName",
dimension_value_source="dimensionValueSource"
)]
)
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.pinpointemail.*;
CloudWatchDestinationProperty cloudWatchDestinationProperty = CloudWatchDestinationProperty.builder()
.dimensionConfigurations(List.of(DimensionConfigurationProperty.builder()
.defaultDimensionValue("defaultDimensionValue")
.dimensionName("dimensionName")
.dimensionValueSource("dimensionValueSource")
.build()))
.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.PinpointEmail;
var cloudWatchDestinationProperty = new CloudWatchDestinationProperty {
DimensionConfigurations = new [] { new DimensionConfigurationProperty {
DefaultDimensionValue = "defaultDimensionValue",
DimensionName = "dimensionName",
DimensionValueSource = "dimensionValueSource"
} }
};
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"
cloudWatchDestinationProperty := &CloudWatchDestinationProperty{
DimensionConfigurations: []interface{}{
&DimensionConfigurationProperty{
DefaultDimensionValue: jsii.String("defaultDimensionValue"),
DimensionName: jsii.String("dimensionName"),
DimensionValueSource: jsii.String("dimensionValueSource"),
},
},
}
Properties
dimensionConfigurationsoptionalIResolvable | IResolvable | CfnConfigurationSetEventDestination.DimensionConfigurationProperty[]dimension_configurationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, DimensionConfigurationProperty]]]dimensionConfigurationsoptionalIResolvableDimensionConfigurationsoptionalIResolvableDimensionConfigurationsoptionalinterface{}#An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch.