# StringSchemaProperty

- Source: Generated at build time
- Type last changed: v2.194.0 · 2 May 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const stringSchemaProperty: cloudfront.CfnDistribution.StringSchemaProperty = {
  required: false,

  // the properties below are optional
  comment: 'comment',
  defaultValue: 'defaultValue',
};
```

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_cloudfront as cloudfront

string_schema_property = cloudfront.CfnDistribution.StringSchemaProperty(
    required=False,

    # the properties below are optional
    comment="comment",
    default_value="defaultValue"
)
```

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.cloudfront.*;

StringSchemaProperty stringSchemaProperty = StringSchemaProperty.builder()
        .required(false)

        // the properties below are optional
        .comment("comment")
        .defaultValue("defaultValue")
        .build();
```

C# / .NET:

```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.CloudFront;

var stringSchemaProperty = new StringSchemaProperty {
    Required = false,

    // the properties below are optional
    Comment = "comment",
    DefaultValue = "defaultValue"
};
```

Golang:

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

stringSchemaProperty := &StringSchemaProperty{
	Required: jsii.Boolean(false),

	// the properties below are optional
	Comment: jsii.String("comment"),
	DefaultValue: jsii.String("defaultValue"),
}
```

## Properties

- `comment`: string

- `defaultValue`: string

- `required`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required)
