Skip to content
v2.278.0

CampaignReference Struct ​

A reference to a Campaign resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pinpoint as interfaces_pinpoint } from 'aws-cdk-lib/interfaces';
const campaignReference: interfaces_pinpoint.CampaignReference = {
  campaignArn: 'campaignArn',
  campaignId: 'campaignId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_pinpoint as interfaces_pinpoint

campaign_reference = interfaces_pinpoint.CampaignReference(
    campaign_arn="campaignArn",
    campaign_id="campaignId"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.pinpoint.*;

CampaignReference campaignReference = CampaignReference.builder()
        .campaignArn("campaignArn")
        .campaignId("campaignId")
        .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.Interfaces.Pinpoint;

var campaignReference = new CampaignReference {
    CampaignArn = "campaignArn",
    CampaignId = "campaignId"
};
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"

campaignReference := &CampaignReference{
	CampaignArn: jsii.String("campaignArn"),
	CampaignId: jsii.String("campaignId"),
}

Properties ​

campaignArnstringcampaign_arnstrcampaignArnStringCampaignArnstringCampaignArn*string required #
The ARN of the Campaign resource.
campaignIdstringcampaign_idstrcampaignIdStringCampaignIdstringCampaignId*string required #
The CampaignId of the Campaign resource.