AWS Greengrass

2020/09/16 - AWS Greengrass - 2 new api methods

Changes  Update greengrass client to latest version

UpdateThingRuntimeConfiguration (new) Link ¶

Updates the runtime configuration of a thing.

See also: AWS API Documentation

Request Syntax

client.update_thing_runtime_configuration(
    TelemetryConfiguration={
        'Telemetry': 'On'|'Off'
    },
    ThingName='string'
)
type TelemetryConfiguration:

dict

param TelemetryConfiguration:

Configuration for telemetry service.

  • Telemetry (string) -- [REQUIRED] Configure telemetry to be on or off.

type ThingName:

string

param ThingName:

[REQUIRED] The thing name.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) -- success

GetThingRuntimeConfiguration (new) Link ¶

Get the runtime configuration of a thing.

See also: AWS API Documentation

Request Syntax

client.get_thing_runtime_configuration(
    ThingName='string'
)
type ThingName:

string

param ThingName:

[REQUIRED] The thing name.

rtype:

dict

returns:

Response Syntax

{
    'RuntimeConfiguration': {
        'TelemetryConfiguration': {
            'ConfigurationSyncStatus': 'InSync'|'OutOfSync',
            'Telemetry': 'On'|'Off'
        }
    }
}

Response Structure

  • (dict) -- Success. The response contains the runtime configuration for the given thing.

    • RuntimeConfiguration (dict) -- Runtime configuration for a thing.

      • TelemetryConfiguration (dict) -- Configuration for telemetry service.

        • ConfigurationSyncStatus (string) -- Synchronization status of the device reported configuration with the desired configuration.

        • Telemetry (string) -- Configure telemetry to be on or off.