CmdID / aws / aws greengrass
aws greengrass list-subscription-definition-versions
Lists the versions of a subscription definition. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To list the versions of a subscription definition
The following list-subscription-definition-versions example lists all versions of the specified subscription. You can use the list-subscription-definitions command to look up the subscription ID.
aws greengrass list-subscription-definition-versions --subscription-definition-id "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"Identify--subscription-definition-idThe ID of the subscription definition.Its output
{
"Versions": [
{
"Arn": "arn:aws:greengrass:us-west-2:123456789012:/greengrass/definition/subscriptions/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/versions/a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
"CreationTimestamp": "2019-06-18T17:03:52.499Z",
"Id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"Version": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222"
},
{
"Arn": "arn:aws:greengrass:us-west-2:123456789012:/greengrass/definition/subscriptions/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/versions/a1b2c3d4-5678-90ab-cdef-EXAMPLE33333",
"CreationTimestamp": "2019-06-18T17:03:52.392Z",
"Id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"Version": "a1b2c3d4-5678-90ab-cdef-EXAMPLE33333"
}
]
}For more information, see Overview of the AWS IoT Greengrass group object model in the AWS IoT Greengrass Version 1 Developer Guide.
Options
--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.--subscription-definition-idThe ID of the subscription definition.