CfnAgentProps Struct
Properties for defining a CfnAgent.
| 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 cfnAgentProps: quicksight.CfnAgentProps = {
agentId: 'agentId',
awsAccountId: 'awsAccountId',
name: 'name',
// the properties below are optional
actionConnectors: ['actionConnectors'],
agentLifecycle: 'agentLifecycle',
customPromptInput: {
existingPrompt: {
modelProfileId: 'modelProfileId',
qbsAwsAccountId: 'qbsAwsAccountId',
subscriptionId: 'subscriptionId',
},
newPrompt: {
customInstructions: 'customInstructions',
identity: 'identity',
outputStyle: 'outputStyle',
responseLength: 'responseLength',
tone: 'tone',
},
},
description: 'description',
iconId: 'iconId',
spaces: ['spaces'],
starterPrompts: ['starterPrompts'],
tags: [{
key: 'key',
value: 'value',
}],
welcomeMessage: 'welcomeMessage',
};
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
cfn_agent_props = quicksight.CfnAgentProps(
agent_id="agentId",
aws_account_id="awsAccountId",
name="name",
# the properties below are optional
action_connectors=["actionConnectors"],
agent_lifecycle="agentLifecycle",
custom_prompt_input=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"
)
),
description="description",
icon_id="iconId",
spaces=["spaces"],
starter_prompts=["starterPrompts"],
tags=[quicksight.CfnAgent.AgentTagProperty(
key="key",
value="value"
)],
welcome_message="welcomeMessage"
)
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.*;
CfnAgentProps cfnAgentProps = CfnAgentProps.builder()
.agentId("agentId")
.awsAccountId("awsAccountId")
.name("name")
// the properties below are optional
.actionConnectors(List.of("actionConnectors"))
.agentLifecycle("agentLifecycle")
.customPromptInput(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())
.description("description")
.iconId("iconId")
.spaces(List.of("spaces"))
.starterPrompts(List.of("starterPrompts"))
.tags(List.of(AgentTagProperty.builder()
.key("key")
.value("value")
.build()))
.welcomeMessage("welcomeMessage")
.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 cfnAgentProps = new CfnAgentProps {
AgentId = "agentId",
AwsAccountId = "awsAccountId",
Name = "name",
// the properties below are optional
ActionConnectors = new [] { "actionConnectors" },
AgentLifecycle = "agentLifecycle",
CustomPromptInput = new CustomPromptInputProperty {
ExistingPrompt = new CustomPromptProfileProperty {
ModelProfileId = "modelProfileId",
QbsAwsAccountId = "qbsAwsAccountId",
SubscriptionId = "subscriptionId"
},
NewPrompt = new CustomPromptInputParametersProperty {
CustomInstructions = "customInstructions",
Identity = "identity",
OutputStyle = "outputStyle",
ResponseLength = "responseLength",
Tone = "tone"
}
},
Description = "description",
IconId = "iconId",
Spaces = new [] { "spaces" },
StarterPrompts = new [] { "starterPrompts" },
Tags = new [] { new AgentTagProperty {
Key = "key",
Value = "value"
} },
WelcomeMessage = "welcomeMessage"
};
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"
cfnAgentProps := &CfnAgentProps{
AgentId: jsii.String("agentId"),
AwsAccountId: jsii.String("awsAccountId"),
Name: jsii.String("name"),
// the properties below are optional
ActionConnectors: []*string{
jsii.String("actionConnectors"),
},
AgentLifecycle: jsii.String("agentLifecycle"),
CustomPromptInput: &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"),
},
},
Description: jsii.String("description"),
IconId: jsii.String("iconId"),
Spaces: []*string{
jsii.String("spaces"),
},
StarterPrompts: []*string{
jsii.String("starterPrompts"),
},
Tags: []AgentTagProperty{
&AgentTagProperty{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
WelcomeMessage: jsii.String("welcomeMessage"),
}
Properties
actionConnectorsoptionalstring[]action_connectorsoptionaltyping.List[str]actionConnectorsoptionalList<String>ActionConnectorsoptionalstring[]ActionConnectorsoptional*[]*string #A list of ActionConnector ARNs (max 10) attached to the agent.
The unique identifier for the agent.
agentLifecycleoptionalstringagent_lifecycleoptionalstragentLifecycleoptionalStringAgentLifecycleoptionalstringAgentLifecycleoptional*string #The lifecycle stage of the agent.
PREVIEW or PUBLISHED.
awsAccountIdstringaws_account_idstrawsAccountIdStringAwsAccountIdstringAwsAccountId*string required #The ID of the Amazon Web Services account where the agent is being created.
customPromptInputoptionalIResolvable | CfnAgent.custom_prompt_inputoptionaltyping.Union[IResolvable, CustomPromptInputProperty]customPromptInputoptionalIResolvableCustomPromptInputoptionalIResolvableCustomPromptInputoptionalinterface{} #Custom prompt configuration.
Specify either ExistingPrompt or NewPrompt.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #A description of the agent.
iconIdoptionalstringicon_idoptionalstriconIdoptionalStringIconIdoptionalstringIconIdoptional*string #The icon identifier for the agent.
The display name of the agent.
spacesoptionalstring[]spacesoptionaltyping.List[str]spacesoptionalList<String>Spacesoptionalstring[]Spacesoptional*[]*string #A list of Space ARNs (max 10) attached to the agent.
starterPromptsoptionalstring[]starter_promptsoptionaltyping.List[str]starterPromptsoptionalList<String>StarterPromptsoptionalstring[]StarterPromptsoptional*[]*string #A list of up to 3 starter prompts displayed to users.
tagsoptionalCfnAgent.AgentTagProperty[]tagsoptionaltyping.List[AgentTagProperty]tagsoptionalList<AgentTagProperty>TagsoptionalAgentTagProperty[]Tagsoptional*[]AgentTagProperty #A list of key-value pairs to associate with the agent resource.
welcomeMessageoptionalstringwelcome_messageoptionalstrwelcomeMessageoptionalStringWelcomeMessageoptionalstringWelcomeMessageoptional*string #The welcome message displayed when a user opens the agent.