# CfnCoreDefinitionVersionProps

Properties for defining a `CfnCoreDefinitionVersion`.

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

- Source: Generated at build time

## 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 cfnCoreDefinitionVersionProps: greengrass.CfnCoreDefinitionVersionProps = {
  coreDefinitionId: 'coreDefinitionId',
  cores: [{
    certificateArn: 'certificateArn',
    id: 'id',
    thingArn: 'thingArn',

    // the properties below are optional
    syncShadow: false,
  }],
};
```

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

cfn_core_definition_version_props = greengrass.CfnCoreDefinitionVersionProps(
    core_definition_id="coreDefinitionId",
    cores=[greengrass.CfnCoreDefinitionVersion.CoreProperty(
        certificate_arn="certificateArn",
        id="id",
        thing_arn="thingArn",

        # the properties below are optional
        sync_shadow=False
    )]
)
```

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

CfnCoreDefinitionVersionProps cfnCoreDefinitionVersionProps = CfnCoreDefinitionVersionProps.builder()
        .coreDefinitionId("coreDefinitionId")
        .cores(List.of(CoreProperty.builder()
                .certificateArn("certificateArn")
                .id("id")
                .thingArn("thingArn")

                // the properties below are optional
                .syncShadow(false)
                .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 cfnCoreDefinitionVersionProps = new CfnCoreDefinitionVersionProps {
    CoreDefinitionId = "coreDefinitionId",
    Cores = new [] { new CoreProperty {
        CertificateArn = "certificateArn",
        Id = "id",
        ThingArn = "thingArn",

        // the properties below are optional
        SyncShadow = false
    } }
};
```

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"

cfnCoreDefinitionVersionProps := &CfnCoreDefinitionVersionProps{
	CoreDefinitionId: jsii.String("coreDefinitionId"),
	Cores: []interface{}{
		&CoreProperty{
			CertificateArn: jsii.String("certificateArn"),
			Id: jsii.String("id"),
			ThingArn: jsii.String("thingArn"),

			// the properties below are optional
			SyncShadow: jsii.Boolean(false),
		},
	},
}
```

## Properties

- `coreDefinitionId`: string (required) — The ID of the core definition associated with this version.

  This value is a GUID.

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

  Currently, the `Cores` property for a core definition version can contain only one core.
