Menu
AWS Greengrass
API Reference

CreateCoreDefinitionVersion

Creates a version of a core definition that has already been defined. AWS Greengrass Groups must each contain exactly 1 AWS Greengrass Core.

URI: /greengrass/definition/cores/CoreDefinitionId/versions

Operation: POST

Produces: application/json

Parameters:

  • CoreDefinitionId

    The id of the core definition.

    where used: path

    required: true

    type: string

  • CreateCoreDefinitionVersionRequestBody

    Information needed to create a core definition version.

    where used: body

    required: true

    schema:

    CoreDefinitionVersion

    type: object

    Information about a core definition version.

    properties:

    • Cores

      A list of cores in the definition version.

      type: array

      items:
      Core

      type: object

      Information about a core.

      required: Id|ThingArn|CertificateArn

      properties:

      • Id:

        The id of the core.

        type: string

      • ThingArn:

        The thing arn of the core.

        type: string

      • CertificateArn:

        The arn of the certificate associated with the core.

        type: string

      • SyncShadow:

        If true, the core's local shadow state is automatically synced with the cloud.

        type: boolean

    Example:

    Copy
    { "Cores": [ { "Id": "string", "ThingArn": "string", "CertificateArn": "string", "SyncShadow": true } ] }
  • X-Amzn-Client-Token

    A client token used to correlate requests and responses.

    where used: header

    required: false

    type: string

Responses: