Class CfnStack.AgentAccessSettingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appstream.CfnStack.AgentAccessSettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStack.AgentAccessSettingProperty>
- Enclosing interface:
CfnStack.AgentAccessSettingProperty
@Stability(Stable)
public static final class CfnStack.AgentAccessSettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStack.AgentAccessSettingProperty>
A builder for
CfnStack.AgentAccessSettingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagentAction(String agentAction) Sets the value ofCfnStack.AgentAccessSettingProperty.getAgentAction()build()Builds the configured instance.permission(String permission) Sets the value ofCfnStack.AgentAccessSettingProperty.getPermission()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
agentAction
@Stability(Stable) public CfnStack.AgentAccessSettingProperty.Builder agentAction(String agentAction) Sets the value ofCfnStack.AgentAccessSettingProperty.getAgentAction()- Parameters:
agentAction- The agent action to configure. This parameter is required. Valid values are COMPUTER_VISION, COMPUTER_INPUT, and FORWARD_MCP_TOOLS. COMPUTER_VISION allows agents to take screenshots of the desktop. COMPUTER_INPUT allows agents to click, type, and scroll on the desktop and requires COMPUTER_VISION to also be enabled. FORWARD_MCP_TOOLS allows agents to interact with applications and the desktop operating system through direct MCP calls rather than using computer use tools. Forwards MCP tools configured on the WorkSpaces application session to the agent.- Returns:
this
-
permission
Sets the value ofCfnStack.AgentAccessSettingProperty.getPermission()- Parameters:
permission- Whether the agent action is enabled or disabled. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnStack.AgentAccessSettingProperty>- Returns:
- a new instance of
CfnStack.AgentAccessSettingProperty - Throws:
NullPointerException- if any required attribute was not provided
-