CmdID

CmdID / aws / aws greengrass

aws greengrass list-resource-definition-versions

Lists the versions of a resource definition. AWS CLI reference

1 example 3 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To list the versions of a resource definition

The following list-resource-definition-versions example lists the versions for the specified Greengrass resource.

aws greengrass list-resource-definition-versions --resource-definition-id "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"Identify
--resource-definition-idThe ID of the resource definition.
Its output
{
    "Versions": [
        {
            "Arn": "arn:aws:greengrass:us-west-2:123456789012:/greengrass/definition/resources/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/versions/a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
            "CreationTimestamp": "2019-06-19T16:40:59.392Z",
            "Id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
            "Version": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222"
        },
        {
            "Arn": "arn:aws:greengrass:us-west-2:123456789012:/greengrass/definition/resources/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/versions/a1b2c3d4-5678-90ab-cdef-EXAMPLE33333",
            "CreationTimestamp": "2019-06-19T16:40:59.261Z",
            "Id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
            "Version": "a1b2c3d4-5678-90ab-cdef-EXAMPLE33333"
        }
    ]
}

For more information, see Access local resources with Lambda functions and connectors in the AWS IoT Greengrass Version 1 Developer Guide.

Options

3 in the AWS CLI reference
--max-resultsThe maximum number of results to be returned per request.
--next-tokenThe token for the next set of results, or ''null'' if there are no additional results.
--resource-definition-idThe ID of the resource definition.