# CampaignReference

A reference to a Campaign resource.

- Source: Generated at build time
- Type last changed: v2.274.0 · 20 Oct 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `campaignArn`: string (required) — The CampaignArn of the Campaign resource.
