# SubscriptionDefinitionVersionProperty

A subscription definition version contains a list of [subscriptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-subscriptiondefinition-subscription.html) .

> After you create a subscription definition version that contains the subscriptions you want to deploy, you must add it to your group version. For more information, see [`AWS::Greengrass::Group`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-group.html) .

In an CloudFormation template, `SubscriptionDefinitionVersion` is the property type of the `InitialVersion` property in the [`AWS::Greengrass::SubscriptionDefinition`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-subscriptiondefinition.html) resource.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_greengrass as greengrass } from 'aws-cdk-lib';
const subscriptionDefinitionVersionProperty: greengrass.CfnSubscriptionDefinition.SubscriptionDefinitionVersionProperty = {
  subscriptions: [{
    id: 'id',
    source: 'source',
    subject: 'subject',
    target: 'target',
  }],
};
```

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_greengrass as greengrass

subscription_definition_version_property = greengrass.CfnSubscriptionDefinition.SubscriptionDefinitionVersionProperty(
    subscriptions=[greengrass.CfnSubscriptionDefinition.SubscriptionProperty(
        id="id",
        source="source",
        subject="subject",
        target="target"
    )]
)
```

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

SubscriptionDefinitionVersionProperty subscriptionDefinitionVersionProperty = SubscriptionDefinitionVersionProperty.builder()
        .subscriptions(List.of(SubscriptionProperty.builder()
                .id("id")
                .source("source")
                .subject("subject")
                .target("target")
                .build()))
        .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.Greengrass;

var subscriptionDefinitionVersionProperty = new SubscriptionDefinitionVersionProperty {
    Subscriptions = new [] { new SubscriptionProperty {
        Id = "id",
        Source = "source",
        Subject = "subject",
        Target = "target"
    } }
};
```

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"

subscriptionDefinitionVersionProperty := &SubscriptionDefinitionVersionProperty{
	Subscriptions: []interface{}{
		&SubscriptionProperty{
			Id: jsii.String("id"),
			Source: jsii.String("source"),
			Subject: jsii.String("subject"),
			Target: jsii.String("target"),
		},
	},
}
```

## Properties

- `subscriptions`: [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) | [CfnSubscriptionDefinition.SubscriptionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_greengrass.CfnSubscriptionDefinition.SubscriptionProperty.html)[] (required) — The subscriptions in this version.
