Skip to content
v2.274.0

PromptFlowNodeSourceConfigurationProperty Struct ​

Contains configurations for a prompt and whether it is from Prompt management or defined inline.

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 promptFlowNodeSourceConfigurationProperty: bedrock.CfnFlowVersion.PromptFlowNodeSourceConfigurationProperty = {
  inline: {
    modelId: 'modelId',
    templateConfiguration: {
      text: {
        text: 'text',

        // the properties below are optional
        inputVariables: [{
          name: 'name',
        }],
      },
    },
    templateType: 'templateType',

    // the properties below are optional
    inferenceConfiguration: {
      text: {
        maxTokens: 123,
        stopSequences: ['stopSequences'],
        temperature: 123,
        topP: 123,
      },
    },
  },
  resource: {
    promptArn: 'promptArn',
  },
};

Properties ​

inlineoptionalIResolvable | CfnFlowVersion.PromptFlowNodeInlineConfigurationPropertyinlineoptionaltyping.Union[IResolvable, PromptFlowNodeInlineConfigurationProperty]inlineoptionalIResolvableInlineoptionalIResolvableInlineoptionalinterface{}#
Contains configurations for a prompt that is defined inline.
resourceoptionalIResolvable | CfnFlowVersion.PromptFlowNodeResourceConfigurationPropertyresourceoptionaltyping.Union[IResolvable, PromptFlowNodeResourceConfigurationProperty]resourceoptionalIResolvableResourceoptionalIResolvableResourceoptionalinterface{}#
Contains configurations for a prompt from Prompt management.