Class CfnAgent
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.quicksight.CfnAgent
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IAgentRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)",
date="2026-08-10T14:51:08.174Z")
@Stability(Stable)
public class CfnAgent
extends CfnResource
implements IInspectable, IAgentRef, ITaggableV2
Resource Type definition for AWS::QuickSight::Agent.
Example:
// 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.*;
CfnAgent cfnAgent = CfnAgent.Builder.create(this, "MyCfnAgent")
.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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA key-value pair to associate with the agent resource.static final classA fluent builder forCfnAgent.static interfaceParameters for creating a new custom prompt configuration.static interfaceCustom prompt configuration.static interfaceRead-only view of the resolved custom prompt interface for the agent.static interfaceReference to an existing custom prompt profile.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.quicksight.IAgentRef
IAgentRef.Jsii$Default, IAgentRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnAgent(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAgent(software.amazon.jsii.JsiiObjectRef objRef) CfnAgent(software.constructs.Construct scope, String id, CfnAgentProps props) Create a newAWS::QuickSight::Agent. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForAgent(IAgentRef resource) A list of ActionConnector ARNs (max 10) attached to the agent.The unique identifier for the agent.The lifecycle stage of the agent.A reference to a Agent resource.The current status of the agent.The Amazon Resource Name (ARN) of the agent.The date and time the agent was created.The ARN of the user who created the agent.Read-only view of the resolved custom prompt interface for the agent.The error message if the agent is in FAILED status.The date and time the agent was last updated.The ID of the Amazon Web Services account where the agent is being created.Tag Manager which manages the tags for this resource.Custom prompt configuration.A description of the agent.The icon identifier for the agent.getName()The display name of the agent.A list of Space ARNs (max 10) attached to the agent.A list of up to 3 starter prompts displayed to users.getTags()A list of key-value pairs to associate with the agent resource.The welcome message displayed when a user opens the agent.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanisCfnAgent(Object x) Checks whether the given object is a CfnAgent.renderProperties(Map<String, Object> props) voidsetActionConnectors(List<String> value) A list of ActionConnector ARNs (max 10) attached to the agent.voidsetAgentId(String value) The unique identifier for the agent.voidsetAgentLifecycle(String value) The lifecycle stage of the agent.voidsetAwsAccountId(String value) The ID of the Amazon Web Services account where the agent is being created.voidsetCustomPromptInput(IResolvable value) Custom prompt configuration.voidCustom prompt configuration.voidsetDescription(String value) A description of the agent.voidThe icon identifier for the agent.voidThe display name of the agent.voidA list of Space ARNs (max 10) attached to the agent.voidsetStarterPrompts(List<String> value) A list of up to 3 starter prompts displayed to users.voidsetTags(List<CfnAgent.AgentTagProperty> value) A list of key-value pairs to associate with the agent resource.voidsetWelcomeMessage(String value) The welcome message displayed when a user opens the agent.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnAgent
protected CfnAgent(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAgent
protected CfnAgent(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAgent
@Stability(Stable) public CfnAgent(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnAgentProps props) Create a newAWS::QuickSight::Agent.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForAgent
- Parameters:
resource- This parameter is required.
-
isCfnAgent
Checks whether the given object is a CfnAgent.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAgentRef
A reference to a Agent resource.- Specified by:
getAgentRefin interfaceIAgentRef
-
getAttrAgentStatus
The current status of the agent.One of ACTIVE, CREATING, UPDATING, or FAILED.
-
getAttrArn
The Amazon Resource Name (ARN) of the agent. -
getAttrCreatedAt
The date and time the agent was created. -
getAttrCreator
The ARN of the user who created the agent. -
getAttrCustomPromptInterface
Read-only view of the resolved custom prompt interface for the agent. -
getAttrErrorMessage
The error message if the agent is in FAILED status. -
getAttrUpdatedAt
The date and time the agent was last updated. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getAgentId
The unique identifier for the agent. -
setAgentId
The unique identifier for the agent. -
getAwsAccountId
The ID of the Amazon Web Services account where the agent is being created. -
setAwsAccountId
The ID of the Amazon Web Services account where the agent is being created. -
getName
The display name of the agent. -
setName
The display name of the agent. -
getActionConnectors
A list of ActionConnector ARNs (max 10) attached to the agent. -
setActionConnectors
A list of ActionConnector ARNs (max 10) attached to the agent. -
getAgentLifecycle
The lifecycle stage of the agent. -
setAgentLifecycle
The lifecycle stage of the agent. -
getCustomPromptInput
Custom prompt configuration.Returns union: either
IResolvableorCfnAgent.CustomPromptInputProperty -
setCustomPromptInput
Custom prompt configuration. -
setCustomPromptInput
@Stability(Stable) public void setCustomPromptInput(@Nullable CfnAgent.CustomPromptInputProperty value) Custom prompt configuration. -
getDescription
A description of the agent. -
setDescription
A description of the agent. -
getIconId
The icon identifier for the agent. -
setIconId
The icon identifier for the agent. -
getSpaces
A list of Space ARNs (max 10) attached to the agent. -
setSpaces
A list of Space ARNs (max 10) attached to the agent. -
getStarterPrompts
A list of up to 3 starter prompts displayed to users. -
setStarterPrompts
A list of up to 3 starter prompts displayed to users. -
getTags
A list of key-value pairs to associate with the agent resource. -
setTags
A list of key-value pairs to associate with the agent resource. -
getWelcomeMessage
The welcome message displayed when a user opens the agent. -
setWelcomeMessage
The welcome message displayed when a user opens the agent.
-