Skip to content
v2.278.0

LoggerDefinitionVersionProperty ​

Struct External

A logger definition version contains a list of loggers .

After you create a logger definition version that contains the loggers you want to deploy, you must add it to your group version. For more information, see AWS::Greengrass::Group .

In an CloudFormation template, LoggerDefinitionVersion is the property type of the InitialVersion property in the AWS::Greengrass::LoggerDefinition resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_greengrass as greengrass } from 'aws-cdk-lib';
const loggerDefinitionVersionProperty: greengrass.CfnLoggerDefinition.LoggerDefinitionVersionProperty = {
  loggers: [{
    component: 'component',
    id: 'id',
    level: 'level',
    type: 'type',

    // the properties below are optional
    space: 123,
  }],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_greengrass as greengrass

logger_definition_version_property = greengrass.CfnLoggerDefinition.LoggerDefinitionVersionProperty(
    loggers=[greengrass.CfnLoggerDefinition.LoggerProperty(
        component="component",
        id="id",
        level="level",
        type="type",

        # the properties below are optional
        space=123
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.greengrass.*;

LoggerDefinitionVersionProperty loggerDefinitionVersionProperty = LoggerDefinitionVersionProperty.builder()
        .loggers(List.of(LoggerProperty.builder()
                .component("component")
                .id("id")
                .level("level")
                .type("type")

                // the properties below are optional
                .space(123)
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Greengrass;

var loggerDefinitionVersionProperty = new LoggerDefinitionVersionProperty {
    Loggers = new [] { new LoggerProperty {
        Component = "component",
        Id = "id",
        Level = "level",
        Type = "type",

        // the properties below are optional
        Space = 123
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

loggerDefinitionVersionProperty := &LoggerDefinitionVersionProperty{
	Loggers: []interface{}{
		&LoggerProperty{
			Component: jsii.String("component"),
			Id: jsii.String("id"),
			Level: jsii.String("level"),
			Type: jsii.String("type"),

			// the properties below are optional
			Space: jsii.Number(123),
		},
	},
}

Properties ​

loggersIResolvable | IResolvable | CfnLoggerDefinition.LoggerProperty[]loggerstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, LoggerProperty]]]loggersIResolvableLoggersIResolvableLoggersinterface{} required #
The loggers in this version.