Skip to content
v2.278.0

CfnLoggerDefinitionVersionProps Struct ​

Properties for defining a CfnLoggerDefinitionVersion.

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 cfnLoggerDefinitionVersionProps: greengrass.CfnLoggerDefinitionVersionProps = {
  loggerDefinitionId: 'loggerDefinitionId',
  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

cfn_logger_definition_version_props = greengrass.CfnLoggerDefinitionVersionProps(
    logger_definition_id="loggerDefinitionId",
    loggers=[greengrass.CfnLoggerDefinitionVersion.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.*;

CfnLoggerDefinitionVersionProps cfnLoggerDefinitionVersionProps = CfnLoggerDefinitionVersionProps.builder()
        .loggerDefinitionId("loggerDefinitionId")
        .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 cfnLoggerDefinitionVersionProps = new CfnLoggerDefinitionVersionProps {
    LoggerDefinitionId = "loggerDefinitionId",
    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"

cfnLoggerDefinitionVersionProps := &CfnLoggerDefinitionVersionProps{
	LoggerDefinitionId: jsii.String("loggerDefinitionId"),
	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 ​

loggerDefinitionIdstringlogger_definition_idstrloggerDefinitionIdStringLoggerDefinitionIdstringLoggerDefinitionId*string required #
The ID of the logger definition associated with this version.

This value is a GUID.

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