CustomPromptInputProperty Struct
Custom prompt configuration.
Specify either ExistingPrompt or NewPrompt.
| 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_quicksight as quicksight } from 'aws-cdk-lib';
const customPromptInputProperty: quicksight.CfnAgent.CustomPromptInputProperty = {
existingPrompt: {
modelProfileId: 'modelProfileId',
qbsAwsAccountId: 'qbsAwsAccountId',
subscriptionId: 'subscriptionId',
},
newPrompt: {
customInstructions: 'customInstructions',
identity: 'identity',
outputStyle: 'outputStyle',
responseLength: 'responseLength',
tone: 'tone',
},
};
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_quicksight as quicksight
custom_prompt_input_property = quicksight.CfnAgent.CustomPromptInputProperty(
existing_prompt=quicksight.CfnAgent.CustomPromptProfileProperty(
model_profile_id="modelProfileId",
qbs_aws_account_id="qbsAwsAccountId",
subscription_id="subscriptionId"
),
new_prompt=quicksight.CfnAgent.CustomPromptInputParametersProperty(
custom_instructions="customInstructions",
identity="identity",
output_style="outputStyle",
response_length="responseLength",
tone="tone"
)
)
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.quicksight.*;
CustomPromptInputProperty customPromptInputProperty = CustomPromptInputProperty.builder()
.existingPrompt(CustomPromptProfileProperty.builder()
.modelProfileId("modelProfileId")
.qbsAwsAccountId("qbsAwsAccountId")
.subscriptionId("subscriptionId")
.build())
.newPrompt(CustomPromptInputParametersProperty.builder()
.customInstructions("customInstructions")
.identity("identity")
.outputStyle("outputStyle")
.responseLength("responseLength")
.tone("tone")
.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.QuickSight;
var customPromptInputProperty = new CustomPromptInputProperty {
ExistingPrompt = new CustomPromptProfileProperty {
ModelProfileId = "modelProfileId",
QbsAwsAccountId = "qbsAwsAccountId",
SubscriptionId = "subscriptionId"
},
NewPrompt = new CustomPromptInputParametersProperty {
CustomInstructions = "customInstructions",
Identity = "identity",
OutputStyle = "outputStyle",
ResponseLength = "responseLength",
Tone = "tone"
}
};
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"
customPromptInputProperty := &CustomPromptInputProperty{
ExistingPrompt: &CustomPromptProfileProperty{
ModelProfileId: jsii.String("modelProfileId"),
QbsAwsAccountId: jsii.String("qbsAwsAccountId"),
SubscriptionId: jsii.String("subscriptionId"),
},
NewPrompt: &CustomPromptInputParametersProperty{
CustomInstructions: jsii.String("customInstructions"),
Identity: jsii.String("identity"),
OutputStyle: jsii.String("outputStyle"),
ResponseLength: jsii.String("responseLength"),
Tone: jsii.String("tone"),
},
}
Properties
existingPromptoptionalIResolvable | CfnAgent.existing_promptoptionaltyping.Union[IResolvable, CustomPromptProfileProperty]existingPromptoptionalIResolvableExistingPromptoptionalIResolvableExistingPromptoptionalinterface{} #Reference to an existing custom prompt profile.
newPromptoptionalIResolvable | CfnAgent.new_promptoptionaltyping.Union[IResolvable, CustomPromptInputParametersProperty]newPromptoptionalIResolvableNewPromptoptionalIResolvableNewPromptoptionalinterface{} #Parameters for creating a new custom prompt configuration.