CfnLoggerDefinitionProps
- class aws_cdk.aws_greengrass.CfnLoggerDefinitionProps(*, name, initial_version=None, tags=None)
Bases:
object
Properties for defining a
CfnLoggerDefinition
.- Parameters:
name (
str
) – The name of the logger definition.initial_version (
Union
[IResolvable
,LoggerDefinitionVersionProperty
,Dict
[str
,Any
],None
]) – The logger definition version to include when the logger definition is created. A logger definition version contains a list of`logger
<https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-loggerdefinition-logger.html>`_ property types. .. epigraph:: To associate a logger definition version after the logger definition is created, create an`AWS::Greengrass::LoggerDefinitionVersion
<https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-loggerdefinitionversion.html>`_ resource and specify the ID of this logger definition.tags (
Optional
[Any
]) – Application-specific metadata to attach to the logger definition. You can use tags in IAM policies to control access to AWS IoT Greengrass resources. You can also use tags to categorize your resources. For more information, see Tagging Your AWS IoT Greengrass Resources in the Developer Guide . ThisJson
property type is processed as a map of key-value pairs. It uses the following format, which is different from mostTags
implementations in AWS CloudFormation templates:: “Tags”: { “KeyName0”: “value”, “KeyName1”: “value”, “KeyName2”: “value” }
- Link:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_greengrass as greengrass # tags: Any cfn_logger_definition_props = greengrass.CfnLoggerDefinitionProps( name="name", # the properties below are optional initial_version=greengrass.CfnLoggerDefinition.LoggerDefinitionVersionProperty( loggers=[greengrass.CfnLoggerDefinition.LoggerProperty( component="component", id="id", level="level", type="type", # the properties below are optional space=123 )] ), tags=tags )
Attributes
- initial_version
The logger definition version to include when the logger definition is created.
A logger definition version contains a list of
`logger
<https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-loggerdefinition-logger.html>`_ property types. .. epigraph:To associate a logger definition version after the logger definition is created, create an ```AWS::Greengrass::LoggerDefinitionVersion`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-loggerdefinitionversion.html>`_ resource and specify the ID of this logger definition.
- name
The name of the logger definition.
- tags
Application-specific metadata to attach to the logger definition.
You can use tags in IAM policies to control access to AWS IoT Greengrass resources. You can also use tags to categorize your resources. For more information, see Tagging Your AWS IoT Greengrass Resources in the Developer Guide .
This
Json
property type is processed as a map of key-value pairs. It uses the following format, which is different from mostTags
implementations in AWS CloudFormation templates:"Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value" }