# CfnCoreDefinitionProps

Properties for defining a `CfnCoreDefinition`.

Used as props by: [CfnCoreDefinition](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_greengrass.CfnCoreDefinition.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';

declare const tags: any;
const cfnCoreDefinitionProps: greengrass.CfnCoreDefinitionProps = {
  name: 'name',

  // the properties below are optional
  initialVersion: {
    cores: [{
      certificateArn: 'certificateArn',
      id: 'id',
      thingArn: 'thingArn',

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

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

# tags: Any

cfn_core_definition_props = greengrass.CfnCoreDefinitionProps(
    name="name",

    # the properties below are optional
    initial_version=greengrass.CfnCoreDefinition.CoreDefinitionVersionProperty(
        cores=[greengrass.CfnCoreDefinition.CoreProperty(
            certificate_arn="certificateArn",
            id="id",
            thing_arn="thingArn",

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

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

Object tags;

CfnCoreDefinitionProps cfnCoreDefinitionProps = CfnCoreDefinitionProps.builder()
        .name("name")

        // the properties below are optional
        .initialVersion(CoreDefinitionVersionProperty.builder()
                .cores(List.of(CoreProperty.builder()
                        .certificateArn("certificateArn")
                        .id("id")
                        .thingArn("thingArn")

                        // the properties below are optional
                        .syncShadow(false)
                        .build()))
                .build())
        .tags(tags)
        .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 tags;

var cfnCoreDefinitionProps = new CfnCoreDefinitionProps {
    Name = "name",

    // the properties below are optional
    InitialVersion = new CoreDefinitionVersionProperty {
        Cores = new [] { new CoreProperty {
            CertificateArn = "certificateArn",
            Id = "id",
            ThingArn = "thingArn",

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

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"

var tags interface{}

cfnCoreDefinitionProps := &CfnCoreDefinitionProps{
	Name: jsii.String("name"),

	// the properties below are optional
	InitialVersion: &CoreDefinitionVersionProperty{
		Cores: []interface{}{
			&CoreProperty{
				CertificateArn: jsii.String("certificateArn"),
				Id: jsii.String("id"),
				ThingArn: jsii.String("thingArn"),

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

## Properties

- `initialVersion`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCoreDefinition.CoreDefinitionVersionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_greengrass.CfnCoreDefinition.CoreDefinitionVersionProperty.html) — The core definition version to include when the core definition is created.

  Currently, a core definition version can contain only one [`core`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-coredefinition-core.html) .

  > To associate a core definition version after the core definition is created, create an [`AWS::Greengrass::CoreDefinitionVersion`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-coredefinitionversion.html) resource and specify the ID of this core definition.

- `name`: string (required) — The name of the core definition.

- `tags`: any — Application-specific metadata to attach to the core definition.

  You can use tags in IAM policies to control access to AWS IoT Greengrass resources. You can also use tags to categorize your resources. For more information, see [Tagging Your AWS IoT Greengrass Resources](https://docs.aws.amazon.com/greengrass/v1/developerguide/tagging.html) in the *Developer Guide* .

  This `Json` property type is processed as a map of key-value pairs. It uses the following format, which is different from most `Tags` implementations in CloudFormation templates.

  ```json
  "Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value"
  }
  ```
