Skip to content
v2.278.0

CfnCoreDefinitionProps Struct ​

Properties for defining a CfnCoreDefinition.

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';

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

initialVersionoptionalIResolvable | CfnCoreDefinition.CoreDefinitionVersionPropertyinitial_versionoptionaltyping.Union[IResolvable, CoreDefinitionVersionProperty]initialVersionoptionalIResolvableInitialVersionoptionalIResolvableInitialVersionoptionalinterface{} #
The core definition version to include when the core definition is created.
notes

Currently, a core definition version can contain only one core .

To associate a core definition version after the core definition is created, create an AWS::Greengrass::CoreDefinitionVersion resource and specify the ID of this core definition.

namestringnamestrnameStringNamestringName*string required #
The name of the core definition.
tagsoptionalanytagsoptionalAnytagsoptionalObjectTagsoptionalobjectTagsoptionalinterface{} #
Application-specific metadata to attach to the core definition.
notes

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 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"
}