Skip to content
v2.278.0

CfnCoreDefinitionVersionProps Struct ​

Properties for defining a CfnCoreDefinitionVersion.

Example ​

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
# 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
// 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();
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
    } }
};
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 ​

coreDefinitionIdstringcore_definition_idstrcoreDefinitionIdStringCoreDefinitionIdstringCoreDefinitionId*string required #
The ID of the core definition associated with this version.

This value is a GUID.

coresIResolvable | IResolvable | CfnCoreDefinitionVersion.CoreProperty[]corestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CoreProperty]]]coresIResolvableCoresIResolvableCoresinterface{} required #
The Greengrass core in this version.

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