# CfnLoggerDefinitionVersionProps

Struct · External

Properties for defining a `CfnLoggerDefinitionVersion`.

Used as props by: [CfnLoggerDefinitionVersion](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_greengrass.CfnLoggerDefinitionVersion.html)

- Source: Generated at build time

## Example

TypeScript:

```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:

```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:

```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();
```

C#:

```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:

```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

- `loggerDefinitionId`: string (required) — The ID of the logger definition associated with this version.

  This value is a GUID.

- `loggers`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnLoggerDefinitionVersion.LoggerProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_greengrass.CfnLoggerDefinitionVersion.LoggerProperty.html)[] (required) — The loggers in this version.
