Class CfnStackPropsMixin.AgentAccessSettingProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.appstream.CfnStackPropsMixin.AgentAccessSettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStackPropsMixin.AgentAccessSettingProperty>
- Enclosing interface:
CfnStackPropsMixin.AgentAccessSettingProperty
@Stability(Stable)
public static final class CfnStackPropsMixin.AgentAccessSettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStackPropsMixin.AgentAccessSettingProperty>
A builder for
CfnStackPropsMixin.AgentAccessSettingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagentAction(String agentAction) Sets the value ofCfnStackPropsMixin.AgentAccessSettingProperty.getAgentAction()build()Builds the configured instance.permission(String permission) Sets the value ofCfnStackPropsMixin.AgentAccessSettingProperty.getPermission()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
agentAction
@Stability(Stable) public CfnStackPropsMixin.AgentAccessSettingProperty.Builder agentAction(String agentAction) Sets the value ofCfnStackPropsMixin.AgentAccessSettingProperty.getAgentAction()- Parameters:
agentAction- The agent action to configure. 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
@Stability(Stable) public CfnStackPropsMixin.AgentAccessSettingProperty.Builder permission(String permission) Sets the value ofCfnStackPropsMixin.AgentAccessSettingProperty.getPermission()- Parameters:
permission- Whether the agent action is enabled or disabled.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnStackPropsMixin.AgentAccessSettingProperty>- Returns:
- a new instance of
CfnStackPropsMixin.AgentAccessSettingProperty - Throws:
NullPointerException- if any required attribute was not provided
-