Table Of Contents

Feedback

User Guide

First time using the AWS CLI? See the User Guide for help getting started.

[ aws . greengrass ]

get-core-definition-version

Description

Retrieves information about a core definition version.

See also: AWS API Documentation

See 'aws help' for descriptions of global parameters.

Synopsis

  get-core-definition-version
--core-definition-id <value>
--core-definition-version-id <value>
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]

Options

--core-definition-id (string) The ID of the core definition.

--core-definition-version-id (string) The ID of the core definition version. This value maps to the ''Version'' property of the corresponding ''VersionInformation'' object, which is returned by ''ListCoreDefinitionVersions'' requests. If the version is the last one that was associated with a core definition, the value also maps to the ''LatestVersion'' property of the corresponding ''DefinitionInformation'' object.

--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally.

--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.

See 'aws help' for descriptions of global parameters.

Examples

To retrieve details about a specific version of the Greengrass core definition

The following get-core-definition-version example retrieves information about the specified version of the specified core definition. To retrieve the IDs of all versions of the core definition, use the list-core-definition-versions command. To retrieve the ID of the last version added to the core definition, use the get-core-definition command and check the LatestVersion property.

aws greengrass get-core-definition-version \
    --core-definition-id "c906ed39-a1e3-4822-a981-7b9bd57b4b46"  \
    --core-definition-version-id "42aeeac3-fd9d-4312-a8fd-ffa9404a20e0"

Output:

{
    "Arn": "arn:aws:greengrass:us-west-2:123456789012:/greengrass/definition/cores/c906ed39-a1e3-4822-a981-7b9bd57b4b46/versions/42aeeac3-fd9d-4312-a8fd-ffa9404a20e0",
    "CreationTimestamp": "2019-06-18T16:21:21.351Z",
    "Definition": {
        "Cores": [
            {
                "CertificateArn": "arn:aws:iot:us-west-2:123456789012:cert/928dea7b82331b47c3ff77b0e763fc5e64e2f7c884e6ef391baed9b6b8e21b45",
                "Id": "1a39aac7-0885-4417-91f6-23e4cea6c511",
                "SyncShadow": false,
                "ThingArn": "arn:aws:iot:us-west-2:123456789012:thing/GGGroup4Pi3_Core"
            }
        ]
    },
    "Id": "c906ed39-a1e3-4822-a981-7b9bd57b4b46",
    "Version": "42aeeac3-fd9d-4312-a8fd-ffa9404a20e0"
}

Output

Arn -> (string)

The ARN of the core definition version.

CreationTimestamp -> (string)

The time, in milliseconds since the epoch, when the core definition version was created.

Definition -> (structure)

Information about the core definition version.

Cores -> (list)

A list of cores in the core definition version.

(structure)

Information about a core.

CertificateArn -> (string)

The ARN of the certificate associated with the core.

Id -> (string)

A descriptive or arbitrary ID for the core. This value must be unique within the core definition version. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''.

SyncShadow -> (boolean)

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

ThingArn -> (string)

The ARN of the thing which is the core.

Id -> (string)

The ID of the core definition version.

NextToken -> (string)

The token for the next set of results, or ''null'' if there are no additional results.

Version -> (string)

The version of the core definition version.