# CoreProperty

A core is an AWS IoT device that runs the AWS IoT Greengrass core software and manages local processes for a Greengrass group.

For more information, see [What Is AWS IoT Greengrass ?](https://docs.aws.amazon.com/greengrass/v1/developerguide/what-is-gg.html) in the *Developer Guide* .

In an CloudFormation template, the `Cores` property of the [`AWS::Greengrass::CoreDefinitionVersion`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-coredefinitionversion.html) resource contains a list of `Core` property types. Currently, the list can contain only one core.

- 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 coreProperty: greengrass.CfnCoreDefinitionVersion.CoreProperty = {
  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

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

CoreProperty coreProperty = CoreProperty.builder()
        .certificateArn("certificateArn")
        .id("id")
        .thingArn("thingArn")

        // the properties below are optional
        .syncShadow(false)
        .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 coreProperty = 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"

coreProperty := &CoreProperty{
	CertificateArn: jsii.String("certificateArn"),
	Id: jsii.String("id"),
	ThingArn: jsii.String("thingArn"),

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

## Properties

- `certificateArn`: string (required) — The ARN of the device certificate for the core.

  This X.509 certificate is used to authenticate the core with AWS IoT and AWS IoT Greengrass services.

- `id`: string (required) — A descriptive or arbitrary ID for the core.

  This value must be unique within the core definition version. Maximum length is 128 characters with pattern `[a-zA-Z0-9:_-]+` .

- `syncShadow`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether the core's local shadow is synced with the cloud automatically.

  The default is false.

- `thingArn`: string (required) — The Amazon Resource Name (ARN) of the core, which is an AWS IoT device (thing).
