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_personalize as interfaces_personalize } from 'aws-cdk-lib/interfaces';
const campaignReference: interfaces_personalize.CampaignReference = {
  campaignArn: 'campaignArn',
};
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_personalize as interfaces_personalize

campaign_reference = interfaces_personalize.CampaignReference(
    campaign_arn="campaignArn"
)
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.personalize.*;

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

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

Properties ​

campaignArnstringcampaign_arnstrcampaignArnStringCampaignArnstringCampaignArn*string required #
The CampaignArn of the Campaign resource.