SDK for PHP V3

Client: Aws\WorkSpaces\WorkSpacesClient
Service ID: workspaces
Version: 2015-04-08

This page describes the parameters and results for the operations of the Amazon WorkSpaces (2015-04-08), and shows how to use the Aws\WorkSpaces\WorkSpacesClient object to call the described operations. This documentation is specific to the 2015-04-08 API version of the service.

Service Description

Amazon WorkSpaces Service

Amazon WorkSpaces enables you to provision virtual, cloud-based Microsoft Windows or Amazon Linux desktops for your users, known as WorkSpaces. WorkSpaces eliminates the need to procure and deploy hardware or install complex software. You can quickly add or remove users as your needs change. Users can access their virtual desktops from multiple devices or web browsers.

This API Reference provides detailed information about the actions, data types, parameters, and errors of the WorkSpaces service. For more information about the supported Amazon Web Services Regions, endpoints, and service quotas of the Amazon WorkSpaces service, see WorkSpaces endpoints and quotas in the Amazon Web Services General Reference.

You can also manage your WorkSpaces resources using the WorkSpaces console, Command Line Interface (CLI), and SDKs. For more information about administering WorkSpaces, see the Amazon WorkSpaces Administration Guide. For more information about using the Amazon WorkSpaces client application or web browser to access provisioned WorkSpaces, see the Amazon WorkSpaces User Guide. For more information about using the CLI to manage your WorkSpaces resources, see the WorkSpaces section of the CLI Reference.

Operation Summary

Each of the following operations can be created from a client using $client->getCommand('CommandName'), where "CommandName" is the name of one of the following operations. Note: a command is a value that encapsulates an operation and the parameters used to create an HTTP request.

You can also create and send a command immediately using the magic methods available on a client object: $client->commandName(/* parameters */). You can send the command asynchronously (returning a promise) by appending the word "Async" to the operation name: $client->commandNameAsync(/* parameters */).

AcceptAccountLinkInvitation ( array $params = [] )
Accepts the account link invitation.
AssociateAccountModels ( array $params = [] )
Adds models from the supported model catalog to your account's model list.
AssociateAgentEnforcedPolicy ( array $params = [] )
Associates an agent-enforced policy with the specified WorkSpace, replacing its current agent-enforced policy.
AssociateConnectionAlias ( array $params = [] )
Associates the specified connection alias with the specified directory to enable cross-Region redirection.
AssociateIpGroups ( array $params = [] )
Associates the specified IP access control group with the specified directory.
AssociateWorkspaceAgenticConnectors ( array $params = [] )
Associates agentic connectors with the specified WorkSpace.
AssociateWorkspaceAgenticContexts ( array $params = [] )
Associates agentic contexts with the specified WorkSpace.
AssociateWorkspaceApplication ( array $params = [] )
Associates the specified application to the specified WorkSpace.
AssociateWorkspaceEnforcedPolicy ( array $params = [] )
Associates a WorkSpace-enforced policy with the specified WorkSpace, replacing its current WorkSpace-enforced policy.
AssociateWorkspaceModels ( array $params = [] )
Associates models with the specified WorkSpace.
AuthorizeIpRules ( array $params = [] )
Adds one or more rules to the specified IP access control group.
BatchGetAgentEnforcedPolicy ( array $params = [] )
Describes the specified agent-enforced policies.
BatchGetAgentRuntime ( array $params = [] )
Describes the specified agent runtimes.
BatchGetAgenticConnector ( array $params = [] )
Describes the specified agentic connectors.
BatchGetAgenticContextMetadata ( array $params = [] )
Describes the specified agentic contexts, without their bodies.
BatchGetAgenticPersonaConfiguration ( array $params = [] )
Describes the specified agentic persona configurations.
BatchGetModel ( array $params = [] )
Describes the specified models from the supported model catalog.
BatchGetWorkspaceEnforcedPolicy ( array $params = [] )
Describes the specified WorkSpace-enforced policies.
CopyWorkspaceImage ( array $params = [] )
Copies the specified image from the specified Region to the current Region.
CreateAccountLinkInvitation ( array $params = [] )
Creates the account link invitation.
CreateAgentEnforcedPolicy ( array $params = [] )
Creates an agent-enforced policy, which the agent on the WorkSpace applies.
CreateAgenticContext ( array $params = [] )
Creates an agentic context, which is Markdown content that the service writes to a file on the WorkSpace for the agent to use.
CreateAgenticPersonaConfiguration ( array $params = [] )
Creates an Amazon WorkSpaces agentic persona configuration with the specified models, connectors, contexts, and enforced policies.
CreateConnectClientAddIn ( array $params = [] )
Creates a client-add-in for Connect Customer within a directory.
CreateConnectionAlias ( array $params = [] )
Creates the specified connection alias for use with cross-Region redirection.
CreateIpGroup ( array $params = [] )
Creates an IP access control group.
CreateStandbyWorkspaces ( array $params = [] )
Creates a standby WorkSpace in a secondary Region.
CreateTags ( array $params = [] )
Creates the specified tags for the specified WorkSpaces resource.
CreateUpdatedWorkspaceImage ( array $params = [] )
Creates a new updated WorkSpace image based on the specified source image.
CreateWorkspaceBundle ( array $params = [] )
Creates the specified WorkSpace bundle.
CreateWorkspaceEnforcedPolicy ( array $params = [] )
Creates a WorkSpace-enforced policy, which the WorkSpace applies.
CreateWorkspaceImage ( array $params = [] )
Creates a new WorkSpace image from an existing WorkSpace.
CreateWorkspaces ( array $params = [] )
Creates one or more WorkSpaces.
CreateWorkspacesPool ( array $params = [] )
End of support notice: On December 31, 2027, Amazon Web Services will end support for Amazon WorkSpaces Pools.
DeleteAccountLinkInvitation ( array $params = [] )
Deletes the account link invitation.
DeleteAgentEnforcedPolicy ( array $params = [] )
Deletes an agent-enforced policy that you created.
DeleteAgenticContext ( array $params = [] )
Deletes an agentic context.
DeleteAgenticPersonaConfiguration ( array $params = [] )
Deletes an agentic persona configuration.
DeleteClientBranding ( array $params = [] )
Deletes customized client branding.
DeleteConnectClientAddIn ( array $params = [] )
Deletes a client-add-in for Connect Customer that is configured within a directory.
DeleteConnectionAlias ( array $params = [] )
Deletes the specified connection alias.
DeleteIpGroup ( array $params = [] )
Deletes the specified IP access control group.
DeleteTags ( array $params = [] )
Deletes the specified tags from the specified WorkSpaces resource.
DeleteWorkspaceBundle ( array $params = [] )
Deletes the specified WorkSpace bundle.
DeleteWorkspaceEnforcedPolicy ( array $params = [] )
Deletes a WorkSpace-enforced policy that you created.
DeleteWorkspaceImage ( array $params = [] )
Deletes the specified image from your account.
DeployWorkspaceApplications ( array $params = [] )
Deploys associated applications to the specified WorkSpace
DeregisterWorkspaceDirectory ( array $params = [] )
Deregisters the specified directory.
DescribeAccount ( array $params = [] )
Retrieves a list that describes the configuration of Bring Your Own License (BYOL) for the specified account.
DescribeAccountModifications ( array $params = [] )
Retrieves a list that describes modifications to the configuration of Bring Your Own License (BYOL) for the specified account.
DescribeApplicationAssociations ( array $params = [] )
Describes the associations between the application and the specified associated resources.
DescribeApplications ( array $params = [] )
Describes the specified applications by filtering based on their compute types, license availability, operating systems, and owners.
DescribeBundleAssociations ( array $params = [] )
Describes the associations between the applications and the specified bundle.
DescribeClientBranding ( array $params = [] )
Describes the specified client branding.
DescribeClientProperties ( array $params = [] )
Retrieves a list that describes one or more specified Amazon WorkSpaces clients.
DescribeConnectClientAddIns ( array $params = [] )
Retrieves a list of Connect Customer client add-ins that have been created.
DescribeConnectionAliasPermissions ( array $params = [] )
Describes the permissions that the owner of a connection alias has granted to another Amazon Web Services account for the specified connection alias.
DescribeConnectionAliases ( array $params = [] )
Retrieves a list that describes the connection aliases used for cross-Region redirection.
DescribeCustomWorkspaceImageImport ( array $params = [] )
Retrieves information about a WorkSpace BYOL image being imported via ImportCustomWorkspaceImage.
DescribeImageAssociations ( array $params = [] )
Describes the associations between the applications and the specified image.
DescribeIpGroups ( array $params = [] )
Describes one or more of your IP access control groups.
DescribeTags ( array $params = [] )
Describes the specified tags for the specified WorkSpaces resource.
DescribeWorkspaceAssociations ( array $params = [] )
Describes the associations betweens applications and the specified WorkSpace.
DescribeWorkspaceBundles ( array $params = [] )
Retrieves a list that describes the available WorkSpace bundles.
DescribeWorkspaceDirectories ( array $params = [] )
Describes the available directories that are registered with Amazon WorkSpaces.
DescribeWorkspaceImagePermissions ( array $params = [] )
Describes the permissions that the owner of an image has granted to other Amazon Web Services accounts for an image.
DescribeWorkspaceImages ( array $params = [] )
Retrieves a list that describes one or more specified images, if the image identifiers are provided.
DescribeWorkspaceSnapshots ( array $params = [] )
Describes the snapshots for the specified WorkSpace.
DescribeWorkspaces ( array $params = [] )
Describes the specified WorkSpaces.
DescribeWorkspacesConnectionStatus ( array $params = [] )
Describes the connection status of the specified WorkSpaces.
DescribeWorkspacesPoolSessions ( array $params = [] )
End of support notice: On December 31, 2027, Amazon Web Services will end support for Amazon WorkSpaces Pools.
DescribeWorkspacesPools ( array $params = [] )
End of support notice: On December 31, 2027, Amazon Web Services will end support for Amazon WorkSpaces Pools.
DisassociateAccountModels ( array $params = [] )
Removes models from your account's model list.
DisassociateConnectionAlias ( array $params = [] )
Disassociates a connection alias from a directory.
DisassociateIpGroups ( array $params = [] )
Disassociates the specified IP access control group from the specified directory.
DisassociateWorkspaceAgenticConnectors ( array $params = [] )
Disassociates agentic connectors from the specified WorkSpace.
DisassociateWorkspaceAgenticContexts ( array $params = [] )
Disassociates agentic contexts from the specified WorkSpace.
DisassociateWorkspaceApplication ( array $params = [] )
Disassociates the specified application from a WorkSpace.
DisassociateWorkspaceModels ( array $params = [] )
Disassociates models from the specified WorkSpace.
GetAccountLink ( array $params = [] )
Retrieves account link information.
GetAgenticAccountSetup ( array $params = [] )
Describes the agentic setup of your account in the current Region.
GetAgenticContext ( array $params = [] )
Describes an agentic context, including its body.
GetAgenticWorkspaceConfiguration ( array $params = [] )
Describes the agentic configuration of the specified WorkSpace, including its models, agent runtime, connectors, contexts, enforced policies, and agent health.
ImportClientBranding ( array $params = [] )
Imports client branding.
ImportCustomWorkspaceImage ( array $params = [] )
Imports the specified Windows 10 or 11 Bring Your Own License (BYOL) image into Amazon WorkSpaces using EC2 Image Builder.
ImportWorkspaceImage ( array $params = [] )
Imports the specified Windows 10 or 11 Bring Your Own License (BYOL) image into Amazon WorkSpaces.
ListAccountLinks ( array $params = [] )
Lists all account links.
ListAccountModels ( array $params = [] )
Lists the models on your account's model list, sorted by model ID.
ListAgentEnforcedPolicies ( array $params = [] )
Lists the agent-enforced policies that you can use, including policies that Amazon owns.
ListAgenticConnectors ( array $params = [] )
Lists the agentic connectors available to your account, with their activation status.
ListAgenticContexts ( array $params = [] )
Lists the agentic contexts in your account.
ListAgenticPersonaConfigurations ( array $params = [] )
Lists the agentic persona configurations in your account.
ListAvailableManagementCidrRanges ( array $params = [] )
Retrieves a list of IP address ranges, specified as IPv4 CIDR blocks, that you can use for the network management interface when you enable Bring Your Own License (BYOL).
ListSupportedModels ( array $params = [] )
Lists the models that you can add to your account's model list, sorted by model ID.
ListWorkspaceEnforcedPolicies ( array $params = [] )
Lists the WorkSpace-enforced policies that you can use, including policies that Amazon owns.
MigrateWorkspace ( array $params = [] )
Migrates a WorkSpace from one operating system or bundle type to another, while retaining the data on the user volume.
ModifyAccount ( array $params = [] )
Modifies the configuration of Bring Your Own License (BYOL) for the specified account.
ModifyCertificateBasedAuthProperties ( array $params = [] )
Modifies the properties of the certificate-based authentication you want to use with your WorkSpaces.
ModifyClientProperties ( array $params = [] )
Modifies the properties of the specified Amazon WorkSpaces clients.
ModifyEndpointEncryptionMode ( array $params = [] )
Modifies the endpoint encryption mode that allows you to configure the specified directory between Standard TLS and FIPS 140-2 validated mode.
ModifySamlProperties ( array $params = [] )
Modifies multiple properties related to SAML 2.
ModifySelfservicePermissions ( array $params = [] )
Modifies the self-service WorkSpace management capabilities for your users.
ModifyStreamingProperties ( array $params = [] )
Modifies the specified streaming properties.
ModifyWorkspaceAccessProperties ( array $params = [] )
Specifies which devices and operating systems users can use to access their WorkSpaces.
ModifyWorkspaceCreationProperties ( array $params = [] )
Modify the default properties used to create WorkSpaces.
ModifyWorkspaceProperties ( array $params = [] )
Modifies the specified WorkSpace properties.
ModifyWorkspaceState ( array $params = [] )
Sets the state of the specified WorkSpace.
RebootWorkspaces ( array $params = [] )
Reboots the specified WorkSpaces.
RebuildWorkspaces ( array $params = [] )
Rebuilds the specified WorkSpace.
RegisterWorkspaceDirectory ( array $params = [] )
Registers the specified directory.
RejectAccountLinkInvitation ( array $params = [] )
Rejects the account link invitation.
RestoreWorkspace ( array $params = [] )
Restores the specified WorkSpace to its last known healthy state.
RevokeIpRules ( array $params = [] )
Removes one or more rules from the specified IP access control group.
StartAgenticAccountSetup ( array $params = [] )
Starts setting up Agentic WorkSpaces for your account in the current Region.
StartWorkspaces ( array $params = [] )
Starts the specified WorkSpaces.
StartWorkspacesPool ( array $params = [] )
End of support notice: On December 31, 2027, Amazon Web Services will end support for Amazon WorkSpaces Pools.
StopWorkspaces ( array $params = [] )
Stops the specified WorkSpaces.
StopWorkspacesPool ( array $params = [] )
End of support notice: On December 31, 2027, Amazon Web Services will end support for Amazon WorkSpaces Pools.
TerminateWorkspaces ( array $params = [] )
Terminates the specified WorkSpaces.
TerminateWorkspacesPool ( array $params = [] )
End of support notice: On December 31, 2027, Amazon Web Services will end support for Amazon WorkSpaces Pools.
TerminateWorkspacesPoolSession ( array $params = [] )
End of support notice: On December 31, 2027, Amazon Web Services will end support for Amazon WorkSpaces Pools.
UpdateAgenticConnectorActivationStatus ( array $params = [] )
Activates or deactivates an agentic connector for your account.
UpdateConnectClientAddIn ( array $params = [] )
Updates a Connect Customer client add-in.
UpdateConnectionAliasPermission ( array $params = [] )
Shares or unshares a connection alias with one account by specifying whether that account has permission to associate the connection alias with a directory.
UpdateRulesOfIpGroup ( array $params = [] )
Replaces the current rules of the specified IP access control group with the specified rules.
UpdateWorkspaceBundle ( array $params = [] )
Updates a WorkSpace bundle with a new image.
UpdateWorkspaceImagePermission ( array $params = [] )
Shares or unshares an image with one account in the same Amazon Web Services Region by specifying whether that account has permission to copy the image.
UpdateWorkspacesPool ( array $params = [] )
End of support notice: On December 31, 2027, Amazon Web Services will end support for Amazon WorkSpaces Pools.

Paginators

Paginators handle automatically iterating over paginated API results. Paginators are associated with specific API operations, and they accept the parameters that the corresponding API operation accepts. You can get a paginator from a client class using getPaginator($paginatorName, $operationParameters). This client supports the following paginators:

DescribeApplicationAssociations
DescribeApplications
DescribeWorkspaceBundles
DescribeWorkspaceDirectories
DescribeWorkspaces
ListAccountLinks
ListAccountModels
ListAgentEnforcedPolicies
ListAgenticConnectors
ListAgenticContexts
ListAgenticPersonaConfigurations
ListSupportedModels
ListWorkspaceEnforcedPolicies

Operations

AcceptAccountLinkInvitation

$result = $client->acceptAccountLinkInvitation([/* ... */]);
$promise = $client->acceptAccountLinkInvitationAsync([/* ... */]);

Accepts the account link invitation.

There's currently no unlinking capability after you accept the account linking invitation.

Parameter Syntax

$result = $client->acceptAccountLinkInvitation([
    'ClientToken' => '<string>',
    'LinkId' => '<string>', // REQUIRED
]);

Parameter Details

Members
ClientToken
Type: string

A string of up to 64 ASCII characters that Amazon WorkSpaces uses to ensure idempotent creation.

LinkId
Required: Yes
Type: string

The identifier of the account link.

Result Syntax

[
    'AccountLink' => [
        'AccountLinkId' => '<string>',
        'AccountLinkStatus' => 'LINKED|LINKING_FAILED|LINK_NOT_FOUND|PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT|REJECTED',
        'SourceAccountId' => '<string>',
        'TargetAccountId' => '<string>',
    ],
]

Result Details

Members
AccountLink
Type: AccountLink structure

Information about the account link.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

ResourceNotFoundException:

The resource could not be found.

AccessDeniedException:

The user is not authorized to access a resource.

ConflictException:

The request conflicts with the current state of a resource, for example because a name is already in use or the resource is still in use. Resolve the conflict, and then retry your request.

InternalServerException:

An unexpected server error occurred. Retry your request.

AssociateAccountModels

$result = $client->associateAccountModels([/* ... */]);
$promise = $client->associateAccountModelsAsync([/* ... */]);

Adds models from the supported model catalog to your account's model list. The operation ignores models that are already on the list. You can specify up to 25 models in a request. If a model isn't in the supported model catalog, the operation returns an error. If the request would exceed the maximum number of models on your account's model list, the operation returns ServiceQuotaExceededException.

Parameter Syntax

$result = $client->associateAccountModels([
    'ModelIds' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
ModelIds
Required: Yes
Type: Array of strings

The identifiers of the models to add to your account's model list.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

ResourceNotFoundException:

The resource could not be found.

ConflictException:

The request conflicts with the current state of a resource, for example because a name is already in use or the resource is still in use. Resolve the conflict, and then retry your request.

ServiceQuotaExceededException:

The request would exceed a service quota. Request a quota increase or reduce the number of resources in your request.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Adding models to an account's model list

The following example adds three models to the account's model list.

$result = $client->associateAccountModels([
    'ModelIds' => [
        'anthropic.claude-sonnet-5-5',
        'anthropic.claude-opus-5-5',
        'anthropic.claude-haiku-5-5',
    ],
]);

Result syntax:

[
]

AssociateAgentEnforcedPolicy

$result = $client->associateAgentEnforcedPolicy([/* ... */]);
$promise = $client->associateAgentEnforcedPolicyAsync([/* ... */]);

Associates an agent-enforced policy with the specified WorkSpace, replacing its current agent-enforced policy. If the WorkSpace can't apply the policy, the policy stays associated and the operation returns PolicyApplyFailedException. If the WorkSpace is in a state that doesn't allow the change, the policy is being deleted, or another request changed the WorkSpace's agent-enforced policy at the same time, the operation returns ConflictException.

Parameter Syntax

$result = $client->associateAgentEnforcedPolicy([
    'PolicyId' => '<string>', // REQUIRED
    'WorkspaceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
PolicyId
Required: Yes
Type: string

The identifier of the policy.

WorkspaceId
Required: Yes
Type: string

The identifier of the WorkSpace.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

ResourceNotFoundException:

The resource could not be found.

ConflictException:

The request conflicts with the current state of a resource, for example because a name is already in use or the resource is still in use. Resolve the conflict, and then retry your request.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

PolicyApplyFailedException:

The service associated the enforced policy, but it couldn't apply it: the WorkSpace or its agent rejected it, or the service couldn't deliver it to the WorkSpace. Don't retry. Fix the policy and associate it again. To see why, call GetAgenticWorkspaceConfiguration.

Examples

Example 1: Example – Applying an agent-enforced policy to a WorkSpace

The following example applies an agent-enforced policy to a WorkSpace.

$result = $client->associateAgentEnforcedPolicy([
    'PolicyId' => 'wsae-a1b2c3d4',
    'WorkspaceId' => 'ws-dk1example1',
]);

Result syntax:

[
]

AssociateConnectionAlias

$result = $client->associateConnectionAlias([/* ... */]);
$promise = $client->associateConnectionAliasAsync([/* ... */]);

Associates the specified connection alias with the specified directory to enable cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces.

Before performing this operation, call DescribeConnectionAliases to make sure that the current state of the connection alias is CREATED.

Parameter Syntax

$result = $client->associateConnectionAlias([
    'AliasId' => '<string>', // REQUIRED
    'ResourceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
AliasId
Required: Yes
Type: string

The identifier of the connection alias.

ResourceId
Required: Yes
Type: string

The identifier of the directory to associate the connection alias with.

Result Syntax

[
    'ConnectionIdentifier' => '<string>',
]

Result Details

Members
ConnectionIdentifier
Type: string

The identifier of the connection alias association. You use the connection identifier in the DNS TXT record when you're configuring your DNS routing policies.

Errors

ResourceAssociatedException:

The resource is associated with a directory.

AccessDeniedException:

The user is not authorized to access a resource.

ResourceNotFoundException:

The resource could not be found.

InvalidParameterValuesException:

One or more parameter values are not valid.

InvalidResourceStateException:

The state of the resource is not valid for this operation.

OperationNotSupportedException:

This operation is not supported.

AssociateIpGroups

$result = $client->associateIpGroups([/* ... */]);
$promise = $client->associateIpGroupsAsync([/* ... */]);

Associates the specified IP access control group with the specified directory.

Parameter Syntax

$result = $client->associateIpGroups([
    'DirectoryId' => '<string>', // REQUIRED
    'GroupIds' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
DirectoryId
Required: Yes
Type: string

The identifier of the directory.

GroupIds
Required: Yes
Type: Array of strings

The identifiers of one or more IP access control groups.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

ResourceLimitExceededException:

Your resource limits have been exceeded.

InvalidResourceStateException:

The state of the resource is not valid for this operation.

AccessDeniedException:

The user is not authorized to access a resource.

OperationNotSupportedException:

This operation is not supported.

AssociateWorkspaceAgenticConnectors

$result = $client->associateWorkspaceAgenticConnectors([/* ... */]);
$promise = $client->associateWorkspaceAgenticConnectorsAsync([/* ... */]);

Associates agentic connectors with the specified WorkSpace. The operation ignores connectors that are already associated with the WorkSpace. The connectors must be activated for your account. To activate a connector, call UpdateAgenticConnectorActivationStatus. A WorkSpace can have up to 25 connectors. If the request would exceed this limit, the operation returns ServiceQuotaExceededException.

Parameter Syntax

$result = $client->associateWorkspaceAgenticConnectors([
    'AgenticConnectorIds' => ['<string>', ...], // REQUIRED
    'WorkspaceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
AgenticConnectorIds
Required: Yes
Type: Array of strings

The identifiers of the connectors to associate.

WorkspaceId
Required: Yes
Type: string

The identifier of the WorkSpace.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

ResourceNotFoundException:

The resource could not be found.

ConflictException:

The request conflicts with the current state of a resource, for example because a name is already in use or the resource is still in use. Resolve the conflict, and then retry your request.

ServiceQuotaExceededException:

The request would exceed a service quota. Request a quota increase or reduce the number of resources in your request.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Adding a connector to a WorkSpace

The following example adds an activated connector to an agentic WorkSpace.

$result = $client->associateWorkspaceAgenticConnectors([
    'AgenticConnectorIds' => [
        'wsacn-jira',
    ],
    'WorkspaceId' => 'ws-dk1example1',
]);

Result syntax:

[
]

AssociateWorkspaceAgenticContexts

$result = $client->associateWorkspaceAgenticContexts([/* ... */]);
$promise = $client->associateWorkspaceAgenticContextsAsync([/* ... */]);

Associates agentic contexts with the specified WorkSpace. The operation ignores contexts that are already associated with the WorkSpace. A WorkSpace can have up to 50 contexts. If the request would exceed this limit, the operation returns ServiceQuotaExceededException.

Parameter Syntax

$result = $client->associateWorkspaceAgenticContexts([
    'AgenticContextIds' => ['<string>', ...], // REQUIRED
    'WorkspaceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
AgenticContextIds
Required: Yes
Type: Array of strings

The identifiers of the contexts to associate.

WorkspaceId
Required: Yes
Type: string

The identifier of the WorkSpace.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

ResourceNotFoundException:

The resource could not be found.

ConflictException:

The request conflicts with the current state of a resource, for example because a name is already in use or the resource is still in use. Resolve the conflict, and then retry your request.

ServiceQuotaExceededException:

The request would exceed a service quota. Request a quota increase or reduce the number of resources in your request.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Adding a context to a WorkSpace

The following example adds a context to an agentic WorkSpace.

$result = $client->associateWorkspaceAgenticContexts([
    'AgenticContextIds' => [
        'wsactx-e5f6g7h8',
    ],
    'WorkspaceId' => 'ws-dk1example1',
]);

Result syntax:

[
]

AssociateWorkspaceApplication

$result = $client->associateWorkspaceApplication([/* ... */]);
$promise = $client->associateWorkspaceApplicationAsync([/* ... */]);

Associates the specified application to the specified WorkSpace.

Parameter Syntax

$result = $client->associateWorkspaceApplication([
    'ApplicationId' => '<string>', // REQUIRED
    'WorkspaceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
ApplicationId
Required: Yes
Type: string

The identifier of the application.

WorkspaceId
Required: Yes
Type: string

The identifier of the WorkSpace.

Result Syntax

[
    'Association' => [
        'AssociatedResourceId' => '<string>',
        'AssociatedResourceType' => 'APPLICATION',
        'Created' => <DateTime>,
        'LastUpdatedTime' => <DateTime>,
        'State' => 'PENDING_INSTALL|PENDING_INSTALL_DEPLOYMENT|PENDING_UNINSTALL|PENDING_UNINSTALL_DEPLOYMENT|INSTALLING|UNINSTALLING|ERROR|COMPLETED|REMOVED',
        'StateReason' => [
            'ErrorCode' => 'ValidationError.InsufficientDiskSpace|ValidationError.InsufficientMemory|ValidationError.UnsupportedOperatingSystem|DeploymentError.InternalServerError|DeploymentError.WorkspaceUnreachable|ValidationError.ApplicationOldVersionExists',
            'ErrorMessage' => '<string>',
        ],
        'WorkspaceId' => '<string>',
    ],
]

Result Details

Members
Association

Information about the association between the specified WorkSpace and the specified application.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

OperationNotSupportedException:

This operation is not supported.

ResourceAlreadyExistsException:

The specified resource already exists.

ResourceInUseException:

The specified resource is currently in use.

ResourceNotFoundException:

The resource could not be found.

ComputeNotCompatibleException:

The compute type of the WorkSpace is not compatible with the application.

OperatingSystemNotCompatibleException:

The operating system of the WorkSpace is not compatible with the application.

ApplicationNotSupportedException:

The specified application is not supported.

IncompatibleApplicationsException:

The specified application is not compatible with the resource.

AssociateWorkspaceEnforcedPolicy

$result = $client->associateWorkspaceEnforcedPolicy([/* ... */]);
$promise = $client->associateWorkspaceEnforcedPolicyAsync([/* ... */]);

Associates a WorkSpace-enforced policy with the specified WorkSpace, replacing its current WorkSpace-enforced policy. If the WorkSpace can't apply the policy, the policy stays associated and the operation returns PolicyApplyFailedException. If the WorkSpace is in a state that doesn't allow the change, the policy is being deleted, or another request changed the WorkSpace's WorkSpace-enforced policy at the same time, the operation returns ConflictException.

Parameter Syntax

$result = $client->associateWorkspaceEnforcedPolicy([
    'PolicyId' => '<string>', // REQUIRED
    'WorkspaceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
PolicyId
Required: Yes
Type: string

The identifier of the policy.

WorkspaceId
Required: Yes
Type: string

The identifier of the WorkSpace.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

ResourceNotFoundException:

The resource could not be found.

ConflictException:

The request conflicts with the current state of a resource, for example because a name is already in use or the resource is still in use. Resolve the conflict, and then retry your request.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

PolicyApplyFailedException:

The service associated the enforced policy, but it couldn't apply it: the WorkSpace or its agent rejected it, or the service couldn't deliver it to the WorkSpace. Don't retry. Fix the policy and associate it again. To see why, call GetAgenticWorkspaceConfiguration.

Examples

Example 1: Example – Applying a WorkSpace-enforced policy to a WorkSpace

The following example applies a WorkSpace-enforced policy to a WorkSpace.

$result = $client->associateWorkspaceEnforcedPolicy([
    'PolicyId' => 'wsep-a1b2c3d4',
    'WorkspaceId' => 'ws-dk1example1',
]);

Result syntax:

[
]

AssociateWorkspaceModels

$result = $client->associateWorkspaceModels([/* ... */]);
$promise = $client->associateWorkspaceModelsAsync([/* ... */]);

Associates models with the specified WorkSpace. The models must be on your account's model list. The operation ignores models that are already associated with the WorkSpace. A WorkSpace can have up to 25 models. If the request would exceed this limit, the operation returns ServiceQuotaExceededException.

Parameter Syntax

$result = $client->associateWorkspaceModels([
    'ModelIds' => ['<string>', ...], // REQUIRED
    'WorkspaceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
ModelIds
Required: Yes
Type: Array of strings

The identifiers of the models to associate.

WorkspaceId
Required: Yes
Type: string

The identifier of the WorkSpace.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

ResourceNotFoundException:

The resource could not be found.

ConflictException:

The request conflicts with the current state of a resource, for example because a name is already in use or the resource is still in use. Resolve the conflict, and then retry your request.

ServiceQuotaExceededException:

The request would exceed a service quota. Request a quota increase or reduce the number of resources in your request.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Adding a model to a WorkSpace

The following example adds a model to an agentic WorkSpace. The model must already be on your account's model list. To add it, call AssociateAccountModels.

$result = $client->associateWorkspaceModels([
    'ModelIds' => [
        'anthropic.claude-opus-5-5',
    ],
    'WorkspaceId' => 'ws-dk1example1',
]);

Result syntax:

[
]

AuthorizeIpRules

$result = $client->authorizeIpRules([/* ... */]);
$promise = $client->authorizeIpRulesAsync([/* ... */]);

Adds one or more rules to the specified IP access control group.

This action gives users permission to access their WorkSpaces from the CIDR address ranges specified in the rules.

Parameter Syntax

$result = $client->authorizeIpRules([
    'GroupId' => '<string>', // REQUIRED
    'UserRules' => [ // REQUIRED
        [
            'ipRule' => '<string>',
            'ruleDesc' => '<string>',
        ],
        // ...
    ],
]);

Parameter Details

Members
GroupId
Required: Yes
Type: string

The identifier of the group.

UserRules
Required: Yes
Type: Array of IpRuleItem structures

The rules to add to the group.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

ResourceLimitExceededException:

Your resource limits have been exceeded.

InvalidResourceStateException:

The state of the resource is not valid for this operation.

AccessDeniedException:

The user is not authorized to access a resource.

BatchGetAgentEnforcedPolicy

$result = $client->batchGetAgentEnforcedPolicy([/* ... */]);
$promise = $client->batchGetAgentEnforcedPolicyAsync([/* ... */]);

Describes the specified agent-enforced policies.

Parameter Syntax

$result = $client->batchGetAgentEnforcedPolicy([
    'PolicyIds' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
PolicyIds
Required: Yes
Type: Array of strings

The identifiers of the policies to describe. If you specify an identifier more than once, the response includes it only once.

Result Syntax

[
    'Errors' => [
        [
            'ErrorCode' => 'NOT_FOUND',
            'Message' => '<string>',
            'PolicyId' => '<string>',
        ],
        // ...
    ],
    'Policies' => [
        [
            'CreatedAt' => <DateTime>,
            'Id' => '<string>',
            'Name' => '<string>',
            'Owner' => 'SELF|AMAZON',
            'PolicyBody' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
Errors
Required: Yes
Type: Array of AgentEnforcedPolicyError structures

The identifiers that the service couldn't return, with the reason for each.

Policies
Required: Yes
Type: Array of AgentEnforcedPolicy structures

The policies.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Getting an agent-enforced policy

The following example gets an agent-enforced policy, including its policy document.

$result = $client->batchGetAgentEnforcedPolicy([
    'PolicyIds' => [
        'wsae-a1b2c3d4',
    ],
]);

Result syntax:

[
    'Errors' => [
    ],
    'Policies' => [
        [
            'CreatedAt' => ,
            'Id' => 'wsae-a1b2c3d4',
            'Name' => 'no-user-extensions',
            'Owner' => 'SELF',
            'PolicyBody' => '{"allowUserExtensions":false}',
        ],
    ],
]

BatchGetAgentRuntime

$result = $client->batchGetAgentRuntime([/* ... */]);
$promise = $client->batchGetAgentRuntimeAsync([/* ... */]);

Describes the specified agent runtimes.

Parameter Syntax

$result = $client->batchGetAgentRuntime([
    'AgentRuntimeIds' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
AgentRuntimeIds
Required: Yes
Type: Array of strings

The identifiers of the agent runtimes to describe. If you specify an identifier more than once, the response includes it only once.

Result Syntax

[
    'AgentRuntimes' => [
        [
            'Id' => '<string>',
            'Name' => '<string>',
        ],
        // ...
    ],
    'Errors' => [
        [
            'AgentRuntimeId' => '<string>',
            'ErrorCode' => 'NOT_FOUND',
            'Message' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
AgentRuntimes
Required: Yes
Type: Array of AgentRuntime structures

The agent runtimes.

Errors
Required: Yes
Type: Array of AgentRuntimeError structures

The identifiers that the service couldn't return, with the reason for each.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Getting details for an agent runtime

The following example gets the name of an agent runtime.

$result = $client->batchGetAgentRuntime([
    'AgentRuntimeIds' => [
        'wsart-claudecode',
    ],
]);

Result syntax:

[
    'AgentRuntimes' => [
        [
            'Id' => 'wsart-claudecode',
            'Name' => 'Claude Code',
        ],
    ],
    'Errors' => [
    ],
]

BatchGetAgenticConnector

$result = $client->batchGetAgenticConnector([/* ... */]);
$promise = $client->batchGetAgenticConnectorAsync([/* ... */]);

Describes the specified agentic connectors.

Parameter Syntax

$result = $client->batchGetAgenticConnector([
    'AgenticConnectorIds' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
AgenticConnectorIds
Required: Yes
Type: Array of strings

The identifiers of the connectors to describe. If you specify an identifier more than once, the response includes it only once.

Result Syntax

[
    'Connectors' => [
        [
            'ActivationStatus' => 'ACTIVATED|DEACTIVATED|PENDING|PENDING_DELETE|ACTIVATION_ERROR|DEACTIVATION_ERROR',
            'AllowedTools' => ['<string>', ...],
            'ApiKeySecretArn' => '<string>',
            'Args' => ['<string>', ...],
            'AuthType' => 'OAUTH|API_KEY|NONE',
            'BlockedTools' => ['<string>', ...],
            'Command' => '<string>',
            'CreatedAt' => <DateTime>,
            'Description' => '<string>',
            'Id' => '<string>',
            'Name' => '<string>',
            'OAuthConfig' => [
                'AuthorizationUrl' => '<string>',
                'ClientId' => '<string>',
                'ClientSecretArn' => '<string>',
                'Scopes' => ['<string>', ...],
                'TokenUrl' => '<string>',
            ],
            'ServerType' => 'HOSTED|LOCAL',
            'UpdatedAt' => <DateTime>,
            'Url' => '<string>',
        ],
        // ...
    ],
    'Errors' => [
        [
            'AgenticConnectorId' => '<string>',
            'ErrorCode' => 'NOT_FOUND',
            'Message' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
Connectors
Required: Yes
Type: Array of AgenticConnector structures

The connectors.

Errors
Required: Yes
Type: Array of AgenticConnectorError structures

The identifiers that the service couldn't return, with the reason for each.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Getting details for a connector

The following example gets the configuration of a connector.

$result = $client->batchGetAgenticConnector([
    'AgenticConnectorIds' => [
        'wsacn-github',
    ],
]);

Result syntax:

[
    'Connectors' => [
        [
            'ActivationStatus' => 'ACTIVATED',
            'AuthType' => 'OAUTH',
            'CreatedAt' => ,
            'Description' => 'Repositories, issues and pull requests on github.com.',
            'Id' => 'wsacn-github',
            'Name' => 'github',
            'ServerType' => 'HOSTED',
            'UpdatedAt' => ,
            'Url' => 'https://api.githubcopilot.com/mcp/',
        ],
    ],
    'Errors' => [
    ],
]

BatchGetAgenticContextMetadata

$result = $client->batchGetAgenticContextMetadata([/* ... */]);
$promise = $client->batchGetAgenticContextMetadataAsync([/* ... */]);

Describes the specified agentic contexts, without their bodies. To get the body of a context, call GetAgenticContext. If you don't have permission to describe any one of the specified contexts, the operation returns AccessDeniedException and no results.

Parameter Syntax

$result = $client->batchGetAgenticContextMetadata([
    'AgenticContextIds' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
AgenticContextIds
Required: Yes
Type: Array of strings

The identifiers of the contexts to describe. If you specify an identifier more than once, the response includes it only once.

Result Syntax

[
    'AgenticContextMetadata' => [
        [
            'ContextBodySizeBytes' => <integer>,
            'ContextType' => 'STEERING|SKILL|WORKFLOW',
            'CreatedAt' => <DateTime>,
            'Description' => '<string>',
            'Id' => '<string>',
            'Name' => '<string>',
            'TargetFilePath' => '<string>',
            'UpdatedAt' => <DateTime>,
        ],
        // ...
    ],
    'Errors' => [
        [
            'AgenticContextId' => '<string>',
            'ErrorCode' => 'NOT_FOUND',
            'Message' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
AgenticContextMetadata
Required: Yes
Type: Array of AgenticContextMetadata structures

The agentic context metadata.

Errors
Required: Yes
Type: Array of AgenticContextError structures

The identifiers that the service couldn't return, with the reason for each.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Getting metadata for several contexts

The following example gets the metadata, without the body, of two contexts.

$result = $client->batchGetAgenticContextMetadata([
    'AgenticContextIds' => [
        'wsactx-a1b2c3d4',
        'wsactx-e5f6g7h8',
    ],
]);

Result syntax:

[
    'AgenticContextMetadata' => [
        [
            'ContextBodySizeBytes' => 54,
            'ContextType' => 'STEERING',
            'CreatedAt' => ,
            'Id' => 'wsactx-a1b2c3d4',
            'Name' => 'coding-standards',
            'TargetFilePath' => 'coding-standards.md',
            'UpdatedAt' => ,
        ],
        [
            'ContextBodySizeBytes' => 1024,
            'ContextType' => 'WORKFLOW',
            'CreatedAt' => ,
            'Id' => 'wsactx-e5f6g7h8',
            'Name' => 'release-checklist',
            'TargetFilePath' => 'release-checklist.md',
            'UpdatedAt' => ,
        ],
    ],
    'Errors' => [
    ],
]

BatchGetAgenticPersonaConfiguration

$result = $client->batchGetAgenticPersonaConfiguration([/* ... */]);
$promise = $client->batchGetAgenticPersonaConfigurationAsync([/* ... */]);

Describes the specified agentic persona configurations. If you don't have permission to describe any one of the specified persona configurations, the operation returns AccessDeniedException and no results.

Parameter Syntax

$result = $client->batchGetAgenticPersonaConfiguration([
    'AgenticPersonaConfigurationIds' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
AgenticPersonaConfigurationIds
Required: Yes
Type: Array of strings

The identifiers of the persona configurations to describe. If you specify an identifier more than once, the response includes it only once.

Result Syntax

[
    'AgenticPersonaConfigurations' => [
        [
            'AgentEnforcedPolicyId' => '<string>',
            'AgentRuntimeId' => '<string>',
            'AgenticConnectorIds' => ['<string>', ...],
            'AgenticContextIds' => ['<string>', ...],
            'CreatedAt' => <DateTime>,
            'Description' => '<string>',
            'Id' => '<string>',
            'ModelIds' => ['<string>', ...],
            'Name' => '<string>',
            'WorkspaceEnforcedPolicyId' => '<string>',
        ],
        // ...
    ],
    'Errors' => [
        [
            'AgenticPersonaConfigurationId' => '<string>',
            'ErrorCode' => 'NOT_FOUND',
            'Message' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
AgenticPersonaConfigurations
Required: Yes
Type: Array of AgenticPersonaConfiguration structures

The agentic persona configurations.

Errors
Required: Yes
Type: Array of AgenticPersonaConfigurationError structures

The identifiers that the service couldn't return, with the reason for each.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Getting a persona configuration

The following example gets a persona configuration.

$result = $client->batchGetAgenticPersonaConfiguration([
    'AgenticPersonaConfigurationIds' => [
        'wsapc-a1b2c3d4',
    ],
]);

Result syntax:

[
    'AgenticPersonaConfigurations' => [
        [
            'AgentEnforcedPolicyId' => 'wsae-a1b2c3d4',
            'AgentRuntimeId' => 'wsart-claudecode',
            'AgenticConnectorIds' => [
                'wsacn-github',
            ],
            'AgenticContextIds' => [
                'wsactx-a1b2c3d4',
            ],
            'CreatedAt' => ,
            'Description' => 'Persona for backend developers.',
            'Id' => 'wsapc-a1b2c3d4',
            'ModelIds' => [
                'anthropic.claude-sonnet-5-5',
                'anthropic.claude-opus-5-5',
            ],
            'Name' => 'backend-developer',
            'WorkspaceEnforcedPolicyId' => 'wsep-a1b2c3d4',
        ],
    ],
    'Errors' => [
    ],
]

BatchGetModel

$result = $client->batchGetModel([/* ... */]);
$promise = $client->batchGetModelAsync([/* ... */]);

Describes the specified models from the supported model catalog.

Parameter Syntax

$result = $client->batchGetModel([
    'ModelIds' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
ModelIds
Required: Yes
Type: Array of strings

The identifiers of the models to describe. If you specify an identifier more than once, the response includes it only once.

Result Syntax

[
    'Errors' => [
        [
            'ErrorCode' => 'NOT_FOUND',
            'Message' => '<string>',
            'ModelId' => '<string>',
        ],
        // ...
    ],
    'Models' => [
        [
            'ModelId' => '<string>',
            'Name' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
Errors
Required: Yes
Type: Array of ModelError structures

The identifiers that the service couldn't return, with the reason for each.

Models
Required: Yes
Type: Array of Model structures

The models.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Getting details for several models

The following example gets two models. The second model ID doesn't exist, so it's returned in Errors.

$result = $client->batchGetModel([
    'ModelIds' => [
        'anthropic.claude-sonnet-5-5',
        'example.unknown-model',
    ],
]);

Result syntax:

[
    'Errors' => [
        [
            'ErrorCode' => 'NOT_FOUND',
            'Message' => 'The model example.unknown-model was not found.',
            'ModelId' => 'example.unknown-model',
        ],
    ],
    'Models' => [
        [
            'ModelId' => 'anthropic.claude-sonnet-5-5',
            'Name' => 'Claude Sonnet 5.5',
        ],
    ],
]

BatchGetWorkspaceEnforcedPolicy

$result = $client->batchGetWorkspaceEnforcedPolicy([/* ... */]);
$promise = $client->batchGetWorkspaceEnforcedPolicyAsync([/* ... */]);

Describes the specified WorkSpace-enforced policies.

Parameter Syntax

$result = $client->batchGetWorkspaceEnforcedPolicy([
    'PolicyIds' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
PolicyIds
Required: Yes
Type: Array of strings

The identifiers of the policies to describe. If you specify an identifier more than once, the response includes it only once.

Result Syntax

[
    'Errors' => [
        [
            'ErrorCode' => 'NOT_FOUND',
            'Message' => '<string>',
            'PolicyId' => '<string>',
        ],
        // ...
    ],
    'Policies' => [
        [
            'CreatedAt' => <DateTime>,
            'Id' => '<string>',
            'Name' => '<string>',
            'Owner' => 'SELF|AMAZON',
            'PolicyBody' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
Errors
Required: Yes
Type: Array of WorkspaceEnforcedPolicyError structures

The identifiers that the service couldn't return, with the reason for each.

Policies
Required: Yes
Type: Array of WorkspaceEnforcedPolicy structures

The policies.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Getting a WorkSpace-enforced policy

The following example gets a WorkSpace-enforced policy, including its policy document.

$result = $client->batchGetWorkspaceEnforcedPolicy([
    'PolicyIds' => [
        'wsep-a1b2c3d4',
    ],
]);

Result syntax:

[
    'Errors' => [
    ],
    'Policies' => [
        [
            'CreatedAt' => ,
            'Id' => 'wsep-a1b2c3d4',
            'Name' => 'default-network',
            'Owner' => 'SELF',
            'PolicyBody' => '{"disableInternetAccess":false,"deniedPaths":[]}',
        ],
    ],
]

CopyWorkspaceImage

$result = $client->copyWorkspaceImage([/* ... */]);
$promise = $client->copyWorkspaceImageAsync([/* ... */]);

Copies the specified image from the specified Region to the current Region. For more information about copying images, see Copy a Custom WorkSpaces Image.

In the China (Ningxia) Region, you can copy images only within the same Region.

In Amazon Web Services GovCloud (US), to copy images to and from other Regions, contact Amazon Web Services Support.

Before copying a shared image, be sure to verify that it has been shared from the correct Amazon Web Services account. To determine if an image has been shared and to see the ID of the Amazon Web Services account that owns an image, use the DescribeWorkSpaceImages and DescribeWorkspaceImagePermissions API operations.

Parameter Syntax

$result = $client->copyWorkspaceImage([
    'Description' => '<string>',
    'Name' => '<string>', // REQUIRED
    'SourceImageId' => '<string>', // REQUIRED
    'SourceRegion' => '<string>', // REQUIRED
    'Tags' => [
        [
            'Key' => '<string>', // REQUIRED
            'Value' => '<string>',
        ],
        // ...
    ],
]);

Parameter Details

Members
Description
Type: string

A description of the image.

Name
Required: Yes
Type: string

The name of the image.

SourceImageId
Required: Yes
Type: string

The identifier of the source image.

SourceRegion
Required: Yes
Type: string

The identifier of the source Region.

Tags
Type: Array of Tag structures

The tags for the image.

Result Syntax

[
    'ImageId' => '<string>',
]

Result Details

Members
ImageId
Type: string

The identifier of the image.

Errors

ResourceLimitExceededException:

Your resource limits have been exceeded.

ResourceAlreadyExistsException:

The specified resource already exists.

ResourceNotFoundException:

The resource could not be found.

ResourceUnavailableException:

The specified resource is not available.

OperationNotSupportedException:

This operation is not supported.

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

CreateAccountLinkInvitation

$result = $client->createAccountLinkInvitation([/* ... */]);
$promise = $client->createAccountLinkInvitationAsync([/* ... */]);

Creates the account link invitation.

Parameter Syntax

$result = $client->createAccountLinkInvitation([
    'ClientToken' => '<string>',
    'TargetAccountId' => '<string>', // REQUIRED
]);

Parameter Details

Members
ClientToken
Type: string

A string of up to 64 ASCII characters that Amazon WorkSpaces uses to ensure idempotent creation.

TargetAccountId
Required: Yes
Type: string

The identifier of the target account.

Result Syntax

[
    'AccountLink' => [
        'AccountLinkId' => '<string>',
        'AccountLinkStatus' => 'LINKED|LINKING_FAILED|LINK_NOT_FOUND|PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT|REJECTED',
        'SourceAccountId' => '<string>',
        'TargetAccountId' => '<string>',
    ],
]

Result Details

Members
AccountLink
Type: AccountLink structure

Information about the account link.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

AccessDeniedException:

The user is not authorized to access a resource.

ConflictException:

The request conflicts with the current state of a resource, for example because a name is already in use or the resource is still in use. Resolve the conflict, and then retry your request.

InternalServerException:

An unexpected server error occurred. Retry your request.

CreateAgentEnforcedPolicy

$result = $client->createAgentEnforcedPolicy([/* ... */]);
$promise = $client->createAgentEnforcedPolicyAsync([/* ... */]);

Creates an agent-enforced policy, which the agent on the WorkSpace applies. The name must be unique among the agent-enforced policies in your account. If it isn't, the operation returns ConflictException, and its ResourceId identifies the existing policy. If your account would exceed its maximum number of agent-enforced policies, the operation returns ServiceQuotaExceededException.

Parameter Syntax

$result = $client->createAgentEnforcedPolicy([
    'ClientToken' => '<string>',
    'Name' => '<string>', // REQUIRED
    'PolicyBody' => '<string>', // REQUIRED
    'Tags' => [
        [
            'Key' => '<string>', // REQUIRED
            'Value' => '<string>',
        ],
        // ...
    ],
]);

Parameter Details

Members
ClientToken
Type: string

A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If this token matches a previous request with the same parameters, the service returns the result of that request and doesn't create another agent-enforced policy.

If you reuse the token with different parameters, the operation returns ValidationException. If you deleted the policy created with this token, the operation returns ConflictException.

Name
Required: Yes
Type: string

The name of the agent-enforced policy.

PolicyBody
Required: Yes
Type: string

Specifies the policy document, in JSON format, that defines the enforced policy. It can be up to 65,536 characters long and can't contain control characters other than tab, line feed, and carriage return.

Tags
Type: Array of Tag structures

The tags to add to the agent-enforced policy. Each tag key can appear only once.

Result Syntax

[
    'PolicySummary' => [
        'CreatedAt' => <DateTime>,
        'Id' => '<string>',
        'Name' => '<string>',
        'Owner' => 'SELF|AMAZON',
    ],
]

Result Details

Members
PolicySummary
Required: Yes
Type: AgentEnforcedPolicySummary structure

Summary information about the new policy. The response doesn't include the policy document.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

ConflictException:

The request conflicts with the current state of a resource, for example because a name is already in use or the resource is still in use. Resolve the conflict, and then retry your request.

ServiceQuotaExceededException:

The request would exceed a service quota. Request a quota increase or reduce the number of resources in your request.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Creating an agent-enforced policy

The following example creates an agent-enforced policy that blocks user-installed extensions.

$result = $client->createAgentEnforcedPolicy([
    'ClientToken' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'Name' => 'no-user-extensions',
    'PolicyBody' => '{"allowUserExtensions":false}',
]);

Result syntax:

[
    'PolicySummary' => [
        'CreatedAt' => ,
        'Id' => 'wsae-a1b2c3d4',
        'Name' => 'no-user-extensions',
        'Owner' => 'SELF',
    ],
]

CreateAgenticContext

$result = $client->createAgenticContext([/* ... */]);
$promise = $client->createAgenticContextAsync([/* ... */]);

Creates an agentic context, which is Markdown content that the service writes to a file on the WorkSpace for the agent to use. The name must be unique among the contexts in your account. If it isn't, the operation returns ConflictException, and its ResourceId identifies the existing context. If the tags would exceed the limit of 50 tags per resource, the operation returns ServiceQuotaExceededException.

Parameter Syntax

$result = $client->createAgenticContext([
    'ClientToken' => '<string>',
    'ContextBody' => '<string>',
    'ContextType' => 'STEERING|SKILL|WORKFLOW', // REQUIRED
    'Description' => '<string>',
    'Name' => '<string>', // REQUIRED
    'Tags' => [
        [
            'Key' => '<string>', // REQUIRED
            'Value' => '<string>',
        ],
        // ...
    ],
    'TargetFilePath' => '<string>', // REQUIRED
]);

Parameter Details

Members
ClientToken
Type: string

A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If this token matches a previous request with the same parameters, the service returns the result of that request and doesn't create another context.

If you reuse the token with different parameters, the operation returns ValidationException. If you deleted the context created with this token, the operation returns ResourceNotFoundException.

ContextBody
Type: string

The Markdown content of the context, up to 1 MiB of UTF-8 text. Currently, you must specify this field.

ContextType
Required: Yes
Type: string

The type of the context. Valid values:

  • STEERING – Guidance that shapes how the agent behaves.

  • SKILL – A reusable capability that the agent can use.

  • WORKFLOW – A multi-step procedure that the agent follows.

Description
Type: string

The description of the context.

Name
Required: Yes
Type: string

The name of the context.

Tags
Type: Array of Tag structures

The tags to add to the context. Each tag key can appear only once.

TargetFilePath
Required: Yes
Type: string

The name of the Markdown file that the context is written to on the WorkSpace, for example code-review.md. This is a file name, not a path. It can contain letters, digits, periods (.), underscores (_), and hyphens (-), can be 1–255 characters long, and can't be . or ...

Result Syntax

[
    'AgenticContextId' => '<string>',
]

Result Details

Members
AgenticContextId
Required: Yes
Type: string

The identifier of the context.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

ConflictException:

The request conflicts with the current state of a resource, for example because a name is already in use or the resource is still in use. Resolve the conflict, and then retry your request.

ServiceQuotaExceededException:

The request would exceed a service quota. Request a quota increase or reduce the number of resources in your request.

ResourceNotFoundException:

The resource could not be found.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Creating a steering context

The following example creates a steering context that agents read from the file coding-standards.md.

$result = $client->createAgenticContext([
    'ClientToken' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'ContextBody' => '# Coding standardsWrite unit tests for every change.',
    'ContextType' => 'STEERING',
    'Description' => 'Team coding standards for agents.',
    'Name' => 'coding-standards',
    'Tags' => [
        [
            'Key' => 'team',
            'Value' => 'platform',
        ],
    ],
    'TargetFilePath' => 'coding-standards.md',
]);

Result syntax:

[
    'AgenticContextId' => 'wsactx-a1b2c3d4',
]

CreateAgenticPersonaConfiguration

$result = $client->createAgenticPersonaConfiguration([/* ... */]);
$promise = $client->createAgenticPersonaConfigurationAsync([/* ... */]);

Creates an Amazon WorkSpaces agentic persona configuration with the specified models, connectors, contexts, and enforced policies. The name must be unique among the persona configurations in your account.

If the name is in use, the operation returns ConflictException, and its ResourceId identifies the existing persona configuration. If you exceed the persona or tag limit, it returns ServiceQuotaExceededException.

Parameter Syntax

$result = $client->createAgenticPersonaConfiguration([
    'AgentEnforcedPolicyId' => '<string>',
    'AgenticConnectorIds' => ['<string>', ...],
    'AgenticContextIds' => ['<string>', ...],
    'ClientToken' => '<string>',
    'Description' => '<string>',
    'ModelIds' => ['<string>', ...], // REQUIRED
    'Name' => '<string>', // REQUIRED
    'Tags' => [
        [
            'Key' => '<string>', // REQUIRED
            'Value' => '<string>',
        ],
        // ...
    ],
    'WorkspaceEnforcedPolicyId' => '<string>',
]);

Parameter Details

Members
AgentEnforcedPolicyId
Type: string

The identifier of the agent-enforced policy to apply to WorkSpaces created with this configuration.

AgenticConnectorIds
Type: Array of strings

The identifiers of the connectors to add to WorkSpaces created with this configuration. The connectors must be activated for your account.

AgenticContextIds
Type: Array of strings

The identifiers of the contexts to add to WorkSpaces created with this configuration.

ClientToken
Type: string

A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If this token matches a previous request with the same parameters, the service returns the result of that request and doesn't create another persona configuration.

If you reuse the token with different parameters, the operation returns ValidationException. If you deleted the persona configuration created with this token, the operation returns ResourceNotFoundException.

Description
Type: string

The description of the persona configuration.

ModelIds
Required: Yes
Type: Array of strings

The identifiers of the models that WorkSpaces created with this configuration can use. Specify 1–25 models. The models must be on your account's model list.

Name
Required: Yes
Type: string

The name of the persona configuration.

Tags
Type: Array of Tag structures

The tags to add to the persona configuration.

WorkspaceEnforcedPolicyId
Type: string

The identifier of the WorkSpace-enforced policy to apply to WorkSpaces created with this configuration.

Result Syntax

[
    'AgenticPersonaConfigurationId' => '<string>',
]

Result Details

Members
AgenticPersonaConfigurationId
Required: Yes
Type: string

The identifier of the persona configuration.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

ResourceNotFoundException:

The resource could not be found.

ConflictException:

The request conflicts with the current state of a resource, for example because a name is already in use or the resource is still in use. Resolve the conflict, and then retry your request.

ServiceQuotaExceededException:

The request would exceed a service quota. Request a quota increase or reduce the number of resources in your request.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Creating a persona configuration

The following example creates a persona configuration with two models, a connector, a context, and both enforced policies.

$result = $client->createAgenticPersonaConfiguration([
    'AgentEnforcedPolicyId' => 'wsae-a1b2c3d4',
    'AgenticConnectorIds' => [
        'wsacn-github',
    ],
    'AgenticContextIds' => [
        'wsactx-a1b2c3d4',
    ],
    'ClientToken' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'Description' => 'Persona for backend developers.',
    'ModelIds' => [
        'anthropic.claude-sonnet-5-5',
        'anthropic.claude-opus-5-5',
    ],
    'Name' => 'backend-developer',
    'Tags' => [
        [
            'Key' => 'team',
            'Value' => 'platform',
        ],
    ],
    'WorkspaceEnforcedPolicyId' => 'wsep-a1b2c3d4',
]);

Result syntax:

[
    'AgenticPersonaConfigurationId' => 'wsapc-a1b2c3d4',
]

CreateConnectClientAddIn

$result = $client->createConnectClientAddIn([/* ... */]);
$promise = $client->createConnectClientAddInAsync([/* ... */]);

Creates a client-add-in for Connect Customer within a directory. You can create only one Connect Customer client add-in within a directory.

This client add-in allows WorkSpaces users to seamlessly connect to Connect Customer.

Parameter Syntax

$result = $client->createConnectClientAddIn([
    'Name' => '<string>', // REQUIRED
    'ResourceId' => '<string>', // REQUIRED
    'URL' => '<string>', // REQUIRED
]);

Parameter Details

Members
Name
Required: Yes
Type: string

The name of the client add-in.

ResourceId
Required: Yes
Type: string

The directory identifier for which to configure the client add-in.

URL
Required: Yes
Type: string

The endpoint URL of the Connect Customer client add-in.

Result Syntax

[
    'AddInId' => '<string>',
]

Result Details

Members
AddInId
Type: string

The client add-in identifier.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

ResourceCreationFailedException:

The resource could not be created.

ResourceAlreadyExistsException:

The specified resource already exists.

AccessDeniedException:

The user is not authorized to access a resource.

CreateConnectionAlias

$result = $client->createConnectionAlias([/* ... */]);
$promise = $client->createConnectionAliasAsync([/* ... */]);

Creates the specified connection alias for use with cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces.

Parameter Syntax

$result = $client->createConnectionAlias([
    'ConnectionString' => '<string>', // REQUIRED
    'Tags' => [
        [
            'Key' => '<string>', // REQUIRED
            'Value' => '<string>',
        ],
        // ...
    ],
]);

Parameter Details

Members
ConnectionString
Required: Yes
Type: string

A connection string in the form of a fully qualified domain name (FQDN), such as www.example.com.

After you create a connection string, it is always associated to your Amazon Web Services account. You cannot recreate the same connection string with a different account, even if you delete all instances of it from the original account. The connection string is globally reserved for your account.

Tags
Type: Array of Tag structures

The tags to associate with the connection alias.

Result Syntax

[
    'AliasId' => '<string>',
]

Result Details

Members
AliasId
Type: string

The identifier of the connection alias.

Errors

ResourceAlreadyExistsException:

The specified resource already exists.

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceLimitExceededException:

Your resource limits have been exceeded.

InvalidResourceStateException:

The state of the resource is not valid for this operation.

OperationNotSupportedException:

This operation is not supported.

CreateIpGroup

$result = $client->createIpGroup([/* ... */]);
$promise = $client->createIpGroupAsync([/* ... */]);

Creates an IP access control group.

An IP access control group provides you with the ability to control the IP addresses from which users are allowed to access their WorkSpaces. To specify the CIDR address ranges, add rules to your IP access control group and then associate the group with your directory. You can add rules when you create the group or at any time using AuthorizeIpRules.

There is a default IP access control group associated with your directory. If you don't associate an IP access control group with your directory, the default group is used. The default group includes a default rule that allows users to access their WorkSpaces from anywhere. You cannot modify the default IP access control group for your directory.

Parameter Syntax

$result = $client->createIpGroup([
    'GroupDesc' => '<string>',
    'GroupName' => '<string>', // REQUIRED
    'Tags' => [
        [
            'Key' => '<string>', // REQUIRED
            'Value' => '<string>',
        ],
        // ...
    ],
    'UserRules' => [
        [
            'ipRule' => '<string>',
            'ruleDesc' => '<string>',
        ],
        // ...
    ],
]);

Parameter Details

Members
GroupDesc
Type: string

The description of the group.

GroupName
Required: Yes
Type: string

The name of the group.

Tags
Type: Array of Tag structures

The tags. Each WorkSpaces resource can have a maximum of 50 tags.

UserRules
Type: Array of IpRuleItem structures

The rules to add to the group.

Result Syntax

[
    'GroupId' => '<string>',
]

Result Details

Members
GroupId
Type: string

The identifier of the group.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceLimitExceededException:

Your resource limits have been exceeded.

ResourceAlreadyExistsException:

The specified resource already exists.

ResourceCreationFailedException:

The resource could not be created.

AccessDeniedException:

The user is not authorized to access a resource.

CreateStandbyWorkspaces

$result = $client->createStandbyWorkspaces([/* ... */]);
$promise = $client->createStandbyWorkspacesAsync([/* ... */]);

Creates a standby WorkSpace in a secondary Region.

Parameter Syntax

$result = $client->createStandbyWorkspaces([
    'PrimaryRegion' => '<string>', // REQUIRED
    'StandbyWorkspaces' => [ // REQUIRED
        [
            'DataReplication' => 'NO_REPLICATION|PRIMARY_AS_SOURCE',
            'DirectoryId' => '<string>', // REQUIRED
            'PrimaryWorkspaceId' => '<string>', // REQUIRED
            'Tags' => [
                [
                    'Key' => '<string>', // REQUIRED
                    'Value' => '<string>',
                ],
                // ...
            ],
            'VolumeEncryptionKey' => '<string>',
        ],
        // ...
    ],
]);

Parameter Details

Members
PrimaryRegion
Required: Yes
Type: string

The Region of the primary WorkSpace.

StandbyWorkspaces
Required: Yes
Type: Array of StandbyWorkspace structures

Information about the standby WorkSpace to be created.

Result Syntax

[
    'FailedStandbyRequests' => [
        [
            'ErrorCode' => '<string>',
            'ErrorMessage' => '<string>',
            'StandbyWorkspaceRequest' => [
                'DataReplication' => 'NO_REPLICATION|PRIMARY_AS_SOURCE',
                'DirectoryId' => '<string>',
                'PrimaryWorkspaceId' => '<string>',
                'Tags' => [
                    [
                        'Key' => '<string>',
                        'Value' => '<string>',
                    ],
                    // ...
                ],
                'VolumeEncryptionKey' => '<string>',
            ],
        ],
        // ...
    ],
    'PendingStandbyRequests' => [
        [
            'DirectoryId' => '<string>',
            'State' => 'PENDING|AVAILABLE|IMPAIRED|UNHEALTHY|REBOOTING|STARTING|REBUILDING|RESTORING|MAINTENANCE|ADMIN_MAINTENANCE|TERMINATING|TERMINATED|SUSPENDED|UPDATING|STOPPING|STOPPED|ERROR',
            'UserName' => '<string>',
            'WorkspaceId' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
FailedStandbyRequests
Type: Array of FailedCreateStandbyWorkspacesRequest structures

Information about the standby WorkSpace that could not be created.

PendingStandbyRequests
Type: Array of PendingCreateStandbyWorkspacesRequest structures

Information about the standby WorkSpace that was created.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

OperationNotSupportedException:

This operation is not supported.

ResourceNotFoundException:

The resource could not be found.

ResourceLimitExceededException:

Your resource limits have been exceeded.

CreateTags

$result = $client->createTags([/* ... */]);
$promise = $client->createTagsAsync([/* ... */]);

Creates the specified tags for the specified WorkSpaces resource.

Parameter Syntax

$result = $client->createTags([
    'ResourceId' => '<string>', // REQUIRED
    'Tags' => [ // REQUIRED
        [
            'Key' => '<string>', // REQUIRED
            'Value' => '<string>',
        ],
        // ...
    ],
]);

Parameter Details

Members
ResourceId
Required: Yes
Type: string

The identifier of the WorkSpaces resource. The supported resource types are WorkSpaces, registered directories, images, custom bundles, IP access control groups, connection aliases, agentic persona configurations, agentic contexts (Markdown content files for agents), WorkSpace-enforced policies, and agent-enforced policies.

Tags
Required: Yes
Type: Array of Tag structures

The tags. Each WorkSpaces resource can have a maximum of 50 tags.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ResourceNotFoundException:

The resource could not be found.

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceLimitExceededException:

Your resource limits have been exceeded.

CreateUpdatedWorkspaceImage

$result = $client->createUpdatedWorkspaceImage([/* ... */]);
$promise = $client->createUpdatedWorkspaceImageAsync([/* ... */]);

Creates a new updated WorkSpace image based on the specified source image. The new updated WorkSpace image has the latest drivers and other updates required by the Amazon WorkSpaces components.

To determine which WorkSpace images need to be updated with the latest Amazon WorkSpaces requirements, use DescribeWorkspaceImages.

  • Only Windows 10, Windows Server 2016, and Windows Server 2019 WorkSpace images can be programmatically updated at this time.

  • Microsoft Windows updates and other application updates are not included in the update process.

  • The source WorkSpace image is not deleted. You can delete the source image after you've verified your new updated image and created a new bundle.

Parameter Syntax

$result = $client->createUpdatedWorkspaceImage([
    'Description' => '<string>', // REQUIRED
    'Name' => '<string>', // REQUIRED
    'SourceImageId' => '<string>', // REQUIRED
    'Tags' => [
        [
            'Key' => '<string>', // REQUIRED
            'Value' => '<string>',
        ],
        // ...
    ],
]);

Parameter Details

Members
Description
Required: Yes
Type: string

A description of whether updates for the WorkSpace image are available.

Name
Required: Yes
Type: string

The name of the new updated WorkSpace image.

SourceImageId
Required: Yes
Type: string

The identifier of the source WorkSpace image.

Tags
Type: Array of Tag structures

The tags that you want to add to the new updated WorkSpace image.

To add tags at the same time when you're creating the updated image, you must create an IAM policy that grants your IAM user permissions to use workspaces:CreateTags.

Result Syntax

[
    'ImageId' => '<string>',
]

Result Details

Members
ImageId
Type: string

The identifier of the new updated WorkSpace image.

Errors

ResourceLimitExceededException:

Your resource limits have been exceeded.

ResourceAlreadyExistsException:

The specified resource already exists.

ResourceNotFoundException:

The resource could not be found.

OperationNotSupportedException:

This operation is not supported.

InvalidResourceStateException:

The state of the resource is not valid for this operation.

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

CreateWorkspaceBundle

$result = $client->createWorkspaceBundle([/* ... */]);
$promise = $client->createWorkspaceBundleAsync([/* ... */]);

Creates the specified WorkSpace bundle. For more information about creating WorkSpace bundles, see Create a Custom WorkSpaces Image and Bundle.

Parameter Syntax

$result = $client->createWorkspaceBundle([
    'BundleDescription' => '<string>', // REQUIRED
    'BundleName' => '<string>', // REQUIRED
    'ComputeType' => [ // REQUIRED
        'Name' => 'VALUE|STANDARD|PERFORMANCE|POWER|GRAPHICS|POWERPRO|GENERALPURPOSE_4XLARGE|GENERALPURPOSE_8XLARGE|GRAPHICSPRO|GRAPHICS_G4DN|GRAPHICSPRO_G4DN|GRAPHICS_G6_XLARGE|GRAPHICS_G6_2XLARGE|GRAPHICS_G6_4XLARGE|GRAPHICS_G6_8XLARGE|GRAPHICS_G6_16XLARGE|GRAPHICS_GR6_4XLARGE|GRAPHICS_GR6_8XLARGE|GRAPHICS_G6F_LARGE|GRAPHICS_G6F_XLARGE|GRAPHICS_G6F_2XLARGE|GRAPHICS_G6F_4XLARGE|GRAPHICS_GR6F_4XLARGE|GRAPHICS_G7_2XLARGE|GRAPHICS_G7_4XLARGE|GRAPHICS_G7_8XLARGE|GRAPHICS_G7_12XLARGE',
    ],
    'ImageId' => '<string>', // REQUIRED
    'RootStorage' => [
        'Capacity' => '<string>', // REQUIRED
    ],
    'Tags' => [
        [
            'Key' => '<string>', // REQUIRED
            'Value' => '<string>',
        ],
        // ...
    ],
    'UserStorage' => [ // REQUIRED
        'Capacity' => '<string>', // REQUIRED
    ],
]);

Parameter Details

Members
BundleDescription
Required: Yes
Type: string

The description of the bundle.

BundleName
Required: Yes
Type: string

The name of the bundle.

ComputeType
Required: Yes
Type: ComputeType structure

Describes the compute type of the bundle.

ImageId
Required: Yes
Type: string

The identifier of the image that is used to create the bundle.

RootStorage
Type: RootStorage structure

Describes the root volume for a WorkSpace bundle.

Tags
Type: Array of Tag structures

The tags associated with the bundle.

To add tags at the same time when you're creating the bundle, you must create an IAM policy that grants your IAM user permissions to use workspaces:CreateTags.

UserStorage
Required: Yes
Type: UserStorage structure

Describes the user volume for a WorkSpace bundle.

Result Syntax

[
    'WorkspaceBundle' => [
        'BundleId' => '<string>',
        'BundleType' => 'REGULAR|STANDBY',
        'ComputeType' => [
            'Name' => 'VALUE|STANDARD|PERFORMANCE|POWER|GRAPHICS|POWERPRO|GENERALPURPOSE_4XLARGE|GENERALPURPOSE_8XLARGE|GRAPHICSPRO|GRAPHICS_G4DN|GRAPHICSPRO_G4DN|GRAPHICS_G6_XLARGE|GRAPHICS_G6_2XLARGE|GRAPHICS_G6_4XLARGE|GRAPHICS_G6_8XLARGE|GRAPHICS_G6_16XLARGE|GRAPHICS_GR6_4XLARGE|GRAPHICS_GR6_8XLARGE|GRAPHICS_G6F_LARGE|GRAPHICS_G6F_XLARGE|GRAPHICS_G6F_2XLARGE|GRAPHICS_G6F_4XLARGE|GRAPHICS_GR6F_4XLARGE|GRAPHICS_G7_2XLARGE|GRAPHICS_G7_4XLARGE|GRAPHICS_G7_8XLARGE|GRAPHICS_G7_12XLARGE',
        ],
        'CreationTime' => <DateTime>,
        'Description' => '<string>',
        'ImageId' => '<string>',
        'LastUpdatedTime' => <DateTime>,
        'Name' => '<string>',
        'Owner' => '<string>',
        'RootStorage' => [
            'Capacity' => '<string>',
        ],
        'State' => 'AVAILABLE|PENDING|ERROR',
        'UserStorage' => [
            'Capacity' => '<string>',
        ],
    ],
]

Result Details

Members
WorkspaceBundle
Type: WorkspaceBundle structure

Describes a WorkSpace bundle.

Errors

ResourceUnavailableException:

The specified resource is not available.

ResourceAlreadyExistsException:

The specified resource already exists.

ResourceLimitExceededException:

Your resource limits have been exceeded.

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

AccessDeniedException:

The user is not authorized to access a resource.

CreateWorkspaceEnforcedPolicy

$result = $client->createWorkspaceEnforcedPolicy([/* ... */]);
$promise = $client->createWorkspaceEnforcedPolicyAsync([/* ... */]);

Creates a WorkSpace-enforced policy, which the WorkSpace applies. The name must be unique among the WorkSpace-enforced policies in your account. If it isn't, the operation returns ConflictException, and its ResourceId identifies the existing policy. If your account would exceed its maximum number of WorkSpace-enforced policies, the operation returns ServiceQuotaExceededException.

Parameter Syntax

$result = $client->createWorkspaceEnforcedPolicy([
    'ClientToken' => '<string>',
    'Name' => '<string>', // REQUIRED
    'PolicyBody' => '<string>', // REQUIRED
    'Tags' => [
        [
            'Key' => '<string>', // REQUIRED
            'Value' => '<string>',
        ],
        // ...
    ],
]);

Parameter Details

Members
ClientToken
Type: string

A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If this token matches a previous request with the same parameters, the service returns the result of that request and doesn't create another WorkSpace-enforced policy.

If you reuse the token with different parameters, the operation returns ValidationException. If you deleted the policy created with this token, the operation returns ConflictException.

Name
Required: Yes
Type: string

The name of the WorkSpace-enforced policy.

PolicyBody
Required: Yes
Type: string

Specifies the policy document, in JSON format, that defines the enforced policy. It can be up to 65,536 characters long and can't contain control characters other than tab, line feed, and carriage return.

Tags
Type: Array of Tag structures

The tags to add to the WorkSpace-enforced policy. Each tag key can appear only once.

Result Syntax

[
    'PolicySummary' => [
        'CreatedAt' => <DateTime>,
        'Id' => '<string>',
        'Name' => '<string>',
        'Owner' => 'SELF|AMAZON',
    ],
]

Result Details

Members
PolicySummary
Required: Yes
Type: WorkspaceEnforcedPolicySummary structure

Summary information about the new policy. The response doesn't include the policy document.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

ConflictException:

The request conflicts with the current state of a resource, for example because a name is already in use or the resource is still in use. Resolve the conflict, and then retry your request.

ServiceQuotaExceededException:

The request would exceed a service quota. Request a quota increase or reduce the number of resources in your request.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Creating a WorkSpace-enforced policy

The following example creates a WorkSpace-enforced policy that keeps internet access on.

$result = $client->createWorkspaceEnforcedPolicy([
    'ClientToken' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'Name' => 'default-network',
    'PolicyBody' => '{"disableInternetAccess":false,"deniedPaths":[]}',
]);

Result syntax:

[
    'PolicySummary' => [
        'CreatedAt' => ,
        'Id' => 'wsep-a1b2c3d4',
        'Name' => 'default-network',
        'Owner' => 'SELF',
    ],
]

CreateWorkspaceImage

$result = $client->createWorkspaceImage([/* ... */]);
$promise = $client->createWorkspaceImageAsync([/* ... */]);

Creates a new WorkSpace image from an existing WorkSpace.

Parameter Syntax

$result = $client->createWorkspaceImage([
    'Description' => '<string>', // REQUIRED
    'Name' => '<string>', // REQUIRED
    'Tags' => [
        [
            'Key' => '<string>', // REQUIRED
            'Value' => '<string>',
        ],
        // ...
    ],
    'WorkspaceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
Description
Required: Yes
Type: string

The description of the new WorkSpace image.

Name
Required: Yes
Type: string

The name of the new WorkSpace image.

Tags
Type: Array of Tag structures

The tags that you want to add to the new WorkSpace image. To add tags when you're creating the image, you must create an IAM policy that grants your IAM user permission to use workspaces:CreateTags.

WorkspaceId
Required: Yes
Type: string

The identifier of the source WorkSpace

Result Syntax

[
    'Created' => <DateTime>,
    'Description' => '<string>',
    'ImageId' => '<string>',
    'Name' => '<string>',
    'OperatingSystem' => [
        'Type' => 'WINDOWS|LINUX',
    ],
    'OwnerAccountId' => '<string>',
    'RequiredTenancy' => 'DEFAULT|DEDICATED',
    'State' => 'AVAILABLE|PENDING|ERROR',
]

Result Details

Members
Created
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date when the image was created.

Description
Type: string

The description of the image.

ImageId
Type: string

The identifier of the new WorkSpace image.

Name
Type: string

The name of the image.

OperatingSystem
Type: OperatingSystem structure

The operating system that the image is running.

OwnerAccountId
Type: string

The identifier of the Amazon Web Services account that owns the image.

RequiredTenancy
Type: string

Specifies whether the image is running on dedicated hardware. When Bring Your Own License (BYOL) is enabled, this value is set to DEDICATED. For more information, see Bring Your Own Windows Desktop Images..

State
Type: string

The availability status of the image.

Errors

ResourceLimitExceededException:

Your resource limits have been exceeded.

ResourceAlreadyExistsException:

The specified resource already exists.

ResourceNotFoundException:

The resource could not be found.

OperationNotSupportedException:

This operation is not supported.

InvalidResourceStateException:

The state of the resource is not valid for this operation.

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

CreateWorkspaces

$result = $client->createWorkspaces([/* ... */]);
$promise = $client->createWorkspacesAsync([/* ... */]);

Creates one or more WorkSpaces.

This operation is asynchronous and returns before the WorkSpaces are created.

  • The MANUAL running mode value is only supported by Amazon WorkSpaces Core. Contact your account team to be allow-listed to use this value. For more information, see Amazon WorkSpaces Core.

  • You don't need to specify the PCOIP protocol for Linux bundles because DCV (formerly WSP) is the default protocol for those bundles.

  • User-decoupled WorkSpaces are only supported by Amazon WorkSpaces Core.

  • Review your running mode to ensure you are using one that is optimal for your needs and budget. For more information on switching running modes, see Can I switch between hourly and monthly billing?

Parameter Syntax

$result = $client->createWorkspaces([
    'Workspaces' => [ // REQUIRED
        [
            'AgenticPersonaConfigurationId' => '<string>',
            'BundleId' => '<string>', // REQUIRED
            'DirectoryId' => '<string>', // REQUIRED
            'Ipv6Address' => '<string>',
            'RootVolumeEncryptionEnabled' => true || false,
            'Tags' => [
                [
                    'Key' => '<string>', // REQUIRED
                    'Value' => '<string>',
                ],
                // ...
            ],
            'UserName' => '<string>', // REQUIRED
            'UserVolumeEncryptionEnabled' => true || false,
            'VolumeEncryptionKey' => '<string>',
            'WorkspaceName' => '<string>',
            'WorkspaceProperties' => [
                'ComputeTypeName' => 'VALUE|STANDARD|PERFORMANCE|POWER|GRAPHICS|POWERPRO|GENERALPURPOSE_4XLARGE|GENERALPURPOSE_8XLARGE|GRAPHICSPRO|GRAPHICS_G4DN|GRAPHICSPRO_G4DN|GRAPHICS_G6_XLARGE|GRAPHICS_G6_2XLARGE|GRAPHICS_G6_4XLARGE|GRAPHICS_G6_8XLARGE|GRAPHICS_G6_16XLARGE|GRAPHICS_GR6_4XLARGE|GRAPHICS_GR6_8XLARGE|GRAPHICS_G6F_LARGE|GRAPHICS_G6F_XLARGE|GRAPHICS_G6F_2XLARGE|GRAPHICS_G6F_4XLARGE|GRAPHICS_GR6F_4XLARGE|GRAPHICS_G7_2XLARGE|GRAPHICS_G7_4XLARGE|GRAPHICS_G7_8XLARGE|GRAPHICS_G7_12XLARGE',
                'GlobalAccelerator' => [
                    'Mode' => 'ENABLED_AUTO|DISABLED|INHERITED', // REQUIRED
                    'PreferredProtocol' => 'TCP|NONE|INHERITED',
                ],
                'NestedVirtualizationEnabled' => true || false,
                'OperatingSystemName' => 'AMAZON_LINUX_2|UBUNTU_18_04|UBUNTU_20_04|UBUNTU_22_04|UNKNOWN|WINDOWS_10|WINDOWS_11|WINDOWS_7|WINDOWS_SERVER_2016|WINDOWS_SERVER_2019|WINDOWS_SERVER_2022|WINDOWS_SERVER_2025|RHEL_8|ROCKY_8|UBUNTU_24_04|RHEL_9|ROCKY_9|UBUNTU_26_04|RHEL_10|ROCKY_10',
                'Protocols' => ['<string>', ...],
                'RootVolumeSizeGib' => <integer>,
                'RunningMode' => 'AUTO_STOP|ALWAYS_ON|MANUAL',
                'RunningModeAutoStopTimeoutInMinutes' => <integer>,
                'UserVolumeSizeGib' => <integer>,
            ],
        ],
        // ...
    ],
]);

Parameter Details

Members
Workspaces
Required: Yes
Type: Array of WorkspaceRequest structures

The WorkSpaces to create. You can specify up to 25 WorkSpaces.

Result Syntax

[
    'FailedRequests' => [
        [
            'ErrorCode' => '<string>',
            'ErrorMessage' => '<string>',
            'WorkspaceRequest' => [
                'AgenticPersonaConfigurationId' => '<string>',
                'BundleId' => '<string>',
                'DirectoryId' => '<string>',
                'Ipv6Address' => '<string>',
                'RootVolumeEncryptionEnabled' => true || false,
                'Tags' => [
                    [
                        'Key' => '<string>',
                        'Value' => '<string>',
                    ],
                    // ...
                ],
                'UserName' => '<string>',
                'UserVolumeEncryptionEnabled' => true || false,
                'VolumeEncryptionKey' => '<string>',
                'WorkspaceName' => '<string>',
                'WorkspaceProperties' => [
                    'ComputeTypeName' => 'VALUE|STANDARD|PERFORMANCE|POWER|GRAPHICS|POWERPRO|GENERALPURPOSE_4XLARGE|GENERALPURPOSE_8XLARGE|GRAPHICSPRO|GRAPHICS_G4DN|GRAPHICSPRO_G4DN|GRAPHICS_G6_XLARGE|GRAPHICS_G6_2XLARGE|GRAPHICS_G6_4XLARGE|GRAPHICS_G6_8XLARGE|GRAPHICS_G6_16XLARGE|GRAPHICS_GR6_4XLARGE|GRAPHICS_GR6_8XLARGE|GRAPHICS_G6F_LARGE|GRAPHICS_G6F_XLARGE|GRAPHICS_G6F_2XLARGE|GRAPHICS_G6F_4XLARGE|GRAPHICS_GR6F_4XLARGE|GRAPHICS_G7_2XLARGE|GRAPHICS_G7_4XLARGE|GRAPHICS_G7_8XLARGE|GRAPHICS_G7_12XLARGE',
                    'GlobalAccelerator' => [
                        'Mode' => 'ENABLED_AUTO|DISABLED|INHERITED',
                        'PreferredProtocol' => 'TCP|NONE|INHERITED',
                    ],
                    'NestedVirtualizationEnabled' => true || false,
                    'OperatingSystemName' => 'AMAZON_LINUX_2|UBUNTU_18_04|UBUNTU_20_04|UBUNTU_22_04|UNKNOWN|WINDOWS_10|WINDOWS_11|WINDOWS_7|WINDOWS_SERVER_2016|WINDOWS_SERVER_2019|WINDOWS_SERVER_2022|WINDOWS_SERVER_2025|RHEL_8|ROCKY_8|UBUNTU_24_04|RHEL_9|ROCKY_9|UBUNTU_26_04|RHEL_10|ROCKY_10',
                    'Protocols' => ['<string>', ...],
                    'RootVolumeSizeGib' => <integer>,
                    'RunningMode' => 'AUTO_STOP|ALWAYS_ON|MANUAL',
                    'RunningModeAutoStopTimeoutInMinutes' => <integer>,
                    'UserVolumeSizeGib' => <integer>,
                ],
            ],
        ],
        // ...
    ],
    'PendingRequests' => [
        [
            'BundleId' => '<string>',
            'ComputerName' => '<string>',
            'DataReplicationSettings' => [
                'DataReplication' => 'NO_REPLICATION|PRIMARY_AS_SOURCE',
                'RecoverySnapshotTime' => <DateTime>,
            ],
            'DirectoryId' => '<string>',
            'ErrorCode' => '<string>',
            'ErrorMessage' => '<string>',
            'IpAddress' => '<string>',
            'Ipv6Address' => '<string>',
            'ModificationStates' => [
                [
                    'Resource' => 'ROOT_VOLUME|USER_VOLUME|COMPUTE_TYPE|PROTOCOL|NESTED_VIRTUALIZATION',
                    'State' => 'UPDATE_INITIATED|UPDATE_IN_PROGRESS|UPDATE_FAILED',
                ],
                // ...
            ],
            'RelatedWorkspaces' => [
                [
                    'Region' => '<string>',
                    'State' => 'PENDING|AVAILABLE|IMPAIRED|UNHEALTHY|REBOOTING|STARTING|REBUILDING|RESTORING|MAINTENANCE|ADMIN_MAINTENANCE|TERMINATING|TERMINATED|SUSPENDED|UPDATING|STOPPING|STOPPED|ERROR',
                    'Type' => 'PRIMARY|STANDBY',
                    'WorkspaceId' => '<string>',
                ],
                // ...
            ],
            'RootVolumeEncryptionEnabled' => true || false,
            'StandbyWorkspacesProperties' => [
                [
                    'DataReplication' => 'NO_REPLICATION|PRIMARY_AS_SOURCE',
                    'RecoverySnapshotTime' => <DateTime>,
                    'StandbyWorkspaceId' => '<string>',
                ],
                // ...
            ],
            'State' => 'PENDING|AVAILABLE|IMPAIRED|UNHEALTHY|REBOOTING|STARTING|REBUILDING|RESTORING|MAINTENANCE|ADMIN_MAINTENANCE|TERMINATING|TERMINATED|SUSPENDED|UPDATING|STOPPING|STOPPED|ERROR',
            'SubnetId' => '<string>',
            'UserName' => '<string>',
            'UserVolumeEncryptionEnabled' => true || false,
            'VolumeEncryptionKey' => '<string>',
            'WorkspaceCategory' => 'PERSONAL|AGENTIC',
            'WorkspaceId' => '<string>',
            'WorkspaceName' => '<string>',
            'WorkspaceProperties' => [
                'ComputeTypeName' => 'VALUE|STANDARD|PERFORMANCE|POWER|GRAPHICS|POWERPRO|GENERALPURPOSE_4XLARGE|GENERALPURPOSE_8XLARGE|GRAPHICSPRO|GRAPHICS_G4DN|GRAPHICSPRO_G4DN|GRAPHICS_G6_XLARGE|GRAPHICS_G6_2XLARGE|GRAPHICS_G6_4XLARGE|GRAPHICS_G6_8XLARGE|GRAPHICS_G6_16XLARGE|GRAPHICS_GR6_4XLARGE|GRAPHICS_GR6_8XLARGE|GRAPHICS_G6F_LARGE|GRAPHICS_G6F_XLARGE|GRAPHICS_G6F_2XLARGE|GRAPHICS_G6F_4XLARGE|GRAPHICS_GR6F_4XLARGE|GRAPHICS_G7_2XLARGE|GRAPHICS_G7_4XLARGE|GRAPHICS_G7_8XLARGE|GRAPHICS_G7_12XLARGE',
                'GlobalAccelerator' => [
                    'Mode' => 'ENABLED_AUTO|DISABLED|INHERITED',
                    'PreferredProtocol' => 'TCP|NONE|INHERITED',
                ],
                'NestedVirtualizationEnabled' => true || false,
                'OperatingSystemName' => 'AMAZON_LINUX_2|UBUNTU_18_04|UBUNTU_20_04|UBUNTU_22_04|UNKNOWN|WINDOWS_10|WINDOWS_11|WINDOWS_7|WINDOWS_SERVER_2016|WINDOWS_SERVER_2019|WINDOWS_SERVER_2022|WINDOWS_SERVER_2025|RHEL_8|ROCKY_8|UBUNTU_24_04|RHEL_9|ROCKY_9|UBUNTU_26_04|RHEL_10|ROCKY_10',
                'Protocols' => ['<string>', ...],
                'RootVolumeSizeGib' => <integer>,
                'RunningMode' => 'AUTO_STOP|ALWAYS_ON|MANUAL',
                'RunningModeAutoStopTimeoutInMinutes' => <integer>,
                'UserVolumeSizeGib' => <integer>,
            ],
        ],
        // ...
    ],
]

Result Details

Members
FailedRequests
Type: Array of FailedCreateWorkspaceRequest structures

Information about the WorkSpaces that could not be created.

PendingRequests
Type: Array of Workspace structures

Information about the WorkSpaces that were created.

Because this operation is asynchronous, the identifier returned is not immediately available for use with other operations. For example, if you call DescribeWorkspaces before the WorkSpace is created, the information returned can be incomplete.

Errors

ResourceLimitExceededException:

Your resource limits have been exceeded.

InvalidParameterValuesException:

One or more parameter values are not valid.

CreateWorkspacesPool

$result = $client->createWorkspacesPool([/* ... */]);
$promise = $client->createWorkspacesPoolAsync([/* ... */]);

End of support notice: On December 31, 2027, Amazon Web Services will end support for Amazon WorkSpaces Pools. After December 31, 2027, you will no longer be able to access the Amazon WorkSpaces Pools console or Amazon WorkSpaces Pools resources. For more information, see Amazon WorkSpaces Pools end of support.

Creates a pool of WorkSpaces.

Parameter Syntax

$result = $client->createWorkspacesPool([
    'ApplicationSettings' => [
        'SettingsGroup' => '<string>',
        'Status' => 'DISABLED|ENABLED', // REQUIRED
    ],
    'BundleId' => '<string>', // REQUIRED
    'Capacity' => [ // REQUIRED
        'DesiredUserSessions' => <integer>, // REQUIRED
    ],
    'Description' => '<string>', // REQUIRED
    'DirectoryId' => '<string>', // REQUIRED
    'PoolName' => '<string>', // REQUIRED
    'RunningMode' => 'AUTO_STOP|ALWAYS_ON',
    'Tags' => [
        [
            'Key' => '<string>', // REQUIRED
            'Value' => '<string>',
        ],
        // ...
    ],
    'TimeoutSettings' => [
        'DisconnectTimeoutInSeconds' => <integer>,
        'IdleDisconnectTimeoutInSeconds' => <integer>,
        'MaxUserDurationInSeconds' => <integer>,
    ],
]);

Parameter Details

Members
ApplicationSettings
Type: ApplicationSettingsRequest structure

Indicates the application settings of the pool.

BundleId
Required: Yes
Type: string

The identifier of the bundle for the pool.

Capacity
Required: Yes
Type: Capacity structure

The user capacity of the pool.

Description
Required: Yes
Type: string

The pool description.

DirectoryId
Required: Yes
Type: string

The identifier of the directory for the pool.

PoolName
Required: Yes
Type: string

The name of the pool.

RunningMode
Type: string

The running mode for the pool.

Tags
Type: Array of Tag structures

The tags for the pool.

TimeoutSettings
Type: TimeoutSettings structure

Indicates the timeout settings of the pool.

Result Syntax

[
    'WorkspacesPool' => [
        'ApplicationSettings' => [
            'S3BucketName' => '<string>',
            'SettingsGroup' => '<string>',
            'Status' => 'DISABLED|ENABLED',
        ],
        'BundleId' => '<string>',
        'CapacityStatus' => [
            'ActiveUserSessions' => <integer>,
            'ActualUserSessions' => <integer>,
            'AvailableUserSessions' => <integer>,
            'DesiredUserSessions' => <integer>,
        ],
        'CreatedAt' => <DateTime>,
        'Description' => '<string>',
        'DirectoryId' => '<string>',
        'Errors' => [
            [
                'ErrorCode' => 'IAM_SERVICE_ROLE_IS_MISSING|IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION|IAM_SERVICE_ROLE_MISSING_ENI_CREATE_ACTION|IAM_SERVICE_ROLE_MISSING_ENI_DELETE_ACTION|NETWORK_INTERFACE_LIMIT_EXCEEDED|INTERNAL_SERVICE_ERROR|MACHINE_ROLE_IS_MISSING|STS_DISABLED_IN_REGION|SUBNET_HAS_INSUFFICIENT_IP_ADDRESSES|IAM_SERVICE_ROLE_MISSING_DESCRIBE_SUBNET_ACTION|SUBNET_NOT_FOUND|IMAGE_NOT_FOUND|INVALID_SUBNET_CONFIGURATION|SECURITY_GROUPS_NOT_FOUND|IGW_NOT_ATTACHED|IAM_SERVICE_ROLE_MISSING_DESCRIBE_SECURITY_GROUPS_ACTION|WORKSPACES_POOL_STOPPED|WORKSPACES_POOL_INSTANCE_PROVISIONING_FAILURE|DOMAIN_JOIN_ERROR_FILE_NOT_FOUND|DOMAIN_JOIN_ERROR_ACCESS_DENIED|DOMAIN_JOIN_ERROR_LOGON_FAILURE|DOMAIN_JOIN_ERROR_INVALID_PARAMETER|DOMAIN_JOIN_ERROR_MORE_DATA|DOMAIN_JOIN_ERROR_NO_SUCH_DOMAIN|DOMAIN_JOIN_ERROR_NOT_SUPPORTED|DOMAIN_JOIN_NERR_INVALID_WORKGROUP_NAME|DOMAIN_JOIN_NERR_WORKSTATION_NOT_STARTED|DOMAIN_JOIN_ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED|DOMAIN_JOIN_NERR_PASSWORD_EXPIRED|DOMAIN_JOIN_INTERNAL_SERVICE_ERROR|DOMAIN_JOIN_ERROR_SECRET_ACTION_PERMISSION_IS_MISSING|DOMAIN_JOIN_ERROR_SECRET_DECRYPTION_FAILURE|DOMAIN_JOIN_ERROR_SECRET_STATE_INVALID|DOMAIN_JOIN_ERROR_SECRET_NOT_FOUND|DOMAIN_JOIN_ERROR_SECRET_VALUE_KEY_NOT_FOUND|DOMAIN_JOIN_ERROR_SECRET_INVALID|BUNDLE_NOT_FOUND|DIRECTORY_NOT_FOUND|INSUFFICIENT_PERMISSIONS_ERROR|DEFAULT_OU_IS_MISSING',
                'ErrorMessage' => '<string>',
            ],
            // ...
        ],
        'PoolArn' => '<string>',
        'PoolId' => '<string>',
        'PoolName' => '<string>',
        'RunningMode' => 'AUTO_STOP|ALWAYS_ON',
        'State' => 'CREATING|DELETING|RUNNING|STARTING|STOPPED|STOPPING|UPDATING',
        'TimeoutSettings' => [
            'DisconnectTimeoutInSeconds' => <integer>,
            'IdleDisconnectTimeoutInSeconds' => <integer>,
            'MaxUserDurationInSeconds' => <integer>,
        ],
    ],
]

Result Details

Members
WorkspacesPool
Type: WorkspacesPool structure

Indicates the pool to create.

Errors

ResourceLimitExceededException:

Your resource limits have been exceeded.

ResourceNotFoundException:

The resource could not be found.

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceAlreadyExistsException:

The specified resource already exists.

OperationNotSupportedException:

This operation is not supported.

AccessDeniedException:

The user is not authorized to access a resource.

DeleteAccountLinkInvitation

$result = $client->deleteAccountLinkInvitation([/* ... */]);
$promise = $client->deleteAccountLinkInvitationAsync([/* ... */]);

Deletes the account link invitation.

Parameter Syntax

$result = $client->deleteAccountLinkInvitation([
    'ClientToken' => '<string>',
    'LinkId' => '<string>', // REQUIRED
]);

Parameter Details

Members
ClientToken
Type: string

A string of up to 64 ASCII characters that Amazon WorkSpaces uses to ensure idempotent creation.

LinkId
Required: Yes
Type: string

The identifier of the account link.

Result Syntax

[
    'AccountLink' => [
        'AccountLinkId' => '<string>',
        'AccountLinkStatus' => 'LINKED|LINKING_FAILED|LINK_NOT_FOUND|PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT|REJECTED',
        'SourceAccountId' => '<string>',
        'TargetAccountId' => '<string>',
    ],
]

Result Details

Members
AccountLink
Type: AccountLink structure

Information about the account link.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

AccessDeniedException:

The user is not authorized to access a resource.

ResourceNotFoundException:

The resource could not be found.

ConflictException:

The request conflicts with the current state of a resource, for example because a name is already in use or the resource is still in use. Resolve the conflict, and then retry your request.

InternalServerException:

An unexpected server error occurred. Retry your request.

DeleteAgentEnforcedPolicy

$result = $client->deleteAgentEnforcedPolicy([/* ... */]);
$promise = $client->deleteAgentEnforcedPolicyAsync([/* ... */]);

Deletes an agent-enforced policy that you created. You can't undo this action. You can't delete a policy that Amazon owns. If you try, the operation returns ValidationException. You can't delete a policy that a persona configuration or a WorkSpace uses. If you try, the operation returns ConflictException, and its ResourceId identifies a persona configuration or WorkSpace that uses the policy.

Parameter Syntax

$result = $client->deleteAgentEnforcedPolicy([
    'PolicyId' => '<string>', // REQUIRED
]);

Parameter Details

Members
PolicyId
Required: Yes
Type: string

The identifier of the policy.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

ResourceNotFoundException:

The resource could not be found.

ConflictException:

The request conflicts with the current state of a resource, for example because a name is already in use or the resource is still in use. Resolve the conflict, and then retry your request.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Deleting an agent-enforced policy

The following example deletes an agent-enforced policy.

$result = $client->deleteAgentEnforcedPolicy([
    'PolicyId' => 'wsae-a1b2c3d4',
]);

Result syntax:

[
]

DeleteAgenticContext

$result = $client->deleteAgenticContext([/* ... */]);
$promise = $client->deleteAgenticContextAsync([/* ... */]);

Deletes an agentic context. You can't undo this action. You can't delete a context that a persona configuration or WorkSpace uses. If you try, the operation returns ConflictException, and its ResourceId identifies a persona configuration or WorkSpace that uses the context.

Parameter Syntax

$result = $client->deleteAgenticContext([
    'AgenticContextId' => '<string>', // REQUIRED
]);

Parameter Details

Members
AgenticContextId
Required: Yes
Type: string

The identifier of the context.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

ResourceNotFoundException:

The resource could not be found.

ConflictException:

The request conflicts with the current state of a resource, for example because a name is already in use or the resource is still in use. Resolve the conflict, and then retry your request.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Deleting a context

The following example deletes a context.

$result = $client->deleteAgenticContext([
    'AgenticContextId' => 'wsactx-e5f6g7h8',
]);

Result syntax:

[
]

DeleteAgenticPersonaConfiguration

$result = $client->deleteAgenticPersonaConfiguration([/* ... */]);
$promise = $client->deleteAgenticPersonaConfigurationAsync([/* ... */]);

Deletes an agentic persona configuration. You can't undo this action. Deleting a persona configuration doesn't affect WorkSpaces that you already created with it. If another request is already deleting the persona configuration, the operation returns ConflictException.

Parameter Syntax

$result = $client->deleteAgenticPersonaConfiguration([
    'AgenticPersonaConfigurationId' => '<string>', // REQUIRED
]);

Parameter Details

Members
AgenticPersonaConfigurationId
Required: Yes
Type: string

The identifier of the persona configuration.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

ResourceNotFoundException:

The resource could not be found.

ConflictException:

The request conflicts with the current state of a resource, for example because a name is already in use or the resource is still in use. Resolve the conflict, and then retry your request.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Deleting a persona configuration

The following example deletes a persona configuration.

$result = $client->deleteAgenticPersonaConfiguration([
    'AgenticPersonaConfigurationId' => 'wsapc-a1b2c3d4',
]);

Result syntax:

[
]

DeleteClientBranding

$result = $client->deleteClientBranding([/* ... */]);
$promise = $client->deleteClientBrandingAsync([/* ... */]);

Deletes customized client branding. Client branding allows you to customize your WorkSpace's client login portal. You can tailor your login portal company logo, the support email address, support link, link to reset password, and a custom message for users trying to sign in.

After you delete your customized client branding, your login portal reverts to the default client branding.

Parameter Syntax

$result = $client->deleteClientBranding([
    'Platforms' => ['<string>', ...], // REQUIRED
    'ResourceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
Platforms
Required: Yes
Type: Array of strings

The device type for which you want to delete client branding.

ResourceId
Required: Yes
Type: string

The directory identifier of the WorkSpace for which you want to delete client branding.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

AccessDeniedException:

The user is not authorized to access a resource.

DeleteConnectClientAddIn

$result = $client->deleteConnectClientAddIn([/* ... */]);
$promise = $client->deleteConnectClientAddInAsync([/* ... */]);

Deletes a client-add-in for Connect Customer that is configured within a directory.

Parameter Syntax

$result = $client->deleteConnectClientAddIn([
    'AddInId' => '<string>', // REQUIRED
    'ResourceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
AddInId
Required: Yes
Type: string

The identifier of the client add-in to delete.

ResourceId
Required: Yes
Type: string

The directory identifier for which the client add-in is configured.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

AccessDeniedException:

The user is not authorized to access a resource.

DeleteConnectionAlias

$result = $client->deleteConnectionAlias([/* ... */]);
$promise = $client->deleteConnectionAliasAsync([/* ... */]);

Deletes the specified connection alias. For more information, see Cross-Region Redirection for Amazon WorkSpaces.

If you will no longer be using a fully qualified domain name (FQDN) as the registration code for your WorkSpaces users, you must take certain precautions to prevent potential security issues. For more information, see Security Considerations if You Stop Using Cross-Region Redirection.

To delete a connection alias that has been shared, the shared account must first disassociate the connection alias from any directories it has been associated with. Then you must unshare the connection alias from the account it has been shared with. You can delete a connection alias only after it is no longer shared with any accounts or associated with any directories.

Parameter Syntax

$result = $client->deleteConnectionAlias([
    'AliasId' => '<string>', // REQUIRED
]);

Parameter Details

Members
AliasId
Required: Yes
Type: string

The identifier of the connection alias to delete.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ResourceNotFoundException:

The resource could not be found.

ResourceAssociatedException:

The resource is associated with a directory.

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

InvalidResourceStateException:

The state of the resource is not valid for this operation.

OperationNotSupportedException:

This operation is not supported.

DeleteIpGroup

$result = $client->deleteIpGroup([/* ... */]);
$promise = $client->deleteIpGroupAsync([/* ... */]);

Deletes the specified IP access control group.

You cannot delete an IP access control group that is associated with a directory.

Parameter Syntax

$result = $client->deleteIpGroup([
    'GroupId' => '<string>', // REQUIRED
]);

Parameter Details

Members
GroupId
Required: Yes
Type: string

The identifier of the IP access control group.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

ResourceAssociatedException:

The resource is associated with a directory.

AccessDeniedException:

The user is not authorized to access a resource.

DeleteTags

$result = $client->deleteTags([/* ... */]);
$promise = $client->deleteTagsAsync([/* ... */]);

Deletes the specified tags from the specified WorkSpaces resource.

Parameter Syntax

$result = $client->deleteTags([
    'ResourceId' => '<string>', // REQUIRED
    'TagKeys' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
ResourceId
Required: Yes
Type: string

The identifier of the WorkSpaces resource. The supported resource types are WorkSpaces, registered directories, images, custom bundles, IP access control groups, connection aliases, agentic persona configurations, agentic contexts (Markdown content files for agents), WorkSpace-enforced policies, and agent-enforced policies.

TagKeys
Required: Yes
Type: Array of strings

The tag keys.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ResourceNotFoundException:

The resource could not be found.

InvalidParameterValuesException:

One or more parameter values are not valid.

DeleteWorkspaceBundle

$result = $client->deleteWorkspaceBundle([/* ... */]);
$promise = $client->deleteWorkspaceBundleAsync([/* ... */]);

Deletes the specified WorkSpace bundle. For more information about deleting WorkSpace bundles, see Delete a Custom WorkSpaces Bundle or Image.

Parameter Syntax

$result = $client->deleteWorkspaceBundle([
    'BundleId' => '<string>',
]);

Parameter Details

Members
BundleId
Type: string

The identifier of the bundle.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

ResourceAssociatedException:

The resource is associated with a directory.

AccessDeniedException:

The user is not authorized to access a resource.

DeleteWorkspaceEnforcedPolicy

$result = $client->deleteWorkspaceEnforcedPolicy([/* ... */]);
$promise = $client->deleteWorkspaceEnforcedPolicyAsync([/* ... */]);

Deletes a WorkSpace-enforced policy that you created. You can't undo this action. You can't delete a policy that Amazon owns. If you try, the operation returns ValidationException. You can't delete a policy that a persona configuration or a WorkSpace uses. If you try, the operation returns ConflictException, and its ResourceId identifies a persona configuration or WorkSpace that uses the policy.

Parameter Syntax

$result = $client->deleteWorkspaceEnforcedPolicy([
    'PolicyId' => '<string>', // REQUIRED
]);

Parameter Details

Members
PolicyId
Required: Yes
Type: string

The identifier of the policy.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

ResourceNotFoundException:

The resource could not be found.

ConflictException:

The request conflicts with the current state of a resource, for example because a name is already in use or the resource is still in use. Resolve the conflict, and then retry your request.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Deleting a WorkSpace-enforced policy

The following example deletes a WorkSpace-enforced policy.

$result = $client->deleteWorkspaceEnforcedPolicy([
    'PolicyId' => 'wsep-a1b2c3d4',
]);

Result syntax:

[
]

DeleteWorkspaceImage

$result = $client->deleteWorkspaceImage([/* ... */]);
$promise = $client->deleteWorkspaceImageAsync([/* ... */]);

Deletes the specified image from your account. To delete an image, you must first delete any bundles that are associated with the image and unshare the image if it is shared with other accounts.

Parameter Syntax

$result = $client->deleteWorkspaceImage([
    'ImageId' => '<string>', // REQUIRED
]);

Parameter Details

Members
ImageId
Required: Yes
Type: string

The identifier of the image.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ResourceAssociatedException:

The resource is associated with a directory.

InvalidResourceStateException:

The state of the resource is not valid for this operation.

AccessDeniedException:

The user is not authorized to access a resource.

DeployWorkspaceApplications

$result = $client->deployWorkspaceApplications([/* ... */]);
$promise = $client->deployWorkspaceApplicationsAsync([/* ... */]);

Deploys associated applications to the specified WorkSpace

Parameter Syntax

$result = $client->deployWorkspaceApplications([
    'Force' => true || false,
    'WorkspaceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
Force
Type: boolean

Indicates whether the force flag is applied for the specified WorkSpace. When the force flag is enabled, it allows previously failed deployments to be retried.

WorkspaceId
Required: Yes
Type: string

The identifier of the WorkSpace.

Result Syntax

[
    'Deployment' => [
        'Associations' => [
            [
                'AssociatedResourceId' => '<string>',
                'AssociatedResourceType' => 'APPLICATION',
                'Created' => <DateTime>,
                'LastUpdatedTime' => <DateTime>,
                'State' => 'PENDING_INSTALL|PENDING_INSTALL_DEPLOYMENT|PENDING_UNINSTALL|PENDING_UNINSTALL_DEPLOYMENT|INSTALLING|UNINSTALLING|ERROR|COMPLETED|REMOVED',
                'StateReason' => [
                    'ErrorCode' => 'ValidationError.InsufficientDiskSpace|ValidationError.InsufficientMemory|ValidationError.UnsupportedOperatingSystem|DeploymentError.InternalServerError|DeploymentError.WorkspaceUnreachable|ValidationError.ApplicationOldVersionExists',
                    'ErrorMessage' => '<string>',
                ],
                'WorkspaceId' => '<string>',
            ],
            // ...
        ],
    ],
]

Result Details

Members
Deployment

The list of deployed associations and information about them.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

OperationNotSupportedException:

This operation is not supported.

ResourceInUseException:

The specified resource is currently in use.

ResourceNotFoundException:

The resource could not be found.

IncompatibleApplicationsException:

The specified application is not compatible with the resource.

DeregisterWorkspaceDirectory

$result = $client->deregisterWorkspaceDirectory([/* ... */]);
$promise = $client->deregisterWorkspaceDirectoryAsync([/* ... */]);

Deregisters the specified directory. This operation is asynchronous and returns before the WorkSpace directory is deregistered. If any WorkSpaces are registered to this directory, you must remove them before you can deregister the directory.

Simple AD and AD Connector are made available to you free of charge to use with WorkSpaces. If there are no WorkSpaces being used with your Simple AD or AD Connector directory for 30 consecutive days, this directory will be automatically deregistered for use with Amazon WorkSpaces, and you will be charged for this directory as per the Directory Service pricing terms.

To delete empty directories, see Delete the Directory for Your WorkSpaces. If you delete your Simple AD or AD Connector directory, you can always create a new one when you want to start using WorkSpaces again.

Parameter Syntax

$result = $client->deregisterWorkspaceDirectory([
    'DirectoryId' => '<string>', // REQUIRED
]);

Parameter Details

Members
DirectoryId
Required: Yes
Type: string

The identifier of the directory. If any WorkSpaces are registered to this directory, you must remove them before you deregister the directory, or you will receive an OperationNotSupportedException error.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

OperationNotSupportedException:

This operation is not supported.

ResourceNotFoundException:

The resource could not be found.

InvalidResourceStateException:

The state of the resource is not valid for this operation.

DescribeAccount

$result = $client->describeAccount([/* ... */]);
$promise = $client->describeAccountAsync([/* ... */]);

Retrieves a list that describes the configuration of Bring Your Own License (BYOL) for the specified account.

Parameter Syntax

$result = $client->describeAccount([
]);

Parameter Details

Members

Result Syntax

[
    'DedicatedTenancyAccountType' => 'SOURCE_ACCOUNT|TARGET_ACCOUNT',
    'DedicatedTenancyManagementCidrRange' => '<string>',
    'DedicatedTenancySupport' => 'ENABLED|DISABLED',
    'Message' => '<string>',
]

Result Details

Members
DedicatedTenancyAccountType
Type: string

The type of linked account.

DedicatedTenancyManagementCidrRange
Type: string

The IP address range, specified as an IPv4 CIDR block, used for the management network interface.

The management network interface is connected to a secure Amazon WorkSpaces management network. It is used for interactive streaming of the WorkSpace desktop to Amazon WorkSpaces clients, and to allow Amazon WorkSpaces to manage the WorkSpace.

DedicatedTenancySupport
Type: string

The status of BYOL (whether BYOL is enabled or disabled).

Message
Type: string

The text message to describe the status of BYOL.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

DescribeAccountModifications

$result = $client->describeAccountModifications([/* ... */]);
$promise = $client->describeAccountModificationsAsync([/* ... */]);

Retrieves a list that describes modifications to the configuration of Bring Your Own License (BYOL) for the specified account.

Parameter Syntax

$result = $client->describeAccountModifications([
    'NextToken' => '<string>',
]);

Parameter Details

Members
NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

Result Syntax

[
    'AccountModifications' => [
        [
            'DedicatedTenancyManagementCidrRange' => '<string>',
            'DedicatedTenancySupport' => 'ENABLED|DISABLED',
            'ErrorCode' => '<string>',
            'ErrorMessage' => '<string>',
            'ModificationState' => 'PENDING|COMPLETED|FAILED',
            'StartTime' => <DateTime>,
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
AccountModifications
Type: Array of AccountModification structures

The list of modifications to the configuration of BYOL.

NextToken
Type: string

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

DescribeApplicationAssociations

$result = $client->describeApplicationAssociations([/* ... */]);
$promise = $client->describeApplicationAssociationsAsync([/* ... */]);

Describes the associations between the application and the specified associated resources.

Parameter Syntax

$result = $client->describeApplicationAssociations([
    'ApplicationId' => '<string>', // REQUIRED
    'AssociatedResourceTypes' => ['<string>', ...], // REQUIRED
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
ApplicationId
Required: Yes
Type: string

The identifier of the specified application.

AssociatedResourceTypes
Required: Yes
Type: Array of strings

The resource type of the associated resources.

MaxResults
Type: int

The maximum number of associations to return.

NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

Result Syntax

[
    'Associations' => [
        [
            'ApplicationId' => '<string>',
            'AssociatedResourceId' => '<string>',
            'AssociatedResourceType' => 'WORKSPACE|BUNDLE|IMAGE',
            'Created' => <DateTime>,
            'LastUpdatedTime' => <DateTime>,
            'State' => 'PENDING_INSTALL|PENDING_INSTALL_DEPLOYMENT|PENDING_UNINSTALL|PENDING_UNINSTALL_DEPLOYMENT|INSTALLING|UNINSTALLING|ERROR|COMPLETED|REMOVED',
            'StateReason' => [
                'ErrorCode' => 'ValidationError.InsufficientDiskSpace|ValidationError.InsufficientMemory|ValidationError.UnsupportedOperatingSystem|DeploymentError.InternalServerError|DeploymentError.WorkspaceUnreachable|ValidationError.ApplicationOldVersionExists',
                'ErrorMessage' => '<string>',
            ],
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
Associations
Type: Array of ApplicationResourceAssociation structures

List of associations and information about them.

NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

OperationNotSupportedException:

This operation is not supported.

ResourceNotFoundException:

The resource could not be found.

DescribeApplications

$result = $client->describeApplications([/* ... */]);
$promise = $client->describeApplicationsAsync([/* ... */]);

Describes the specified applications by filtering based on their compute types, license availability, operating systems, and owners.

Parameter Syntax

$result = $client->describeApplications([
    'ApplicationIds' => ['<string>', ...],
    'ComputeTypeNames' => ['<string>', ...],
    'LicenseType' => 'LICENSED|UNLICENSED',
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
    'OperatingSystemNames' => ['<string>', ...],
    'Owner' => '<string>',
]);

Parameter Details

Members
ApplicationIds
Type: Array of strings

The identifiers of one or more applications.

ComputeTypeNames
Type: Array of strings

The compute types supported by the applications.

LicenseType
Type: string

The license availability for the applications.

MaxResults
Type: int

The maximum number of applications to return.

NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

OperatingSystemNames
Type: Array of strings

The operating systems supported by the applications.

Owner
Type: string

The owner of the applications.

Result Syntax

[
    'Applications' => [
        [
            'ApplicationId' => '<string>',
            'Created' => <DateTime>,
            'Description' => '<string>',
            'LicenseType' => 'LICENSED|UNLICENSED',
            'Name' => '<string>',
            'Owner' => '<string>',
            'State' => 'PENDING|ERROR|AVAILABLE|UNINSTALL_ONLY',
            'SupportedComputeTypeNames' => ['<string>', ...],
            'SupportedOperatingSystemNames' => ['<string>', ...],
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
Applications
Type: Array of WorkSpaceApplication structures

List of information about the specified applications.

NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

OperationNotSupportedException:

This operation is not supported.

ResourceNotFoundException:

The resource could not be found.

DescribeBundleAssociations

$result = $client->describeBundleAssociations([/* ... */]);
$promise = $client->describeBundleAssociationsAsync([/* ... */]);

Describes the associations between the applications and the specified bundle.

Parameter Syntax

$result = $client->describeBundleAssociations([
    'AssociatedResourceTypes' => ['<string>', ...], // REQUIRED
    'BundleId' => '<string>', // REQUIRED
]);

Parameter Details

Members
AssociatedResourceTypes
Required: Yes
Type: Array of strings

The resource types of the associated resource.

BundleId
Required: Yes
Type: string

The identifier of the bundle.

Result Syntax

[
    'Associations' => [
        [
            'AssociatedResourceId' => '<string>',
            'AssociatedResourceType' => 'APPLICATION',
            'BundleId' => '<string>',
            'Created' => <DateTime>,
            'LastUpdatedTime' => <DateTime>,
            'State' => 'PENDING_INSTALL|PENDING_INSTALL_DEPLOYMENT|PENDING_UNINSTALL|PENDING_UNINSTALL_DEPLOYMENT|INSTALLING|UNINSTALLING|ERROR|COMPLETED|REMOVED',
            'StateReason' => [
                'ErrorCode' => 'ValidationError.InsufficientDiskSpace|ValidationError.InsufficientMemory|ValidationError.UnsupportedOperatingSystem|DeploymentError.InternalServerError|DeploymentError.WorkspaceUnreachable|ValidationError.ApplicationOldVersionExists',
                'ErrorMessage' => '<string>',
            ],
        ],
        // ...
    ],
]

Result Details

Members
Associations
Type: Array of BundleResourceAssociation structures

List of information about the specified associations.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

OperationNotSupportedException:

This operation is not supported.

ResourceNotFoundException:

The resource could not be found.

DescribeClientBranding

$result = $client->describeClientBranding([/* ... */]);
$promise = $client->describeClientBrandingAsync([/* ... */]);

Describes the specified client branding. Client branding allows you to customize the log in page of various device types for your users. You can add your company logo, the support email address, support link, link to reset password, and a custom message for users trying to sign in.

Only device types that have branding information configured will be shown in the response.

Parameter Syntax

$result = $client->describeClientBranding([
    'ResourceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
ResourceId
Required: Yes
Type: string

The directory identifier of the WorkSpace for which you want to view client branding information.

Result Syntax

[
    'DeviceTypeAndroid' => [
        'ForgotPasswordLink' => '<string>',
        'LoginMessage' => ['<string>', ...],
        'LogoUrl' => '<string>',
        'SupportEmail' => '<string>',
        'SupportLink' => '<string>',
    ],
    'DeviceTypeIos' => [
        'ForgotPasswordLink' => '<string>',
        'LoginMessage' => ['<string>', ...],
        'Logo2xUrl' => '<string>',
        'Logo3xUrl' => '<string>',
        'LogoUrl' => '<string>',
        'SupportEmail' => '<string>',
        'SupportLink' => '<string>',
    ],
    'DeviceTypeLinux' => [
        'ForgotPasswordLink' => '<string>',
        'LoginMessage' => ['<string>', ...],
        'LogoUrl' => '<string>',
        'SupportEmail' => '<string>',
        'SupportLink' => '<string>',
    ],
    'DeviceTypeOsx' => [
        'ForgotPasswordLink' => '<string>',
        'LoginMessage' => ['<string>', ...],
        'LogoUrl' => '<string>',
        'SupportEmail' => '<string>',
        'SupportLink' => '<string>',
    ],
    'DeviceTypeWeb' => [
        'ForgotPasswordLink' => '<string>',
        'LoginMessage' => ['<string>', ...],
        'LogoUrl' => '<string>',
        'SupportEmail' => '<string>',
        'SupportLink' => '<string>',
    ],
    'DeviceTypeWindows' => [
        'ForgotPasswordLink' => '<string>',
        'LoginMessage' => ['<string>', ...],
        'LogoUrl' => '<string>',
        'SupportEmail' => '<string>',
        'SupportLink' => '<string>',
    ],
]

Result Details

Members
DeviceTypeAndroid

The branding information for Android devices.

DeviceTypeIos
Type: IosClientBrandingAttributes structure

The branding information for iOS devices.

DeviceTypeLinux

The branding information for Linux devices.

DeviceTypeOsx

The branding information for macOS devices.

DeviceTypeWeb

The branding information for Web access.

DeviceTypeWindows

The branding information for Windows devices.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

AccessDeniedException:

The user is not authorized to access a resource.

DescribeClientProperties

$result = $client->describeClientProperties([/* ... */]);
$promise = $client->describeClientPropertiesAsync([/* ... */]);

Retrieves a list that describes one or more specified Amazon WorkSpaces clients.

Parameter Syntax

$result = $client->describeClientProperties([
    'ResourceIds' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
ResourceIds
Required: Yes
Type: Array of strings

The resource identifier, in the form of directory IDs.

Result Syntax

[
    'ClientPropertiesList' => [
        [
            'ClientProperties' => [
                'ClientExperiencePolicy' => '<string>',
                'LogUploadEnabled' => 'ENABLED|DISABLED',
                'ReconnectEnabled' => 'ENABLED|DISABLED',
            ],
            'ResourceId' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
ClientPropertiesList
Type: Array of ClientPropertiesResult structures

Information about the specified Amazon WorkSpaces clients.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

AccessDeniedException:

The user is not authorized to access a resource.

DescribeConnectClientAddIns

$result = $client->describeConnectClientAddIns([/* ... */]);
$promise = $client->describeConnectClientAddInsAsync([/* ... */]);

Retrieves a list of Connect Customer client add-ins that have been created.

Parameter Syntax

$result = $client->describeConnectClientAddIns([
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
    'ResourceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
MaxResults
Type: int

The maximum number of items to return.

NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

ResourceId
Required: Yes
Type: string

The directory identifier for which the client add-in is configured.

Result Syntax

[
    'AddIns' => [
        [
            'AddInId' => '<string>',
            'Name' => '<string>',
            'ResourceId' => '<string>',
            'URL' => '<string>',
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
AddIns
Type: Array of ConnectClientAddIn structures

Information about client add-ins.

NextToken
Type: string

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

AccessDeniedException:

The user is not authorized to access a resource.

DescribeConnectionAliasPermissions

$result = $client->describeConnectionAliasPermissions([/* ... */]);
$promise = $client->describeConnectionAliasPermissionsAsync([/* ... */]);

Describes the permissions that the owner of a connection alias has granted to another Amazon Web Services account for the specified connection alias. For more information, see Cross-Region Redirection for Amazon WorkSpaces.

Parameter Syntax

$result = $client->describeConnectionAliasPermissions([
    'AliasId' => '<string>', // REQUIRED
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
AliasId
Required: Yes
Type: string

The identifier of the connection alias.

MaxResults
Type: int

The maximum number of results to return.

NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

Result Syntax

[
    'AliasId' => '<string>',
    'ConnectionAliasPermissions' => [
        [
            'AllowAssociation' => true || false,
            'SharedAccountId' => '<string>',
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
AliasId
Type: string

The identifier of the connection alias.

ConnectionAliasPermissions
Type: Array of ConnectionAliasPermission structures

The permissions associated with a connection alias.

NextToken
Type: string

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

OperationNotSupportedException:

This operation is not supported.

DescribeConnectionAliases

$result = $client->describeConnectionAliases([/* ... */]);
$promise = $client->describeConnectionAliasesAsync([/* ... */]);

Retrieves a list that describes the connection aliases used for cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces.

Parameter Syntax

$result = $client->describeConnectionAliases([
    'AliasIds' => ['<string>', ...],
    'Limit' => <integer>,
    'NextToken' => '<string>',
    'ResourceId' => '<string>',
]);

Parameter Details

Members
AliasIds
Type: Array of strings

The identifiers of the connection aliases to describe.

Limit
Type: int

The maximum number of connection aliases to return.

NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

ResourceId
Type: string

The identifier of the directory associated with the connection alias.

Result Syntax

[
    'ConnectionAliases' => [
        [
            'AliasId' => '<string>',
            'Associations' => [
                [
                    'AssociatedAccountId' => '<string>',
                    'AssociationStatus' => 'NOT_ASSOCIATED|ASSOCIATED_WITH_OWNER_ACCOUNT|ASSOCIATED_WITH_SHARED_ACCOUNT|PENDING_ASSOCIATION|PENDING_DISASSOCIATION',
                    'ConnectionIdentifier' => '<string>',
                    'ResourceId' => '<string>',
                ],
                // ...
            ],
            'ConnectionString' => '<string>',
            'OwnerAccountId' => '<string>',
            'State' => 'CREATING|CREATED|DELETING',
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
ConnectionAliases
Type: Array of ConnectionAlias structures

Information about the specified connection aliases.

NextToken
Type: string

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

OperationNotSupportedException:

This operation is not supported.

DescribeCustomWorkspaceImageImport

$result = $client->describeCustomWorkspaceImageImport([/* ... */]);
$promise = $client->describeCustomWorkspaceImageImportAsync([/* ... */]);

Retrieves information about a WorkSpace BYOL image being imported via ImportCustomWorkspaceImage.

Parameter Syntax

$result = $client->describeCustomWorkspaceImageImport([
    'ImageId' => '<string>', // REQUIRED
]);

Parameter Details

Members
ImageId
Required: Yes
Type: string

The identifier of the WorkSpace image.

Result Syntax

[
    'Created' => <DateTime>,
    'ErrorDetails' => [
        [
            'ErrorCode' => '<string>',
            'ErrorMessage' => '<string>',
        ],
        // ...
    ],
    'ImageBuilderInstanceId' => '<string>',
    'ImageId' => '<string>',
    'ImageSource' => [
        'Ec2ImageId' => '<string>',
        'Ec2ImportTaskId' => '<string>',
        'ImageBuildVersionArn' => '<string>',
    ],
    'InfrastructureConfigurationArn' => '<string>',
    'LastUpdatedTime' => <DateTime>,
    'ProgressPercentage' => <integer>,
    'State' => 'PENDING|IN_PROGRESS|PROCESSING_SOURCE_IMAGE|IMAGE_TESTING_START|UPDATING_OPERATING_SYSTEM|IMAGE_COMPATIBILITY_CHECKING|IMAGE_TESTING_GENERALIZATION|CREATING_TEST_INSTANCE|INSTALLING_COMPONENTS|GENERALIZING|VALIDATING|PUBLISHING|COMPLETED|ERROR',
    'StateMessage' => '<string>',
]

Result Details

Members
Created
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the WorkSpace image import was created.

ErrorDetails
Type: Array of CustomWorkspaceImageImportErrorDetails structures

Describes in-depth details about the error. These details include the possible causes of the error and troubleshooting information.

ImageBuilderInstanceId
Type: string

The image builder instance ID of the WorkSpace image.

ImageId
Type: string

The identifier of the WorkSpace image.

ImageSource
Type: ImageSourceIdentifier structure

Describes the image import source.

InfrastructureConfigurationArn
Type: string

The infrastructure configuration ARN that specifies how the WorkSpace image is built.

LastUpdatedTime
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the WorkSpace image import was last updated.

ProgressPercentage
Type: int

The estimated progress percentage of the WorkSpace image import workflow.

State
Type: string

The state of the WorkSpace image.

StateMessage
Type: string

The state message of the WorkSpace image import workflow.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

ResourceNotFoundException:

The resource could not be found.

DescribeImageAssociations

$result = $client->describeImageAssociations([/* ... */]);
$promise = $client->describeImageAssociationsAsync([/* ... */]);

Describes the associations between the applications and the specified image.

Parameter Syntax

$result = $client->describeImageAssociations([
    'AssociatedResourceTypes' => ['<string>', ...], // REQUIRED
    'ImageId' => '<string>', // REQUIRED
]);

Parameter Details

Members
AssociatedResourceTypes
Required: Yes
Type: Array of strings

The resource types of the associated resource.

ImageId
Required: Yes
Type: string

The identifier of the image.

Result Syntax

[
    'Associations' => [
        [
            'AssociatedResourceId' => '<string>',
            'AssociatedResourceType' => 'APPLICATION',
            'Created' => <DateTime>,
            'ImageId' => '<string>',
            'LastUpdatedTime' => <DateTime>,
            'State' => 'PENDING_INSTALL|PENDING_INSTALL_DEPLOYMENT|PENDING_UNINSTALL|PENDING_UNINSTALL_DEPLOYMENT|INSTALLING|UNINSTALLING|ERROR|COMPLETED|REMOVED',
            'StateReason' => [
                'ErrorCode' => 'ValidationError.InsufficientDiskSpace|ValidationError.InsufficientMemory|ValidationError.UnsupportedOperatingSystem|DeploymentError.InternalServerError|DeploymentError.WorkspaceUnreachable|ValidationError.ApplicationOldVersionExists',
                'ErrorMessage' => '<string>',
            ],
        ],
        // ...
    ],
]

Result Details

Members
Associations
Type: Array of ImageResourceAssociation structures

List of information about the specified associations.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

OperationNotSupportedException:

This operation is not supported.

ResourceNotFoundException:

The resource could not be found.

DescribeIpGroups

$result = $client->describeIpGroups([/* ... */]);
$promise = $client->describeIpGroupsAsync([/* ... */]);

Describes one or more of your IP access control groups.

Parameter Syntax

$result = $client->describeIpGroups([
    'GroupIds' => ['<string>', ...],
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
GroupIds
Type: Array of strings

The identifiers of one or more IP access control groups.

MaxResults
Type: int

The maximum number of items to return.

NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

Result Syntax

[
    'NextToken' => '<string>',
    'Result' => [
        [
            'groupDesc' => '<string>',
            'groupId' => '<string>',
            'groupName' => '<string>',
            'userRules' => [
                [
                    'ipRule' => '<string>',
                    'ruleDesc' => '<string>',
                ],
                // ...
            ],
        ],
        // ...
    ],
]

Result Details

Members
NextToken
Type: string

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

Result
Type: Array of WorkspacesIpGroup structures

Information about the IP access control groups.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

AccessDeniedException:

The user is not authorized to access a resource.

DescribeTags

$result = $client->describeTags([/* ... */]);
$promise = $client->describeTagsAsync([/* ... */]);

Describes the specified tags for the specified WorkSpaces resource.

Parameter Syntax

$result = $client->describeTags([
    'ResourceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
ResourceId
Required: Yes
Type: string

The identifier of the WorkSpaces resource. The supported resource types are WorkSpaces, registered directories, images, custom bundles, IP access control groups, connection aliases, agentic persona configurations, agentic contexts (Markdown content files for agents), WorkSpace-enforced policies, and agent-enforced policies.

Result Syntax

[
    'TagList' => [
        [
            'Key' => '<string>',
            'Value' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
TagList
Type: Array of Tag structures

The tags.

Errors

ResourceNotFoundException:

The resource could not be found.

DescribeWorkspaceAssociations

$result = $client->describeWorkspaceAssociations([/* ... */]);
$promise = $client->describeWorkspaceAssociationsAsync([/* ... */]);

Describes the associations betweens applications and the specified WorkSpace.

Parameter Syntax

$result = $client->describeWorkspaceAssociations([
    'AssociatedResourceTypes' => ['<string>', ...], // REQUIRED
    'WorkspaceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
AssociatedResourceTypes
Required: Yes
Type: Array of strings

The resource types of the associated resources.

WorkspaceId
Required: Yes
Type: string

The identifier of the WorkSpace.

Result Syntax

[
    'Associations' => [
        [
            'AssociatedResourceId' => '<string>',
            'AssociatedResourceType' => 'APPLICATION',
            'Created' => <DateTime>,
            'LastUpdatedTime' => <DateTime>,
            'State' => 'PENDING_INSTALL|PENDING_INSTALL_DEPLOYMENT|PENDING_UNINSTALL|PENDING_UNINSTALL_DEPLOYMENT|INSTALLING|UNINSTALLING|ERROR|COMPLETED|REMOVED',
            'StateReason' => [
                'ErrorCode' => 'ValidationError.InsufficientDiskSpace|ValidationError.InsufficientMemory|ValidationError.UnsupportedOperatingSystem|DeploymentError.InternalServerError|DeploymentError.WorkspaceUnreachable|ValidationError.ApplicationOldVersionExists',
                'ErrorMessage' => '<string>',
            ],
            'WorkspaceId' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
Associations
Type: Array of WorkspaceResourceAssociation structures

List of information about the specified associations.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

OperationNotSupportedException:

This operation is not supported.

ResourceNotFoundException:

The resource could not be found.

DescribeWorkspaceBundles

$result = $client->describeWorkspaceBundles([/* ... */]);
$promise = $client->describeWorkspaceBundlesAsync([/* ... */]);

Retrieves a list that describes the available WorkSpace bundles.

You can filter the results using either bundle ID or owner, but not both.

Parameter Syntax

$result = $client->describeWorkspaceBundles([
    'BundleIds' => ['<string>', ...],
    'NextToken' => '<string>',
    'Owner' => '<string>',
]);

Parameter Details

Members
BundleIds
Type: Array of strings

The identifiers of the bundles. You cannot combine this parameter with any other filter.

NextToken
Type: string

The token for the next set of results. (You received this token from a previous call.)

Owner
Type: string

The owner of the bundles. You cannot combine this parameter with any other filter.

To describe the bundles provided by Amazon Web Services, specify AMAZON. To describe the bundles that belong to your account, don't specify a value.

Result Syntax

[
    'Bundles' => [
        [
            'BundleId' => '<string>',
            'BundleType' => 'REGULAR|STANDBY',
            'ComputeType' => [
                'Name' => 'VALUE|STANDARD|PERFORMANCE|POWER|GRAPHICS|POWERPRO|GENERALPURPOSE_4XLARGE|GENERALPURPOSE_8XLARGE|GRAPHICSPRO|GRAPHICS_G4DN|GRAPHICSPRO_G4DN|GRAPHICS_G6_XLARGE|GRAPHICS_G6_2XLARGE|GRAPHICS_G6_4XLARGE|GRAPHICS_G6_8XLARGE|GRAPHICS_G6_16XLARGE|GRAPHICS_GR6_4XLARGE|GRAPHICS_GR6_8XLARGE|GRAPHICS_G6F_LARGE|GRAPHICS_G6F_XLARGE|GRAPHICS_G6F_2XLARGE|GRAPHICS_G6F_4XLARGE|GRAPHICS_GR6F_4XLARGE|GRAPHICS_G7_2XLARGE|GRAPHICS_G7_4XLARGE|GRAPHICS_G7_8XLARGE|GRAPHICS_G7_12XLARGE',
            ],
            'CreationTime' => <DateTime>,
            'Description' => '<string>',
            'ImageId' => '<string>',
            'LastUpdatedTime' => <DateTime>,
            'Name' => '<string>',
            'Owner' => '<string>',
            'RootStorage' => [
                'Capacity' => '<string>',
            ],
            'State' => 'AVAILABLE|PENDING|ERROR',
            'UserStorage' => [
                'Capacity' => '<string>',
            ],
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
Bundles
Type: Array of WorkspaceBundle structures

Information about the bundles.

NextToken
Type: string

The token to use to retrieve the next page of results. This value is null when there are no more results to return. This token is valid for one day and must be used within that time frame.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

DescribeWorkspaceDirectories

$result = $client->describeWorkspaceDirectories([/* ... */]);
$promise = $client->describeWorkspaceDirectoriesAsync([/* ... */]);

Describes the available directories that are registered with Amazon WorkSpaces.

Parameter Syntax

$result = $client->describeWorkspaceDirectories([
    'DirectoryIds' => ['<string>', ...],
    'Filters' => [
        [
            'Name' => 'USER_IDENTITY_TYPE|WORKSPACE_TYPE', // REQUIRED
            'Values' => ['<string>', ...], // REQUIRED
        ],
        // ...
    ],
    'Limit' => <integer>,
    'NextToken' => '<string>',
    'WorkspaceDirectoryNames' => ['<string>', ...],
]);

Parameter Details

Members
DirectoryIds
Type: Array of strings

The identifiers of the directories. If the value is null, all directories are retrieved.

Filters
Type: Array of DescribeWorkspaceDirectoriesFilter structures

The filter condition for the WorkSpaces.

Limit
Type: int

The maximum number of directories to return.

NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

WorkspaceDirectoryNames
Type: Array of strings

The names of the WorkSpace directories.

Result Syntax

[
    'Directories' => [
        [
            'ActiveDirectoryConfig' => [
                'DomainName' => '<string>',
                'ServiceAccountSecretArn' => '<string>',
            ],
            'Alias' => '<string>',
            'CertificateBasedAuthProperties' => [
                'CertificateAuthorityArn' => '<string>',
                'Status' => 'DISABLED|ENABLED',
            ],
            'CustomerUserName' => '<string>',
            'DirectoryId' => '<string>',
            'DirectoryName' => '<string>',
            'DirectoryType' => 'SIMPLE_AD|AD_CONNECTOR|CUSTOMER_MANAGED|AWS_IAM_IDENTITY_CENTER',
            'DnsIpAddresses' => ['<string>', ...],
            'DnsIpv6Addresses' => ['<string>', ...],
            'EndpointEncryptionMode' => 'STANDARD_TLS|FIPS_VALIDATED',
            'ErrorMessage' => '<string>',
            'IDCConfig' => [
                'ApplicationArn' => '<string>',
                'InstanceArn' => '<string>',
            ],
            'IamRoleId' => '<string>',
            'MicrosoftEntraConfig' => [
                'ApplicationConfigSecretArn' => '<string>',
                'TenantId' => '<string>',
            ],
            'RegistrationCode' => '<string>',
            'SamlProperties' => [
                'RelayStateParameterName' => '<string>',
                'Status' => 'DISABLED|ENABLED|ENABLED_WITH_DIRECTORY_LOGIN_FALLBACK',
                'UserAccessUrl' => '<string>',
            ],
            'SelfservicePermissions' => [
                'ChangeComputeType' => 'ENABLED|DISABLED',
                'EnableEndUserAdvisor' => 'ENABLED|DISABLED',
                'IncreaseVolumeSize' => 'ENABLED|DISABLED',
                'NestedVirtualization' => 'ENABLED|DISABLED',
                'RebuildWorkspace' => 'ENABLED|DISABLED',
                'RestartWorkspace' => 'ENABLED|DISABLED',
                'SwitchRunningMode' => 'ENABLED|DISABLED',
            ],
            'State' => 'REGISTERING|REGISTERED|DEREGISTERING|DEREGISTERED|ERROR',
            'StreamingProperties' => [
                'GlobalAccelerator' => [
                    'Mode' => 'ENABLED_AUTO|DISABLED',
                    'PreferredProtocol' => 'TCP|NONE',
                ],
                'StorageConnectors' => [
                    [
                        'ConnectorType' => 'HOME_FOLDER',
                        'Status' => 'ENABLED|DISABLED',
                    ],
                    // ...
                ],
                'StreamingExperiencePreferredProtocol' => 'TCP|UDP',
                'UserSettings' => [
                    [
                        'Action' => 'CLIPBOARD_COPY_FROM_LOCAL_DEVICE|CLIPBOARD_COPY_TO_LOCAL_DEVICE|PRINTING_TO_LOCAL_DEVICE|SMART_CARD',
                        'MaximumLength' => <integer>,
                        'Permission' => 'ENABLED|DISABLED',
                    ],
                    // ...
                ],
            ],
            'SubnetIds' => ['<string>', ...],
            'Tenancy' => 'DEDICATED|SHARED',
            'UserIdentityType' => 'CUSTOMER_MANAGED|AWS_DIRECTORY_SERVICE|AWS_IAM_IDENTITY_CENTER',
            'WorkspaceAccessProperties' => [
                'AccessEndpointConfig' => [
                    'AccessEndpoints' => [
                        [
                            'AccessEndpointType' => 'STREAMING_WSP',
                            'VpcEndpointId' => '<string>',
                        ],
                        // ...
                    ],
                    'InternetFallbackProtocols' => ['<string>', ...],
                ],
                'DeviceTypeAndroid' => 'ALLOW|DENY',
                'DeviceTypeChromeOs' => 'ALLOW|DENY',
                'DeviceTypeIos' => 'ALLOW|DENY',
                'DeviceTypeLinux' => 'ALLOW|DENY',
                'DeviceTypeOsx' => 'ALLOW|DENY',
                'DeviceTypeWeb' => 'ALLOW|DENY',
                'DeviceTypeWindows' => 'ALLOW|DENY',
                'DeviceTypeWorkSpacesThinClient' => 'ALLOW|DENY',
                'DeviceTypeZeroClient' => 'ALLOW|DENY',
            ],
            'WorkspaceCreationProperties' => [
                'CustomSecurityGroupId' => '<string>',
                'DefaultOu' => '<string>',
                'EnableInternetAccess' => true || false,
                'EnableMaintenanceMode' => true || false,
                'InstanceIamRoleArn' => '<string>',
                'UserEnabledAsLocalAdministrator' => true || false,
            ],
            'WorkspaceDirectoryDescription' => '<string>',
            'WorkspaceDirectoryName' => '<string>',
            'WorkspaceOsUserMode' => 'LOCAL_USER|DOMAIN_JOIN|ENTRA_JOIN|SELF_MANAGED',
            'WorkspaceSecurityGroupId' => '<string>',
            'WorkspaceType' => 'PERSONAL|POOLS',
            'ipGroupIds' => ['<string>', ...],
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
Directories
Type: Array of WorkspaceDirectory structures

Information about the directories.

NextToken
Type: string

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

DescribeWorkspaceImagePermissions

$result = $client->describeWorkspaceImagePermissions([/* ... */]);
$promise = $client->describeWorkspaceImagePermissionsAsync([/* ... */]);

Describes the permissions that the owner of an image has granted to other Amazon Web Services accounts for an image.

Parameter Syntax

$result = $client->describeWorkspaceImagePermissions([
    'ImageId' => '<string>', // REQUIRED
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
ImageId
Required: Yes
Type: string

The identifier of the image.

MaxResults
Type: int

The maximum number of items to return.

NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

Result Syntax

[
    'ImageId' => '<string>',
    'ImagePermissions' => [
        [
            'SharedAccountId' => '<string>',
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
ImageId
Type: string

The identifier of the image.

ImagePermissions
Type: Array of ImagePermission structures

The identifiers of the Amazon Web Services accounts that the image has been shared with.

NextToken
Type: string

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

Errors

ResourceNotFoundException:

The resource could not be found.

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

DescribeWorkspaceImages

$result = $client->describeWorkspaceImages([/* ... */]);
$promise = $client->describeWorkspaceImagesAsync([/* ... */]);

Retrieves a list that describes one or more specified images, if the image identifiers are provided. Otherwise, all images in the account are described.

Parameter Syntax

$result = $client->describeWorkspaceImages([
    'ImageIds' => ['<string>', ...],
    'ImageType' => 'OWNED|SHARED',
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
ImageIds
Type: Array of strings

The identifier of the image.

ImageType
Type: string

The type (owned or shared) of the image.

MaxResults
Type: int

The maximum number of items to return.

NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

Result Syntax

[
    'Images' => [
        [
            'Created' => <DateTime>,
            'Description' => '<string>',
            'ErrorCode' => '<string>',
            'ErrorDetails' => [
                [
                    'ErrorCode' => 'OutdatedPowershellVersion|OfficeInstalled|PCoIPAgentInstalled|WindowsUpdatesEnabled|AutoMountDisabled|WorkspacesBYOLAccountNotFound|WorkspacesBYOLAccountDisabled|DHCPDisabled|DiskFreeSpace|AdditionalDrivesAttached|OSNotSupported|DomainJoined|AzureDomainJoined|FirewallEnabled|VMWareToolsInstalled|DiskSizeExceeded|IncompatiblePartitioning|PendingReboot|AutoLogonEnabled|RealTimeUniversalDisabled|MultipleBootPartition|Requires64BitOS|ZeroRearmCount|InPlaceUpgrade|AntiVirusInstalled|UEFINotSupported|UnknownError|AppXPackagesInstalled|ReservedStorageInUse|AdditionalDrivesPresent|WindowsUpdatesRequired|SysPrepFileMissing|UserProfileMissing|InsufficientDiskSpace|EnvironmentVariablesPathMissingEntries|DomainAccountServicesFound|InvalidIp|RemoteDesktopServicesDisabled|WindowsModulesInstallerDisabled|AmazonSsmAgentEnabled|UnsupportedSecurityProtocol|MultipleUserProfiles|StagedAppxPackage|UnsupportedOsUpgrade|InsufficientRearmCount|ProtocolOSIncompatibility|MemoryIntegrityIncompatibility|RestrictedDriveLetterInUse',
                    'ErrorMessage' => '<string>',
                ],
                // ...
            ],
            'ErrorMessage' => '<string>',
            'ImageId' => '<string>',
            'Name' => '<string>',
            'OperatingSystem' => [
                'Type' => 'WINDOWS|LINUX',
            ],
            'OwnerAccountId' => '<string>',
            'RequiredTenancy' => 'DEFAULT|DEDICATED',
            'State' => 'AVAILABLE|PENDING|ERROR',
            'Updates' => [
                'Description' => '<string>',
                'UpdateAvailable' => true || false,
            ],
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
Images
Type: Array of WorkspaceImage structures

Information about the images.

NextToken
Type: string

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

DescribeWorkspaceSnapshots

$result = $client->describeWorkspaceSnapshots([/* ... */]);
$promise = $client->describeWorkspaceSnapshotsAsync([/* ... */]);

Describes the snapshots for the specified WorkSpace.

Parameter Syntax

$result = $client->describeWorkspaceSnapshots([
    'WorkspaceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
WorkspaceId
Required: Yes
Type: string

The identifier of the WorkSpace.

Result Syntax

[
    'RebuildSnapshots' => [
        [
            'SnapshotTime' => <DateTime>,
        ],
        // ...
    ],
    'RestoreSnapshots' => [
        [
            'SnapshotTime' => <DateTime>,
        ],
        // ...
    ],
]

Result Details

Members
RebuildSnapshots
Type: Array of Snapshot structures

Information about the snapshots that can be used to rebuild a WorkSpace. These snapshots include the user volume.

RestoreSnapshots
Type: Array of Snapshot structures

Information about the snapshots that can be used to restore a WorkSpace. These snapshots include both the root volume and the user volume.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

AccessDeniedException:

The user is not authorized to access a resource.

DescribeWorkspaces

$result = $client->describeWorkspaces([/* ... */]);
$promise = $client->describeWorkspacesAsync([/* ... */]);

Describes the specified WorkSpaces.

You can filter the results by using the bundle identifier, directory identifier, or owner, but you can specify only one filter at a time.

Parameter Syntax

$result = $client->describeWorkspaces([
    'BundleId' => '<string>',
    'DirectoryId' => '<string>',
    'Limit' => <integer>,
    'NextToken' => '<string>',
    'UserName' => '<string>',
    'WorkspaceIds' => ['<string>', ...],
    'WorkspaceName' => '<string>',
]);

Parameter Details

Members
BundleId
Type: string

The identifier of the bundle. All WorkSpaces that are created from this bundle are retrieved. You cannot combine this parameter with any other filter.

DirectoryId
Type: string

The identifier of the directory. In addition, you can optionally specify a specific directory user (see UserName). You cannot combine this parameter with any other filter.

Limit
Type: int

The maximum number of items to return.

NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

UserName
Type: string

The name of the directory user. You must specify this parameter with DirectoryId.

WorkspaceIds
Type: Array of strings

The identifiers of the WorkSpaces. You cannot combine this parameter with any other filter.

Because the CreateWorkspaces operation is asynchronous, the identifier it returns is not immediately available. If you immediately call DescribeWorkspaces with this identifier, no information is returned.

WorkspaceName
Type: string

The name of the user-decoupled WorkSpace.

Result Syntax

[
    'NextToken' => '<string>',
    'Workspaces' => [
        [
            'BundleId' => '<string>',
            'ComputerName' => '<string>',
            'DataReplicationSettings' => [
                'DataReplication' => 'NO_REPLICATION|PRIMARY_AS_SOURCE',
                'RecoverySnapshotTime' => <DateTime>,
            ],
            'DirectoryId' => '<string>',
            'ErrorCode' => '<string>',
            'ErrorMessage' => '<string>',
            'IpAddress' => '<string>',
            'Ipv6Address' => '<string>',
            'ModificationStates' => [
                [
                    'Resource' => 'ROOT_VOLUME|USER_VOLUME|COMPUTE_TYPE|PROTOCOL|NESTED_VIRTUALIZATION',
                    'State' => 'UPDATE_INITIATED|UPDATE_IN_PROGRESS|UPDATE_FAILED',
                ],
                // ...
            ],
            'RelatedWorkspaces' => [
                [
                    'Region' => '<string>',
                    'State' => 'PENDING|AVAILABLE|IMPAIRED|UNHEALTHY|REBOOTING|STARTING|REBUILDING|RESTORING|MAINTENANCE|ADMIN_MAINTENANCE|TERMINATING|TERMINATED|SUSPENDED|UPDATING|STOPPING|STOPPED|ERROR',
                    'Type' => 'PRIMARY|STANDBY',
                    'WorkspaceId' => '<string>',
                ],
                // ...
            ],
            'RootVolumeEncryptionEnabled' => true || false,
            'StandbyWorkspacesProperties' => [
                [
                    'DataReplication' => 'NO_REPLICATION|PRIMARY_AS_SOURCE',
                    'RecoverySnapshotTime' => <DateTime>,
                    'StandbyWorkspaceId' => '<string>',
                ],
                // ...
            ],
            'State' => 'PENDING|AVAILABLE|IMPAIRED|UNHEALTHY|REBOOTING|STARTING|REBUILDING|RESTORING|MAINTENANCE|ADMIN_MAINTENANCE|TERMINATING|TERMINATED|SUSPENDED|UPDATING|STOPPING|STOPPED|ERROR',
            'SubnetId' => '<string>',
            'UserName' => '<string>',
            'UserVolumeEncryptionEnabled' => true || false,
            'VolumeEncryptionKey' => '<string>',
            'WorkspaceCategory' => 'PERSONAL|AGENTIC',
            'WorkspaceId' => '<string>',
            'WorkspaceName' => '<string>',
            'WorkspaceProperties' => [
                'ComputeTypeName' => 'VALUE|STANDARD|PERFORMANCE|POWER|GRAPHICS|POWERPRO|GENERALPURPOSE_4XLARGE|GENERALPURPOSE_8XLARGE|GRAPHICSPRO|GRAPHICS_G4DN|GRAPHICSPRO_G4DN|GRAPHICS_G6_XLARGE|GRAPHICS_G6_2XLARGE|GRAPHICS_G6_4XLARGE|GRAPHICS_G6_8XLARGE|GRAPHICS_G6_16XLARGE|GRAPHICS_GR6_4XLARGE|GRAPHICS_GR6_8XLARGE|GRAPHICS_G6F_LARGE|GRAPHICS_G6F_XLARGE|GRAPHICS_G6F_2XLARGE|GRAPHICS_G6F_4XLARGE|GRAPHICS_GR6F_4XLARGE|GRAPHICS_G7_2XLARGE|GRAPHICS_G7_4XLARGE|GRAPHICS_G7_8XLARGE|GRAPHICS_G7_12XLARGE',
                'GlobalAccelerator' => [
                    'Mode' => 'ENABLED_AUTO|DISABLED|INHERITED',
                    'PreferredProtocol' => 'TCP|NONE|INHERITED',
                ],
                'NestedVirtualizationEnabled' => true || false,
                'OperatingSystemName' => 'AMAZON_LINUX_2|UBUNTU_18_04|UBUNTU_20_04|UBUNTU_22_04|UNKNOWN|WINDOWS_10|WINDOWS_11|WINDOWS_7|WINDOWS_SERVER_2016|WINDOWS_SERVER_2019|WINDOWS_SERVER_2022|WINDOWS_SERVER_2025|RHEL_8|ROCKY_8|UBUNTU_24_04|RHEL_9|ROCKY_9|UBUNTU_26_04|RHEL_10|ROCKY_10',
                'Protocols' => ['<string>', ...],
                'RootVolumeSizeGib' => <integer>,
                'RunningMode' => 'AUTO_STOP|ALWAYS_ON|MANUAL',
                'RunningModeAutoStopTimeoutInMinutes' => <integer>,
                'UserVolumeSizeGib' => <integer>,
            ],
        ],
        // ...
    ],
]

Result Details

Members
NextToken
Type: string

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

Workspaces
Type: Array of Workspace structures

Information about the WorkSpaces.

Because CreateWorkspaces is an asynchronous operation, some of the returned information could be incomplete.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceUnavailableException:

The specified resource is not available.

DescribeWorkspacesConnectionStatus

$result = $client->describeWorkspacesConnectionStatus([/* ... */]);
$promise = $client->describeWorkspacesConnectionStatusAsync([/* ... */]);

Describes the connection status of the specified WorkSpaces.

Parameter Syntax

$result = $client->describeWorkspacesConnectionStatus([
    'NextToken' => '<string>',
    'WorkspaceIds' => ['<string>', ...],
]);

Parameter Details

Members
NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

WorkspaceIds
Type: Array of strings

The identifiers of the WorkSpaces. You can specify up to 25 WorkSpaces.

Result Syntax

[
    'NextToken' => '<string>',
    'WorkspacesConnectionStatus' => [
        [
            'ConnectionState' => 'CONNECTED|DISCONNECTED|UNKNOWN',
            'ConnectionStateCheckTimestamp' => <DateTime>,
            'LastKnownUserConnectionTimestamp' => <DateTime>,
            'WorkspaceId' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
NextToken
Type: string

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

WorkspacesConnectionStatus
Type: Array of WorkspaceConnectionStatus structures

Information about the connection status of the WorkSpace.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

DescribeWorkspacesPoolSessions

$result = $client->describeWorkspacesPoolSessions([/* ... */]);
$promise = $client->describeWorkspacesPoolSessionsAsync([/* ... */]);

End of support notice: On December 31, 2027, Amazon Web Services will end support for Amazon WorkSpaces Pools. After December 31, 2027, you will no longer be able to access the Amazon WorkSpaces Pools console or Amazon WorkSpaces Pools resources. For more information, see Amazon WorkSpaces Pools end of support.

Retrieves a list that describes the streaming sessions for a specified pool.

Parameter Syntax

$result = $client->describeWorkspacesPoolSessions([
    'Limit' => <integer>,
    'NextToken' => '<string>',
    'PoolId' => '<string>', // REQUIRED
    'UserId' => '<string>',
]);

Parameter Details

Members
Limit
Type: int

The maximum size of each page of results. The default value is 20 and the maximum value is 50.

NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

PoolId
Required: Yes
Type: string

The identifier of the pool.

UserId
Type: string

The identifier of the user.

Result Syntax

[
    'NextToken' => '<string>',
    'Sessions' => [
        [
            'AuthenticationType' => 'SAML',
            'ConnectionState' => 'CONNECTED|NOT_CONNECTED',
            'ExpirationTime' => <DateTime>,
            'InstanceId' => '<string>',
            'NetworkAccessConfiguration' => [
                'EniId' => '<string>',
                'EniPrivateIpAddress' => '<string>',
            ],
            'PoolId' => '<string>',
            'SessionId' => '<string>',
            'StartTime' => <DateTime>,
            'UserId' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

Sessions
Type: Array of WorkspacesPoolSession structures

Describes the pool sessions.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

AccessDeniedException:

The user is not authorized to access a resource.

DescribeWorkspacesPools

$result = $client->describeWorkspacesPools([/* ... */]);
$promise = $client->describeWorkspacesPoolsAsync([/* ... */]);

End of support notice: On December 31, 2027, Amazon Web Services will end support for Amazon WorkSpaces Pools. After December 31, 2027, you will no longer be able to access the Amazon WorkSpaces Pools console or Amazon WorkSpaces Pools resources. For more information, see Amazon WorkSpaces Pools end of support.

Describes the specified WorkSpaces Pools.

Parameter Syntax

$result = $client->describeWorkspacesPools([
    'Filters' => [
        [
            'Name' => 'PoolName', // REQUIRED
            'Operator' => 'EQUALS|NOTEQUALS|CONTAINS|NOTCONTAINS', // REQUIRED
            'Values' => ['<string>', ...], // REQUIRED
        ],
        // ...
    ],
    'Limit' => <integer>,
    'NextToken' => '<string>',
    'PoolIds' => ['<string>', ...],
]);

Parameter Details

Members
Filters
Type: Array of DescribeWorkspacesPoolsFilter structures

The filter conditions for the WorkSpaces Pool to return.

Limit
Type: int

The maximum number of items to return.

NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

PoolIds
Type: Array of strings

The identifier of the WorkSpaces Pools.

Result Syntax

[
    'NextToken' => '<string>',
    'WorkspacesPools' => [
        [
            'ApplicationSettings' => [
                'S3BucketName' => '<string>',
                'SettingsGroup' => '<string>',
                'Status' => 'DISABLED|ENABLED',
            ],
            'BundleId' => '<string>',
            'CapacityStatus' => [
                'ActiveUserSessions' => <integer>,
                'ActualUserSessions' => <integer>,
                'AvailableUserSessions' => <integer>,
                'DesiredUserSessions' => <integer>,
            ],
            'CreatedAt' => <DateTime>,
            'Description' => '<string>',
            'DirectoryId' => '<string>',
            'Errors' => [
                [
                    'ErrorCode' => 'IAM_SERVICE_ROLE_IS_MISSING|IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION|IAM_SERVICE_ROLE_MISSING_ENI_CREATE_ACTION|IAM_SERVICE_ROLE_MISSING_ENI_DELETE_ACTION|NETWORK_INTERFACE_LIMIT_EXCEEDED|INTERNAL_SERVICE_ERROR|MACHINE_ROLE_IS_MISSING|STS_DISABLED_IN_REGION|SUBNET_HAS_INSUFFICIENT_IP_ADDRESSES|IAM_SERVICE_ROLE_MISSING_DESCRIBE_SUBNET_ACTION|SUBNET_NOT_FOUND|IMAGE_NOT_FOUND|INVALID_SUBNET_CONFIGURATION|SECURITY_GROUPS_NOT_FOUND|IGW_NOT_ATTACHED|IAM_SERVICE_ROLE_MISSING_DESCRIBE_SECURITY_GROUPS_ACTION|WORKSPACES_POOL_STOPPED|WORKSPACES_POOL_INSTANCE_PROVISIONING_FAILURE|DOMAIN_JOIN_ERROR_FILE_NOT_FOUND|DOMAIN_JOIN_ERROR_ACCESS_DENIED|DOMAIN_JOIN_ERROR_LOGON_FAILURE|DOMAIN_JOIN_ERROR_INVALID_PARAMETER|DOMAIN_JOIN_ERROR_MORE_DATA|DOMAIN_JOIN_ERROR_NO_SUCH_DOMAIN|DOMAIN_JOIN_ERROR_NOT_SUPPORTED|DOMAIN_JOIN_NERR_INVALID_WORKGROUP_NAME|DOMAIN_JOIN_NERR_WORKSTATION_NOT_STARTED|DOMAIN_JOIN_ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED|DOMAIN_JOIN_NERR_PASSWORD_EXPIRED|DOMAIN_JOIN_INTERNAL_SERVICE_ERROR|DOMAIN_JOIN_ERROR_SECRET_ACTION_PERMISSION_IS_MISSING|DOMAIN_JOIN_ERROR_SECRET_DECRYPTION_FAILURE|DOMAIN_JOIN_ERROR_SECRET_STATE_INVALID|DOMAIN_JOIN_ERROR_SECRET_NOT_FOUND|DOMAIN_JOIN_ERROR_SECRET_VALUE_KEY_NOT_FOUND|DOMAIN_JOIN_ERROR_SECRET_INVALID|BUNDLE_NOT_FOUND|DIRECTORY_NOT_FOUND|INSUFFICIENT_PERMISSIONS_ERROR|DEFAULT_OU_IS_MISSING',
                    'ErrorMessage' => '<string>',
                ],
                // ...
            ],
            'PoolArn' => '<string>',
            'PoolId' => '<string>',
            'PoolName' => '<string>',
            'RunningMode' => 'AUTO_STOP|ALWAYS_ON',
            'State' => 'CREATING|DELETING|RUNNING|STARTING|STOPPED|STOPPING|UPDATING',
            'TimeoutSettings' => [
                'DisconnectTimeoutInSeconds' => <integer>,
                'IdleDisconnectTimeoutInSeconds' => <integer>,
                'MaxUserDurationInSeconds' => <integer>,
            ],
        ],
        // ...
    ],
]

Result Details

Members
NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

WorkspacesPools
Type: Array of WorkspacesPool structures

Information about the WorkSpaces Pools.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

AccessDeniedException:

The user is not authorized to access a resource.

DisassociateAccountModels

$result = $client->disassociateAccountModels([/* ... */]);
$promise = $client->disassociateAccountModelsAsync([/* ... */]);

Removes models from your account's model list. The operation ignores models that aren't on the list. WorkSpaces and persona configurations that use a removed model continue to reference it in their configuration, but the service blocks requests to the model. Your account must keep at least one model. If the request would remove the last model, the operation returns ValidationException.

Parameter Syntax

$result = $client->disassociateAccountModels([
    'ModelIds' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
ModelIds
Required: Yes
Type: Array of strings

The identifiers of the models to remove from your account's model list.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

ConflictException:

The request conflicts with the current state of a resource, for example because a name is already in use or the resource is still in use. Resolve the conflict, and then retry your request.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Removing models from an account

The following example removes two models from the account's model list.

$result = $client->disassociateAccountModels([
    'ModelIds' => [
        'anthropic.claude-opus-5-5',
        'anthropic.claude-haiku-5-5',
    ],
]);

Result syntax:

[
]

DisassociateConnectionAlias

$result = $client->disassociateConnectionAlias([/* ... */]);
$promise = $client->disassociateConnectionAliasAsync([/* ... */]);

Disassociates a connection alias from a directory. Disassociating a connection alias disables cross-Region redirection between two directories in different Regions. For more information, see Cross-Region Redirection for Amazon WorkSpaces.

Before performing this operation, call DescribeConnectionAliases to make sure that the current state of the connection alias is CREATED.

Parameter Syntax

$result = $client->disassociateConnectionAlias([
    'AliasId' => '<string>', // REQUIRED
]);

Parameter Details

Members
AliasId
Required: Yes
Type: string

The identifier of the connection alias to disassociate.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

ResourceNotFoundException:

The resource could not be found.

InvalidParameterValuesException:

One or more parameter values are not valid.

InvalidResourceStateException:

The state of the resource is not valid for this operation.

OperationNotSupportedException:

This operation is not supported.

DisassociateIpGroups

$result = $client->disassociateIpGroups([/* ... */]);
$promise = $client->disassociateIpGroupsAsync([/* ... */]);

Disassociates the specified IP access control group from the specified directory.

Parameter Syntax

$result = $client->disassociateIpGroups([
    'DirectoryId' => '<string>', // REQUIRED
    'GroupIds' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
DirectoryId
Required: Yes
Type: string

The identifier of the directory.

GroupIds
Required: Yes
Type: Array of strings

The identifiers of one or more IP access control groups.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

InvalidResourceStateException:

The state of the resource is not valid for this operation.

AccessDeniedException:

The user is not authorized to access a resource.

OperationNotSupportedException:

This operation is not supported.

DisassociateWorkspaceAgenticConnectors

$result = $client->disassociateWorkspaceAgenticConnectors([/* ... */]);
$promise = $client->disassociateWorkspaceAgenticConnectorsAsync([/* ... */]);

Disassociates agentic connectors from the specified WorkSpace. The operation ignores connectors that aren't associated with the WorkSpace. If the WorkSpace is in a state that doesn't allow the change, the operation returns ConflictException.

Parameter Syntax

$result = $client->disassociateWorkspaceAgenticConnectors([
    'AgenticConnectorIds' => ['<string>', ...], // REQUIRED
    'WorkspaceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
AgenticConnectorIds
Required: Yes
Type: Array of strings

The identifiers of the connectors to disassociate.

WorkspaceId
Required: Yes
Type: string

The identifier of the WorkSpace.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

ResourceNotFoundException:

The resource could not be found.

ConflictException:

The request conflicts with the current state of a resource, for example because a name is already in use or the resource is still in use. Resolve the conflict, and then retry your request.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Removing a connector from a WorkSpace

The following example removes a connector from an agentic WorkSpace.

$result = $client->disassociateWorkspaceAgenticConnectors([
    'AgenticConnectorIds' => [
        'wsacn-jira',
    ],
    'WorkspaceId' => 'ws-dk1example1',
]);

Result syntax:

[
]

DisassociateWorkspaceAgenticContexts

$result = $client->disassociateWorkspaceAgenticContexts([/* ... */]);
$promise = $client->disassociateWorkspaceAgenticContextsAsync([/* ... */]);

Disassociates agentic contexts from the specified WorkSpace. The operation ignores contexts that aren't associated with the WorkSpace. If the WorkSpace is in a state that doesn't allow the change, the operation returns ConflictException.

Parameter Syntax

$result = $client->disassociateWorkspaceAgenticContexts([
    'AgenticContextIds' => ['<string>', ...], // REQUIRED
    'WorkspaceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
AgenticContextIds
Required: Yes
Type: Array of strings

The identifiers of the contexts to disassociate.

WorkspaceId
Required: Yes
Type: string

The identifier of the WorkSpace.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

ResourceNotFoundException:

The resource could not be found.

ConflictException:

The request conflicts with the current state of a resource, for example because a name is already in use or the resource is still in use. Resolve the conflict, and then retry your request.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Removing a context from a WorkSpace

The following example removes a context from an agentic WorkSpace.

$result = $client->disassociateWorkspaceAgenticContexts([
    'AgenticContextIds' => [
        'wsactx-e5f6g7h8',
    ],
    'WorkspaceId' => 'ws-dk1example1',
]);

Result syntax:

[
]

DisassociateWorkspaceApplication

$result = $client->disassociateWorkspaceApplication([/* ... */]);
$promise = $client->disassociateWorkspaceApplicationAsync([/* ... */]);

Disassociates the specified application from a WorkSpace.

Parameter Syntax

$result = $client->disassociateWorkspaceApplication([
    'ApplicationId' => '<string>', // REQUIRED
    'WorkspaceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
ApplicationId
Required: Yes
Type: string

The identifier of the application.

WorkspaceId
Required: Yes
Type: string

The identifier of the WorkSpace.

Result Syntax

[
    'Association' => [
        'AssociatedResourceId' => '<string>',
        'AssociatedResourceType' => 'APPLICATION',
        'Created' => <DateTime>,
        'LastUpdatedTime' => <DateTime>,
        'State' => 'PENDING_INSTALL|PENDING_INSTALL_DEPLOYMENT|PENDING_UNINSTALL|PENDING_UNINSTALL_DEPLOYMENT|INSTALLING|UNINSTALLING|ERROR|COMPLETED|REMOVED',
        'StateReason' => [
            'ErrorCode' => 'ValidationError.InsufficientDiskSpace|ValidationError.InsufficientMemory|ValidationError.UnsupportedOperatingSystem|DeploymentError.InternalServerError|DeploymentError.WorkspaceUnreachable|ValidationError.ApplicationOldVersionExists',
            'ErrorMessage' => '<string>',
        ],
        'WorkspaceId' => '<string>',
    ],
]

Result Details

Members
Association

Information about the targeted association.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

OperationNotSupportedException:

This operation is not supported.

ResourceInUseException:

The specified resource is currently in use.

ResourceNotFoundException:

The resource could not be found.

DisassociateWorkspaceModels

$result = $client->disassociateWorkspaceModels([/* ... */]);
$promise = $client->disassociateWorkspaceModelsAsync([/* ... */]);

Disassociates models from the specified WorkSpace. The operation ignores models that aren't associated with the WorkSpace. A WorkSpace must keep at least one model. If the request would remove the last model, the operation returns ValidationException. If the WorkSpace is in a state that doesn't allow the change, the operation returns ConflictException.

Parameter Syntax

$result = $client->disassociateWorkspaceModels([
    'ModelIds' => ['<string>', ...], // REQUIRED
    'WorkspaceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
ModelIds
Required: Yes
Type: Array of strings

The identifiers of the models to disassociate.

WorkspaceId
Required: Yes
Type: string

The identifier of the WorkSpace.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

ResourceNotFoundException:

The resource could not be found.

ConflictException:

The request conflicts with the current state of a resource, for example because a name is already in use or the resource is still in use. Resolve the conflict, and then retry your request.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Removing a model from a WorkSpace

The following example removes a model from an agentic WorkSpace.

$result = $client->disassociateWorkspaceModels([
    'ModelIds' => [
        'anthropic.claude-opus-5-5',
    ],
    'WorkspaceId' => 'ws-dk1example1',
]);

Result syntax:

[
]
$result = $client->getAccountLink([/* ... */]);
$promise = $client->getAccountLinkAsync([/* ... */]);

Retrieves account link information.

Parameter Syntax

$result = $client->getAccountLink([
    'LinkId' => '<string>',
    'LinkedAccountId' => '<string>',
]);

Parameter Details

Members
LinkId
Type: string

The identifier of the account to link.

LinkedAccountId
Type: string

The identifier of the account link

Result Syntax

[
    'AccountLink' => [
        'AccountLinkId' => '<string>',
        'AccountLinkStatus' => 'LINKED|LINKING_FAILED|LINK_NOT_FOUND|PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT|REJECTED',
        'SourceAccountId' => '<string>',
        'TargetAccountId' => '<string>',
    ],
]

Result Details

Members
AccountLink
Type: AccountLink structure

The account link of the account link to retrieve.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

ResourceNotFoundException:

The resource could not be found.

InternalServerException:

An unexpected server error occurred. Retry your request.

GetAgenticAccountSetup

$result = $client->getAgenticAccountSetup([/* ... */]);
$promise = $client->getAgenticAccountSetupAsync([/* ... */]);

Describes the agentic setup of your account in the current Region. If you haven't set up your account, the status is NOT_SET_UP.

Parameter Syntax

$result = $client->getAgenticAccountSetup([
]);

Parameter Details

Members

Result Syntax

[
    'AgenticAccountSetup' => [
        'ErrorCode' => 'INFERENCE_PROVIDER_ACCESS_DENIED|GATEWAY_FAILED|ROLE_NOT_ASSUMABLE|INSUFFICIENT_CAPACITY|UNKNOWN|INTERNAL_ERROR',
        'ErrorMessage' => '<string>',
        'Status' => 'NOT_SET_UP|SETTING_UP|READY|SETUP_FAILED|FAILED|UPDATING|UPDATE_FAILED',
    ],
]

Result Details

Members
AgenticAccountSetup
Required: Yes
Type: AgenticAccountSetup structure

The agentic account setup.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Checking the agentic setup status of an account

The following example returns the agentic setup status of the calling account.

$result = $client->getAgenticAccountSetup([
]);

Result syntax:

[
    'AgenticAccountSetup' => [
        'Status' => 'READY',
    ],
]

GetAgenticContext

$result = $client->getAgenticContext([/* ... */]);
$promise = $client->getAgenticContextAsync([/* ... */]);

Describes an agentic context, including its body.

Parameter Syntax

$result = $client->getAgenticContext([
    'AgenticContextId' => '<string>', // REQUIRED
]);

Parameter Details

Members
AgenticContextId
Required: Yes
Type: string

The identifier of the context.

Result Syntax

[
    'AgenticContext' => [
        'ContextBody' => '<string>',
        'ContextBodySizeBytes' => <integer>,
        'ContextType' => 'STEERING|SKILL|WORKFLOW',
        'CreatedAt' => <DateTime>,
        'Description' => '<string>',
        'Id' => '<string>',
        'Name' => '<string>',
        'TargetFilePath' => '<string>',
        'UpdatedAt' => <DateTime>,
    ],
]

Result Details

Members
AgenticContext
Required: Yes
Type: AgenticContext structure

The agentic context.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

ResourceNotFoundException:

The resource could not be found.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Getting a context

The following example gets a context, including its body.

$result = $client->getAgenticContext([
    'AgenticContextId' => 'wsactx-a1b2c3d4',
]);

Result syntax:

[
    'AgenticContext' => [
        'ContextBody' => '# Coding standardsWrite unit tests for every change.',
        'ContextBodySizeBytes' => 54,
        'ContextType' => 'STEERING',
        'CreatedAt' => ,
        'Description' => 'Team coding standards for agents.',
        'Id' => 'wsactx-a1b2c3d4',
        'Name' => 'coding-standards',
        'TargetFilePath' => 'coding-standards.md',
        'UpdatedAt' => ,
    ],
]

GetAgenticWorkspaceConfiguration

$result = $client->getAgenticWorkspaceConfiguration([/* ... */]);
$promise = $client->getAgenticWorkspaceConfigurationAsync([/* ... */]);

Describes the agentic configuration of the specified WorkSpace, including its models, agent runtime, connectors, contexts, enforced policies, and agent health.

Parameter Syntax

$result = $client->getAgenticWorkspaceConfiguration([
    'WorkspaceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
WorkspaceId
Required: Yes
Type: string

The identifier of the WorkSpace.

Result Syntax

[
    'AgenticWorkspaceConfiguration' => [
        'AgentEnforcedPolicy' => [
            'ErrorCode' => 'POLICY_APPLY_FAILED',
            'ErrorMessage' => '<string>',
            'PolicyId' => '<string>',
            'SyncStatus' => 'PENDING_UPDATE|IN_SYNC|FAILED',
        ],
        'AgentRuntime' => [
            'Id' => '<string>',
            'Name' => '<string>',
        ],
        'AgenticRuntimeState' => [
            'ErrorCode' => 'BOOT|INSTALL|RECONCILE|SELF_UPDATE|ROLLBACK|AGENT_UPDATE_REQUIRED|CREDENTIAL_REFRESH_FAILING|PERMISSION_DENIED|SESSION_CAPACITY_EXHAUSTED|BOOT_TIMED_OUT|RECONCILE_TIMED_OUT|CODING_AGENT_BINARY_MISSING|CODING_AGENT_BINARY_CORRUPT|CREDENTIALS_EXPIRED|CONFIG_APPLY_FAILED|DCV_CHANNEL_UNAVAILABLE|WORKSPACE_NOT_RUNNING|AGENT_UNREACHABLE',
            'ErrorMessage' => '<string>',
            'Status' => 'AVAILABLE|PENDING|IMPAIRED|ERROR|UNKNOWN',
        ],
        'Connectors' => [
            [
                'Id' => '<string>',
                'Name' => '<string>',
            ],
            // ...
        ],
        'Contexts' => [
            [
                'ContextType' => 'STEERING|SKILL|WORKFLOW',
                'FileName' => '<string>',
                'Id' => '<string>',
                'Name' => '<string>',
            ],
            // ...
        ],
        'Models' => [
            [
                'Id' => '<string>',
                'Name' => '<string>',
            ],
            // ...
        ],
        'WorkspaceEnforcedPolicy' => [
            'ErrorCode' => 'POLICY_APPLY_FAILED',
            'ErrorMessage' => '<string>',
            'PolicyId' => '<string>',
            'SyncStatus' => 'PENDING_UPDATE|IN_SYNC|FAILED',
        ],
    ],
]

Result Details

Members
AgenticWorkspaceConfiguration
Required: Yes
Type: AgenticWorkspaceConfiguration structure

The agentic configuration of the WorkSpace.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

ResourceNotFoundException:

The resource could not be found.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Getting the agentic configuration of a WorkSpace

The following example gets the models, agent runtime, connectors, contexts, enforced policies, and agent health of a WorkSpace.

$result = $client->getAgenticWorkspaceConfiguration([
    'WorkspaceId' => 'ws-dk1example1',
]);

Result syntax:

[
    'AgenticWorkspaceConfiguration' => [
        'AgentEnforcedPolicy' => [
            'PolicyId' => 'wsae-a1b2c3d4',
            'SyncStatus' => 'IN_SYNC',
        ],
        'AgentRuntime' => [
            'Id' => 'wsart-claudecode',
            'Name' => 'Claude Code',
        ],
        'AgenticRuntimeState' => [
            'Status' => 'AVAILABLE',
        ],
        'Connectors' => [
            [
                'Id' => 'wsacn-github',
                'Name' => 'github',
            ],
        ],
        'Contexts' => [
            [
                'ContextType' => 'STEERING',
                'FileName' => 'coding-standards.md',
                'Id' => 'wsactx-a1b2c3d4',
                'Name' => 'coding-standards',
            ],
        ],
        'Models' => [
            [
                'Id' => 'anthropic.claude-sonnet-5-5',
                'Name' => 'Claude Sonnet 5.5',
            ],
        ],
        'WorkspaceEnforcedPolicy' => [
            'PolicyId' => 'wsep-a1b2c3d4',
            'SyncStatus' => 'IN_SYNC',
        ],
    ],
]

ImportClientBranding

$result = $client->importClientBranding([/* ... */]);
$promise = $client->importClientBrandingAsync([/* ... */]);

Imports client branding. Client branding allows you to customize your WorkSpace's client login portal. You can tailor your login portal company logo, the support email address, support link, link to reset password, and a custom message for users trying to sign in.

After you import client branding, the default branding experience for the specified platform type is replaced with the imported experience

  • You must specify at least one platform type when importing client branding.

  • You can import up to 6 MB of data with each request. If your request exceeds this limit, you can import client branding for different platform types using separate requests.

  • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify only one parameter for each platform type, but not both.

  • Imported data can take up to a minute to appear in the WorkSpaces client.

Parameter Syntax

$result = $client->importClientBranding([
    'DeviceTypeAndroid' => [
        'ForgotPasswordLink' => '<string>',
        'LoginMessage' => ['<string>', ...],
        'Logo' => <string || resource || Psr\Http\Message\StreamInterface>,
        'SupportEmail' => '<string>',
        'SupportLink' => '<string>',
    ],
    'DeviceTypeIos' => [
        'ForgotPasswordLink' => '<string>',
        'LoginMessage' => ['<string>', ...],
        'Logo' => <string || resource || Psr\Http\Message\StreamInterface>,
        'Logo2x' => <string || resource || Psr\Http\Message\StreamInterface>,
        'Logo3x' => <string || resource || Psr\Http\Message\StreamInterface>,
        'SupportEmail' => '<string>',
        'SupportLink' => '<string>',
    ],
    'DeviceTypeLinux' => [
        'ForgotPasswordLink' => '<string>',
        'LoginMessage' => ['<string>', ...],
        'Logo' => <string || resource || Psr\Http\Message\StreamInterface>,
        'SupportEmail' => '<string>',
        'SupportLink' => '<string>',
    ],
    'DeviceTypeOsx' => [
        'ForgotPasswordLink' => '<string>',
        'LoginMessage' => ['<string>', ...],
        'Logo' => <string || resource || Psr\Http\Message\StreamInterface>,
        'SupportEmail' => '<string>',
        'SupportLink' => '<string>',
    ],
    'DeviceTypeWeb' => [
        'ForgotPasswordLink' => '<string>',
        'LoginMessage' => ['<string>', ...],
        'Logo' => <string || resource || Psr\Http\Message\StreamInterface>,
        'SupportEmail' => '<string>',
        'SupportLink' => '<string>',
    ],
    'DeviceTypeWindows' => [
        'ForgotPasswordLink' => '<string>',
        'LoginMessage' => ['<string>', ...],
        'Logo' => <string || resource || Psr\Http\Message\StreamInterface>,
        'SupportEmail' => '<string>',
        'SupportLink' => '<string>',
    ],
    'ResourceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
DeviceTypeAndroid

The branding information to import for Android devices.

DeviceTypeIos

The branding information to import for iOS devices.

DeviceTypeLinux

The branding information to import for Linux devices.

DeviceTypeOsx

The branding information to import for macOS devices.

DeviceTypeWeb

The branding information to import for web access.

DeviceTypeWindows

The branding information to import for Windows devices.

ResourceId
Required: Yes
Type: string

The directory identifier of the WorkSpace for which you want to import client branding.

Result Syntax

[
    'DeviceTypeAndroid' => [
        'ForgotPasswordLink' => '<string>',
        'LoginMessage' => ['<string>', ...],
        'LogoUrl' => '<string>',
        'SupportEmail' => '<string>',
        'SupportLink' => '<string>',
    ],
    'DeviceTypeIos' => [
        'ForgotPasswordLink' => '<string>',
        'LoginMessage' => ['<string>', ...],
        'Logo2xUrl' => '<string>',
        'Logo3xUrl' => '<string>',
        'LogoUrl' => '<string>',
        'SupportEmail' => '<string>',
        'SupportLink' => '<string>',
    ],
    'DeviceTypeLinux' => [
        'ForgotPasswordLink' => '<string>',
        'LoginMessage' => ['<string>', ...],
        'LogoUrl' => '<string>',
        'SupportEmail' => '<string>',
        'SupportLink' => '<string>',
    ],
    'DeviceTypeOsx' => [
        'ForgotPasswordLink' => '<string>',
        'LoginMessage' => ['<string>', ...],
        'LogoUrl' => '<string>',
        'SupportEmail' => '<string>',
        'SupportLink' => '<string>',
    ],
    'DeviceTypeWeb' => [
        'ForgotPasswordLink' => '<string>',
        'LoginMessage' => ['<string>', ...],
        'LogoUrl' => '<string>',
        'SupportEmail' => '<string>',
        'SupportLink' => '<string>',
    ],
    'DeviceTypeWindows' => [
        'ForgotPasswordLink' => '<string>',
        'LoginMessage' => ['<string>', ...],
        'LogoUrl' => '<string>',
        'SupportEmail' => '<string>',
        'SupportLink' => '<string>',
    ],
]

Result Details

Members
DeviceTypeAndroid

The branding information configured for Android devices.

DeviceTypeIos
Type: IosClientBrandingAttributes structure

The branding information configured for iOS devices.

DeviceTypeLinux

The branding information configured for Linux devices.

DeviceTypeOsx

The branding information configured for macOS devices.

DeviceTypeWeb

The branding information configured for web access.

DeviceTypeWindows

The branding information configured for Windows devices.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceLimitExceededException:

Your resource limits have been exceeded.

ResourceNotFoundException:

The resource could not be found.

AccessDeniedException:

The user is not authorized to access a resource.

ImportCustomWorkspaceImage

$result = $client->importCustomWorkspaceImage([/* ... */]);
$promise = $client->importCustomWorkspaceImageAsync([/* ... */]);

Imports the specified Windows 10 or 11 Bring Your Own License (BYOL) image into Amazon WorkSpaces using EC2 Image Builder. The image must be an already licensed image that is in your Amazon Web Services account, and you must own the image. For more information about creating BYOL images, see Bring Your Own Windows Desktop Licenses.

Parameter Syntax

$result = $client->importCustomWorkspaceImage([
    'ComputeType' => 'BASE|GRAPHICS_G4DN|GRAPHICS_G6|GRAPHICS_G7', // REQUIRED
    'ImageDescription' => '<string>', // REQUIRED
    'ImageName' => '<string>', // REQUIRED
    'ImageSource' => [ // REQUIRED
        'Ec2ImageId' => '<string>',
        'Ec2ImportTaskId' => '<string>',
        'ImageBuildVersionArn' => '<string>',
    ],
    'ImageValidationMode' => 'CUSTOMER_MANAGED|SERVICE_MANAGED',
    'InfrastructureConfigurationArn' => '<string>', // REQUIRED
    'OsVersion' => 'Windows_10|Windows_11', // REQUIRED
    'Platform' => 'WINDOWS', // REQUIRED
    'Protocol' => 'PCOIP|DCV|BYOP', // REQUIRED
    'Tags' => [
        [
            'Key' => '<string>', // REQUIRED
            'Value' => '<string>',
        ],
        // ...
    ],
]);

Parameter Details

Members
ComputeType
Required: Yes
Type: string

The supported compute type for the WorkSpace image.

ImageDescription
Required: Yes
Type: string

The description of the WorkSpace image.

ImageName
Required: Yes
Type: string

The name of the WorkSpace image.

ImageSource
Required: Yes
Type: ImageSourceIdentifier structure

The options for image import source.

ImageValidationMode
Type: string

The image validation mode for the WorkSpace image import.

InfrastructureConfigurationArn
Required: Yes
Type: string

The infrastructure configuration ARN that specifies how the WorkSpace image is built.

OsVersion
Required: Yes
Type: string

The OS version for the WorkSpace image source.

Platform
Required: Yes
Type: string

The platform for the WorkSpace image source.

Protocol
Required: Yes
Type: string

The supported protocol for the WorkSpace image. Windows 11 does not support PCOIP protocol.

Tags
Type: Array of Tag structures

The resource tags. Each WorkSpaces resource can have a maximum of 50 tags.

Result Syntax

[
    'ImageId' => '<string>',
    'State' => 'PENDING|IN_PROGRESS|PROCESSING_SOURCE_IMAGE|IMAGE_TESTING_START|UPDATING_OPERATING_SYSTEM|IMAGE_COMPATIBILITY_CHECKING|IMAGE_TESTING_GENERALIZATION|CREATING_TEST_INSTANCE|INSTALLING_COMPONENTS|GENERALIZING|VALIDATING|PUBLISHING|COMPLETED|ERROR',
]

Result Details

Members
ImageId
Type: string

The identifier of the WorkSpace image.

State
Type: string

The state of the WorkSpace image.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

OperationNotSupportedException:

This operation is not supported.

ResourceNotFoundException:

The resource could not be found.

ResourceAlreadyExistsException:

The specified resource already exists.

ResourceLimitExceededException:

Your resource limits have been exceeded.

ImportWorkspaceImage

$result = $client->importWorkspaceImage([/* ... */]);
$promise = $client->importWorkspaceImageAsync([/* ... */]);

Imports the specified Windows 10 or 11 Bring Your Own License (BYOL) image into Amazon WorkSpaces. The image must be an already licensed Amazon EC2 image that is in your Amazon Web Services account, and you must own the image. For more information about creating BYOL images, see Bring Your Own Windows Desktop Licenses.

Parameter Syntax

$result = $client->importWorkspaceImage([
    'Applications' => ['<string>', ...],
    'Ec2ImageId' => '<string>', // REQUIRED
    'ImageDescription' => '<string>', // REQUIRED
    'ImageName' => '<string>', // REQUIRED
    'IngestionProcess' => 'BYOL_REGULAR|BYOL_GRAPHICS|BYOL_GRAPHICSPRO|BYOL_GRAPHICS_G4DN|BYOL_REGULAR_WSP|BYOL_GRAPHICS_G4DN_WSP|BYOL_REGULAR_BYOP|BYOL_GRAPHICS_G4DN_BYOP', // REQUIRED
    'Tags' => [
        [
            'Key' => '<string>', // REQUIRED
            'Value' => '<string>',
        ],
        // ...
    ],
]);

Parameter Details

Members
Applications
Type: Array of strings

If specified, the version of Microsoft Office to subscribe to. Valid only for Windows 10 and 11 BYOL images. For more information about subscribing to Office for BYOL images, see Bring Your Own Windows Desktop Licenses.

  • Although this parameter is an array, only one item is allowed at this time.

  • During the image import process, non-GPU DCV (formerly WSP) WorkSpaces with Windows 11 support only Microsoft_Office_2019. GPU DCV (formerly WSP) WorkSpaces with Windows 11 do not support Office installation.

Ec2ImageId
Required: Yes
Type: string

The identifier of the EC2 image.

ImageDescription
Required: Yes
Type: string

The description of the WorkSpace image.

ImageName
Required: Yes
Type: string

The name of the WorkSpace image.

IngestionProcess
Required: Yes
Type: string

The ingestion process to be used when importing the image, depending on which protocol you want to use for your BYOL Workspace image, either PCoIP, WSP, or bring your own protocol (BYOP). To use DCV, specify a value that ends in _WSP. To use PCoIP, specify a value that does not end in _WSP. To use BYOP, specify a value that ends in _BYOP.

For non-GPU-enabled bundles (bundles other than Graphics or GraphicsPro), specify BYOL_REGULAR, BYOL_REGULAR_WSP, or BYOL_REGULAR_BYOP, depending on the protocol.

The BYOL_REGULAR_BYOP and BYOL_GRAPHICS_G4DN_BYOP values are only supported by Amazon WorkSpaces Core. Contact your account team to be allow-listed to use these values. For more information, see Amazon WorkSpaces Core.

Tags
Type: Array of Tag structures

The tags. Each WorkSpaces resource can have a maximum of 50 tags.

Result Syntax

[
    'ImageId' => '<string>',
]

Result Details

Members
ImageId
Type: string

The identifier of the WorkSpace image.

Errors

ResourceLimitExceededException:

Your resource limits have been exceeded.

ResourceAlreadyExistsException:

The specified resource already exists.

ResourceNotFoundException:

The resource could not be found.

OperationNotSupportedException:

This operation is not supported.

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

$result = $client->listAccountLinks([/* ... */]);
$promise = $client->listAccountLinksAsync([/* ... */]);

Lists all account links.

Parameter Syntax

$result = $client->listAccountLinks([
    'LinkStatusFilter' => ['<string>', ...],
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
LinkStatusFilter
Type: Array of strings

Filters the account based on their link status.

MaxResults
Type: int

The maximum number of accounts to return.

NextToken
Type: string

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

Result Syntax

[
    'AccountLinks' => [
        [
            'AccountLinkId' => '<string>',
            'AccountLinkStatus' => 'LINKED|LINKING_FAILED|LINK_NOT_FOUND|PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT|REJECTED',
            'SourceAccountId' => '<string>',
            'TargetAccountId' => '<string>',
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
AccountLinks
Type: Array of AccountLink structures

Information about the account links.

NextToken
Type: string

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

InternalServerException:

An unexpected server error occurred. Retry your request.

ListAccountModels

$result = $client->listAccountModels([/* ... */]);
$promise = $client->listAccountModelsAsync([/* ... */]);

Lists the models on your account's model list, sorted by model ID. This operation is paginated. To get the next page, pass the NextToken from the previous response.

Parameter Syntax

$result = $client->listAccountModels([
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
MaxResults
Type: int

The maximum number of items to return. Valid range: 1–100.

NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

Result Syntax

[
    'Models' => [
        [
            'ModelId' => '<string>',
            'Name' => '<string>',
            'Status' => 'ASSOCIATED',
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
Models
Required: Yes
Type: Array of AccountModel structures

The models.

NextToken
Type: string

The token to use to retrieve the next page of results, or null if there are no more results.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Listing the models on an account's model list

The following example lists the models on the calling account's model list.

$result = $client->listAccountModels([
    'MaxResults' => 25,
]);

Result syntax:

[
    'Models' => [
        [
            'ModelId' => 'anthropic.claude-opus-5-5',
            'Name' => 'Claude Opus 5.5',
            'Status' => 'ASSOCIATED',
        ],
        [
            'ModelId' => 'anthropic.claude-sonnet-5-5',
            'Name' => 'Claude Sonnet 5.5',
            'Status' => 'ASSOCIATED',
        ],
    ],
]

ListAgentEnforcedPolicies

$result = $client->listAgentEnforcedPolicies([/* ... */]);
$promise = $client->listAgentEnforcedPoliciesAsync([/* ... */]);

Lists the agent-enforced policies that you can use, including policies that Amazon owns. This operation is paginated. To get the next page, pass the NextToken from the previous response.

Parameter Syntax

$result = $client->listAgentEnforcedPolicies([
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
    'Owner' => 'SELF|AMAZON',
]);

Parameter Details

Members
MaxResults
Type: int

The maximum number of items to return. Valid range: 1–100.

NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

Owner
Type: string

If you specify this field, the operation returns only policies with this owner: SELF or AMAZON. Omit it to return both.

Result Syntax

[
    'NextToken' => '<string>',
    'PolicySummaries' => [
        [
            'Id' => '<string>',
            'Name' => '<string>',
            'Owner' => 'SELF|AMAZON',
        ],
        // ...
    ],
]

Result Details

Members
NextToken
Type: string

The token to use to retrieve the next page of results, or null if there are no more results.

PolicySummaries
Required: Yes
Type: Array of AgentEnforcedPolicyListSummary structures

The policy summaries.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Listing your agent-enforced policies

The following example lists the agent-enforced policies that you created.

$result = $client->listAgentEnforcedPolicies([
    'MaxResults' => 10,
    'Owner' => 'SELF',
]);

Result syntax:

[
    'PolicySummaries' => [
        [
            'Id' => 'wsae-a1b2c3d4',
            'Name' => 'no-user-extensions',
            'Owner' => 'SELF',
        ],
    ],
]

ListAgenticConnectors

$result = $client->listAgenticConnectors([/* ... */]);
$promise = $client->listAgenticConnectorsAsync([/* ... */]);

Lists the agentic connectors available to your account, with their activation status. This operation is paginated. To get the next page, pass the NextToken from the previous response.

Parameter Syntax

$result = $client->listAgenticConnectors([
    'ActivationStatus' => 'ACTIVATED|DEACTIVATED|PENDING|PENDING_DELETE|ACTIVATION_ERROR|DEACTIVATION_ERROR',
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
ActivationStatus
Type: string

If you specify this field, the operation returns only connectors with this activation status. Omit it to return connectors in every status.

MaxResults
Type: int

The maximum number of items to return. Valid range: 1–25. The default is 25.

NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

Result Syntax

[
    'AgenticConnectorSummaries' => [
        [
            'ActivationStatus' => 'ACTIVATED|DEACTIVATED|PENDING|PENDING_DELETE|ACTIVATION_ERROR|DEACTIVATION_ERROR',
            'AuthType' => 'OAUTH|API_KEY|NONE',
            'Description' => '<string>',
            'Id' => '<string>',
            'Name' => '<string>',
            'ServerType' => 'HOSTED|LOCAL',
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
AgenticConnectorSummaries
Required: Yes
Type: Array of AgenticConnectorSummary structures

The agentic connector summaries.

NextToken
Type: string

The token to use to retrieve the next page of results, or null if there are no more results.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Listing activated connectors

The following example lists the connectors that are activated in the account.

$result = $client->listAgenticConnectors([
    'ActivationStatus' => 'ACTIVATED',
    'MaxResults' => 25,
]);

Result syntax:

[
    'AgenticConnectorSummaries' => [
        [
            'ActivationStatus' => 'ACTIVATED',
            'AuthType' => 'OAUTH',
            'Description' => 'Repositories, issues and pull requests on github.com.',
            'Id' => 'wsacn-github',
            'Name' => 'github',
            'ServerType' => 'HOSTED',
        ],
    ],
]

ListAgenticContexts

$result = $client->listAgenticContexts([/* ... */]);
$promise = $client->listAgenticContextsAsync([/* ... */]);

Lists the agentic contexts in your account. This operation is paginated. To get the next page, pass the NextToken from the previous response.

Parameter Syntax

$result = $client->listAgenticContexts([
    'ContextType' => 'STEERING|SKILL|WORKFLOW',
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
ContextType
Type: string

If you specify this field, the operation returns only contexts of this type. Omit it to return contexts of every type. When you filter by type, a page can contain fewer than MaxResults items, or none, even when more results are available. Continue to call the operation until the response doesn't include a NextToken.

MaxResults
Type: int

The maximum number of items to return. Valid range: 1–100.

NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

Result Syntax

[
    'AgenticContextSummaries' => [
        [
            'ContextType' => 'STEERING|SKILL|WORKFLOW',
            'Description' => '<string>',
            'Id' => '<string>',
            'Name' => '<string>',
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
AgenticContextSummaries
Required: Yes
Type: Array of AgenticContextSummary structures

The agentic context summaries.

NextToken
Type: string

The token to use to retrieve the next page of results, or null if there are no more results.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Listing steering contexts

The following example lists the steering contexts in the account.

$result = $client->listAgenticContexts([
    'ContextType' => 'STEERING',
    'MaxResults' => 10,
]);

Result syntax:

[
    'AgenticContextSummaries' => [
        [
            'ContextType' => 'STEERING',
            'Description' => 'Team coding standards for agents.',
            'Id' => 'wsactx-a1b2c3d4',
            'Name' => 'coding-standards',
        ],
    ],
]

ListAgenticPersonaConfigurations

$result = $client->listAgenticPersonaConfigurations([/* ... */]);
$promise = $client->listAgenticPersonaConfigurationsAsync([/* ... */]);

Lists the agentic persona configurations in your account. This operation is paginated. To get the next page, pass the NextToken from the previous response.

Parameter Syntax

$result = $client->listAgenticPersonaConfigurations([
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
MaxResults
Type: int

The maximum number of items to return. Valid range: 1–100.

NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

Result Syntax

[
    'AgenticPersonaConfigurationSummaries' => [
        [
            'Description' => '<string>',
            'Id' => '<string>',
            'Name' => '<string>',
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
AgenticPersonaConfigurationSummaries
Required: Yes
Type: Array of AgenticPersonaConfigurationSummary structures

The agentic persona configuration summaries.

NextToken
Type: string

The token to use to retrieve the next page of results, or null if there are no more results.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Listing persona configurations

The following example lists the persona configurations in the account.

$result = $client->listAgenticPersonaConfigurations([
    'MaxResults' => 10,
]);

Result syntax:

[
    'AgenticPersonaConfigurationSummaries' => [
        [
            'Description' => 'Persona for backend developers.',
            'Id' => 'wsapc-a1b2c3d4',
            'Name' => 'backend-developer',
        ],
    ],
]

ListAvailableManagementCidrRanges

$result = $client->listAvailableManagementCidrRanges([/* ... */]);
$promise = $client->listAvailableManagementCidrRangesAsync([/* ... */]);

Retrieves a list of IP address ranges, specified as IPv4 CIDR blocks, that you can use for the network management interface when you enable Bring Your Own License (BYOL).

This operation can be run only by Amazon Web Services accounts that are enabled for BYOL. If your account isn't enabled for BYOL, you'll receive an AccessDeniedException error.

The management network interface is connected to a secure Amazon WorkSpaces management network. It is used for interactive streaming of the WorkSpace desktop to Amazon WorkSpaces clients, and to allow Amazon WorkSpaces to manage the WorkSpace.

Parameter Syntax

$result = $client->listAvailableManagementCidrRanges([
    'ManagementCidrRangeConstraint' => '<string>', // REQUIRED
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
ManagementCidrRangeConstraint
Required: Yes
Type: string

The IP address range to search. Specify an IP address range that is compatible with your network and in CIDR notation (that is, specify the range as an IPv4 CIDR block).

MaxResults
Type: int

The maximum number of items to return.

NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

Result Syntax

[
    'ManagementCidrRanges' => ['<string>', ...],
    'NextToken' => '<string>',
]

Result Details

Members
ManagementCidrRanges
Type: Array of strings

The list of available IP address ranges, specified as IPv4 CIDR blocks.

NextToken
Type: string

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

AccessDeniedException:

The user is not authorized to access a resource.

ListSupportedModels

$result = $client->listSupportedModels([/* ... */]);
$promise = $client->listSupportedModelsAsync([/* ... */]);

Lists the models that you can add to your account's model list, sorted by model ID. This operation is paginated. To get the next page, pass the NextToken from the previous response.

Parameter Syntax

$result = $client->listSupportedModels([
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
MaxResults
Type: int

The maximum number of items to return. Valid range: 1–100.

NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

Result Syntax

[
    'ModelSummaries' => [
        [
            'ModelId' => '<string>',
            'Name' => '<string>',
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
ModelSummaries
Required: Yes
Type: Array of ModelSummary structures

The model summaries.

NextToken
Type: string

The token to use to retrieve the next page of results, or null if there are no more results.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Listing the models that Agentic WorkSpaces supports

The following example lists the first two models that you can add to your account's model list. To get the next page, call ListSupportedModels again with the returned NextToken.

$result = $client->listSupportedModels([
    'MaxResults' => 2,
]);

Result syntax:

[
    'ModelSummaries' => [
        [
            'ModelId' => 'anthropic.claude-haiku-5-5',
            'Name' => 'Claude Haiku 5.5',
        ],
        [
            'ModelId' => 'anthropic.claude-opus-5-5',
            'Name' => 'Claude Opus 5.5',
        ],
    ],
    'NextToken' => 'eyJsYXN0IjoiYW50aHJvcGljLmNsYXVkZS1vcHVzLTUtNSJ9EXAMPLE',
]

ListWorkspaceEnforcedPolicies

$result = $client->listWorkspaceEnforcedPolicies([/* ... */]);
$promise = $client->listWorkspaceEnforcedPoliciesAsync([/* ... */]);

Lists the WorkSpace-enforced policies that you can use, including policies that Amazon owns. This operation is paginated. To get the next page, pass the NextToken from the previous response.

Parameter Syntax

$result = $client->listWorkspaceEnforcedPolicies([
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
    'Owner' => 'SELF|AMAZON',
]);

Parameter Details

Members
MaxResults
Type: int

The maximum number of items to return. Valid range: 1–100.

NextToken
Type: string

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

Owner
Type: string

If you specify this field, the operation returns only policies with this owner: SELF or AMAZON. Omit it to return both.

Result Syntax

[
    'NextToken' => '<string>',
    'PolicySummaries' => [
        [
            'Id' => '<string>',
            'Name' => '<string>',
            'Owner' => 'SELF|AMAZON',
        ],
        // ...
    ],
]

Result Details

Members
NextToken
Type: string

The token to use to retrieve the next page of results, or null if there are no more results.

PolicySummaries
Required: Yes
Type: Array of WorkspaceEnforcedPolicyListSummary structures

The policy summaries.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Listing your WorkSpace-enforced policies

The following example lists the WorkSpace-enforced policies that you created.

$result = $client->listWorkspaceEnforcedPolicies([
    'MaxResults' => 10,
    'Owner' => 'SELF',
]);

Result syntax:

[
    'PolicySummaries' => [
        [
            'Id' => 'wsep-a1b2c3d4',
            'Name' => 'default-network',
            'Owner' => 'SELF',
        ],
    ],
]

MigrateWorkspace

$result = $client->migrateWorkspace([/* ... */]);
$promise = $client->migrateWorkspaceAsync([/* ... */]);

Migrates a WorkSpace from one operating system or bundle type to another, while retaining the data on the user volume.

The migration process recreates the WorkSpace by using a new root volume from the target bundle image and the user volume from the last available snapshot of the original WorkSpace. During migration, the original D:\Users\%USERNAME% user profile folder is renamed to D:\Users\%USERNAME%MMddyyTHHmmss%.NotMigrated. A new D:\Users\%USERNAME%\ folder is generated by the new OS. Certain files in the old user profile are moved to the new user profile.

For available migration scenarios, details about what happens during migration, and best practices, see Migrate a WorkSpace.

If the source WorkSpace has nested virtualization enabled and the target bundle does not support nested virtualization, the migration fails.

Parameter Syntax

$result = $client->migrateWorkspace([
    'BundleId' => '<string>', // REQUIRED
    'SourceWorkspaceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
BundleId
Required: Yes
Type: string

The identifier of the target bundle type to migrate the WorkSpace to.

SourceWorkspaceId
Required: Yes
Type: string

The identifier of the WorkSpace to migrate from.

Result Syntax

[
    'SourceWorkspaceId' => '<string>',
    'TargetWorkspaceId' => '<string>',
]

Result Details

Members
SourceWorkspaceId
Type: string

The original identifier of the WorkSpace that is being migrated.

TargetWorkspaceId
Type: string

The new identifier of the WorkSpace that is being migrated. If the migration does not succeed, the target WorkSpace ID will not be used, and the WorkSpace will still have the original WorkSpace ID.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

AccessDeniedException:

The user is not authorized to access a resource.

OperationNotSupportedException:

This operation is not supported.

OperationInProgressException:

The properties of this WorkSpace are currently being modified. Try again in a moment.

ResourceUnavailableException:

The specified resource is not available.

ModifyAccount

$result = $client->modifyAccount([/* ... */]);
$promise = $client->modifyAccountAsync([/* ... */]);

Modifies the configuration of Bring Your Own License (BYOL) for the specified account.

Parameter Syntax

$result = $client->modifyAccount([
    'DedicatedTenancyManagementCidrRange' => '<string>',
    'DedicatedTenancySupport' => 'ENABLED',
]);

Parameter Details

Members
DedicatedTenancyManagementCidrRange
Type: string

The IP address range, specified as an IPv4 CIDR block, for the management network interface. Specify an IP address range that is compatible with your network and in CIDR notation (that is, specify the range as an IPv4 CIDR block). The CIDR block size must be /16 (for example, 203.0.113.25/16). It must also be specified as available by the ListAvailableManagementCidrRanges operation.

DedicatedTenancySupport
Type: string

The status of BYOL.

Result Syntax

[
    'Message' => '<string>',
]

Result Details

Members
Message
Type: string

The text message to describe the status of BYOL modification.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

AccessDeniedException:

The user is not authorized to access a resource.

InvalidResourceStateException:

The state of the resource is not valid for this operation.

ResourceUnavailableException:

The specified resource is not available.

ResourceNotFoundException:

The resource could not be found.

ModifyCertificateBasedAuthProperties

$result = $client->modifyCertificateBasedAuthProperties([/* ... */]);
$promise = $client->modifyCertificateBasedAuthPropertiesAsync([/* ... */]);

Modifies the properties of the certificate-based authentication you want to use with your WorkSpaces.

Parameter Syntax

$result = $client->modifyCertificateBasedAuthProperties([
    'CertificateBasedAuthProperties' => [
        'CertificateAuthorityArn' => '<string>',
        'Status' => 'DISABLED|ENABLED',
    ],
    'PropertiesToDelete' => ['<string>', ...],
    'ResourceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
CertificateBasedAuthProperties

The properties of the certificate-based authentication.

PropertiesToDelete
Type: Array of strings

The properties of the certificate-based authentication you want to delete.

ResourceId
Required: Yes
Type: string

The resource identifiers, in the form of directory IDs.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

OperationNotSupportedException:

This operation is not supported.

ResourceNotFoundException:

The resource could not be found.

ModifyClientProperties

$result = $client->modifyClientProperties([/* ... */]);
$promise = $client->modifyClientPropertiesAsync([/* ... */]);

Modifies the properties of the specified Amazon WorkSpaces clients.

Parameter Syntax

$result = $client->modifyClientProperties([
    'ClientProperties' => [ // REQUIRED
        'ClientExperiencePolicy' => '<string>',
        'LogUploadEnabled' => 'ENABLED|DISABLED',
        'ReconnectEnabled' => 'ENABLED|DISABLED',
    ],
    'ResourceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
ClientProperties
Required: Yes
Type: ClientProperties structure

Information about the Amazon WorkSpaces client.

ResourceId
Required: Yes
Type: string

The resource identifiers, in the form of directory IDs.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

AccessDeniedException:

The user is not authorized to access a resource.

OperationNotSupportedException:

This operation is not supported.

ModifyEndpointEncryptionMode

$result = $client->modifyEndpointEncryptionMode([/* ... */]);
$promise = $client->modifyEndpointEncryptionModeAsync([/* ... */]);

Modifies the endpoint encryption mode that allows you to configure the specified directory between Standard TLS and FIPS 140-2 validated mode.

Parameter Syntax

$result = $client->modifyEndpointEncryptionMode([
    'DirectoryId' => '<string>', // REQUIRED
    'EndpointEncryptionMode' => 'STANDARD_TLS|FIPS_VALIDATED', // REQUIRED
]);

Parameter Details

Members
DirectoryId
Required: Yes
Type: string

The identifier of the directory.

EndpointEncryptionMode
Required: Yes
Type: string

The encryption mode used for endpoint connections when streaming to WorkSpaces Personal or WorkSpace Pools.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

ResourceNotFoundException:

The resource could not be found.

OperationNotSupportedException:

This operation is not supported.

ModifySamlProperties

$result = $client->modifySamlProperties([/* ... */]);
$promise = $client->modifySamlPropertiesAsync([/* ... */]);

Modifies multiple properties related to SAML 2.0 authentication, including the enablement status, user access URL, and relay state parameter name that are used for configuring federation with an SAML 2.0 identity provider.

Parameter Syntax

$result = $client->modifySamlProperties([
    'PropertiesToDelete' => ['<string>', ...],
    'ResourceId' => '<string>', // REQUIRED
    'SamlProperties' => [
        'RelayStateParameterName' => '<string>',
        'Status' => 'DISABLED|ENABLED|ENABLED_WITH_DIRECTORY_LOGIN_FALLBACK',
        'UserAccessUrl' => '<string>',
    ],
]);

Parameter Details

Members
PropertiesToDelete
Type: Array of strings

The SAML properties to delete as part of your request.

Specify one of the following options:

  • SAML_PROPERTIES_USER_ACCESS_URL to delete the user access URL.

  • SAML_PROPERTIES_RELAY_STATE_PARAMETER_NAME to delete the relay state parameter name.

ResourceId
Required: Yes
Type: string

The directory identifier for which you want to configure SAML properties.

SamlProperties
Type: SamlProperties structure

The properties for configuring SAML 2.0 authentication.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

OperationNotSupportedException:

This operation is not supported.

ResourceNotFoundException:

The resource could not be found.

ModifySelfservicePermissions

$result = $client->modifySelfservicePermissions([/* ... */]);
$promise = $client->modifySelfservicePermissionsAsync([/* ... */]);

Modifies the self-service WorkSpace management capabilities for your users. For more information, see Enable Self-Service WorkSpace Management Capabilities for Your Users.

Parameter Syntax

$result = $client->modifySelfservicePermissions([
    'ResourceId' => '<string>', // REQUIRED
    'SelfservicePermissions' => [ // REQUIRED
        'ChangeComputeType' => 'ENABLED|DISABLED',
        'EnableEndUserAdvisor' => 'ENABLED|DISABLED',
        'IncreaseVolumeSize' => 'ENABLED|DISABLED',
        'NestedVirtualization' => 'ENABLED|DISABLED',
        'RebuildWorkspace' => 'ENABLED|DISABLED',
        'RestartWorkspace' => 'ENABLED|DISABLED',
        'SwitchRunningMode' => 'ENABLED|DISABLED',
    ],
]);

Parameter Details

Members
ResourceId
Required: Yes
Type: string

The identifier of the directory.

SelfservicePermissions
Required: Yes
Type: SelfservicePermissions structure

The permissions to enable or disable self-service capabilities.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

OperationNotSupportedException:

This operation is not supported.

ModifyStreamingProperties

$result = $client->modifyStreamingProperties([/* ... */]);
$promise = $client->modifyStreamingPropertiesAsync([/* ... */]);

Modifies the specified streaming properties.

Parameter Syntax

$result = $client->modifyStreamingProperties([
    'ResourceId' => '<string>', // REQUIRED
    'StreamingProperties' => [
        'GlobalAccelerator' => [
            'Mode' => 'ENABLED_AUTO|DISABLED', // REQUIRED
            'PreferredProtocol' => 'TCP|NONE',
        ],
        'StorageConnectors' => [
            [
                'ConnectorType' => 'HOME_FOLDER', // REQUIRED
                'Status' => 'ENABLED|DISABLED', // REQUIRED
            ],
            // ...
        ],
        'StreamingExperiencePreferredProtocol' => 'TCP|UDP',
        'UserSettings' => [
            [
                'Action' => 'CLIPBOARD_COPY_FROM_LOCAL_DEVICE|CLIPBOARD_COPY_TO_LOCAL_DEVICE|PRINTING_TO_LOCAL_DEVICE|SMART_CARD', // REQUIRED
                'MaximumLength' => <integer>,
                'Permission' => 'ENABLED|DISABLED', // REQUIRED
            ],
            // ...
        ],
    ],
]);

Parameter Details

Members
ResourceId
Required: Yes
Type: string

The identifier of the resource.

StreamingProperties
Type: StreamingProperties structure

The streaming properties to configure.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

OperationNotSupportedException:

This operation is not supported.

ModifyWorkspaceAccessProperties

$result = $client->modifyWorkspaceAccessProperties([/* ... */]);
$promise = $client->modifyWorkspaceAccessPropertiesAsync([/* ... */]);

Specifies which devices and operating systems users can use to access their WorkSpaces. For more information, see Control Device Access.

Parameter Syntax

$result = $client->modifyWorkspaceAccessProperties([
    'ResourceId' => '<string>', // REQUIRED
    'WorkspaceAccessProperties' => [ // REQUIRED
        'AccessEndpointConfig' => [
            'AccessEndpoints' => [ // REQUIRED
                [
                    'AccessEndpointType' => 'STREAMING_WSP',
                    'VpcEndpointId' => '<string>',
                ],
                // ...
            ],
            'InternetFallbackProtocols' => ['<string>', ...],
        ],
        'DeviceTypeAndroid' => 'ALLOW|DENY',
        'DeviceTypeChromeOs' => 'ALLOW|DENY',
        'DeviceTypeIos' => 'ALLOW|DENY',
        'DeviceTypeLinux' => 'ALLOW|DENY',
        'DeviceTypeOsx' => 'ALLOW|DENY',
        'DeviceTypeWeb' => 'ALLOW|DENY',
        'DeviceTypeWindows' => 'ALLOW|DENY',
        'DeviceTypeWorkSpacesThinClient' => 'ALLOW|DENY',
        'DeviceTypeZeroClient' => 'ALLOW|DENY',
    ],
]);

Parameter Details

Members
ResourceId
Required: Yes
Type: string

The identifier of the directory.

WorkspaceAccessProperties
Required: Yes
Type: WorkspaceAccessProperties structure

The device types and operating systems to enable or disable for access.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ResourceNotFoundException:

The resource could not be found.

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

InvalidParameterCombinationException:

Two or more of the selected parameter values cannot be used together.

OperationNotSupportedException:

This operation is not supported.

ModifyWorkspaceCreationProperties

$result = $client->modifyWorkspaceCreationProperties([/* ... */]);
$promise = $client->modifyWorkspaceCreationPropertiesAsync([/* ... */]);

Modify the default properties used to create WorkSpaces.

Parameter Syntax

$result = $client->modifyWorkspaceCreationProperties([
    'ResourceId' => '<string>', // REQUIRED
    'WorkspaceCreationProperties' => [ // REQUIRED
        'CustomSecurityGroupId' => '<string>',
        'DefaultOu' => '<string>',
        'EnableInternetAccess' => true || false,
        'EnableMaintenanceMode' => true || false,
        'InstanceIamRoleArn' => '<string>',
        'UserEnabledAsLocalAdministrator' => true || false,
    ],
]);

Parameter Details

Members
ResourceId
Required: Yes
Type: string

The identifier of the directory.

WorkspaceCreationProperties
Required: Yes
Type: WorkspaceCreationProperties structure

The default properties for creating WorkSpaces.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

OperationNotSupportedException:

This operation is not supported.

ModifyWorkspaceProperties

$result = $client->modifyWorkspaceProperties([/* ... */]);
$promise = $client->modifyWorkspacePropertiesAsync([/* ... */]);

Modifies the specified WorkSpace properties. For important information about how to modify the size of the root and user volumes, see Modify a WorkSpace.

The MANUAL running mode value is only supported by Amazon WorkSpaces Core. Contact your account team to be allow-listed to use this value. For more information, see Amazon WorkSpaces Core.

Parameter Syntax

$result = $client->modifyWorkspaceProperties([
    'DataReplication' => 'NO_REPLICATION|PRIMARY_AS_SOURCE',
    'WorkspaceId' => '<string>', // REQUIRED
    'WorkspaceProperties' => [
        'ComputeTypeName' => 'VALUE|STANDARD|PERFORMANCE|POWER|GRAPHICS|POWERPRO|GENERALPURPOSE_4XLARGE|GENERALPURPOSE_8XLARGE|GRAPHICSPRO|GRAPHICS_G4DN|GRAPHICSPRO_G4DN|GRAPHICS_G6_XLARGE|GRAPHICS_G6_2XLARGE|GRAPHICS_G6_4XLARGE|GRAPHICS_G6_8XLARGE|GRAPHICS_G6_16XLARGE|GRAPHICS_GR6_4XLARGE|GRAPHICS_GR6_8XLARGE|GRAPHICS_G6F_LARGE|GRAPHICS_G6F_XLARGE|GRAPHICS_G6F_2XLARGE|GRAPHICS_G6F_4XLARGE|GRAPHICS_GR6F_4XLARGE|GRAPHICS_G7_2XLARGE|GRAPHICS_G7_4XLARGE|GRAPHICS_G7_8XLARGE|GRAPHICS_G7_12XLARGE',
        'GlobalAccelerator' => [
            'Mode' => 'ENABLED_AUTO|DISABLED|INHERITED', // REQUIRED
            'PreferredProtocol' => 'TCP|NONE|INHERITED',
        ],
        'NestedVirtualizationEnabled' => true || false,
        'OperatingSystemName' => 'AMAZON_LINUX_2|UBUNTU_18_04|UBUNTU_20_04|UBUNTU_22_04|UNKNOWN|WINDOWS_10|WINDOWS_11|WINDOWS_7|WINDOWS_SERVER_2016|WINDOWS_SERVER_2019|WINDOWS_SERVER_2022|WINDOWS_SERVER_2025|RHEL_8|ROCKY_8|UBUNTU_24_04|RHEL_9|ROCKY_9|UBUNTU_26_04|RHEL_10|ROCKY_10',
        'Protocols' => ['<string>', ...],
        'RootVolumeSizeGib' => <integer>,
        'RunningMode' => 'AUTO_STOP|ALWAYS_ON|MANUAL',
        'RunningModeAutoStopTimeoutInMinutes' => <integer>,
        'UserVolumeSizeGib' => <integer>,
    ],
]);

Parameter Details

Members
DataReplication
Type: string

Indicates the data replication status.

WorkspaceId
Required: Yes
Type: string

The identifier of the WorkSpace.

WorkspaceProperties
Type: WorkspaceProperties structure

The properties of the WorkSpace.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

InvalidResourceStateException:

The state of the resource is not valid for this operation.

OperationInProgressException:

The properties of this WorkSpace are currently being modified. Try again in a moment.

UnsupportedWorkspaceConfigurationException:

The configuration of this WorkSpace is not supported for this operation. For more information, see Required Configuration and Service Components for WorkSpaces .

ResourceNotFoundException:

The resource could not be found.

AccessDeniedException:

The user is not authorized to access a resource.

ResourceUnavailableException:

The specified resource is not available.

ModifyWorkspaceState

$result = $client->modifyWorkspaceState([/* ... */]);
$promise = $client->modifyWorkspaceStateAsync([/* ... */]);

Sets the state of the specified WorkSpace.

To maintain a WorkSpace without being interrupted, set the WorkSpace state to ADMIN_MAINTENANCE. WorkSpaces in this state do not respond to requests to reboot, stop, start, rebuild, or restore. An AutoStop WorkSpace in this state is not stopped. Users cannot log into a WorkSpace in the ADMIN_MAINTENANCE state.

Parameter Syntax

$result = $client->modifyWorkspaceState([
    'WorkspaceId' => '<string>', // REQUIRED
    'WorkspaceState' => 'AVAILABLE|ADMIN_MAINTENANCE', // REQUIRED
]);

Parameter Details

Members
WorkspaceId
Required: Yes
Type: string

The identifier of the WorkSpace.

WorkspaceState
Required: Yes
Type: string

The WorkSpace state.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

InvalidResourceStateException:

The state of the resource is not valid for this operation.

ResourceNotFoundException:

The resource could not be found.

OperationNotSupportedException:

This operation is not supported.

RebootWorkspaces

$result = $client->rebootWorkspaces([/* ... */]);
$promise = $client->rebootWorkspacesAsync([/* ... */]);

Reboots the specified WorkSpaces.

You cannot reboot a WorkSpace unless its state is AVAILABLE, UNHEALTHY, or REBOOTING. Reboot a WorkSpace in the REBOOTING state only if your WorkSpace has been stuck in the REBOOTING state for over 20 minutes.

This operation is asynchronous and returns before the WorkSpaces have rebooted.

Parameter Syntax

$result = $client->rebootWorkspaces([
    'RebootWorkspaceRequests' => [ // REQUIRED
        [
            'WorkspaceId' => '<string>', // REQUIRED
        ],
        // ...
    ],
]);

Parameter Details

Members
RebootWorkspaceRequests
Required: Yes
Type: Array of RebootRequest structures

The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.

Result Syntax

[
    'FailedRequests' => [
        [
            'ErrorCode' => '<string>',
            'ErrorMessage' => '<string>',
            'WorkspaceId' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
FailedRequests
Type: Array of FailedWorkspaceChangeRequest structures

Information about the WorkSpaces that could not be rebooted.

Errors

OperationNotSupportedException:

This operation is not supported.

RebuildWorkspaces

$result = $client->rebuildWorkspaces([/* ... */]);
$promise = $client->rebuildWorkspacesAsync([/* ... */]);

Rebuilds the specified WorkSpace.

You cannot rebuild a WorkSpace unless its state is AVAILABLE, ERROR, UNHEALTHY, STOPPED, or REBOOTING.

Rebuilding a WorkSpace is a potentially destructive action that can result in the loss of data. For more information, see Rebuild a WorkSpace.

This operation is asynchronous and returns before the WorkSpaces have been completely rebuilt.

Parameter Syntax

$result = $client->rebuildWorkspaces([
    'RebuildWorkspaceRequests' => [ // REQUIRED
        [
            'WorkspaceId' => '<string>', // REQUIRED
        ],
        // ...
    ],
]);

Parameter Details

Members
RebuildWorkspaceRequests
Required: Yes
Type: Array of RebuildRequest structures

The WorkSpace to rebuild. You can specify a single WorkSpace.

Result Syntax

[
    'FailedRequests' => [
        [
            'ErrorCode' => '<string>',
            'ErrorMessage' => '<string>',
            'WorkspaceId' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
FailedRequests
Type: Array of FailedWorkspaceChangeRequest structures

Information about the WorkSpace that could not be rebuilt.

Errors

OperationNotSupportedException:

This operation is not supported.

RegisterWorkspaceDirectory

$result = $client->registerWorkspaceDirectory([/* ... */]);
$promise = $client->registerWorkspaceDirectoryAsync([/* ... */]);

Registers the specified directory. This operation is asynchronous and returns before the WorkSpace directory is registered. If this is the first time you are registering a directory, you will need to create the workspaces_DefaultRole role before you can register a directory. For more information, see Creating the workspaces_DefaultRole Role.

Parameter Syntax

$result = $client->registerWorkspaceDirectory([
    'ActiveDirectoryConfig' => [
        'DomainName' => '<string>', // REQUIRED
        'ServiceAccountSecretArn' => '<string>', // REQUIRED
    ],
    'DirectoryId' => '<string>',
    'EnableSelfService' => true || false,
    'IdcInstanceArn' => '<string>',
    'MicrosoftEntraConfig' => [
        'ApplicationConfigSecretArn' => '<string>',
        'TenantId' => '<string>',
    ],
    'SubnetIds' => ['<string>', ...],
    'Tags' => [
        [
            'Key' => '<string>', // REQUIRED
            'Value' => '<string>',
        ],
        // ...
    ],
    'Tenancy' => 'DEDICATED|SHARED',
    'UserIdentityType' => 'CUSTOMER_MANAGED|AWS_DIRECTORY_SERVICE|AWS_IAM_IDENTITY_CENTER',
    'WorkspaceDirectoryDescription' => '<string>',
    'WorkspaceDirectoryName' => '<string>',
    'WorkspaceOsUserMode' => 'LOCAL_USER|DOMAIN_JOIN|ENTRA_JOIN|SELF_MANAGED',
    'WorkspaceType' => 'PERSONAL|POOLS',
]);

Parameter Details

Members
ActiveDirectoryConfig
Type: ActiveDirectoryConfig structure

The active directory config of the directory.

DirectoryId
Type: string

The identifier of the directory. You cannot register a directory if it does not have a status of Active. If the directory does not have a status of Active, you will receive an InvalidResourceStateException error. If you have already registered the maximum number of directories that you can register with Amazon WorkSpaces, you will receive a ResourceLimitExceededException error. Deregister directories that you are not using for WorkSpaces, and try again.

EnableSelfService
Type: boolean

Indicates whether self-service capabilities are enabled or disabled.

IdcInstanceArn
Type: string

The Amazon Resource Name (ARN) of the identity center instance.

MicrosoftEntraConfig
Type: MicrosoftEntraConfig structure

The details about Microsoft Entra config.

SubnetIds
Type: Array of strings

The identifiers of the subnets for your virtual private cloud (VPC). Make sure that the subnets are in supported Availability Zones. The subnets must also be in separate Availability Zones. If these conditions are not met, you will receive an OperationNotSupportedException error.

Tags
Type: Array of Tag structures

The tags associated with the directory.

Tenancy
Type: string

Indicates whether your WorkSpace directory is dedicated or shared. To use Bring Your Own License (BYOL) images, this value must be set to DEDICATED and your Amazon Web Services account must be enabled for BYOL. If your account has not been enabled for BYOL, you will receive an InvalidParameterValuesException error. For more information about BYOL images, see Bring Your Own Windows Desktop Images.

UserIdentityType
Type: string

The type of identity management the user is using.

WorkspaceDirectoryDescription
Type: string

Description of the directory to register.

WorkspaceDirectoryName
Type: string

The name of the directory to register.

WorkspaceOsUserMode
Type: string

Indicates how users are set up on the WorkSpace operating system. To use local users with an AWS IAM Identity Center directory, specify LOCAL_USER.

WorkspaceType
Type: string

Indicates whether the directory's WorkSpace type is personal or pools.

Result Syntax

[
    'DirectoryId' => '<string>',
    'State' => 'REGISTERING|REGISTERED|DEREGISTERING|DEREGISTERED|ERROR',
]

Result Details

Members
DirectoryId
Type: string

The identifier of the directory.

State
Type: string

The registration status of the WorkSpace directory.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

ResourceLimitExceededException:

Your resource limits have been exceeded.

AccessDeniedException:

The user is not authorized to access a resource.

WorkspacesDefaultRoleNotFoundException:

The workspaces_DefaultRole role could not be found. If this is the first time you are registering a directory, you will need to create the workspaces_DefaultRole role before you can register a directory. For more information, see Creating the workspaces_DefaultRole Role.

InvalidResourceStateException:

The state of the resource is not valid for this operation.

UnsupportedNetworkConfigurationException:

The configuration of this network is not supported for this operation, or your network configuration conflicts with the Amazon WorkSpaces management network IP range. For more information, see Configure a VPC for Amazon WorkSpaces.

OperationNotSupportedException:

This operation is not supported.

ResourceAlreadyExistsException:

The specified resource already exists.

RejectAccountLinkInvitation

$result = $client->rejectAccountLinkInvitation([/* ... */]);
$promise = $client->rejectAccountLinkInvitationAsync([/* ... */]);

Rejects the account link invitation.

Parameter Syntax

$result = $client->rejectAccountLinkInvitation([
    'ClientToken' => '<string>',
    'LinkId' => '<string>', // REQUIRED
]);

Parameter Details

Members
ClientToken
Type: string

The client token of the account link invitation to reject.

LinkId
Required: Yes
Type: string

The identifier of the account link

Result Syntax

[
    'AccountLink' => [
        'AccountLinkId' => '<string>',
        'AccountLinkStatus' => 'LINKED|LINKING_FAILED|LINK_NOT_FOUND|PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT|REJECTED',
        'SourceAccountId' => '<string>',
        'TargetAccountId' => '<string>',
    ],
]

Result Details

Members
AccountLink
Type: AccountLink structure

Information about the account link.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

ResourceNotFoundException:

The resource could not be found.

ConflictException:

The request conflicts with the current state of a resource, for example because a name is already in use or the resource is still in use. Resolve the conflict, and then retry your request.

InternalServerException:

An unexpected server error occurred. Retry your request.

RestoreWorkspace

$result = $client->restoreWorkspace([/* ... */]);
$promise = $client->restoreWorkspaceAsync([/* ... */]);

Restores the specified WorkSpace to its last known healthy state.

You cannot restore a WorkSpace unless its state is AVAILABLE, ERROR, UNHEALTHY, or STOPPED.

Restoring a WorkSpace is a potentially destructive action that can result in the loss of data. For more information, see Restore a WorkSpace.

This operation is asynchronous and returns before the WorkSpace is completely restored.

Parameter Syntax

$result = $client->restoreWorkspace([
    'WorkspaceId' => '<string>', // REQUIRED
]);

Parameter Details

Members
WorkspaceId
Required: Yes
Type: string

The identifier of the WorkSpace.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

AccessDeniedException:

The user is not authorized to access a resource.

OperationNotSupportedException:

This operation is not supported.

RevokeIpRules

$result = $client->revokeIpRules([/* ... */]);
$promise = $client->revokeIpRulesAsync([/* ... */]);

Removes one or more rules from the specified IP access control group.

Parameter Syntax

$result = $client->revokeIpRules([
    'GroupId' => '<string>', // REQUIRED
    'UserRules' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
GroupId
Required: Yes
Type: string

The identifier of the group.

UserRules
Required: Yes
Type: Array of strings

The rules to remove from the group.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

InvalidResourceStateException:

The state of the resource is not valid for this operation.

AccessDeniedException:

The user is not authorized to access a resource.

StartAgenticAccountSetup

$result = $client->startAgenticAccountSetup([/* ... */]);
$promise = $client->startAgenticAccountSetupAsync([/* ... */]);

Starts setting up Agentic WorkSpaces for your account in the current Region. Setup is asynchronous. To track its progress, call GetAgenticAccountSetup. If setup fails, this operation doesn't return an error. Instead, GetAgenticAccountSetup returns the SETUP_FAILED status.

Parameter Syntax

$result = $client->startAgenticAccountSetup([
    'ClientToken' => '<string>',
]);

Parameter Details

Members
ClientToken
Type: string

A unique, case-sensitive identifier that you provide to make the request idempotent. A new token starts setup only when the status is NOT_SET_UP or SETUP_FAILED; otherwise the current setup is returned.

Result Syntax

[
    'AgenticAccountSetup' => [
        'ErrorCode' => 'INFERENCE_PROVIDER_ACCESS_DENIED|GATEWAY_FAILED|ROLE_NOT_ASSUMABLE|INSUFFICIENT_CAPACITY|UNKNOWN|INTERNAL_ERROR',
        'ErrorMessage' => '<string>',
        'Status' => 'NOT_SET_UP|SETTING_UP|READY|SETUP_FAILED|FAILED|UPDATING|UPDATE_FAILED',
    ],
]

Result Details

Members
AgenticAccountSetup
Required: Yes
Type: AgenticAccountSetup structure

The agentic account setup.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Setting up an account for Agentic WorkSpaces

The following example starts agentic setup for the calling account. Setup runs asynchronously. To track its progress, call GetAgenticAccountSetup.

$result = $client->startAgenticAccountSetup([
    'ClientToken' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
]);

Result syntax:

[
    'AgenticAccountSetup' => [
        'Status' => 'SETTING_UP',
    ],
]

StartWorkspaces

$result = $client->startWorkspaces([/* ... */]);
$promise = $client->startWorkspacesAsync([/* ... */]);

Starts the specified WorkSpaces.

You cannot start a WorkSpace unless it has a running mode of AutoStop or Manual and a state of STOPPED.

Parameter Syntax

$result = $client->startWorkspaces([
    'StartWorkspaceRequests' => [ // REQUIRED
        [
            'WorkspaceId' => '<string>',
        ],
        // ...
    ],
]);

Parameter Details

Members
StartWorkspaceRequests
Required: Yes
Type: Array of StartRequest structures

The WorkSpaces to start. You can specify up to 25 WorkSpaces.

Result Syntax

[
    'FailedRequests' => [
        [
            'ErrorCode' => '<string>',
            'ErrorMessage' => '<string>',
            'WorkspaceId' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
FailedRequests
Type: Array of FailedWorkspaceChangeRequest structures

Information about the WorkSpaces that could not be started.

Errors

There are no errors described for this operation.

StartWorkspacesPool

$result = $client->startWorkspacesPool([/* ... */]);
$promise = $client->startWorkspacesPoolAsync([/* ... */]);

End of support notice: On December 31, 2027, Amazon Web Services will end support for Amazon WorkSpaces Pools. After December 31, 2027, you will no longer be able to access the Amazon WorkSpaces Pools console or Amazon WorkSpaces Pools resources. For more information, see Amazon WorkSpaces Pools end of support.

Starts the specified pool.

You cannot start a pool unless it has a running mode of AutoStop and a state of STOPPED.

Parameter Syntax

$result = $client->startWorkspacesPool([
    'PoolId' => '<string>', // REQUIRED
]);

Parameter Details

Members
PoolId
Required: Yes
Type: string

The identifier of the pool.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

InvalidResourceStateException:

The state of the resource is not valid for this operation.

ResourceLimitExceededException:

Your resource limits have been exceeded.

ResourceNotFoundException:

The resource could not be found.

OperationNotSupportedException:

This operation is not supported.

OperationInProgressException:

The properties of this WorkSpace are currently being modified. Try again in a moment.

AccessDeniedException:

The user is not authorized to access a resource.

StopWorkspaces

$result = $client->stopWorkspaces([/* ... */]);
$promise = $client->stopWorkspacesAsync([/* ... */]);

Stops the specified WorkSpaces.

You cannot stop a WorkSpace unless it has a running mode of AutoStop or Manual and a state of AVAILABLE, IMPAIRED, UNHEALTHY, or ERROR.

Parameter Syntax

$result = $client->stopWorkspaces([
    'StopWorkspaceRequests' => [ // REQUIRED
        [
            'WorkspaceId' => '<string>',
        ],
        // ...
    ],
]);

Parameter Details

Members
StopWorkspaceRequests
Required: Yes
Type: Array of StopRequest structures

The WorkSpaces to stop. You can specify up to 25 WorkSpaces.

Result Syntax

[
    'FailedRequests' => [
        [
            'ErrorCode' => '<string>',
            'ErrorMessage' => '<string>',
            'WorkspaceId' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
FailedRequests
Type: Array of FailedWorkspaceChangeRequest structures

Information about the WorkSpaces that could not be stopped.

Errors

There are no errors described for this operation.

StopWorkspacesPool

$result = $client->stopWorkspacesPool([/* ... */]);
$promise = $client->stopWorkspacesPoolAsync([/* ... */]);

End of support notice: On December 31, 2027, Amazon Web Services will end support for Amazon WorkSpaces Pools. After December 31, 2027, you will no longer be able to access the Amazon WorkSpaces Pools console or Amazon WorkSpaces Pools resources. For more information, see Amazon WorkSpaces Pools end of support.

Stops the specified pool.

You cannot stop a WorkSpace pool unless it has a running mode of AutoStop and a state of AVAILABLE, IMPAIRED, UNHEALTHY, or ERROR.

Parameter Syntax

$result = $client->stopWorkspacesPool([
    'PoolId' => '<string>', // REQUIRED
]);

Parameter Details

Members
PoolId
Required: Yes
Type: string

The identifier of the pool.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

InvalidResourceStateException:

The state of the resource is not valid for this operation.

ResourceNotFoundException:

The resource could not be found.

OperationInProgressException:

The properties of this WorkSpace are currently being modified. Try again in a moment.

AccessDeniedException:

The user is not authorized to access a resource.

TerminateWorkspaces

$result = $client->terminateWorkspaces([/* ... */]);
$promise = $client->terminateWorkspacesAsync([/* ... */]);

Terminates the specified WorkSpaces.

Terminating a WorkSpace is a permanent action and cannot be undone. The user's data is destroyed. If you need to archive any user data, contact Amazon Web Services Support before terminating the WorkSpace.

You can terminate a WorkSpace that is in any state except SUSPENDED.

This operation is asynchronous and returns before the WorkSpaces have been completely terminated. After a WorkSpace is terminated, the TERMINATED state is returned only briefly before the WorkSpace directory metadata is cleaned up, so this state is rarely returned. To confirm that a WorkSpace is terminated, check for the WorkSpace ID by using DescribeWorkSpaces. If the WorkSpace ID isn't returned, then the WorkSpace has been successfully terminated.

Simple AD and AD Connector are made available to you free of charge to use with WorkSpaces. If there are no WorkSpaces being used with your Simple AD or AD Connector directory for 30 consecutive days, this directory will be automatically deregistered for use with Amazon WorkSpaces, and you will be charged for this directory as per the Directory Service pricing terms.

To delete empty directories, see Delete the Directory for Your WorkSpaces. If you delete your Simple AD or AD Connector directory, you can always create a new one when you want to start using WorkSpaces again.

Parameter Syntax

$result = $client->terminateWorkspaces([
    'TerminateWorkspaceRequests' => [ // REQUIRED
        [
            'WorkspaceId' => '<string>', // REQUIRED
        ],
        // ...
    ],
]);

Parameter Details

Members
TerminateWorkspaceRequests
Required: Yes
Type: Array of TerminateRequest structures

The WorkSpaces to terminate. You can specify up to 25 WorkSpaces.

Result Syntax

[
    'FailedRequests' => [
        [
            'ErrorCode' => '<string>',
            'ErrorMessage' => '<string>',
            'WorkspaceId' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
FailedRequests
Type: Array of FailedWorkspaceChangeRequest structures

Information about the WorkSpaces that could not be terminated.

Errors

There are no errors described for this operation.

TerminateWorkspacesPool

$result = $client->terminateWorkspacesPool([/* ... */]);
$promise = $client->terminateWorkspacesPoolAsync([/* ... */]);

End of support notice: On December 31, 2027, Amazon Web Services will end support for Amazon WorkSpaces Pools. After December 31, 2027, you will no longer be able to access the Amazon WorkSpaces Pools console or Amazon WorkSpaces Pools resources. For more information, see Amazon WorkSpaces Pools end of support.

Terminates the specified pool.

Parameter Syntax

$result = $client->terminateWorkspacesPool([
    'PoolId' => '<string>', // REQUIRED
]);

Parameter Details

Members
PoolId
Required: Yes
Type: string

The identifier of the pool.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

InvalidResourceStateException:

The state of the resource is not valid for this operation.

ResourceNotFoundException:

The resource could not be found.

OperationInProgressException:

The properties of this WorkSpace are currently being modified. Try again in a moment.

AccessDeniedException:

The user is not authorized to access a resource.

TerminateWorkspacesPoolSession

$result = $client->terminateWorkspacesPoolSession([/* ... */]);
$promise = $client->terminateWorkspacesPoolSessionAsync([/* ... */]);

End of support notice: On December 31, 2027, Amazon Web Services will end support for Amazon WorkSpaces Pools. After December 31, 2027, you will no longer be able to access the Amazon WorkSpaces Pools console or Amazon WorkSpaces Pools resources. For more information, see Amazon WorkSpaces Pools end of support.

Terminates the pool session.

Parameter Syntax

$result = $client->terminateWorkspacesPoolSession([
    'SessionId' => '<string>', // REQUIRED
]);

Parameter Details

Members
SessionId
Required: Yes
Type: string

The identifier of the pool session.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

OperationNotSupportedException:

This operation is not supported.

OperationInProgressException:

The properties of this WorkSpace are currently being modified. Try again in a moment.

AccessDeniedException:

The user is not authorized to access a resource.

UpdateAgenticConnectorActivationStatus

$result = $client->updateAgenticConnectorActivationStatus([/* ... */]);
$promise = $client->updateAgenticConnectorActivationStatusAsync([/* ... */]);

Activates or deactivates an agentic connector for your account. Your account setup must be READY first. The change is asynchronous. To track it, check the connector's ActivationStatus. You can repeat the same change safely. An account can have up to 25 activated connectors. If activating a connector would exceed this limit, the operation returns ServiceQuotaExceededException.

Parameter Syntax

$result = $client->updateAgenticConnectorActivationStatus([
    'ActivationStatus' => 'ACTIVATED|DEACTIVATED', // REQUIRED
    'AgenticConnectorId' => '<string>', // REQUIRED
]);

Parameter Details

Members
ActivationStatus
Required: Yes
Type: string

The activation status to set:

  • ACTIVATED – You activated the connector.

  • DEACTIVATED – You deactivated the connector.

AgenticConnectorId
Required: Yes
Type: string

The identifier of the connector.

Result Syntax

[
    'AgenticConnector' => [
        'ActivationStatus' => 'ACTIVATED|DEACTIVATED|PENDING|PENDING_DELETE|ACTIVATION_ERROR|DEACTIVATION_ERROR',
        'AllowedTools' => ['<string>', ...],
        'ApiKeySecretArn' => '<string>',
        'Args' => ['<string>', ...],
        'AuthType' => 'OAUTH|API_KEY|NONE',
        'BlockedTools' => ['<string>', ...],
        'Command' => '<string>',
        'CreatedAt' => <DateTime>,
        'Description' => '<string>',
        'Id' => '<string>',
        'Name' => '<string>',
        'OAuthConfig' => [
            'AuthorizationUrl' => '<string>',
            'ClientId' => '<string>',
            'ClientSecretArn' => '<string>',
            'Scopes' => ['<string>', ...],
            'TokenUrl' => '<string>',
        ],
        'ServerType' => 'HOSTED|LOCAL',
        'UpdatedAt' => <DateTime>,
        'Url' => '<string>',
    ],
]

Result Details

Members
AgenticConnector
Required: Yes
Type: AgenticConnector structure

The agentic connector.

Errors

ValidationException:

Your request failed validation. Check the error message for the parameter that isn't valid.

ResourceNotFoundException:

The resource could not be found.

ConflictException:

The request conflicts with the current state of a resource, for example because a name is already in use or the resource is still in use. Resolve the conflict, and then retry your request.

ServiceQuotaExceededException:

The request would exceed a service quota. Request a quota increase or reduce the number of resources in your request.

AccessDeniedException:

The user is not authorized to access a resource.

ThrottlingException:

The request was throttled. Retry the request with exponential backoff.

Examples

Example 1: Example – Activating a connector

The following example activates a connector so that it can be associated with WorkSpaces and persona configurations.

$result = $client->updateAgenticConnectorActivationStatus([
    'ActivationStatus' => 'ACTIVATED',
    'AgenticConnectorId' => 'wsacn-github',
]);

Result syntax:

[
    'AgenticConnector' => [
        'ActivationStatus' => 'PENDING',
        'AuthType' => 'OAUTH',
        'Id' => 'wsacn-github',
        'Name' => 'github',
        'ServerType' => 'HOSTED',
    ],
]

UpdateConnectClientAddIn

$result = $client->updateConnectClientAddIn([/* ... */]);
$promise = $client->updateConnectClientAddInAsync([/* ... */]);

Updates a Connect Customer client add-in. Use this action to update the name and endpoint URL of a Connect Customer client add-in.

Parameter Syntax

$result = $client->updateConnectClientAddIn([
    'AddInId' => '<string>', // REQUIRED
    'Name' => '<string>',
    'ResourceId' => '<string>', // REQUIRED
    'URL' => '<string>',
]);

Parameter Details

Members
AddInId
Required: Yes
Type: string

The identifier of the client add-in to update.

Name
Type: string

The name of the client add-in.

ResourceId
Required: Yes
Type: string

The directory identifier for which the client add-in is configured.

URL
Type: string

The endpoint URL of the Connect Customer client add-in.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

AccessDeniedException:

The user is not authorized to access a resource.

UpdateConnectionAliasPermission

$result = $client->updateConnectionAliasPermission([/* ... */]);
$promise = $client->updateConnectionAliasPermissionAsync([/* ... */]);

Shares or unshares a connection alias with one account by specifying whether that account has permission to associate the connection alias with a directory. If the association permission is granted, the connection alias is shared with that account. If the association permission is revoked, the connection alias is unshared with the account. For more information, see Cross-Region Redirection for Amazon WorkSpaces.

  • Before performing this operation, call DescribeConnectionAliases to make sure that the current state of the connection alias is CREATED.

  • To delete a connection alias that has been shared, the shared account must first disassociate the connection alias from any directories it has been associated with. Then you must unshare the connection alias from the account it has been shared with. You can delete a connection alias only after it is no longer shared with any accounts or associated with any directories.

Parameter Syntax

$result = $client->updateConnectionAliasPermission([
    'AliasId' => '<string>', // REQUIRED
    'ConnectionAliasPermission' => [ // REQUIRED
        'AllowAssociation' => true || false, // REQUIRED
        'SharedAccountId' => '<string>', // REQUIRED
    ],
]);

Parameter Details

Members
AliasId
Required: Yes
Type: string

The identifier of the connection alias that you want to update permissions for.

ConnectionAliasPermission
Required: Yes
Type: ConnectionAliasPermission structure

Indicates whether to share or unshare the connection alias with the specified Amazon Web Services account.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceLimitExceededException:

Your resource limits have been exceeded.

ResourceNotFoundException:

The resource could not be found.

ResourceAssociatedException:

The resource is associated with a directory.

InvalidResourceStateException:

The state of the resource is not valid for this operation.

OperationNotSupportedException:

This operation is not supported.

UpdateRulesOfIpGroup

$result = $client->updateRulesOfIpGroup([/* ... */]);
$promise = $client->updateRulesOfIpGroupAsync([/* ... */]);

Replaces the current rules of the specified IP access control group with the specified rules.

Parameter Syntax

$result = $client->updateRulesOfIpGroup([
    'GroupId' => '<string>', // REQUIRED
    'UserRules' => [ // REQUIRED
        [
            'ipRule' => '<string>',
            'ruleDesc' => '<string>',
        ],
        // ...
    ],
]);

Parameter Details

Members
GroupId
Required: Yes
Type: string

The identifier of the group.

UserRules
Required: Yes
Type: Array of IpRuleItem structures

One or more rules.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

ResourceLimitExceededException:

Your resource limits have been exceeded.

InvalidResourceStateException:

The state of the resource is not valid for this operation.

AccessDeniedException:

The user is not authorized to access a resource.

UpdateWorkspaceBundle

$result = $client->updateWorkspaceBundle([/* ... */]);
$promise = $client->updateWorkspaceBundleAsync([/* ... */]);

Updates a WorkSpace bundle with a new image. For more information about updating WorkSpace bundles, see Update a Custom WorkSpaces Bundle.

Existing WorkSpaces aren't automatically updated when you update the bundle that they're based on. To update existing WorkSpaces that are based on a bundle that you've updated, you must either rebuild the WorkSpaces or delete and recreate them.

Parameter Syntax

$result = $client->updateWorkspaceBundle([
    'BundleId' => '<string>',
    'ImageId' => '<string>',
]);

Parameter Details

Members
BundleId
Type: string

The identifier of the bundle.

ImageId
Type: string

The identifier of the image.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

ResourceNotFoundException:

The resource could not be found.

ResourceUnavailableException:

The specified resource is not available.

OperationNotSupportedException:

This operation is not supported.

UpdateWorkspaceImagePermission

$result = $client->updateWorkspaceImagePermission([/* ... */]);
$promise = $client->updateWorkspaceImagePermissionAsync([/* ... */]);

Shares or unshares an image with one account in the same Amazon Web Services Region by specifying whether that account has permission to copy the image. If the copy image permission is granted, the image is shared with that account. If the copy image permission is revoked, the image is unshared with the account.

After an image has been shared, the recipient account can copy the image to other Regions as needed.

In the China (Ningxia) Region, you can copy images only within the same Region.

In Amazon Web Services GovCloud (US), to copy images to and from other Regions, contact Amazon Web Services Support.

For more information about sharing images, see Share or Unshare a Custom WorkSpaces Image.

  • To delete an image that has been shared, you must unshare the image before you delete it.

  • Sharing Bring Your Own License (BYOL) images across Amazon Web Services accounts isn't supported at this time in Amazon Web Services GovCloud (US). To share BYOL images across accounts in Amazon Web Services GovCloud (US), contact Amazon Web Services Support.

Parameter Syntax

$result = $client->updateWorkspaceImagePermission([
    'AllowCopyImage' => true || false, // REQUIRED
    'ImageId' => '<string>', // REQUIRED
    'SharedAccountId' => '<string>', // REQUIRED
]);

Parameter Details

Members
AllowCopyImage
Required: Yes
Type: boolean

The permission to copy the image. This permission can be revoked only after an image has been shared.

ImageId
Required: Yes
Type: string

The identifier of the image.

SharedAccountId
Required: Yes
Type: string

The identifier of the Amazon Web Services account to share or unshare the image with.

Before sharing the image, confirm that you are sharing to the correct Amazon Web Services account ID.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ResourceNotFoundException:

The resource could not be found.

ResourceUnavailableException:

The specified resource is not available.

AccessDeniedException:

The user is not authorized to access a resource.

InvalidParameterValuesException:

One or more parameter values are not valid.

OperationNotSupportedException:

This operation is not supported.

UpdateWorkspacesPool

$result = $client->updateWorkspacesPool([/* ... */]);
$promise = $client->updateWorkspacesPoolAsync([/* ... */]);

End of support notice: On December 31, 2027, Amazon Web Services will end support for Amazon WorkSpaces Pools. After December 31, 2027, you will no longer be able to access the Amazon WorkSpaces Pools console or Amazon WorkSpaces Pools resources. For more information, see Amazon WorkSpaces Pools end of support.

Updates the specified pool.

Parameter Syntax

$result = $client->updateWorkspacesPool([
    'ApplicationSettings' => [
        'SettingsGroup' => '<string>',
        'Status' => 'DISABLED|ENABLED', // REQUIRED
    ],
    'BundleId' => '<string>',
    'Capacity' => [
        'DesiredUserSessions' => <integer>, // REQUIRED
    ],
    'Description' => '<string>',
    'DirectoryId' => '<string>',
    'PoolId' => '<string>', // REQUIRED
    'RunningMode' => 'AUTO_STOP|ALWAYS_ON',
    'TimeoutSettings' => [
        'DisconnectTimeoutInSeconds' => <integer>,
        'IdleDisconnectTimeoutInSeconds' => <integer>,
        'MaxUserDurationInSeconds' => <integer>,
    ],
]);

Parameter Details

Members
ApplicationSettings
Type: ApplicationSettingsRequest structure

The persistent application settings for users in the pool.

BundleId
Type: string

The identifier of the bundle.

Capacity
Type: Capacity structure

The desired capacity for the pool.

Description
Type: string

Describes the specified pool to update.

DirectoryId
Type: string

The identifier of the directory.

PoolId
Required: Yes
Type: string

The identifier of the specified pool to update.

RunningMode
Type: string

The desired running mode for the pool. The running mode can only be updated when the pool is in a stopped state.

TimeoutSettings
Type: TimeoutSettings structure

Indicates the timeout settings of the specified pool.

Result Syntax

[
    'WorkspacesPool' => [
        'ApplicationSettings' => [
            'S3BucketName' => '<string>',
            'SettingsGroup' => '<string>',
            'Status' => 'DISABLED|ENABLED',
        ],
        'BundleId' => '<string>',
        'CapacityStatus' => [
            'ActiveUserSessions' => <integer>,
            'ActualUserSessions' => <integer>,
            'AvailableUserSessions' => <integer>,
            'DesiredUserSessions' => <integer>,
        ],
        'CreatedAt' => <DateTime>,
        'Description' => '<string>',
        'DirectoryId' => '<string>',
        'Errors' => [
            [
                'ErrorCode' => 'IAM_SERVICE_ROLE_IS_MISSING|IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION|IAM_SERVICE_ROLE_MISSING_ENI_CREATE_ACTION|IAM_SERVICE_ROLE_MISSING_ENI_DELETE_ACTION|NETWORK_INTERFACE_LIMIT_EXCEEDED|INTERNAL_SERVICE_ERROR|MACHINE_ROLE_IS_MISSING|STS_DISABLED_IN_REGION|SUBNET_HAS_INSUFFICIENT_IP_ADDRESSES|IAM_SERVICE_ROLE_MISSING_DESCRIBE_SUBNET_ACTION|SUBNET_NOT_FOUND|IMAGE_NOT_FOUND|INVALID_SUBNET_CONFIGURATION|SECURITY_GROUPS_NOT_FOUND|IGW_NOT_ATTACHED|IAM_SERVICE_ROLE_MISSING_DESCRIBE_SECURITY_GROUPS_ACTION|WORKSPACES_POOL_STOPPED|WORKSPACES_POOL_INSTANCE_PROVISIONING_FAILURE|DOMAIN_JOIN_ERROR_FILE_NOT_FOUND|DOMAIN_JOIN_ERROR_ACCESS_DENIED|DOMAIN_JOIN_ERROR_LOGON_FAILURE|DOMAIN_JOIN_ERROR_INVALID_PARAMETER|DOMAIN_JOIN_ERROR_MORE_DATA|DOMAIN_JOIN_ERROR_NO_SUCH_DOMAIN|DOMAIN_JOIN_ERROR_NOT_SUPPORTED|DOMAIN_JOIN_NERR_INVALID_WORKGROUP_NAME|DOMAIN_JOIN_NERR_WORKSTATION_NOT_STARTED|DOMAIN_JOIN_ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED|DOMAIN_JOIN_NERR_PASSWORD_EXPIRED|DOMAIN_JOIN_INTERNAL_SERVICE_ERROR|DOMAIN_JOIN_ERROR_SECRET_ACTION_PERMISSION_IS_MISSING|DOMAIN_JOIN_ERROR_SECRET_DECRYPTION_FAILURE|DOMAIN_JOIN_ERROR_SECRET_STATE_INVALID|DOMAIN_JOIN_ERROR_SECRET_NOT_FOUND|DOMAIN_JOIN_ERROR_SECRET_VALUE_KEY_NOT_FOUND|DOMAIN_JOIN_ERROR_SECRET_INVALID|BUNDLE_NOT_FOUND|DIRECTORY_NOT_FOUND|INSUFFICIENT_PERMISSIONS_ERROR|DEFAULT_OU_IS_MISSING',
                'ErrorMessage' => '<string>',
            ],
            // ...
        ],
        'PoolArn' => '<string>',
        'PoolId' => '<string>',
        'PoolName' => '<string>',
        'RunningMode' => 'AUTO_STOP|ALWAYS_ON',
        'State' => 'CREATING|DELETING|RUNNING|STARTING|STOPPED|STOPPING|UPDATING',
        'TimeoutSettings' => [
            'DisconnectTimeoutInSeconds' => <integer>,
            'IdleDisconnectTimeoutInSeconds' => <integer>,
            'MaxUserDurationInSeconds' => <integer>,
        ],
    ],
]

Result Details

Members
WorkspacesPool
Type: WorkspacesPool structure

Describes the specified pool.

Errors

InvalidParameterValuesException:

One or more parameter values are not valid.

InvalidResourceStateException:

The state of the resource is not valid for this operation.

ResourceNotFoundException:

The resource could not be found.

ResourceLimitExceededException:

Your resource limits have been exceeded.

OperationNotSupportedException:

This operation is not supported.

OperationInProgressException:

The properties of this WorkSpace are currently being modified. Try again in a moment.

AccessDeniedException:

The user is not authorized to access a resource.

Shapes

AccessDeniedException

Description

The user is not authorized to access a resource.

Members
message
Type: string

AccessEndpoint

Description

Describes the access type and endpoint for a WorkSpace.

Members
AccessEndpointType
Type: string

Indicates the type of access endpoint.

VpcEndpointId
Type: string

Indicates the VPC endpoint to use for access.

AccessEndpointConfig

Description

Describes the access endpoint configuration for a WorkSpace.

Members
AccessEndpoints
Required: Yes
Type: Array of AccessEndpoint structures

Indicates a list of access endpoints associated with this directory.

InternetFallbackProtocols
Type: Array of strings

Indicates a list of protocols that fallback to using the public Internet when streaming over a VPC endpoint is not available.

Description

Information about about the account link.

Members
AccountLinkId
Type: string

The identifier of the account link.

AccountLinkStatus
Type: string

The status of the account link.

SourceAccountId
Type: string

The identifier of the source account.

TargetAccountId
Type: string

The identifier of the target account.

AccountModel

Description

Describes a model on your account's model list.

Members
ModelId
Required: Yes
Type: string

The identifier of the model.

Name
Type: string

The name of the model. This field is absent when the model is no longer in the supported model catalog.

Status
Required: Yes
Type: string

The status of the model on your account's model list.

AccountModification

Description

Describes a modification to the configuration of Bring Your Own License (BYOL) for the specified account.

Members
DedicatedTenancyManagementCidrRange
Type: string

The IP address range, specified as an IPv4 CIDR block, for the management network interface used for the account.

DedicatedTenancySupport
Type: string

The status of BYOL (whether BYOL is being enabled or disabled).

ErrorCode
Type: string

The error code that is returned if the configuration of BYOL cannot be modified.

ErrorMessage
Type: string

The text of the error message that is returned if the configuration of BYOL cannot be modified.

ModificationState
Type: string

The state of the modification to the configuration of BYOL.

StartTime
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the modification of the BYOL configuration was started.

ActiveDirectoryConfig

Description

Information about the Active Directory config.

Members
DomainName
Required: Yes
Type: string

The name of the domain.

ServiceAccountSecretArn
Required: Yes
Type: string

Indicates the secret ARN on the service account.

AgentEnforcedPolicy

Description

Describes an agent-enforced policy.

Members
CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the agent-enforced policy was created.

Id
Required: Yes
Type: string

The identifier of the agent-enforced policy.

Name
Required: Yes
Type: string

The name of the agent-enforced policy.

Owner
Required: Yes
Type: string

The owner of the agent-enforced policy:

  • SELF – Your account owns the policy.

  • AMAZON – Amazon owns the policy. You can use it, but you can't change or delete it.

PolicyBody
Required: Yes
Type: string

Specifies the policy document, in JSON format, that defines the enforced policy. It can be up to 65,536 characters long.

AgentEnforcedPolicyAssociation

Description

Describes the agent-enforced policy associated with a WorkSpace, and whether the agent has applied it.

Members
ErrorCode
Type: string

The reason that the policy wasn't applied. This field is returned only when SyncStatus is FAILED because of this policy. If SyncStatus is FAILED and this field isn't returned, the failure has another cause.

ErrorMessage
Type: string

A description of why the policy wasn't applied to the agent. This field is usually returned when ErrorCode is returned.

PolicyId
Required: Yes
Type: string

The identifier of the policy.

SyncStatus
Type: string

Whether the policy is applied:

  • PENDING_UPDATE – The WorkSpace hasn't confirmed the policy yet.

  • IN_SYNC – The policy is applied.

  • FAILED – The policy isn't applied.

This field isn't returned if the service can't determine the status. Don't treat a missing value as IN_SYNC.

AgentEnforcedPolicyError

Description

Describes an agent-enforced policy that the service couldn't return.

Members
ErrorCode
Required: Yes
Type: string

The reason that the service couldn't return the item. NOT_FOUND indicates that the item doesn't exist or isn't available to your account.

Message
Required: Yes
Type: string

A description of the error.

PolicyId
Required: Yes
Type: string

The identifier of the policy.

AgentEnforcedPolicyListSummary

Description

Summary information about an agent-enforced policy in a list.

Members
Id
Required: Yes
Type: string

The identifier of the agent-enforced policy.

Name
Required: Yes
Type: string

The name of the agent-enforced policy.

Owner
Required: Yes
Type: string

The owner of the agent-enforced policy:

  • SELF – Your account owns the policy.

  • AMAZON – Amazon owns the policy. You can use it, but you can't change or delete it.

AgentEnforcedPolicySummary

Description

Summary information about an agent-enforced policy.

Members
CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the agent-enforced policy was created.

Id
Required: Yes
Type: string

The identifier of the agent-enforced policy.

Name
Required: Yes
Type: string

The name of the agent-enforced policy.

Owner
Required: Yes
Type: string

The owner of the agent-enforced policy:

  • SELF – Your account owns the policy.

  • AMAZON – Amazon owns the policy. You can use it, but you can't change or delete it.

AgentRuntime

Description

Describes an agent runtime.

Members
Id
Required: Yes
Type: string

The identifier of the agent runtime.

Name
Required: Yes
Type: string

The name of the agent runtime.

AgentRuntimeError

Description

Describes an agent runtime that the service couldn't return.

Members
AgentRuntimeId
Required: Yes
Type: string

The identifier of the agent runtime.

ErrorCode
Required: Yes
Type: string

The reason that the service couldn't return the item. NOT_FOUND indicates that the item doesn't exist or isn't available to your account.

Message
Required: Yes
Type: string

A description of the error.

AgenticAccountSetup

Description

Describes the agentic setup of your account in a Region.

Members
ErrorCode
Type: string

The reason that the setup failed. This field is returned only when the status is SETUP_FAILED. The service can add values, so make sure that your code handles values that aren't in the list of valid values.

ErrorMessage
Type: string

A description of why the setup failed. This field is returned whenever ErrorCode is returned.

Status
Required: Yes
Type: string

The status of the account setup. The service doesn't currently return FAILED, UPDATING, or UPDATE_FAILED.

AgenticConnector

Description

Describes an agentic connector: a Model Context Protocol (MCP) server whose tools the agent on a WorkSpace can use.

Members
ActivationStatus
Required: Yes
Type: string

The activation status of the connector for your account:

  • ACTIVATED – You activated the connector.

  • DEACTIVATED – You deactivated the connector.

  • PENDING – The service is activating the connector.

  • PENDING_DELETE – The service is deactivating the connector.

  • ACTIVATION_ERROR – The service couldn't activate the connector.

  • DEACTIVATION_ERROR – The service couldn't deactivate the connector.

AllowedTools
Type: Array of strings

The connector tools the agent can use. If absent, all tools not in BlockedTools are allowed.

ApiKeySecretArn
Type: string

The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that holds the API key, when AuthType is API_KEY. This field is absent when AuthType isn't API_KEY.

Args
Type: Array of strings

The arguments passed to a local connector's command.

AuthType
Required: Yes
Type: string

How the connector authenticates:

  • OAUTH – The connector uses OAuth.

  • API_KEY – The connector uses an API key.

  • NONE – The connector doesn't require authentication.

BlockedTools
Type: Array of strings

The connector tools the agent can't use.

Command
Type: string

The command that starts a local connector's server.

CreatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The creation time of the connector. You might not see this field for every connector.

Description
Type: string

The description of the connector.

Id
Required: Yes
Type: string

The identifier of the connector.

Name
Required: Yes
Type: string

The name of the connector.

OAuthConfig
Type: AgenticConnectorOAuthConfig structure

The OAuth settings, when AuthType is OAUTH.

ServerType
Required: Yes
Type: string

Where the connector's server runs:

  • HOSTED – The server is accessed through a URL.

  • LOCAL – The server runs on the WorkSpace.

UpdatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the connector's activation status last changed for your account. Your account doesn't see this field for a connector it has never activated.

Url
Type: string

The URL of a hosted connector's server.

AgenticConnectorError

Description

Describes an agentic connector that the service couldn't return.

Members
AgenticConnectorId
Required: Yes
Type: string

The identifier of the connector.

ErrorCode
Required: Yes
Type: string

The reason that the service couldn't return the item. NOT_FOUND indicates that the item doesn't exist or isn't available to your account.

Message
Required: Yes
Type: string

A description of the error.

AgenticConnectorOAuthConfig

Description

Describes the OAuth settings of an agentic connector.

Members
AuthorizationUrl
Type: string

The OAuth authorization URL.

ClientId
Type: string

The OAuth client ID.

ClientSecretArn
Type: string

The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that holds the OAuth client secret.

Scopes
Type: Array of strings

The OAuth scopes to request.

TokenUrl
Type: string

The OAuth token URL.

AgenticConnectorSummary

Description

Summary information about an agentic connector.

Members
ActivationStatus
Required: Yes
Type: string

The activation status of the connector for your account:

  • ACTIVATED – You activated the connector.

  • DEACTIVATED – You deactivated the connector.

  • PENDING – The service is activating the connector.

  • PENDING_DELETE – The service is deactivating the connector.

  • ACTIVATION_ERROR – The service couldn't activate the connector.

  • DEACTIVATION_ERROR – The service couldn't deactivate the connector.

AuthType
Required: Yes
Type: string

How the connector authenticates:

  • OAUTH – The connector uses OAuth.

  • API_KEY – The connector uses an API key.

  • NONE – The connector doesn't require authentication.

Description
Type: string

The description of the connector.

Id
Required: Yes
Type: string

The identifier of the connector.

Name
Required: Yes
Type: string

The name of the connector.

ServerType
Required: Yes
Type: string

Where the connector's server runs:

  • HOSTED – The server is accessed through a URL.

  • LOCAL – The server runs on the WorkSpace.

AgenticContext

Description

Describes an agentic context, including its body.

Members
ContextBody
Type: string

The Markdown content of the context.

ContextBodySizeBytes
Type: int

The size of the context body, in UTF-8 bytes.

ContextType
Required: Yes
Type: string

The type of the context. Valid values:

  • STEERING – Guidance that shapes how the agent behaves.

  • SKILL – A reusable capability that the agent can use.

  • WORKFLOW – A multi-step procedure that the agent follows.

CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the context was created.

Description
Type: string

The description of the context.

Id
Required: Yes
Type: string

The identifier of the context.

Name
Required: Yes
Type: string

The name of the context.

TargetFilePath
Required: Yes
Type: string

The name of the Markdown file that the context is written to on the WorkSpace, for example code-review.md.

UpdatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the context was last updated.

AgenticContextError

Description

Describes an agentic context that the service couldn't return.

Members
AgenticContextId
Required: Yes
Type: string

The identifier of the context.

ErrorCode
Required: Yes
Type: string

The reason that the service couldn't return the item. NOT_FOUND indicates that the item doesn't exist or isn't available to your account.

Message
Required: Yes
Type: string

A description of the error.

AgenticContextMetadata

Description

Describes an agentic context, without its body.

Members
ContextBodySizeBytes
Type: int

The size of the context body, in UTF-8 bytes.

ContextType
Required: Yes
Type: string

The type of the context. Valid values:

  • STEERING – Guidance that shapes how the agent behaves.

  • SKILL – A reusable capability that the agent can use.

  • WORKFLOW – A multi-step procedure that the agent follows.

CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the context was created.

Description
Type: string

The description of the context.

Id
Required: Yes
Type: string

The identifier of the context.

Name
Required: Yes
Type: string

The name of the context.

TargetFilePath
Required: Yes
Type: string

The name of the Markdown file that the context is written to on the WorkSpace, for example code-review.md.

UpdatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the context was last updated.

AgenticContextSummary

Description

Summary information about an agentic context.

Members
ContextType
Required: Yes
Type: string

The type of the context. Valid values:

  • STEERING – Guidance that shapes how the agent behaves.

  • SKILL – A reusable capability that the agent can use.

  • WORKFLOW – A multi-step procedure that the agent follows.

Description
Type: string

The description of the context.

Id
Required: Yes
Type: string

The identifier of the context.

Name
Required: Yes
Type: string

The name of the context.

AgenticPersonaConfiguration

Description

Describes an agentic persona configuration, which is a template of models, connectors, contexts, and enforced policies. When you create a WorkSpace with a persona configuration, the WorkSpace receives a copy of its settings.

Members
AgentEnforcedPolicyId
Type: string

The identifier of the agent-enforced policy.

AgentRuntimeId
Required: Yes
Type: string

The identifier of the agent runtime.

AgenticConnectorIds
Type: Array of strings

The identifiers of the connectors.

AgenticContextIds
Type: Array of strings

The identifiers of the contexts.

CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the persona configuration was created.

Description
Type: string

The description of the persona configuration.

Id
Required: Yes
Type: string

The identifier of the persona configuration.

ModelIds
Required: Yes
Type: Array of strings

The identifiers of the models.

Name
Required: Yes
Type: string

The name of the persona configuration.

WorkspaceEnforcedPolicyId
Type: string

The identifier of the WorkSpace-enforced policy.

AgenticPersonaConfigurationError

Description

Describes an agentic persona configuration that the service couldn't return.

Members
AgenticPersonaConfigurationId
Required: Yes
Type: string

The identifier of the persona configuration.

ErrorCode
Required: Yes
Type: string

The reason that the service couldn't return the item. NOT_FOUND indicates that the item doesn't exist or isn't available to your account.

Message
Required: Yes
Type: string

A description of the error.

AgenticPersonaConfigurationSummary

Description

Summary information about an agentic persona configuration.

Members
Description
Type: string

The description of the persona configuration.

Id
Required: Yes
Type: string

The identifier of the persona configuration.

Name
Required: Yes
Type: string

The name of the persona configuration.

AgenticRuntimeState

Description

Describes the current health of the agent on a WorkSpace, as the agent reports it.

Members
ErrorCode
Type: string

The check or operation that set the agent's health status. This field isn't returned when the health status is AVAILABLE, and might not be returned for other statuses. The service can add values, so make sure that your code handles values that aren't in the list of valid values.

ErrorMessage
Type: string

A description of the agent's health status. This field isn't returned when the health status is AVAILABLE. It's returned for every other status, even when ErrorCode isn't returned.

Status
Required: Yes
Type: string

The health of the agent. UNKNOWN indicates that the service couldn't determine the agent's health, for example, because the WorkSpace isn't running.

AgenticWorkspaceConfiguration

Description

Describes the agentic configuration of a WorkSpace.

Members
AgentEnforcedPolicy

The agent-enforced policy associated with the WorkSpace. This field is absent if none is associated.

AgentRuntime
Required: Yes
Type: WorkspaceAgentRuntime structure

The agent runtime of the WorkSpace.

AgenticRuntimeState
Type: AgenticRuntimeState structure

The health of the agent on the WorkSpace. This field isn't returned if the service can't get the agent's health.

Connectors
Type: Array of WorkspaceAgenticConnector structures

The connectors associated with the WorkSpace.

Contexts
Type: Array of WorkspaceAgenticContext structures

The contexts associated with the WorkSpace.

Models
Required: Yes
Type: Array of WorkspaceModel structures

The models associated with the WorkSpace.

WorkspaceEnforcedPolicy

The WorkSpace-enforced policy associated with the WorkSpace. This field is absent if none is associated.

ApplicationNotSupportedException

Description

The specified application is not supported.

Members

ApplicationResourceAssociation

Description

Describes the association between an application and an application resource.

Members
ApplicationId
Type: string

The identifier of the application.

AssociatedResourceId
Type: string

The identifier of the associated resource.

AssociatedResourceType
Type: string

The resource type of the associated resource.

Created
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time the association was created.

LastUpdatedTime
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time the association status was last updated.

State
Type: string

The status of the application resource association.

StateReason
Type: AssociationStateReason structure

The reason the association deployment failed.

ApplicationSettingsRequest

Description

The persistent application settings for WorkSpaces Pools users.

Members
SettingsGroup
Type: string

The path prefix for the S3 bucket where users’ persistent application settings are stored. You can allow the same persistent application settings to be used across multiple pools by specifying the same settings group for each pool.

Status
Required: Yes
Type: string

Enables or disables persistent application settings for users during their pool sessions.

ApplicationSettingsResponse

Description

Describes the persistent application settings for WorkSpaces Pools users.

Members
S3BucketName
Type: string

The S3 bucket where users’ persistent application settings are stored. When persistent application settings are enabled for the first time for an account in an Amazon Web Services Region, an S3 bucket is created. The bucket is unique to the Amazon Web Services account and the Region.

SettingsGroup
Type: string

The path prefix for the S3 bucket where users’ persistent application settings are stored.

Status
Required: Yes
Type: string

Specifies whether persistent application settings are enabled for users during their pool sessions.

AssociationStateReason

Description

Indicates the reason that the association deployment failed, including the error code and error message.

Members
ErrorCode
Type: string

The error code of the association deployment failure.

ErrorMessage
Type: string

The error message of the association deployment failure.

BundleResourceAssociation

Description

Describes the association between an application and a bundle resource.

Members
AssociatedResourceId
Type: string

The identifier of the associated resource.

AssociatedResourceType
Type: string

The resource type of the associated resources.

BundleId
Type: string

The identifier of the bundle.

Created
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time the association is created.

LastUpdatedTime
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time the association status was last updated.

State
Type: string

The status of the bundle resource association.

StateReason
Type: AssociationStateReason structure

The reason the association deployment failed.

Capacity

Description

Describes the user capacity for a pool of WorkSpaces.

Members
DesiredUserSessions
Required: Yes
Type: int

The desired number of user sessions for the WorkSpaces in the pool.

CapacityStatus

Description

Describes the capacity status for a pool of WorkSpaces.

Members
ActiveUserSessions
Required: Yes
Type: int

The number of user sessions currently being used for your pool.

ActualUserSessions
Required: Yes
Type: int

The total number of user sessions that are available for streaming or are currently streaming in your pool.

ActualUserSessions = AvailableUserSessions + ActiveUserSessions

AvailableUserSessions
Required: Yes
Type: int

The number of user sessions currently available for streaming from your pool.

AvailableUserSessions = ActualUserSessions - ActiveUserSessions

DesiredUserSessions
Required: Yes
Type: int

The total number of sessions slots that are either running or pending. This represents the total number of concurrent streaming sessions your pool can support in a steady state.

CertificateBasedAuthProperties

Description

Describes the properties of the certificate-based authentication you want to use with your WorkSpaces.

Members
CertificateAuthorityArn
Type: string

The Amazon Resource Name (ARN) of the Amazon Web Services Certificate Manager Private CA resource.

Status
Type: string

The status of the certificate-based authentication properties.

ClientProperties

Description

Describes an Amazon WorkSpaces client.

Members
ClientExperiencePolicy
Type: string

The client experience policy that determines which client experience the user sees. Administrators can set this policy to control the client experience for users in a directory. Valid values include FORCE_CLASSIC, FORCE_UI_2026, and USER_CHOICE.

LogUploadEnabled
Type: string

Specifies whether users can upload diagnostic log files of Amazon WorkSpaces client directly to WorkSpaces to troubleshoot issues when using the WorkSpaces client. When enabled, the log files will be sent to WorkSpaces automatically and will be applied to all users in the specified directory.

ReconnectEnabled
Type: string

Specifies whether users can cache their credentials on the Amazon WorkSpaces client. When enabled, users can choose to reconnect to their WorkSpaces without re-entering their credentials.

ClientPropertiesResult

Description

Information about the Amazon WorkSpaces client.

Members
ClientProperties
Type: ClientProperties structure

Information about the Amazon WorkSpaces client.

ResourceId
Type: string

The resource identifier, in the form of a directory ID.

ComputeNotCompatibleException

Description

The compute type of the WorkSpace is not compatible with the application.

Members

ComputeType

Description

Describes the compute type of the bundle.

Members
Name
Type: string

The compute type.

ConflictException

Description

The request conflicts with the current state of a resource, for example because a name is already in use or the resource is still in use. Resolve the conflict, and then retry your request.

Members
ResourceId
Type: string

The identifier of the existing resource that the request conflicts with. This field is present only when known.

message
Type: string

ConnectClientAddIn

Description

Describes an Connect Customer client add-in.

Members
AddInId
Type: string

The client add-in identifier.

Name
Type: string

The name of the client add in.

ResourceId
Type: string

The directory identifier for which the client add-in is configured.

URL
Type: string

The endpoint URL of the client add-in.

ConnectionAlias

Description

Describes a connection alias. Connection aliases are used for cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces.

Members
AliasId
Type: string

The identifier of the connection alias.

Associations
Type: Array of ConnectionAliasAssociation structures

The association status of the connection alias.

ConnectionString
Type: string

The connection string specified for the connection alias. The connection string must be in the form of a fully qualified domain name (FQDN), such as www.example.com.

OwnerAccountId
Type: string

The identifier of the Amazon Web Services account that owns the connection alias.

State
Type: string

The current state of the connection alias.

ConnectionAliasAssociation

Description

Describes a connection alias association that is used for cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces.

Members
AssociatedAccountId
Type: string

The identifier of the Amazon Web Services account that associated the connection alias with a directory.

AssociationStatus
Type: string

The association status of the connection alias.

ConnectionIdentifier
Type: string

The identifier of the connection alias association. You use the connection identifier in the DNS TXT record when you're configuring your DNS routing policies.

ResourceId
Type: string

The identifier of the directory associated with a connection alias.

ConnectionAliasPermission

Description

Describes the permissions for a connection alias. Connection aliases are used for cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces.

Members
AllowAssociation
Required: Yes
Type: boolean

Indicates whether the specified Amazon Web Services account is allowed to associate the connection alias with a directory.

SharedAccountId
Required: Yes
Type: string

The identifier of the Amazon Web Services account that the connection alias is shared with.

CustomWorkspaceImageImportErrorDetails

Description

Describes in-depth details about the error. These details include the possible causes of the error and troubleshooting information.

Members
ErrorCode
Type: string

The error code that is returned for the image import.

ErrorMessage
Type: string

The text of the error message that is returned for the image import.

DataReplicationSettings

Description

Describes the data replication settings.

Members
DataReplication
Type: string

Indicates whether data replication is enabled, and if enabled, the type of data replication.

RecoverySnapshotTime
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time at which the last successful snapshot was taken of the primary WorkSpace used for replicating data.

DefaultClientBrandingAttributes

Description

Returns default client branding attributes that were imported. These attributes display on the client login screen.

Client branding attributes are public facing. Ensure that you don't include sensitive information.

Members
ForgotPasswordLink
Type: string

The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace.

LoginMessage
Type: Associative array of custom strings keys (ClientLocale) to strings

The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is en_US. The HTML tags supported include the following: a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul.

LogoUrl
Type: string

The logo. The only image format accepted is a binary data object that is converted from a .png file.

SupportEmail
Type: string

The support email. The company's customer support email address.

  • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

  • The default email is workspaces-feedback@amazon.com.

SupportLink
Type: string

The support link. The link for the company's customer support page for their WorkSpace.

  • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive.You can specify one parameter for each platform type, but not both.

  • The default support link is workspaces-feedback@amazon.com.

DefaultImportClientBrandingAttributes

Description

The default client branding attributes to be imported. These attributes display on the client login screen.

Client branding attributes are public facing. Ensure that you do not include sensitive information.

Members
ForgotPasswordLink
Type: string

The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace.

LoginMessage
Type: Associative array of custom strings keys (ClientLocale) to strings

The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is en_US. The HTML tags supported include the following: a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul.

Logo
Type: blob (string|resource|Psr\Http\Message\StreamInterface)

The logo. The only image format accepted is a binary data object that is converted from a .png file.

SupportEmail
Type: string

The support email. The company's customer support email address.

  • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

  • The default email is workspaces-feedback@amazon.com.

SupportLink
Type: string

The support link. The link for the company's customer support page for their WorkSpace.

  • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

  • The default support link is workspaces-feedback@amazon.com.

DefaultWorkspaceCreationProperties

Description

Describes the default values that are used to create WorkSpaces. For more information, see Update Directory Details for Your WorkSpaces.

Members
CustomSecurityGroupId
Type: string

The identifier of the default security group to apply to WorkSpaces when they are created. For more information, see Security Groups for Your WorkSpaces.

DefaultOu
Type: string

The organizational unit (OU) in the directory for the WorkSpace machine accounts.

EnableInternetAccess
Type: boolean

Specifies whether to automatically assign an Elastic public IP address to WorkSpaces in this directory by default. If enabled, the Elastic public IP address allows outbound internet access from your WorkSpaces when you’re using an internet gateway in the Amazon VPC in which your WorkSpaces are located. If you're using a Network Address Translation (NAT) gateway for outbound internet access from your VPC, or if your WorkSpaces are in public subnets and you manually assign them Elastic IP addresses, you should disable this setting. This setting applies to new WorkSpaces that you launch or to existing WorkSpaces that you rebuild. For more information, see Configure a VPC for Amazon WorkSpaces.

EnableMaintenanceMode
Type: boolean

Specifies whether maintenance mode is enabled for WorkSpaces. For more information, see WorkSpace Maintenance.

InstanceIamRoleArn
Type: string

Indicates the IAM role ARN of the instance.

UserEnabledAsLocalAdministrator
Type: boolean

Specifies whether WorkSpace users are local administrators on their WorkSpaces.

DescribeWorkspaceDirectoriesFilter

Description

Describes the filter conditions for the WorkSpaces to return.

Members
Name
Required: Yes
Type: string

The name of the WorkSpaces to filter.

Values
Required: Yes
Type: Array of strings

The values for filtering WorkSpaces

DescribeWorkspacesPoolsFilter

Description

Describes the filter conditions for WorkSpaces Pools to return.

Members
Name
Required: Yes
Type: string

The name of the pool to filter.

Operator
Required: Yes
Type: string

The operator values for filtering WorkSpaces Pools.

Values
Required: Yes
Type: Array of strings

The values for filtering WorkSpaces Pools.

ErrorDetails

Description

Describes in-depth details about the error. These details include the possible causes of the error and troubleshooting information.

Members
ErrorCode
Type: string

Indicates the error code returned.

ErrorMessage
Type: string

The text of the error message related the error code.

FailedCreateStandbyWorkspacesRequest

Description

Describes the standby WorkSpace that could not be created.

Members
ErrorCode
Type: string

The error code that is returned if the standby WorkSpace could not be created.

ErrorMessage
Type: string

The text of the error message that is returned if the standby WorkSpace could not be created.

StandbyWorkspaceRequest
Type: StandbyWorkspace structure

Information about the standby WorkSpace that could not be created.

FailedCreateWorkspaceRequest

Description

Describes a WorkSpace that cannot be created.

Members
ErrorCode
Type: string

The error code that is returned if the WorkSpace cannot be created.

ErrorMessage
Type: string

The text of the error message that is returned if the WorkSpace cannot be created.

WorkspaceRequest
Type: WorkspaceRequest structure

Information about the WorkSpace.

FailedWorkspaceChangeRequest

Description

Describes a WorkSpace that could not be rebooted. (RebootWorkspaces), rebuilt (RebuildWorkspaces), restored (RestoreWorkspace), terminated (TerminateWorkspaces), started (StartWorkspaces), or stopped (StopWorkspaces).

Members
ErrorCode
Type: string

The error code that is returned if the WorkSpace cannot be rebooted.

ErrorMessage
Type: string

The text of the error message that is returned if the WorkSpace cannot be rebooted.

WorkspaceId
Type: string

The identifier of the WorkSpace.

GlobalAcceleratorForDirectory

Description

Describes the Global Accelerator for directory

Members
Mode
Required: Yes
Type: string

Indicates if Global Accelerator for directory is enabled or disabled.

PreferredProtocol
Type: string

Indicates the preferred protocol for Global Accelerator.

GlobalAcceleratorForWorkSpace

Description

Describes the Global Accelerator for WorkSpaces.

Members
Mode
Required: Yes
Type: string

Indicates if Global Accelerator for WorkSpaces is enabled, disabled, or the same mode as the associated directory.

PreferredProtocol
Type: string

Indicates the preferred protocol for Global Accelerator.

IDCConfig

Description

Specifies the configurations of the identity center.

Members
ApplicationArn
Type: string

The Amazon Resource Name (ARN) of the application.

InstanceArn
Type: string

The Amazon Resource Name (ARN) of the identity center instance.

ImagePermission

Description

Describes the Amazon Web Services accounts that have been granted permission to use a shared image. For more information about sharing images, see Share or Unshare a Custom WorkSpaces Image.

Members
SharedAccountId
Type: string

The identifier of the Amazon Web Services account that an image has been shared with.

ImageResourceAssociation

Description

Describes the association between an application and an image resource.

Members
AssociatedResourceId
Type: string

The identifier of the associated resource.

AssociatedResourceType
Type: string

The resource type of the associated resources.

Created
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time the association is created.

ImageId
Type: string

The identifier of the image.

LastUpdatedTime
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time the association status was last updated.

State
Type: string

The status of the image resource association.

StateReason
Type: AssociationStateReason structure

The reason the association deployment failed.

ImageSourceIdentifier

Description

Describes the image import source.

Members
Ec2ImageId
Type: string

The identifier of the EC2 image.

Ec2ImportTaskId
Type: string

The EC2 import task ID to import the image from the Amazon EC2 VM import process.

ImageBuildVersionArn
Type: string

The ARN of the EC2 Image Builder image.

IncompatibleApplicationsException

Description

The specified application is not compatible with the resource.

Members

InternalServerException

Description

An unexpected server error occurred. Retry your request.

Members
message
Type: string

InvalidParameterCombinationException

Description

Two or more of the selected parameter values cannot be used together.

Members
message
Type: string

The exception error message.

InvalidParameterValuesException

Description

One or more parameter values are not valid.

Members
message
Type: string

The exception error message.

InvalidResourceStateException

Description

The state of the resource is not valid for this operation.

Members
message
Type: string

IosClientBrandingAttributes

Description

The client branding attributes for iOS device types. These attributes are displayed on the iOS client login screen only.

Client branding attributes are public facing. Ensure you do not include sensitive information.

Members
ForgotPasswordLink
Type: string

The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace.

LoginMessage
Type: Associative array of custom strings keys (ClientLocale) to strings

The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is en_US. The HTML tags supported include the following: a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul.

Logo2xUrl
Type: string

The @2x version of the logo. This is the higher resolution display that offers a scale factor of 2.0 (or @2x). The only image format accepted is a binary data object that is converted from a .png file.

For more information about iOS image size and resolution, see Image Size and Resolution in the Apple Human Interface Guidelines.

Logo3xUrl
Type: string

The @3x version of the logo. This is the higher resolution display that offers a scale factor of 3.0 (or @3x).The only image format accepted is a binary data object that is converted from a .png file.

For more information about iOS image size and resolution, see Image Size and Resolution in the Apple Human Interface Guidelines.

LogoUrl
Type: string

The logo. This is the standard-resolution display that has a 1:1 pixel density (or @1x), where one pixel is equal to one point. The only image format accepted is a binary data object that is converted from a .png file.

SupportEmail
Type: string

The support email. The company's customer support email address.

  • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

  • The default email is workspaces-feedback@amazon.com.

SupportLink
Type: string

The support link. The link for the company's customer support page for their WorkSpace.

  • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

  • The default support link is workspaces-feedback@amazon.com.

IosImportClientBrandingAttributes

Description

The client branding attributes to import for iOS device types. These attributes are displayed on the iOS client login screen.

Client branding attributes are public facing. Ensure you do not include sensitive information.

Members
ForgotPasswordLink
Type: string

The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace.

LoginMessage
Type: Associative array of custom strings keys (ClientLocale) to strings

The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is en_US. The HTML tags supported include the following: a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul.

Logo
Type: blob (string|resource|Psr\Http\Message\StreamInterface)

The logo. This is the standard-resolution display that has a 1:1 pixel density (or @1x), where one pixel is equal to one point. The only image format accepted is a binary data object that is converted from a .png file.

Logo2x
Type: blob (string|resource|Psr\Http\Message\StreamInterface)

The @2x version of the logo. This is the higher resolution display that offers a scale factor of 2.0 (or @2x). The only image format accepted is a binary data object that is converted from a .png file.

For more information about iOS image size and resolution, see Image Size and Resolution in the Apple Human Interface Guidelines.

Logo3x
Type: blob (string|resource|Psr\Http\Message\StreamInterface)

The @3x version of the logo. This is the higher resolution display that offers a scale factor of 3.0 (or @3x). The only image format accepted is a binary data object that is converted from a .png file.

For more information about iOS image size and resolution, see Image Size and Resolution in the Apple Human Interface Guidelines.

SupportEmail
Type: string

The support email. The company's customer support email address.

  • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

  • The default email is workspaces-feedback@amazon.com.

SupportLink
Type: string

The support link. The link for the company's customer support page for their WorkSpace.

  • In each platform type, the SupportEmail and SupportLink parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.

  • The default support link is workspaces-feedback@amazon.com.

IpRuleItem

Description

Describes a rule for an IP access control group.

Members
ipRule
Type: string

The IP address range, in CIDR notation.

ruleDesc
Type: string

The description.

MicrosoftEntraConfig

Description

Specifies the configurations of the Microsoft Entra.

Members
ApplicationConfigSecretArn
Type: string

The Amazon Resource Name (ARN) of the application config.

TenantId
Type: string

The identifier of the tenant.

Model

Description

Describes a model from the supported model catalog.

Members
ModelId
Required: Yes
Type: string

The identifier of the model.

Name
Required: Yes
Type: string

The name of the model.

ModelError

Description

Describes a model that the service couldn't return.

Members
ErrorCode
Required: Yes
Type: string

The reason that the service couldn't return the item. NOT_FOUND indicates that the item doesn't exist or isn't available to your account.

Message
Required: Yes
Type: string

A description of the error.

ModelId
Required: Yes
Type: string

The identifier of the model.

ModelSummary

Description

Summary information about a model in the supported model catalog.

Members
ModelId
Required: Yes
Type: string

The identifier of the model.

Name
Required: Yes
Type: string

The name of the model.

ModificationState

Description

Describes a WorkSpace modification.

Members
Resource
Type: string

The WorkSpace property being modified.

State
Type: string

The modification state.

NetworkAccessConfiguration

Description

Describes the network details of a WorkSpaces Pool.

Members
EniId
Type: string

The resource identifier of the elastic network interface that is attached to instances in your VPC. All network interfaces have the eni-xxxxxxxx resource identifier.

EniPrivateIpAddress
Type: string

The private IP address of the elastic network interface that is attached to instances in your VPC.

OperatingSystem

Description

The operating system that the image is running.

Members
Type
Type: string

The operating system.

OperatingSystemNotCompatibleException

Description

The operating system of the WorkSpace is not compatible with the application.

Members

OperationInProgressException

Description

The properties of this WorkSpace are currently being modified. Try again in a moment.

Members
message
Type: string

OperationNotSupportedException

Description

This operation is not supported.

Members
message
Type: string

The exception error message.

reason
Type: string

The exception error reason.

PendingCreateStandbyWorkspacesRequest

Description

Information about the standby WorkSpace.

Members
DirectoryId
Type: string

The identifier of the directory for the standby WorkSpace.

State
Type: string

The operational state of the standby WorkSpace.

UserName
Type: string

Describes the standby WorkSpace that was created.

Because this operation is asynchronous, the identifier returned is not immediately available for use with other operations. For example, if you call DescribeWorkspaces before the WorkSpace is created, the information returned can be incomplete.

WorkspaceId
Type: string

The identifier of the standby WorkSpace.

PolicyApplyFailedException

Description

The service associated the enforced policy, but it couldn't apply it: the WorkSpace or its agent rejected it, or the service couldn't deliver it to the WorkSpace. Don't retry. Fix the policy and associate it again. To see why, call GetAgenticWorkspaceConfiguration.

Members
message
Type: string

The exception error message.

RebootRequest

Description

Describes the information used to reboot a WorkSpace.

Members
WorkspaceId
Required: Yes
Type: string

The identifier of the WorkSpace.

RebuildRequest

Description

Describes the information used to rebuild a WorkSpace.

Members
WorkspaceId
Required: Yes
Type: string

The identifier of the WorkSpace.

RelatedWorkspaceProperties

Description

Describes the related WorkSpace. The related WorkSpace could be a standby WorkSpace or primary WorkSpace related to the specified WorkSpace.

Members
Region
Type: string

The Region of the related WorkSpace.

State
Type: string

Indicates the state of the WorkSpace.

Type
Type: string

Indicates the type of WorkSpace.

WorkspaceId
Type: string

The identifier of the related WorkSpace.

ResourceAlreadyExistsException

Description

The specified resource already exists.

Members
message
Type: string

ResourceAssociatedException

Description

The resource is associated with a directory.

Members
message
Type: string

ResourceCreationFailedException

Description

The resource could not be created.

Members
message
Type: string

ResourceInUseException

Description

The specified resource is currently in use.

Members
ResourceId
Type: string

The ID of the resource that is in use.

message
Type: string

ResourceLimitExceededException

Description

Your resource limits have been exceeded.

Members
message
Type: string

The exception error message.

ResourceNotFoundException

Description

The resource could not be found.

Members
ResourceId
Type: string

The ID of the resource that could not be found.

ResourceType
Type: string

The type of the resource that wasn't found. This field is present only when known.

message
Type: string

The resource could not be found.

ResourceUnavailableException

Description

The specified resource is not available.

Members
ResourceId
Type: string

The identifier of the resource that is not available.

message
Type: string

The exception error message.

RootStorage

Description

Describes the root volume for a WorkSpace bundle.

Members
Capacity
Required: Yes
Type: string

The size of the root volume.

SamlProperties

Description

Describes the enablement status, user access URL, and relay state parameter name that are used for configuring federation with an SAML 2.0 identity provider.

Members
RelayStateParameterName
Type: string

The relay state parameter name supported by the SAML 2.0 identity provider (IdP). When the end user is redirected to the user access URL from the WorkSpaces client application, this relay state parameter name is appended as a query parameter to the URL along with the relay state endpoint to return the user to the client application session.

To use SAML 2.0 authentication with WorkSpaces, the IdP must support IdP-initiated deep linking for the relay state URL. Consult your IdP documentation for more information.

Status
Type: string

Indicates the status of SAML 2.0 authentication. These statuses include the following.

  • If the setting is DISABLED, end users will be directed to login with their directory credentials.

  • If the setting is ENABLED, end users will be directed to login via the user access URL. Users attempting to connect to WorkSpaces from a client application that does not support SAML 2.0 authentication will not be able to connect.

  • If the setting is ENABLED_WITH_DIRECTORY_LOGIN_FALLBACK, end users will be directed to login via the user access URL on supported client applications, but will not prevent clients that do not support SAML 2.0 authentication from connecting as if SAML 2.0 authentication was disabled.

UserAccessUrl
Type: string

The SAML 2.0 identity provider (IdP) user access URL is the URL a user would navigate to in their web browser in order to federate from the IdP and directly access the application, without any SAML 2.0 service provider (SP) bindings.

SelfservicePermissions

Description

Describes the self-service permissions for a directory. For more information, see Enable Self-Service WorkSpace Management Capabilities for Your Users.

Members
ChangeComputeType
Type: string

Specifies whether users can change the compute type (bundle) for their WorkSpace.

EnableEndUserAdvisor
Type: string

Specifies whether users can use End User Advisor in the WorkSpaces client for Windows to see their session health and get recommended actions for common issues. The default value is ENABLED. For more information, see Proactive troubleshooting for your WorkSpaces users.

IncreaseVolumeSize
Type: string

Specifies whether users can increase the volume size of the drives on their WorkSpace.

NestedVirtualization
Type: string

Specifies whether users can enable or disable nested virtualization on their WorkSpace. The default value is DISABLED. For more information, see Nested virtualization for Amazon WorkSpaces.

RebuildWorkspace
Type: string

Specifies whether users can rebuild the operating system of a WorkSpace to its original state.

RestartWorkspace
Type: string

Specifies whether users can restart their WorkSpace.

SwitchRunningMode
Type: string

Specifies whether users can switch the running mode of their WorkSpace.

ServiceQuotaExceededException

Description

The request would exceed a service quota. Request a quota increase or reduce the number of resources in your request.

Members
QuotaCode
Type: string

The code of the quota that would be exceeded. This field is present only when known.

ResourceId
Type: string

The identifier of the resource whose quota would be exceeded. This field is present only when known.

ResourceType
Type: string

The type of the resource whose quota would be exceeded. This field is present only when known.

ServiceCode
Type: string

The code of the service that owns the quota. This field is present only when known.

message
Required: Yes
Type: string

The exception error message.

Snapshot

Description

Describes a snapshot.

Members
SnapshotTime
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the snapshot was created.

StandbyWorkspace

Description

Describes a standby WorkSpace.

Members
DataReplication
Type: string

Indicates whether data replication is enabled, and if enabled, the type of data replication.

DirectoryId
Required: Yes
Type: string

The identifier of the directory for the standby WorkSpace.

PrimaryWorkspaceId
Required: Yes
Type: string

The identifier of the standby WorkSpace.

Tags
Type: Array of Tag structures

The tags associated with the standby WorkSpace.

VolumeEncryptionKey
Type: string

The volume encryption key of the standby WorkSpace.

StandbyWorkspacesProperties

Description

Describes the properties of the related standby WorkSpaces.

Members
DataReplication
Type: string

Indicates whether data replication is enabled, and if enabled, the type of data replication.

RecoverySnapshotTime
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time at which the last successful snapshot was taken of the primary WorkSpace used for replicating data.

StandbyWorkspaceId
Type: string

The identifier of the standby WorkSpace

StartRequest

Description

Information used to start a WorkSpace.

Members
WorkspaceId
Type: string

The identifier of the WorkSpace.

StopRequest

Description

Describes the information used to stop a WorkSpace.

Members
WorkspaceId
Type: string

The identifier of the WorkSpace.

StorageConnector

Description

Describes the storage connector.

Members
ConnectorType
Required: Yes
Type: string

The type of connector used to save user files.

Status
Required: Yes
Type: string

Indicates if the storage connetor is enabled or disabled.

StreamingProperties

Description

Describes the streaming properties.

Members
GlobalAccelerator

Indicates the Global Accelerator properties.

StorageConnectors
Type: Array of StorageConnector structures

Indicates the storage connector used

StreamingExperiencePreferredProtocol
Type: string

Indicates the type of preferred protocol for the streaming experience.

UserSettings
Type: Array of UserSetting structures

Indicates the permission settings asscoiated with the user.

Tag

Description

Describes a tag.

Members
Key
Required: Yes
Type: string

The key of the tag.

Value
Type: string

The value of the tag.

TerminateRequest

Description

Describes the information used to terminate a WorkSpace.

Members
WorkspaceId
Required: Yes
Type: string

The identifier of the WorkSpace.

ThrottlingException

Description

The request was throttled. Retry the request with exponential backoff.

Members
message
Type: string

The exception error message.

TimeoutSettings

Description

Describes the timeout settings for a pool of WorkSpaces.

Members
DisconnectTimeoutInSeconds
Type: int

Specifies the amount of time, in seconds, that a streaming session remains active after users disconnect. If users try to reconnect to the streaming session after a disconnection or network interruption within the time set, they are connected to their previous session. Otherwise, they are connected to a new session with a new streaming instance.

IdleDisconnectTimeoutInSeconds
Type: int

The amount of time in seconds a connection will stay active while idle.

MaxUserDurationInSeconds
Type: int

Specifies the maximum amount of time, in seconds, that a streaming session can remain active. If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance.

UnsupportedNetworkConfigurationException

Description

The configuration of this network is not supported for this operation, or your network configuration conflicts with the Amazon WorkSpaces management network IP range. For more information, see Configure a VPC for Amazon WorkSpaces.

Members
message
Type: string

UpdateResult

Description

Describes whether a WorkSpace image needs to be updated with the latest drivers and other components required by Amazon WorkSpaces.

Only Windows 10 WorkSpace images can be programmatically updated at this time.

Members
Description
Type: string

A description of whether updates for the WorkSpace image are pending or available.

UpdateAvailable
Type: boolean

Indicates whether updated drivers or other components are available for the specified WorkSpace image.

UserSetting

Description

Information about the user's permission settings.

Members
Action
Required: Yes
Type: string

Indicates the type of action.

MaximumLength
Type: int

Indicates the maximum character length for the specified user setting.

Permission
Required: Yes
Type: string

Indicates if the setting is enabled or disabled.

UserStorage

Description

Describes the user volume for a WorkSpace bundle.

Members
Capacity
Required: Yes
Type: string

The size of the user volume.

ValidationException

Description

Your request failed validation. Check the error message for the parameter that isn't valid.

Members
message
Type: string

WorkSpaceApplication

Description

Describes the WorkSpace application.

Members
ApplicationId
Type: string

The identifier of the application.

Created
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time the application is created.

Description
Type: string

The description of the WorkSpace application.

LicenseType
Type: string

The license availability for the applications.

Name
Type: string

The name of the WorkSpace application.

Owner
Type: string

The owner of the WorkSpace application.

State
Type: string

The status of WorkSpace application.

SupportedComputeTypeNames
Type: Array of strings

The supported compute types of the WorkSpace application.

SupportedOperatingSystemNames
Type: Array of strings

The supported operating systems of the WorkSpace application.

WorkSpaceApplicationDeployment

Description

Describes the WorkSpace application deployment.

Members
Associations
Type: Array of WorkspaceResourceAssociation structures

The associations between the applications and the associated resources.

Workspace

Description

Describes a WorkSpace.

Members
BundleId
Type: string

The identifier of the bundle used to create the WorkSpace.

ComputerName
Type: string

The name of the WorkSpace, as seen by the operating system. The format of this name varies. For more information, see Launch a WorkSpace.

DataReplicationSettings
Type: DataReplicationSettings structure

Indicates the settings of the data replication.

DirectoryId
Type: string

The identifier of the Directory Service directory for the WorkSpace.

ErrorCode
Type: string

The error code that is returned if the WorkSpace cannot be created.

ErrorMessage
Type: string

The text of the error message that is returned if the WorkSpace cannot be created.

IpAddress
Type: string

The IP address of the WorkSpace.

Ipv6Address
Type: string

The IPv6 address of the WorkSpace.

ModificationStates
Type: Array of ModificationState structures

The modification states of the WorkSpace.

RelatedWorkspaces
Type: Array of RelatedWorkspaceProperties structures

The standby WorkSpace or primary WorkSpace related to the specified WorkSpace.

RootVolumeEncryptionEnabled
Type: boolean

Indicates whether the data stored on the root volume is encrypted.

StandbyWorkspacesProperties
Type: Array of StandbyWorkspacesProperties structures

The properties of the standby WorkSpace

State
Type: string

The operational state of the WorkSpace.

  • PENDING – The WorkSpace is in a waiting state (for example, the WorkSpace is being created).

  • AVAILABLE – The WorkSpace is running and has passed the health checks.

  • IMPAIRED – Refer to UNHEALTHY state.

  • UNHEALTHY – The WorkSpace is not responding to health checks.

  • REBOOTING – The WorkSpace is being rebooted (restarted).

  • STARTING – The WorkSpace is starting up and health checks are being run.

  • REBUILDING – The WorkSpace is being rebuilt.

  • RESTORING – The WorkSpace is being restored.

  • MAINTENANCE – The WorkSpace is undergoing scheduled maintenance by Amazon Web Services.

  • ADMIN_MAINTENANCE – The WorkSpace is undergoing maintenance by the WorkSpaces administrator.

  • TERMINATING – The WorkSpace is being deleted.

  • TERMINATED – The WorkSpace has been deleted.

  • SUSPENDED – The WorkSpace has been suspended for image creation.

  • UPDATING – The WorkSpace is undergoing an update.

  • STOPPING – The WorkSpace is being stopped.

  • STOPPED – The WorkSpace has been stopped.

  • ERROR – The WorkSpace is an error state (for example, an error occurred during startup).

After a WorkSpace is terminated, the TERMINATED state is returned only briefly before the WorkSpace directory metadata is cleaned up, so this state is rarely returned. To confirm that a WorkSpace is terminated, check for the WorkSpace ID by using DescribeWorkSpaces. If the WorkSpace ID isn't returned, then the WorkSpace has been successfully terminated.

SubnetId
Type: string

The identifier of the subnet for the WorkSpace.

UserName
Type: string

The user for the WorkSpace.

UserVolumeEncryptionEnabled
Type: boolean

Indicates whether the data stored on the user volume is encrypted.

VolumeEncryptionKey
Type: string

The ARN of the symmetric KMS key used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric KMS keys.

WorkspaceCategory
Type: string

The category of the WorkSpace: PERSONAL or AGENTIC.

WorkspaceId
Type: string

The identifier of the WorkSpace.

WorkspaceName
Type: string

The name of the user-decoupled WorkSpace.

WorkspaceProperties
Type: WorkspaceProperties structure

The properties of the WorkSpace.

WorkspaceAccessProperties

Description

The device types and operating systems that can be used to access a WorkSpace. For more information, see Amazon WorkSpaces Client Network Requirements.

Members
AccessEndpointConfig
Type: AccessEndpointConfig structure

Specifies the configuration for accessing the WorkSpace.

DeviceTypeAndroid
Type: string

Indicates whether users can use Android and Android-compatible Chrome OS devices to access their WorkSpaces.

DeviceTypeChromeOs
Type: string

Indicates whether users can use Chromebooks to access their WorkSpaces.

DeviceTypeIos
Type: string

Indicates whether users can use iOS devices to access their WorkSpaces.

DeviceTypeLinux
Type: string

Indicates whether users can use Linux clients to access their WorkSpaces.

DeviceTypeOsx
Type: string

Indicates whether users can use macOS clients to access their WorkSpaces.

DeviceTypeWeb
Type: string

Indicates whether users can access their WorkSpaces through a web browser.

DeviceTypeWindows
Type: string

Indicates whether users can use Windows clients to access their WorkSpaces.

DeviceTypeWorkSpacesThinClient
Type: string

Indicates whether users can access their WorkSpaces through a WorkSpaces Thin Client.

DeviceTypeZeroClient
Type: string

Indicates whether users can use zero client devices to access their WorkSpaces.

WorkspaceAgentRuntime

Description

Describes the agent runtime of a WorkSpace.

Members
Id
Required: Yes
Type: string

The identifier of the agent runtime.

Name
Required: Yes
Type: string

The name of the agent runtime.

WorkspaceAgenticConnector

Description

Describes an agentic connector associated with a WorkSpace.

Members
Id
Required: Yes
Type: string

The identifier of the connector.

Name
Required: Yes
Type: string

The name of the connector.

WorkspaceAgenticContext

Description

Describes an agentic context associated with a WorkSpace.

Members
ContextType
Required: Yes
Type: string

The type of the context. Valid values:

  • STEERING – Guidance that shapes how the agent behaves.

  • SKILL – A reusable capability that the agent can use.

  • WORKFLOW – A multi-step procedure that the agent follows.

FileName
Required: Yes
Type: string

The name of the Markdown file that the context is written to on the WorkSpace.

Id
Required: Yes
Type: string

The identifier of the context.

Name
Required: Yes
Type: string

The name of the context.

WorkspaceBundle

Description

Describes a WorkSpace bundle.

Members
BundleId
Type: string

The identifier of the bundle.

BundleType
Type: string

The type of WorkSpace bundle.

ComputeType
Type: ComputeType structure

The compute type of the bundle. For more information, see Amazon WorkSpaces Bundles.

CreationTime
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the bundle was created.

Description
Type: string

The description of the bundle.

ImageId
Type: string

The identifier of the image that was used to create the bundle.

LastUpdatedTime
Type: timestamp (string|DateTime or anything parsable by strtotime)

The last time that the bundle was updated.

Name
Type: string

The name of the bundle.

Owner
Type: string

The owner of the bundle. This is the account identifier of the owner, or AMAZON if the bundle is provided by Amazon Web Services.

RootStorage
Type: RootStorage structure

The size of the root volume.

State
Type: string

The state of the WorkSpace bundle.

UserStorage
Type: UserStorage structure

The size of the user volume.

WorkspaceConnectionStatus

Description

Describes the connection status of a WorkSpace.

Members
ConnectionState
Type: string

The connection state of the WorkSpace. The connection state is unknown if the WorkSpace is stopped.

ConnectionStateCheckTimestamp
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp of the connection status check.

LastKnownUserConnectionTimestamp
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp of the last known user connection.

WorkspaceId
Type: string

The identifier of the WorkSpace.

WorkspaceCreationProperties

Description

Describes the default properties that are used for creating WorkSpaces. For more information, see Update Directory Details for Your WorkSpaces.

Members
CustomSecurityGroupId
Type: string

The identifier of your custom security group.

DefaultOu
Type: string

The default organizational unit (OU) for your WorkSpaces directories. This string must be the full Lightweight Directory Access Protocol (LDAP) distinguished name for the target domain and OU. It must be in the form "OU=value,DC=value,DC=value", where value is any string of characters, and the number of domain components (DCs) is two or more. For example, OU=WorkSpaces_machines,DC=machines,DC=example,DC=com.

  • To avoid errors, certain characters in the distinguished name must be escaped. For more information, see Distinguished Names in the Microsoft documentation.

  • The API doesn't validate whether the OU exists.

EnableInternetAccess
Type: boolean

Indicates whether internet access is enabled for your WorkSpaces.

EnableMaintenanceMode
Type: boolean

Indicates whether maintenance mode is enabled for your WorkSpaces. For more information, see WorkSpace Maintenance.

InstanceIamRoleArn
Type: string

Indicates the IAM role ARN of the instance.

UserEnabledAsLocalAdministrator
Type: boolean

Indicates whether users are local administrators of their WorkSpaces.

WorkspaceDirectory

Description

Describes a directory that is used with Amazon WorkSpaces.

Members
ActiveDirectoryConfig
Type: ActiveDirectoryConfig structure

Information about the Active Directory config.

Alias
Type: string

The directory alias.

CertificateBasedAuthProperties

The certificate-based authentication properties used to authenticate SAML 2.0 Identity Provider (IdP) user identities to Active Directory for WorkSpaces login.

CustomerUserName
Type: string

The user name for the service account.

DirectoryId
Type: string

The directory identifier.

DirectoryName
Type: string

The name of the directory.

DirectoryType
Type: string

The directory type.

DnsIpAddresses
Type: Array of strings

The IP addresses of the DNS servers for the directory.

DnsIpv6Addresses
Type: Array of strings

The IPv6 addresses of the DNS servers for the directory.

EndpointEncryptionMode
Type: string

Endpoint encryption mode that allows you to configure the specified directory between Standard TLS and FIPS 140-2 validated mode.

ErrorMessage
Type: string

The error message returned.

IDCConfig
Type: IDCConfig structure

Specifies details about identity center configurations.

IamRoleId
Type: string

The identifier of the IAM role. This is the role that allows Amazon WorkSpaces to make calls to other services, such as Amazon EC2, on your behalf.

MicrosoftEntraConfig
Type: MicrosoftEntraConfig structure

Specifies details about Microsoft Entra configurations.

RegistrationCode
Type: string

The registration code for the directory. This is the code that users enter in their Amazon WorkSpaces client application to connect to the directory.

SamlProperties
Type: SamlProperties structure

Describes the enablement status, user access URL, and relay state parameter name that are used for configuring federation with an SAML 2.0 identity provider.

SelfservicePermissions
Type: SelfservicePermissions structure

The default self-service permissions for WorkSpaces in the directory.

State
Type: string

The state of the directory's registration with Amazon WorkSpaces. After a directory is deregistered, the DEREGISTERED state is returned very briefly before the directory metadata is cleaned up, so this state is rarely returned. To confirm that a directory is deregistered, check for the directory ID by using DescribeWorkspaceDirectories. If the directory ID isn't returned, then the directory has been successfully deregistered.

StreamingProperties
Type: StreamingProperties structure

The streaming properties to configure.

SubnetIds
Type: Array of strings

The identifiers of the subnets used with the directory.

Tenancy
Type: string

Specifies whether the directory is dedicated or shared. To use Bring Your Own License (BYOL), this value must be set to DEDICATED. For more information, see Bring Your Own Windows Desktop Images.

UserIdentityType
Type: string

Indicates the identity type of the specifired user.

WorkspaceAccessProperties
Type: WorkspaceAccessProperties structure

The devices and operating systems that users can use to access WorkSpaces.

WorkspaceCreationProperties

The default creation properties for all WorkSpaces in the directory.

WorkspaceDirectoryDescription
Type: string

The description of the WorkSpace directory

WorkspaceDirectoryName
Type: string

The name fo the WorkSpace directory.

WorkspaceOsUserMode
Type: string

Indicates how users are set up on the WorkSpace operating system.

WorkspaceSecurityGroupId
Type: string

The identifier of the security group that is assigned to new WorkSpaces.

WorkspaceType
Type: string

Indicates whether the directory's WorkSpace type is personal or pools.

ipGroupIds
Type: Array of strings

The identifiers of the IP access control groups associated with the directory.

WorkspaceEnforcedPolicy

Description

Describes a WorkSpace-enforced policy.

Members
CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the WorkSpace-enforced policy was created.

Id
Required: Yes
Type: string

The identifier of the WorkSpace-enforced policy.

Name
Required: Yes
Type: string

The name of the WorkSpace-enforced policy.

Owner
Required: Yes
Type: string

The owner of the WorkSpace-enforced policy:

  • SELF – Your account owns the policy.

  • AMAZON – Amazon owns the policy. You can use it, but you can't change or delete it.

PolicyBody
Required: Yes
Type: string

Specifies the policy document, in JSON format, that defines the enforced policy. It can be up to 65,536 characters long.

WorkspaceEnforcedPolicyAssociation

Description

Describes the WorkSpace-enforced policy associated with a WorkSpace, and whether the WorkSpace has applied it.

Members
ErrorCode
Type: string

The reason that the policy wasn't applied. This field is returned only when SyncStatus is FAILED because of this policy. If SyncStatus is FAILED and this field isn't returned, the failure has another cause.

ErrorMessage
Type: string

A description of why the policy wasn't applied to the WorkSpace. This field is usually returned when ErrorCode is returned.

PolicyId
Required: Yes
Type: string

The identifier of the policy.

SyncStatus
Type: string

Whether the policy is applied:

  • PENDING_UPDATE – The WorkSpace hasn't confirmed the policy yet.

  • IN_SYNC – The policy is applied.

  • FAILED – The policy isn't applied.

This field isn't returned if the service can't determine the status. Don't treat a missing value as IN_SYNC.

WorkspaceEnforcedPolicyError

Description

Describes a WorkSpace-enforced policy that the service couldn't return.

Members
ErrorCode
Required: Yes
Type: string

The reason that the service couldn't return the item. NOT_FOUND indicates that the item doesn't exist or isn't available to your account.

Message
Required: Yes
Type: string

A description of the error.

PolicyId
Required: Yes
Type: string

The identifier of the policy.

WorkspaceEnforcedPolicyListSummary

Description

Summary information about a WorkSpace-enforced policy in a list.

Members
Id
Required: Yes
Type: string

The identifier of the WorkSpace-enforced policy.

Name
Required: Yes
Type: string

The name of the WorkSpace-enforced policy.

Owner
Required: Yes
Type: string

The owner of the WorkSpace-enforced policy:

  • SELF – Your account owns the policy.

  • AMAZON – Amazon owns the policy. You can use it, but you can't change or delete it.

WorkspaceEnforcedPolicySummary

Description

Summary information about a WorkSpace-enforced policy.

Members
CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time when the WorkSpace-enforced policy was created.

Id
Required: Yes
Type: string

The identifier of the WorkSpace-enforced policy.

Name
Required: Yes
Type: string

The name of the WorkSpace-enforced policy.

Owner
Required: Yes
Type: string

The owner of the WorkSpace-enforced policy:

  • SELF – Your account owns the policy.

  • AMAZON – Amazon owns the policy. You can use it, but you can't change or delete it.

WorkspaceImage

Description

Describes a WorkSpace image.

Members
Created
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date when the image was created. If the image has been shared, the Amazon Web Services account that the image has been shared with sees the original creation date of the image.

Description
Type: string

The description of the image.

ErrorCode
Type: string

The error code that is returned for the image.

ErrorDetails
Type: Array of ErrorDetails structures

Additional details of the error returned for the image, including the possible causes of the errors and troubleshooting information.

ErrorMessage
Type: string

The text of the error message that is returned for the image.

ImageId
Type: string

The identifier of the image.

Name
Type: string

The name of the image.

OperatingSystem
Type: OperatingSystem structure

The operating system that the image is running.

OwnerAccountId
Type: string

The identifier of the Amazon Web Services account that owns the image.

RequiredTenancy
Type: string

Specifies whether the image is running on dedicated hardware. When Bring Your Own License (BYOL) is enabled, this value is set to DEDICATED. For more information, see Bring Your Own Windows Desktop Images.

State
Type: string

The status of the image.

Updates
Type: UpdateResult structure

The updates (if any) that are available for the specified image.

WorkspaceModel

Description

Describes a model associated with a WorkSpace.

Members
Id
Required: Yes
Type: string

The identifier of the model.

Name
Required: Yes
Type: string

The name of the model.

WorkspaceProperties

Description

Describes a WorkSpace.

Members
ComputeTypeName
Type: string

The compute type. For more information, see Amazon WorkSpaces Bundles.

GlobalAccelerator

Indicates the Global Accelerator properties.

NestedVirtualizationEnabled
Type: boolean

Specifies whether nested virtualization is enabled for the WorkSpace.

For more information, see Nested virtualization for Amazon WorkSpaces.

OperatingSystemName
Type: string

The name of the operating system.

Protocols
Type: Array of strings

The protocol. For more information, see Protocols for Amazon WorkSpaces.

  • Only available for WorkSpaces created with PCoIP bundles.

  • The Protocols property is case sensitive. Make sure you specify PCOIP or WSP. To use DCV, specify WSP.

  • Unavailable for Windows 7 WorkSpaces and WorkSpaces using GPU-based bundles (Graphics, GraphicsPro, Graphics.g4dn, GraphicsPro.g4dn, Graphics.g6, and Graphics.g7).

RootVolumeSizeGib
Type: int

The size of the root volume. For important information about how to modify the size of the root and user volumes, see Modify a WorkSpace.

RunningMode
Type: string

The running mode. For more information, see Manage the WorkSpace Running Mode.

The MANUAL value is only supported by Amazon WorkSpaces Core. Contact your account team to be allow-listed to use this value. For more information, see Amazon WorkSpaces Core.

Review your running mode to ensure you are using one that is optimal for your needs and budget. For more information on switching running modes, see Can I switch between hourly and monthly billing?

RunningModeAutoStopTimeoutInMinutes
Type: int

The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60-minute intervals.

UserVolumeSizeGib
Type: int

The size of the user storage. For important information about how to modify the size of the root and user volumes, see Modify a WorkSpace.

WorkspaceRequest

Description

Describes the information used to create a WorkSpace.

Members
AgenticPersonaConfigurationId
Type: string

The identifier of the agentic persona configuration to apply when you create the WorkSpace. If you omit this field, the service creates the WorkSpace without a persona configuration.

The persona configuration must be in your account, and your account must have its agentic models set up. The models in the persona configuration must be allowed for your account, and its connectors must be activated.

The bundle must meet all of these requirements:

  • It runs Windows Server 2025.

  • It uses the DCV (formerly WSP) protocol.

  • It isn't a Bring Your Own License or Bring Your Own Protocol bundle.

  • It doesn't use the Value, Standard, or Performance compute type.

If the persona configuration isn't found or your account can't use it, the request is listed in FailedRequests with the error code AgenticWorkspaceInvalidPersona, and the WorkSpace isn't created. An unsupported bundle is also listed in FailedRequests, and the WorkSpace isn't created.

A WorkSpace that you create with a persona configuration has the AGENTIC category. If you delete the persona configuration before the WorkSpace is provisioned, the WorkSpace goes to the ERROR state with the error code AgenticConfiguration.PersonaNotFound.

BundleId
Required: Yes
Type: string

The identifier of the bundle for the WorkSpace. You can use DescribeWorkspaceBundles to list the available bundles.

DirectoryId
Required: Yes
Type: string

The identifier of the Directory Service directory for the WorkSpace. You can use DescribeWorkspaceDirectories to list the available directories.

Ipv6Address
Type: string

The IPv6 address for the WorkSpace.

RootVolumeEncryptionEnabled
Type: boolean

Indicates whether the data stored on the root volume is encrypted.

Tags
Type: Array of Tag structures

The tags for the WorkSpace.

UserName
Required: Yes
Type: string

The user name of the user for the WorkSpace. This user name must exist in the Directory Service directory for the WorkSpace.

The username is not case-sensitive, but we recommend matching the case in the Directory Service directory to avoid potential incompatibilities.

The reserved keyword, [UNDEFINED], is used when creating user-decoupled WorkSpaces.

UserVolumeEncryptionEnabled
Type: boolean

Indicates whether the data stored on the user volume is encrypted.

VolumeEncryptionKey
Type: string

The ARN of the symmetric KMS key used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric KMS keys.

WorkspaceName
Type: string

The name of the user-decoupled WorkSpace.

WorkspaceName is required if UserName is [UNDEFINED] for user-decoupled WorkSpaces. WorkspaceName is not applicable if UserName is specified for user-assigned WorkSpaces.

WorkspaceProperties
Type: WorkspaceProperties structure

The WorkSpace properties.

WorkspaceResourceAssociation

Description

Describes the association between an application and a WorkSpace resource.

Members
AssociatedResourceId
Type: string

The identifier of the associated resource.

AssociatedResourceType
Type: string

The resource types of the associated resource.

Created
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time the association is created.

LastUpdatedTime
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time the association status was last updated.

State
Type: string

The status of the WorkSpace resource association.

StateReason
Type: AssociationStateReason structure

The reason the association deployment failed.

WorkspaceId
Type: string

The identifier of the WorkSpace.

WorkspacesDefaultRoleNotFoundException

Description

The workspaces_DefaultRole role could not be found. If this is the first time you are registering a directory, you will need to create the workspaces_DefaultRole role before you can register a directory. For more information, see Creating the workspaces_DefaultRole Role.

Members
message
Type: string

WorkspacesIpGroup

Description

Describes an IP access control group.

Members
groupDesc
Type: string

The description of the group.

groupId
Type: string

The identifier of the group.

groupName
Type: string

The name of the group.

userRules
Type: Array of IpRuleItem structures

The rules.

WorkspacesPool

Description

Describes a pool of WorkSpaces.

Members
ApplicationSettings
Type: ApplicationSettingsResponse structure

The persistent application settings for users of the pool.

BundleId
Required: Yes
Type: string

The identifier of the bundle used by the pool.

CapacityStatus
Required: Yes
Type: CapacityStatus structure

The capacity status for the pool

CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time the pool was created.

Description
Type: string

The description of the pool.

DirectoryId
Required: Yes
Type: string

The identifier of the directory used by the pool.

Errors
Type: Array of WorkspacesPoolError structures

The pool errors.

PoolArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) for the pool.

PoolId
Required: Yes
Type: string

The identifier of a pool.

PoolName
Required: Yes
Type: string

The name of the pool.

RunningMode
Required: Yes
Type: string

The running mode of the pool.

State
Required: Yes
Type: string

The current state of the pool.

TimeoutSettings
Type: TimeoutSettings structure

The amount of time that a pool session remains active after users disconnect. If they try to reconnect to the pool session after a disconnection or network interruption within this time interval, they are connected to their previous session. Otherwise, they are connected to a new session with a new pool instance.

WorkspacesPoolError

Description

Describes a pool error.

Members
ErrorCode
Type: string

The error code.

ErrorMessage
Type: string

The error message.

WorkspacesPoolSession

Description

Describes a pool session.

Members
AuthenticationType
Type: string

The authentication method. The user is authenticated using a WorkSpaces Pools URL (API) or SAML 2.0 federation (SAML).

ConnectionState
Type: string

Specifies whether a user is connected to the pool session.

ExpirationTime
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time that the pool session ended.

InstanceId
Type: string

The identifier for the instance hosting the session.

NetworkAccessConfiguration
Type: NetworkAccessConfiguration structure

Describes the network details of the pool.

PoolId
Required: Yes
Type: string

The identifier of the pool.

SessionId
Required: Yes
Type: string

The identifier of the session.

StartTime
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time that the pool sission started.

UserId
Required: Yes
Type: string

The identifier of the user.