Skip to content
v2.278.0

MetadataSchemaEntryProperty Struct ​

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const metadataSchemaEntryProperty: bedrockagentcore.CfnMemory.MetadataSchemaEntryProperty = {
  key: 'key',

  // the properties below are optional
  extractionConfig: {
    llmExtractionConfig: {
      definition: 'definition',

      // the properties below are optional
      llmExtractionInstruction: 'llmExtractionInstruction',
      validation: {
        numberValidation: {
          maxValue: 123,
          minValue: 123,
        },
        stringListValidation: {
          allowedValues: ['allowedValues'],
          maxItems: 123,
        },
        stringValidation: {
          allowedValues: ['allowedValues'],
        },
      },
    },
  },
  extractionType: 'extractionType',
  type: 'type',
};
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_bedrockagentcore as bedrockagentcore

metadata_schema_entry_property = bedrockagentcore.CfnMemory.MetadataSchemaEntryProperty(
    key="key",

    # the properties below are optional
    extraction_config=bedrockagentcore.CfnMemory.ExtractionConfigProperty(
        llm_extraction_config=bedrockagentcore.CfnMemory.LlmExtractionConfigProperty(
            definition="definition",

            # the properties below are optional
            llm_extraction_instruction="llmExtractionInstruction",
            validation=bedrockagentcore.CfnMemory.ValidationProperty(
                number_validation=bedrockagentcore.CfnMemory.NumberValidationProperty(
                    max_value=123,
                    min_value=123
                ),
                string_list_validation=bedrockagentcore.CfnMemory.StringListValidationProperty(
                    allowed_values=["allowedValues"],
                    max_items=123
                ),
                string_validation=bedrockagentcore.CfnMemory.StringValidationProperty(
                    allowed_values=["allowedValues"]
                )
            )
        )
    ),
    extraction_type="extractionType",
    type="type"
)
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.bedrockagentcore.*;

MetadataSchemaEntryProperty metadataSchemaEntryProperty = MetadataSchemaEntryProperty.builder()
        .key("key")

        // the properties below are optional
        .extractionConfig(ExtractionConfigProperty.builder()
                .llmExtractionConfig(LlmExtractionConfigProperty.builder()
                        .definition("definition")

                        // the properties below are optional
                        .llmExtractionInstruction("llmExtractionInstruction")
                        .validation(ValidationProperty.builder()
                                .numberValidation(NumberValidationProperty.builder()
                                        .maxValue(123)
                                        .minValue(123)
                                        .build())
                                .stringListValidation(StringListValidationProperty.builder()
                                        .allowedValues(List.of("allowedValues"))
                                        .maxItems(123)
                                        .build())
                                .stringValidation(StringValidationProperty.builder()
                                        .allowedValues(List.of("allowedValues"))
                                        .build())
                                .build())
                        .build())
                .build())
        .extractionType("extractionType")
        .type("type")
        .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.BedrockAgentCore;

var metadataSchemaEntryProperty = new MetadataSchemaEntryProperty {
    Key = "key",

    // the properties below are optional
    ExtractionConfig = new ExtractionConfigProperty {
        LlmExtractionConfig = new LlmExtractionConfigProperty {
            Definition = "definition",

            // the properties below are optional
            LlmExtractionInstruction = "llmExtractionInstruction",
            Validation = new ValidationProperty {
                NumberValidation = new NumberValidationProperty {
                    MaxValue = 123,
                    MinValue = 123
                },
                StringListValidation = new StringListValidationProperty {
                    AllowedValues = new [] { "allowedValues" },
                    MaxItems = 123
                },
                StringValidation = new StringValidationProperty {
                    AllowedValues = new [] { "allowedValues" }
                }
            }
        }
    },
    ExtractionType = "extractionType",
    Type = "type"
};
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"

metadataSchemaEntryProperty := &MetadataSchemaEntryProperty{
	Key: jsii.String("key"),

	// the properties below are optional
	ExtractionConfig: &ExtractionConfigProperty{
		LlmExtractionConfig: &LlmExtractionConfigProperty{
			Definition: jsii.String("definition"),

			// the properties below are optional
			LlmExtractionInstruction: jsii.String("llmExtractionInstruction"),
			Validation: &ValidationProperty{
				NumberValidation: &NumberValidationProperty{
					MaxValue: jsii.Number(123),
					MinValue: jsii.Number(123),
				},
				StringListValidation: &StringListValidationProperty{
					AllowedValues: []*string{
						jsii.String("allowedValues"),
					},
					MaxItems: jsii.Number(123),
				},
				StringValidation: &StringValidationProperty{
					AllowedValues: []*string{
						jsii.String("allowedValues"),
					},
				},
			},
		},
	},
	ExtractionType: jsii.String("extractionType"),
	Type: jsii.String("type"),
}

Properties ​

extractionConfigoptionalIResolvable | CfnMemory.ExtractionConfigPropertyextraction_configoptionaltyping.Union[IResolvable, ExtractionConfigProperty]extractionConfigoptionalIResolvableExtractionConfigoptionalIResolvableExtractionConfigoptionalinterface{} #
extractionTypeoptionalstringextraction_typeoptionalstrextractionTypeoptionalStringExtractionTypeoptionalstringExtractionTypeoptional*string #
Specifies whether the metadata value is extracted by the LLM or passed through deterministically from the event.
keystringkeystrkeyStringKeystringKey*string required #
Key name for metadata fields.
typeoptionalstringtypeoptionalstrtypeoptionalStringTypeoptionalstringTypeoptional*string #
Supported data types for metadata values.