# CfnSubscriptionTargetProps

Properties for defining a `CfnSubscriptionTarget`.

Used as props by: [CfnSubscriptionTarget](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_datazone.CfnSubscriptionTarget.html)

- Source: Generated at build time
- Type last changed: v2.174.0 · 4 Jan 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 datazone } from 'aws-cdk-lib';
const cfnSubscriptionTargetProps: datazone.CfnSubscriptionTargetProps = {
  applicableAssetTypes: ['applicableAssetTypes'],
  authorizedPrincipals: ['authorizedPrincipals'],
  domainIdentifier: 'domainIdentifier',
  environmentIdentifier: 'environmentIdentifier',
  name: 'name',
  subscriptionTargetConfig: [{
    content: 'content',
    formName: 'formName',
  }],
  type: 'type',

  // the properties below are optional
  manageAccessRole: 'manageAccessRole',
  provider: 'provider',
};
```

Python:

```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_datazone as datazone

cfn_subscription_target_props = datazone.CfnSubscriptionTargetProps(
    applicable_asset_types=["applicableAssetTypes"],
    authorized_principals=["authorizedPrincipals"],
    domain_identifier="domainIdentifier",
    environment_identifier="environmentIdentifier",
    name="name",
    subscription_target_config=[datazone.CfnSubscriptionTarget.SubscriptionTargetFormProperty(
        content="content",
        form_name="formName"
    )],
    type="type",

    # the properties below are optional
    manage_access_role="manageAccessRole",
    provider="provider"
)
```

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

CfnSubscriptionTargetProps cfnSubscriptionTargetProps = CfnSubscriptionTargetProps.builder()
        .applicableAssetTypes(List.of("applicableAssetTypes"))
        .authorizedPrincipals(List.of("authorizedPrincipals"))
        .domainIdentifier("domainIdentifier")
        .environmentIdentifier("environmentIdentifier")
        .name("name")
        .subscriptionTargetConfig(List.of(SubscriptionTargetFormProperty.builder()
                .content("content")
                .formName("formName")
                .build()))
        .type("type")

        // the properties below are optional
        .manageAccessRole("manageAccessRole")
        .provider("provider")
        .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.AWS.DataZone;

var cfnSubscriptionTargetProps = new CfnSubscriptionTargetProps {
    ApplicableAssetTypes = new [] { "applicableAssetTypes" },
    AuthorizedPrincipals = new [] { "authorizedPrincipals" },
    DomainIdentifier = "domainIdentifier",
    EnvironmentIdentifier = "environmentIdentifier",
    Name = "name",
    SubscriptionTargetConfig = new [] { new SubscriptionTargetFormProperty {
        Content = "content",
        FormName = "formName"
    } },
    Type = "type",

    // the properties below are optional
    ManageAccessRole = "manageAccessRole",
    Provider = "provider"
};
```

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"

cfnSubscriptionTargetProps := &CfnSubscriptionTargetProps{
	ApplicableAssetTypes: []*string{
		jsii.String("applicableAssetTypes"),
	},
	AuthorizedPrincipals: []*string{
		jsii.String("authorizedPrincipals"),
	},
	DomainIdentifier: jsii.String("domainIdentifier"),
	EnvironmentIdentifier: jsii.String("environmentIdentifier"),
	Name: jsii.String("name"),
	SubscriptionTargetConfig: []interface{}{
		&SubscriptionTargetFormProperty{
			Content: jsii.String("content"),
			FormName: jsii.String("formName"),
		},
	},
	Type: jsii.String("type"),

	// the properties below are optional
	ManageAccessRole: jsii.String("manageAccessRole"),
	Provider: jsii.String("provider"),
}
```

## Properties

- `applicableAssetTypes`: string[] (required) — The asset types included in the subscription target.

- `authorizedPrincipals`: string[] (required) — The authorized principals included in the subscription target.

- `domainIdentifier`: string (required) — The ID of the Amazon DataZone domain in which subscription target is created.

- `environmentIdentifier`: string (required) — The ID of the environment in which subscription target is created.

- `manageAccessRole`: string — The manage access role that is used to create the subscription target.

- `name`: string (required) — The name of the subscription target.

- `provider`: string — The provider of the subscription target.

- `subscriptionTargetConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnSubscriptionTarget.SubscriptionTargetFormProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_datazone.CfnSubscriptionTarget.SubscriptionTargetFormProperty.html)[] (required) — The configuration of the subscription target.

- `type`: string (required) — The type of the subscription target.
