Skip to content
v2.278.0

DefinitionProperty Struct ​

The value that you assigned to the parameter.

Example ​

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 definitionProperty: cloudfront.CfnDistribution.DefinitionProperty = {
  stringSchema: {
    required: false,

    // the properties below are optional
    comment: 'comment',
    defaultValue: 'defaultValue',
  },
};
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

definition_property = cloudfront.CfnDistribution.DefinitionProperty(
    string_schema=cloudfront.CfnDistribution.StringSchemaProperty(
        required=False,

        # the properties below are optional
        comment="comment",
        default_value="defaultValue"
    )
)
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.*;

DefinitionProperty definitionProperty = DefinitionProperty.builder()
        .stringSchema(StringSchemaProperty.builder()
                .required(false)

                // the properties below are optional
                .comment("comment")
                .defaultValue("defaultValue")
                .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.CloudFront;

var definitionProperty = new DefinitionProperty {
    StringSchema = new StringSchemaProperty {
        Required = false,

        // the properties below are optional
        Comment = "comment",
        DefaultValue = "defaultValue"
    }
};
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"

definitionProperty := &DefinitionProperty{
	StringSchema: &StringSchemaProperty{
		Required: jsii.Boolean(false),

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

Properties ​

stringSchemaoptionalIResolvable | CfnDistribution.StringSchemaPropertystring_schemaoptionaltyping.Union[IResolvable, StringSchemaProperty]stringSchemaoptionalIResolvableStringSchemaoptionalIResolvableStringSchemaoptionalinterface{} #