CmdID

CmdID / aws / aws greengrass

aws greengrass get-logger-definition-version

Retrieves information about a logger definition version. 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 retrieve information about a version of a logger definition

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

aws greengrass get-logger-definition-version --logger-definition-id "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111" --logger-definition-version-id "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222"Identify
--logger-definition-idThe ID of the logger definition.
--logger-definition-version-idThe ID of the logger definition version.
Its output
{
    "Arn": "arn:aws:greengrass:us-west-2:123456789012:/greengrass/definition/loggers/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/versions/a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
    "CreationTimestamp": "2019-05-08T16:10:13.866Z",
    "Definition": {
        "Loggers": []
    },
    "Id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
    "Version": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222"
}

For more information, see Monitoring with AWS IoT Greengrass logs in the AWS IoT Greengrass Developer Guide.

Options

3 in the AWS CLI reference
--logger-definition-idThe ID of the logger definition.
--logger-definition-version-idThe ID of the logger definition version.
--next-tokenThe token for the next set of results, or ''null'' if there are no additional results.