Skip to content
v2.277.0

TrackingOptionsProperty Struct ​

An object that defines the tracking options for a configuration set.

When you use Amazon Pinpoint to send an email, it contains an invisible image that's used to track when recipients open your email. If your email contains links, those links are changed slightly in order to track when recipients click them.

These images and links include references to a domain operated by AWS . You can optionally configure Amazon Pinpoint to use a domain that you operate for these images and links.

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 trackingOptionsProperty: pinpointemail.CfnConfigurationSet.TrackingOptionsProperty = {
  customRedirectDomain: 'customRedirectDomain',
};
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

tracking_options_property = pinpointemail.CfnConfigurationSet.TrackingOptionsProperty(
    custom_redirect_domain="customRedirectDomain"
)
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.*;

TrackingOptionsProperty trackingOptionsProperty = TrackingOptionsProperty.builder()
        .customRedirectDomain("customRedirectDomain")
        .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 trackingOptionsProperty = new TrackingOptionsProperty {
    CustomRedirectDomain = "customRedirectDomain"
};
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"

trackingOptionsProperty := &TrackingOptionsProperty{
	CustomRedirectDomain: jsii.String("customRedirectDomain"),
}

Properties ​

customRedirectDomainoptionalstringcustom_redirect_domainoptionalstrcustomRedirectDomainoptionalStringCustomRedirectDomainoptionalstringCustomRedirectDomainoptional*string#
The domain that you want to use for tracking open and click events.