CoreDefinitionVersionProperty Struct
A core definition version contains a Greengrass core .
After you create a core definition version that contains the core you want to deploy, you must add it to your group version. For more information, see
AWS::Greengrass::Group.
In an CloudFormation template, CoreDefinitionVersion is the property type of the InitialVersion property in the AWS::Greengrass::CoreDefinition resource.
| Source | |
|---|---|
| Type last changed |
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 coreDefinitionVersionProperty: greengrass.CfnCoreDefinition.CoreDefinitionVersionProperty = {
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
core_definition_version_property = greengrass.CfnCoreDefinition.CoreDefinitionVersionProperty(
cores=[greengrass.CfnCoreDefinition.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.*;
CoreDefinitionVersionProperty coreDefinitionVersionProperty = CoreDefinitionVersionProperty.builder()
.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 coreDefinitionVersionProperty = new CoreDefinitionVersionProperty {
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"
coreDefinitionVersionProperty := &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),
},
},
}
Properties
coresIResolvable | IResolvable | CfnCoreDefinition.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.