Greengrass / Client / create_logger_definition_version
create_logger_definition_version#
- Greengrass.Client.create_logger_definition_version(**kwargs)#
Creates a version of a logger definition that has already been defined.
See also: AWS API Documentation
Request Syntax
response = client.create_logger_definition_version( AmznClientToken='string', LoggerDefinitionId='string', Loggers=[ { 'Component': 'GreengrassSystem'|'Lambda', 'Id': 'string', 'Level': 'DEBUG'|'INFO'|'WARN'|'ERROR'|'FATAL', 'Space': 123, 'Type': 'FileSystem'|'AWSCloudWatch' }, ] )
- Parameters:
AmznClientToken (string) – A client token used to correlate requests and responses.
LoggerDefinitionId (string) – [REQUIRED] The ID of the logger definition.
Loggers (list) –
A list of loggers.
(dict) – Information about a logger
Component (string) – [REQUIRED] The component that will be subject to logging.
Id (string) – [REQUIRED] A descriptive or arbitrary ID for the logger. This value must be unique within the logger definition version. Max length is 128 characters with pattern ‘’[a-zA-Z0-9:_-]+’’.
Level (string) – [REQUIRED] The level of the logs.
Space (integer) – The amount of file space, in KB, to use if the local file system is used for logging purposes.
Type (string) – [REQUIRED] The type of log output which will be used.
- Return type:
dict
- Returns:
Response Syntax
{ 'Arn': 'string', 'CreationTimestamp': 'string', 'Id': 'string', 'Version': 'string' }
Response Structure
(dict) –
Arn (string) – The ARN of the version.
CreationTimestamp (string) – The time, in milliseconds since the epoch, when the version was created.
Id (string) – The ID of the parent definition that the version is associated with.
Version (string) – The ID of the version.
Exceptions
Greengrass.Client.exceptions.BadRequestException