# ParameterDefinitionProperty

A list of parameter values to add to the resource.

A parameter is specified as a key-value pair. A valid parameter value must exist for any parameter that is marked as required in the multi-tenant distribution.

- 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 parameterDefinitionProperty: cloudfront.CfnDistribution.ParameterDefinitionProperty = {
  definition: {
    stringSchema: {
      required: false,

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

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

parameter_definition_property = cloudfront.CfnDistribution.ParameterDefinitionProperty(
    definition=cloudfront.CfnDistribution.DefinitionProperty(
        string_schema=cloudfront.CfnDistribution.StringSchemaProperty(
            required=False,

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

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

ParameterDefinitionProperty parameterDefinitionProperty = ParameterDefinitionProperty.builder()
        .definition(DefinitionProperty.builder()
                .stringSchema(StringSchemaProperty.builder()
                        .required(false)

                        // the properties below are optional
                        .comment("comment")
                        .defaultValue("defaultValue")
                        .build())
                .build())
        .name("name")
        .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 parameterDefinitionProperty = new ParameterDefinitionProperty {
    Definition = new DefinitionProperty {
        StringSchema = new StringSchemaProperty {
            Required = false,

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

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"

parameterDefinitionProperty := &ParameterDefinitionProperty{
	Definition: &DefinitionProperty{
		StringSchema: &StringSchemaProperty{
			Required: jsii.Boolean(false),

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

## Properties

- `definition`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDistribution.DefinitionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.CfnDistribution.DefinitionProperty.html) (required) — The value that you assigned to the parameter.

- `name`: string (required) — The name of the parameter.
