# SubscriptionTargetReference

A reference to a SubscriptionTarget resource.

- Source: Generated at build time
- Type last changed: v2.224.0 · 13 Nov 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_datazone as interfaces_datazone } from 'aws-cdk-lib/interfaces';
const subscriptionTargetReference: interfaces_datazone.SubscriptionTargetReference = {
  domainId: 'domainId',
  environmentId: 'environmentId',
  subscriptionTargetId: 'subscriptionTargetId',
};
```

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_datazone as interfaces_datazone

subscription_target_reference = interfaces_datazone.SubscriptionTargetReference(
    domain_id="domainId",
    environment_id="environmentId",
    subscription_target_id="subscriptionTargetId"
)
```

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.datazone.*;

SubscriptionTargetReference subscriptionTargetReference = SubscriptionTargetReference.builder()
        .domainId("domainId")
        .environmentId("environmentId")
        .subscriptionTargetId("subscriptionTargetId")
        .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.DataZone;

var subscriptionTargetReference = new SubscriptionTargetReference {
    DomainId = "domainId",
    EnvironmentId = "environmentId",
    SubscriptionTargetId = "subscriptionTargetId"
};
```

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"

subscriptionTargetReference := &SubscriptionTargetReference{
	DomainId: jsii.String("domainId"),
	EnvironmentId: jsii.String("environmentId"),
	SubscriptionTargetId: jsii.String("subscriptionTargetId"),
}
```

## Properties

- `domainId`: string (required) — The DomainId of the SubscriptionTarget resource.

- `environmentId`: string (required) — The EnvironmentId of the SubscriptionTarget resource.

- `subscriptionTargetId`: string (required) — The Id of the SubscriptionTarget resource.
