BedrockFoundationModelConfigurationProperty Struct
Settings for a foundation model used to parse documents for a data source.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const bedrockFoundationModelConfigurationProperty: bedrock.CfnDataSource.BedrockFoundationModelConfigurationProperty = {
modelArn: 'modelArn',
// the properties below are optional
parsingModality: 'parsingModality',
parsingPrompt: {
parsingPromptText: 'parsingPromptText',
},
};
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_bedrock as bedrock
bedrock_foundation_model_configuration_property = bedrock.CfnDataSource.BedrockFoundationModelConfigurationProperty(
model_arn="modelArn",
# the properties below are optional
parsing_modality="parsingModality",
parsing_prompt=bedrock.CfnDataSource.ParsingPromptProperty(
parsing_prompt_text="parsingPromptText"
)
)
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.bedrock.*;
BedrockFoundationModelConfigurationProperty bedrockFoundationModelConfigurationProperty = BedrockFoundationModelConfigurationProperty.builder()
.modelArn("modelArn")
// the properties below are optional
.parsingModality("parsingModality")
.parsingPrompt(ParsingPromptProperty.builder()
.parsingPromptText("parsingPromptText")
.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.Bedrock;
var bedrockFoundationModelConfigurationProperty = new BedrockFoundationModelConfigurationProperty {
ModelArn = "modelArn",
// the properties below are optional
ParsingModality = "parsingModality",
ParsingPrompt = new ParsingPromptProperty {
ParsingPromptText = "parsingPromptText"
}
};
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"
bedrockFoundationModelConfigurationProperty := &BedrockFoundationModelConfigurationProperty{
ModelArn: jsii.String("modelArn"),
// the properties below are optional
ParsingModality: jsii.String("parsingModality"),
ParsingPrompt: &ParsingPromptProperty{
ParsingPromptText: jsii.String("parsingPromptText"),
},
}
Properties
The ARN of the foundation model to use for parsing.
parsingModalityoptionalstringparsing_modalityoptionalstrparsingModalityoptionalStringParsingModalityoptionalstringParsingModalityoptional*string #Specifies whether to enable parsing of multimodal data, including both text and/or images.
parsingPromptoptionalIResolvable | CfnDataSource.parsing_promptoptionaltyping.Union[IResolvable, ParsingPromptProperty]parsingPromptoptionalIResolvableParsingPromptoptionalIResolvableParsingPromptoptionalinterface{} #Instructions for interpreting the contents of a document.