2026/11/29 - Amazon WorkSpaces - 37 new 2 updated api methods
Changes Amazon WorkSpaces adds agentic WorkSpaces - WorkSpaces with a built-in AI agent that you configure with models, MCP connectors, contexts, and enforced policies
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.
See also: AWS API Documentation
Request Syntax
client.create_workspace_enforced_policy(
ClientToken='string',
Name='string',
PolicyBody='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
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.
This field is autopopulated if not provided.
string
[REQUIRED]
The name of the WorkSpace-enforced policy.
string
[REQUIRED]
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.
list
The tags to add to the WorkSpace-enforced policy. Each tag key can appear only once.
(dict) --
Describes a tag.
Key (string) -- [REQUIRED]
The key of the tag.
Value (string) --
The value of the tag.
dict
Response Syntax
{
'PolicySummary': {
'Id': 'string',
'Name': 'string',
'CreatedAt': datetime(2015, 1, 1),
'Owner': 'SELF'|'AMAZON'
}
}
Response Structure
(dict) --
PolicySummary (dict) --
Summary information about the new policy. The response doesn't include the policy document.
Id (string) --
The identifier of the WorkSpace-enforced policy.
Name (string) --
The name of the WorkSpace-enforced policy.
CreatedAt (datetime) --
The time when the WorkSpace-enforced policy was created.
Owner (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.
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.
See also: AWS API Documentation
Request Syntax
client.get_agentic_account_setup()
dict
Response Syntax
{
'AgenticAccountSetup': {
'Status': 'NOT_SET_UP'|'SETTING_UP'|'READY'|'SETUP_FAILED'|'FAILED'|'UPDATING'|'UPDATE_FAILED',
'ErrorCode': 'INFERENCE_PROVIDER_ACCESS_DENIED'|'GATEWAY_FAILED'|'ROLE_NOT_ASSUMABLE'|'INSUFFICIENT_CAPACITY'|'UNKNOWN'|'INTERNAL_ERROR',
'ErrorMessage': 'string'
}
}
Response Structure
(dict) --
AgenticAccountSetup (dict) --
The agentic account setup.
Status (string) --
The status of the account setup. The service doesn't currently return FAILED, UPDATING, or UPDATE_FAILED.
ErrorCode (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 (string) --
A description of why the setup failed. This field is returned whenever ErrorCode is returned.
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.
See also: AWS API Documentation
Request Syntax
client.start_agentic_account_setup(
ClientToken='string'
)
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.
This field is autopopulated if not provided.
dict
Response Syntax
{
'AgenticAccountSetup': {
'Status': 'NOT_SET_UP'|'SETTING_UP'|'READY'|'SETUP_FAILED'|'FAILED'|'UPDATING'|'UPDATE_FAILED',
'ErrorCode': 'INFERENCE_PROVIDER_ACCESS_DENIED'|'GATEWAY_FAILED'|'ROLE_NOT_ASSUMABLE'|'INSUFFICIENT_CAPACITY'|'UNKNOWN'|'INTERNAL_ERROR',
'ErrorMessage': 'string'
}
}
Response Structure
(dict) --
AgenticAccountSetup (dict) --
The agentic account setup.
Status (string) --
The status of the account setup. The service doesn't currently return FAILED, UPDATING, or UPDATE_FAILED.
ErrorCode (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 (string) --
A description of why the setup failed. This field is returned whenever ErrorCode is returned.
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.
See also: AWS API Documentation
Request Syntax
client.update_agentic_connector_activation_status(
AgenticConnectorId='string',
ActivationStatus='ACTIVATED'|'DEACTIVATED'
)
string
[REQUIRED]
The identifier of the connector.
string
[REQUIRED]
The activation status to set:
ACTIVATED – You activated the connector.
DEACTIVATED – You deactivated the connector.
dict
Response Syntax
{
'AgenticConnector': {
'Id': 'string',
'Name': 'string',
'Description': 'string',
'ServerType': 'HOSTED'|'LOCAL',
'Url': 'string',
'Command': 'string',
'Args': [
'string',
],
'AuthType': 'OAUTH'|'API_KEY'|'NONE',
'OAuthConfig': {
'ClientId': 'string',
'ClientSecretArn': 'string',
'Scopes': [
'string',
],
'AuthorizationUrl': 'string',
'TokenUrl': 'string'
},
'ApiKeySecretArn': 'string',
'AllowedTools': [
'string',
],
'BlockedTools': [
'string',
],
'CreatedAt': datetime(2015, 1, 1),
'UpdatedAt': datetime(2015, 1, 1),
'ActivationStatus': 'ACTIVATED'|'DEACTIVATED'|'PENDING'|'PENDING_DELETE'|'ACTIVATION_ERROR'|'DEACTIVATION_ERROR'
}
}
Response Structure
(dict) --
AgenticConnector (dict) --
The agentic connector.
Id (string) --
The identifier of the connector.
Name (string) --
The name of the connector.
Description (string) --
The description of the connector.
ServerType (string) --
Where the connector's server runs:
HOSTED – The server is accessed through a URL.
LOCAL – The server runs on the WorkSpace.
Url (string) --
The URL of a hosted connector's server.
Command (string) --
The command that starts a local connector's server.
Args (list) --
The arguments passed to a local connector's command.
(string) --
AuthType (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.
OAuthConfig (dict) --
The OAuth settings, when AuthType is OAUTH.
ClientId (string) --
The OAuth client ID.
ClientSecretArn (string) --
The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that holds the OAuth client secret.
Scopes (list) --
The OAuth scopes to request.
(string) --
AuthorizationUrl (string) --
The OAuth authorization URL.
TokenUrl (string) --
The OAuth token URL.
ApiKeySecretArn (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.
AllowedTools (list) --
The connector tools the agent can use. If absent, all tools not in BlockedTools are allowed.
(string) --
BlockedTools (list) --
The connector tools the agent can't use.
(string) --
CreatedAt (datetime) --
The creation time of the connector. You might not see this field for every connector.
UpdatedAt (datetime) --
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.
ActivationStatus (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.
Lists the agentic contexts in your account. This operation is paginated. To get the next page, pass the NextToken from the previous response.
See also: AWS API Documentation
Request Syntax
client.list_agentic_contexts(
ContextType='STEERING'|'SKILL'|'WORKFLOW',
MaxResults=123,
NextToken='string'
)
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.
integer
The maximum number of items to return. Valid range: 1–100.
string
If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.
dict
Response Syntax
{
'AgenticContextSummaries': [
{
'Id': 'string',
'Name': 'string',
'Description': 'string',
'ContextType': 'STEERING'|'SKILL'|'WORKFLOW'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
AgenticContextSummaries (list) --
The agentic context summaries.
(dict) --
Summary information about an agentic context.
Id (string) --
The identifier of the context.
Name (string) --
The name of the context.
Description (string) --
The description of the context.
ContextType (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.
NextToken (string) --
The token to use to retrieve the next page of results, or null if there are no more results.
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.
See also: AWS API Documentation
Request Syntax
client.list_account_models(
MaxResults=123,
NextToken='string'
)
integer
The maximum number of items to return. Valid range: 1–100.
string
If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.
dict
Response Syntax
{
'Models': [
{
'ModelId': 'string',
'Name': 'string',
'Status': 'ASSOCIATED'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Models (list) --
The models.
(dict) --
Describes a model on your account's model list.
ModelId (string) --
The identifier of the model.
Name (string) --
The name of the model. This field is absent when the model is no longer in the supported model catalog.
Status (string) --
The status of the model on your account's model list.
NextToken (string) --
The token to use to retrieve the next page of results, or null if there are no more results.
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.
See also: AWS API Documentation
Request Syntax
client.list_agentic_connectors(
ActivationStatus='ACTIVATED'|'DEACTIVATED'|'PENDING'|'PENDING_DELETE'|'ACTIVATION_ERROR'|'DEACTIVATION_ERROR',
MaxResults=123,
NextToken='string'
)
string
If you specify this field, the operation returns only connectors with this activation status. Omit it to return connectors in every status.
integer
The maximum number of items to return. Valid range: 1–25. The default is 25.
string
If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.
dict
Response Syntax
{
'AgenticConnectorSummaries': [
{
'Id': 'string',
'Name': 'string',
'Description': 'string',
'ServerType': 'HOSTED'|'LOCAL',
'AuthType': 'OAUTH'|'API_KEY'|'NONE',
'ActivationStatus': 'ACTIVATED'|'DEACTIVATED'|'PENDING'|'PENDING_DELETE'|'ACTIVATION_ERROR'|'DEACTIVATION_ERROR'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
AgenticConnectorSummaries (list) --
The agentic connector summaries.
(dict) --
Summary information about an agentic connector.
Id (string) --
The identifier of the connector.
Name (string) --
The name of the connector.
Description (string) --
The description of the connector.
ServerType (string) --
Where the connector's server runs:
HOSTED – The server is accessed through a URL.
LOCAL – The server runs on the WorkSpace.
AuthType (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.
ActivationStatus (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.
NextToken (string) --
The token to use to retrieve the next page of results, or null if there are no more results.
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.
See also: AWS API Documentation
Request Syntax
client.create_agentic_persona_configuration(
ClientToken='string',
Name='string',
Description='string',
ModelIds=[
'string',
],
AgenticConnectorIds=[
'string',
],
AgenticContextIds=[
'string',
],
WorkspaceEnforcedPolicyId='string',
AgentEnforcedPolicyId='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
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.
This field is autopopulated if not provided.
string
[REQUIRED]
The name of the persona configuration.
string
The description of the persona configuration.
list
[REQUIRED]
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.
(string) --
list
The identifiers of the connectors to add to WorkSpaces created with this configuration. The connectors must be activated for your account.
(string) --
list
The identifiers of the contexts to add to WorkSpaces created with this configuration.
(string) --
string
The identifier of the WorkSpace-enforced policy to apply to WorkSpaces created with this configuration.
string
The identifier of the agent-enforced policy to apply to WorkSpaces created with this configuration.
list
The tags to add to the persona configuration.
(dict) --
Describes a tag.
Key (string) -- [REQUIRED]
The key of the tag.
Value (string) --
The value of the tag.
dict
Response Syntax
{
'AgenticPersonaConfigurationId': 'string'
}
Response Structure
(dict) --
AgenticPersonaConfigurationId (string) --
The identifier of the persona configuration.
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.
See also: AWS API Documentation
Request Syntax
client.associate_agent_enforced_policy(
WorkspaceId='string',
PolicyId='string'
)
string
[REQUIRED]
The identifier of the WorkSpace.
string
[REQUIRED]
The identifier of the policy.
dict
Response Syntax
{}
Response Structure
(dict) --
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.
See also: AWS API Documentation
Request Syntax
client.disassociate_account_models(
ModelIds=[
'string',
]
)
list
[REQUIRED]
The identifiers of the models to remove from your account's model list.
(string) --
dict
Response Syntax
{}
Response Structure
(dict) --
Describes an agentic context, including its body.
See also: AWS API Documentation
Request Syntax
client.get_agentic_context(
AgenticContextId='string'
)
string
[REQUIRED]
The identifier of the context.
dict
Response Syntax
{
'AgenticContext': {
'Id': 'string',
'Name': 'string',
'Description': 'string',
'ContextType': 'STEERING'|'SKILL'|'WORKFLOW',
'TargetFilePath': 'string',
'ContextBody': 'string',
'ContextBodySizeBytes': 123,
'CreatedAt': datetime(2015, 1, 1),
'UpdatedAt': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
AgenticContext (dict) --
The agentic context.
Id (string) --
The identifier of the context.
Name (string) --
The name of the context.
Description (string) --
The description of the context.
ContextType (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.
TargetFilePath (string) --
The name of the Markdown file that the context is written to on the WorkSpace, for example code-review.md.
ContextBody (string) --
The Markdown content of the context.
ContextBodySizeBytes (integer) --
The size of the context body, in UTF-8 bytes.
CreatedAt (datetime) --
The time when the context was created.
UpdatedAt (datetime) --
The time when the context was last updated.
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.
See also: AWS API Documentation
Request Syntax
client.disassociate_workspace_agentic_contexts(
WorkspaceId='string',
AgenticContextIds=[
'string',
]
)
string
[REQUIRED]
The identifier of the WorkSpace.
list
[REQUIRED]
The identifiers of the contexts to disassociate.
(string) --
dict
Response Syntax
{}
Response Structure
(dict) --
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.
See also: AWS API Documentation
Request Syntax
client.create_agent_enforced_policy(
ClientToken='string',
Name='string',
PolicyBody='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
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.
This field is autopopulated if not provided.
string
[REQUIRED]
The name of the agent-enforced policy.
string
[REQUIRED]
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.
list
The tags to add to the agent-enforced policy. Each tag key can appear only once.
(dict) --
Describes a tag.
Key (string) -- [REQUIRED]
The key of the tag.
Value (string) --
The value of the tag.
dict
Response Syntax
{
'PolicySummary': {
'Id': 'string',
'Name': 'string',
'CreatedAt': datetime(2015, 1, 1),
'Owner': 'SELF'|'AMAZON'
}
}
Response Structure
(dict) --
PolicySummary (dict) --
Summary information about the new policy. The response doesn't include the policy document.
Id (string) --
The identifier of the agent-enforced policy.
Name (string) --
The name of the agent-enforced policy.
CreatedAt (datetime) --
The time when the agent-enforced policy was created.
Owner (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.
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.
See also: AWS API Documentation
Request Syntax
client.delete_workspace_enforced_policy(
PolicyId='string'
)
string
[REQUIRED]
The identifier of the policy.
dict
Response Syntax
{}
Response Structure
(dict) --
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.
See also: AWS API Documentation
Request Syntax
client.disassociate_workspace_models(
WorkspaceId='string',
ModelIds=[
'string',
]
)
string
[REQUIRED]
The identifier of the WorkSpace.
list
[REQUIRED]
The identifiers of the models to disassociate.
(string) --
dict
Response Syntax
{}
Response Structure
(dict) --
Describes the agentic configuration of the specified WorkSpace, including its models, agent runtime, connectors, contexts, enforced policies, and agent health.
See also: AWS API Documentation
Request Syntax
client.get_agentic_workspace_configuration(
WorkspaceId='string'
)
string
[REQUIRED]
The identifier of the WorkSpace.
dict
Response Syntax
{
'AgenticWorkspaceConfiguration': {
'Models': [
{
'Id': 'string',
'Name': 'string'
},
],
'AgentRuntime': {
'Id': 'string',
'Name': 'string'
},
'Connectors': [
{
'Id': 'string',
'Name': 'string'
},
],
'Contexts': [
{
'Id': 'string',
'Name': 'string',
'ContextType': 'STEERING'|'SKILL'|'WORKFLOW',
'FileName': 'string'
},
],
'WorkspaceEnforcedPolicy': {
'PolicyId': 'string',
'SyncStatus': 'PENDING_UPDATE'|'IN_SYNC'|'FAILED',
'ErrorCode': 'POLICY_APPLY_FAILED',
'ErrorMessage': 'string'
},
'AgentEnforcedPolicy': {
'PolicyId': 'string',
'SyncStatus': 'PENDING_UPDATE'|'IN_SYNC'|'FAILED',
'ErrorCode': 'POLICY_APPLY_FAILED',
'ErrorMessage': 'string'
},
'AgenticRuntimeState': {
'Status': 'AVAILABLE'|'PENDING'|'IMPAIRED'|'ERROR'|'UNKNOWN',
'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'
}
}
}
Response Structure
(dict) --
AgenticWorkspaceConfiguration (dict) --
The agentic configuration of the WorkSpace.
Models (list) --
The models associated with the WorkSpace.
(dict) --
Describes a model associated with a WorkSpace.
Id (string) --
The identifier of the model.
Name (string) --
The name of the model.
AgentRuntime (dict) --
The agent runtime of the WorkSpace.
Id (string) --
The identifier of the agent runtime.
Name (string) --
The name of the agent runtime.
Connectors (list) --
The connectors associated with the WorkSpace.
(dict) --
Describes an agentic connector associated with a WorkSpace.
Id (string) --
The identifier of the connector.
Name (string) --
The name of the connector.
Contexts (list) --
The contexts associated with the WorkSpace.
(dict) --
Describes an agentic context associated with a WorkSpace.
Id (string) --
The identifier of the context.
Name (string) --
The name of the context.
ContextType (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 (string) --
The name of the Markdown file that the context is written to on the WorkSpace.
WorkspaceEnforcedPolicy (dict) --
The WorkSpace-enforced policy associated with the WorkSpace. This field is absent if none is associated.
PolicyId (string) --
The identifier of the policy.
SyncStatus (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.
ErrorCode (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 (string) --
A description of why the policy wasn't applied to the WorkSpace. This field is usually returned when ErrorCode is returned.
AgentEnforcedPolicy (dict) --
The agent-enforced policy associated with the WorkSpace. This field is absent if none is associated.
PolicyId (string) --
The identifier of the policy.
SyncStatus (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.
ErrorCode (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 (string) --
A description of why the policy wasn't applied to the agent. This field is usually returned when ErrorCode is returned.
AgenticRuntimeState (dict) --
The health of the agent on the WorkSpace. This field isn't returned if the service can't get the agent's health.
Status (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.
ErrorCode (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 (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.
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.
See also: AWS API Documentation
Request Syntax
client.associate_workspace_enforced_policy(
WorkspaceId='string',
PolicyId='string'
)
string
[REQUIRED]
The identifier of the WorkSpace.
string
[REQUIRED]
The identifier of the policy.
dict
Response Syntax
{}
Response Structure
(dict) --
Describes the specified WorkSpace-enforced policies.
See also: AWS API Documentation
Request Syntax
client.batch_get_workspace_enforced_policy(
PolicyIds=[
'string',
]
)
list
[REQUIRED]
The identifiers of the policies to describe. If you specify an identifier more than once, the response includes it only once.
(string) --
dict
Response Syntax
{
'Policies': [
{
'Id': 'string',
'Name': 'string',
'PolicyBody': 'string',
'CreatedAt': datetime(2015, 1, 1),
'Owner': 'SELF'|'AMAZON'
},
],
'Errors': [
{
'PolicyId': 'string',
'ErrorCode': 'NOT_FOUND',
'Message': 'string'
},
]
}
Response Structure
(dict) --
Policies (list) --
The policies.
(dict) --
Describes a WorkSpace-enforced policy.
Id (string) --
The identifier of the WorkSpace-enforced policy.
Name (string) --
The name of the WorkSpace-enforced policy.
PolicyBody (string) --
Specifies the policy document, in JSON format, that defines the enforced policy. It can be up to 65,536 characters long.
CreatedAt (datetime) --
The time when the WorkSpace-enforced policy was created.
Owner (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.
Errors (list) --
The identifiers that the service couldn't return, with the reason for each.
(dict) --
Describes a WorkSpace-enforced policy that the service couldn't return.
PolicyId (string) --
The identifier of the policy.
ErrorCode (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 (string) --
A description of the error.
Describes the specified agent runtimes.
See also: AWS API Documentation
Request Syntax
client.batch_get_agent_runtime(
AgentRuntimeIds=[
'string',
]
)
list
[REQUIRED]
The identifiers of the agent runtimes to describe. If you specify an identifier more than once, the response includes it only once.
(string) --
dict
Response Syntax
{
'AgentRuntimes': [
{
'Id': 'string',
'Name': 'string'
},
],
'Errors': [
{
'AgentRuntimeId': 'string',
'ErrorCode': 'NOT_FOUND',
'Message': 'string'
},
]
}
Response Structure
(dict) --
AgentRuntimes (list) --
The agent runtimes.
(dict) --
Describes an agent runtime.
Id (string) --
The identifier of the agent runtime.
Name (string) --
The name of the agent runtime.
Errors (list) --
The identifiers that the service couldn't return, with the reason for each.
(dict) --
Describes an agent runtime that the service couldn't return.
AgentRuntimeId (string) --
The identifier of the agent runtime.
ErrorCode (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 (string) --
A description of the error.
Describes the specified models from the supported model catalog.
See also: AWS API Documentation
Request Syntax
client.batch_get_model(
ModelIds=[
'string',
]
)
list
[REQUIRED]
The identifiers of the models to describe. If you specify an identifier more than once, the response includes it only once.
(string) --
dict
Response Syntax
{
'Models': [
{
'ModelId': 'string',
'Name': 'string'
},
],
'Errors': [
{
'ModelId': 'string',
'ErrorCode': 'NOT_FOUND',
'Message': 'string'
},
]
}
Response Structure
(dict) --
Models (list) --
The models.
(dict) --
Describes a model from the supported model catalog.
ModelId (string) --
The identifier of the model.
Name (string) --
The name of the model.
Errors (list) --
The identifiers that the service couldn't return, with the reason for each.
(dict) --
Describes a model that the service couldn't return.
ModelId (string) --
The identifier of the model.
ErrorCode (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 (string) --
A description of the error.
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.
See also: AWS API Documentation
Request Syntax
client.disassociate_workspace_agentic_connectors(
WorkspaceId='string',
AgenticConnectorIds=[
'string',
]
)
string
[REQUIRED]
The identifier of the WorkSpace.
list
[REQUIRED]
The identifiers of the connectors to disassociate.
(string) --
dict
Response Syntax
{}
Response Structure
(dict) --
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.
See also: AWS API Documentation
Request Syntax
client.list_agent_enforced_policies(
Owner='SELF'|'AMAZON',
MaxResults=123,
NextToken='string'
)
string
If you specify this field, the operation returns only policies with this owner: SELF or AMAZON. Omit it to return both.
integer
The maximum number of items to return. Valid range: 1–100.
string
If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.
dict
Response Syntax
{
'PolicySummaries': [
{
'Id': 'string',
'Name': 'string',
'Owner': 'SELF'|'AMAZON'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
PolicySummaries (list) --
The policy summaries.
(dict) --
Summary information about an agent-enforced policy in a list.
Id (string) --
The identifier of the agent-enforced policy.
Name (string) --
The name of the agent-enforced policy.
Owner (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.
NextToken (string) --
The token to use to retrieve the next page of results, or null if there are no more results.
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.
See also: AWS API Documentation
Request Syntax
client.delete_agentic_context(
AgenticContextId='string'
)
string
[REQUIRED]
The identifier of the context.
dict
Response Syntax
{}
Response Structure
(dict) --
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.
See also: AWS API Documentation
Request Syntax
client.associate_workspace_agentic_connectors(
WorkspaceId='string',
AgenticConnectorIds=[
'string',
]
)
string
[REQUIRED]
The identifier of the WorkSpace.
list
[REQUIRED]
The identifiers of the connectors to associate.
(string) --
dict
Response Syntax
{}
Response Structure
(dict) --
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.
See also: AWS API Documentation
Request Syntax
client.associate_workspace_models(
WorkspaceId='string',
ModelIds=[
'string',
]
)
string
[REQUIRED]
The identifier of the WorkSpace.
list
[REQUIRED]
The identifiers of the models to associate.
(string) --
dict
Response Syntax
{}
Response Structure
(dict) --
Lists the agentic persona configurations in your account. This operation is paginated. To get the next page, pass the NextToken from the previous response.
See also: AWS API Documentation
Request Syntax
client.list_agentic_persona_configurations(
MaxResults=123,
NextToken='string'
)
integer
The maximum number of items to return. Valid range: 1–100.
string
If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.
dict
Response Syntax
{
'AgenticPersonaConfigurationSummaries': [
{
'Id': 'string',
'Name': 'string',
'Description': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
AgenticPersonaConfigurationSummaries (list) --
The agentic persona configuration summaries.
(dict) --
Summary information about an agentic persona configuration.
Id (string) --
The identifier of the persona configuration.
Name (string) --
The name of the persona configuration.
Description (string) --
The description of the persona configuration.
NextToken (string) --
The token to use to retrieve the next page of results, or null if there are no more results.
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.
See also: AWS API Documentation
Request Syntax
client.batch_get_agentic_persona_configuration(
AgenticPersonaConfigurationIds=[
'string',
]
)
list
[REQUIRED]
The identifiers of the persona configurations to describe. If you specify an identifier more than once, the response includes it only once.
(string) --
dict
Response Syntax
{
'AgenticPersonaConfigurations': [
{
'Id': 'string',
'Name': 'string',
'Description': 'string',
'AgentRuntimeId': 'string',
'ModelIds': [
'string',
],
'AgenticConnectorIds': [
'string',
],
'AgenticContextIds': [
'string',
],
'CreatedAt': datetime(2015, 1, 1),
'WorkspaceEnforcedPolicyId': 'string',
'AgentEnforcedPolicyId': 'string'
},
],
'Errors': [
{
'AgenticPersonaConfigurationId': 'string',
'ErrorCode': 'NOT_FOUND',
'Message': 'string'
},
]
}
Response Structure
(dict) --
AgenticPersonaConfigurations (list) --
The agentic persona configurations.
(dict) --
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.
Id (string) --
The identifier of the persona configuration.
Name (string) --
The name of the persona configuration.
Description (string) --
The description of the persona configuration.
AgentRuntimeId (string) --
The identifier of the agent runtime.
ModelIds (list) --
The identifiers of the models.
(string) --
AgenticConnectorIds (list) --
The identifiers of the connectors.
(string) --
AgenticContextIds (list) --
The identifiers of the contexts.
(string) --
CreatedAt (datetime) --
The time when the persona configuration was created.
WorkspaceEnforcedPolicyId (string) --
The identifier of the WorkSpace-enforced policy.
AgentEnforcedPolicyId (string) --
The identifier of the agent-enforced policy.
Errors (list) --
The identifiers that the service couldn't return, with the reason for each.
(dict) --
Describes an agentic persona configuration that the service couldn't return.
AgenticPersonaConfigurationId (string) --
The identifier of the persona configuration.
ErrorCode (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 (string) --
A description of the error.
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.
See also: AWS API Documentation
Request Syntax
client.associate_workspace_agentic_contexts(
WorkspaceId='string',
AgenticContextIds=[
'string',
]
)
string
[REQUIRED]
The identifier of the WorkSpace.
list
[REQUIRED]
The identifiers of the contexts to associate.
(string) --
dict
Response Syntax
{}
Response Structure
(dict) --
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.
See also: AWS API Documentation
Request Syntax
client.batch_get_agentic_context_metadata(
AgenticContextIds=[
'string',
]
)
list
[REQUIRED]
The identifiers of the contexts to describe. If you specify an identifier more than once, the response includes it only once.
(string) --
dict
Response Syntax
{
'AgenticContextMetadata': [
{
'Id': 'string',
'Name': 'string',
'Description': 'string',
'ContextType': 'STEERING'|'SKILL'|'WORKFLOW',
'TargetFilePath': 'string',
'ContextBodySizeBytes': 123,
'CreatedAt': datetime(2015, 1, 1),
'UpdatedAt': datetime(2015, 1, 1)
},
],
'Errors': [
{
'AgenticContextId': 'string',
'ErrorCode': 'NOT_FOUND',
'Message': 'string'
},
]
}
Response Structure
(dict) --
AgenticContextMetadata (list) --
The agentic context metadata.
(dict) --
Describes an agentic context, without its body.
Id (string) --
The identifier of the context.
Name (string) --
The name of the context.
Description (string) --
The description of the context.
ContextType (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.
TargetFilePath (string) --
The name of the Markdown file that the context is written to on the WorkSpace, for example code-review.md.
ContextBodySizeBytes (integer) --
The size of the context body, in UTF-8 bytes.
CreatedAt (datetime) --
The time when the context was created.
UpdatedAt (datetime) --
The time when the context was last updated.
Errors (list) --
The identifiers that the service couldn't return, with the reason for each.
(dict) --
Describes an agentic context that the service couldn't return.
AgenticContextId (string) --
The identifier of the context.
ErrorCode (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 (string) --
A description of the error.
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.
See also: AWS API Documentation
Request Syntax
client.delete_agent_enforced_policy(
PolicyId='string'
)
string
[REQUIRED]
The identifier of the policy.
dict
Response Syntax
{}
Response Structure
(dict) --
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.
See also: AWS API Documentation
Request Syntax
client.create_agentic_context(
ClientToken='string',
Name='string',
Description='string',
ContextType='STEERING'|'SKILL'|'WORKFLOW',
TargetFilePath='string',
ContextBody='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
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.
This field is autopopulated if not provided.
string
[REQUIRED]
The name of the context.
string
The description of the context.
string
[REQUIRED]
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.
string
[REQUIRED]
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 ...
string
The Markdown content of the context, up to 1 MiB of UTF-8 text. Currently, you must specify this field.
list
The tags to add to the context. Each tag key can appear only once.
(dict) --
Describes a tag.
Key (string) -- [REQUIRED]
The key of the tag.
Value (string) --
The value of the tag.
dict
Response Syntax
{
'AgenticContextId': 'string'
}
Response Structure
(dict) --
AgenticContextId (string) --
The identifier of the context.
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.
See also: AWS API Documentation
Request Syntax
client.list_supported_models(
MaxResults=123,
NextToken='string'
)
integer
The maximum number of items to return. Valid range: 1–100.
string
If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.
dict
Response Syntax
{
'ModelSummaries': [
{
'ModelId': 'string',
'Name': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
ModelSummaries (list) --
The model summaries.
(dict) --
Summary information about a model in the supported model catalog.
ModelId (string) --
The identifier of the model.
Name (string) --
The name of the model.
NextToken (string) --
The token to use to retrieve the next page of results, or null if there are no more results.
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.
See also: AWS API Documentation
Request Syntax
client.list_workspace_enforced_policies(
Owner='SELF'|'AMAZON',
MaxResults=123,
NextToken='string'
)
string
If you specify this field, the operation returns only policies with this owner: SELF or AMAZON. Omit it to return both.
integer
The maximum number of items to return. Valid range: 1–100.
string
If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.
dict
Response Syntax
{
'PolicySummaries': [
{
'Id': 'string',
'Name': 'string',
'Owner': 'SELF'|'AMAZON'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
PolicySummaries (list) --
The policy summaries.
(dict) --
Summary information about a WorkSpace-enforced policy in a list.
Id (string) --
The identifier of the WorkSpace-enforced policy.
Name (string) --
The name of the WorkSpace-enforced policy.
Owner (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.
NextToken (string) --
The token to use to retrieve the next page of results, or null if there are no more results.
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.
See also: AWS API Documentation
Request Syntax
client.associate_account_models(
ModelIds=[
'string',
]
)
list
[REQUIRED]
The identifiers of the models to add to your account's model list.
(string) --
dict
Response Syntax
{}
Response Structure
(dict) --
Describes the specified agentic connectors.
See also: AWS API Documentation
Request Syntax
client.batch_get_agentic_connector(
AgenticConnectorIds=[
'string',
]
)
list
[REQUIRED]
The identifiers of the connectors to describe. If you specify an identifier more than once, the response includes it only once.
(string) --
dict
Response Syntax
{
'Connectors': [
{
'Id': 'string',
'Name': 'string',
'Description': 'string',
'ServerType': 'HOSTED'|'LOCAL',
'Url': 'string',
'Command': 'string',
'Args': [
'string',
],
'AuthType': 'OAUTH'|'API_KEY'|'NONE',
'OAuthConfig': {
'ClientId': 'string',
'ClientSecretArn': 'string',
'Scopes': [
'string',
],
'AuthorizationUrl': 'string',
'TokenUrl': 'string'
},
'ApiKeySecretArn': 'string',
'AllowedTools': [
'string',
],
'BlockedTools': [
'string',
],
'CreatedAt': datetime(2015, 1, 1),
'UpdatedAt': datetime(2015, 1, 1),
'ActivationStatus': 'ACTIVATED'|'DEACTIVATED'|'PENDING'|'PENDING_DELETE'|'ACTIVATION_ERROR'|'DEACTIVATION_ERROR'
},
],
'Errors': [
{
'AgenticConnectorId': 'string',
'ErrorCode': 'NOT_FOUND',
'Message': 'string'
},
]
}
Response Structure
(dict) --
Connectors (list) --
The connectors.
(dict) --
Describes an agentic connector: a Model Context Protocol (MCP) server whose tools the agent on a WorkSpace can use.
Id (string) --
The identifier of the connector.
Name (string) --
The name of the connector.
Description (string) --
The description of the connector.
ServerType (string) --
Where the connector's server runs:
HOSTED – The server is accessed through a URL.
LOCAL – The server runs on the WorkSpace.
Url (string) --
The URL of a hosted connector's server.
Command (string) --
The command that starts a local connector's server.
Args (list) --
The arguments passed to a local connector's command.
(string) --
AuthType (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.
OAuthConfig (dict) --
The OAuth settings, when AuthType is OAUTH.
ClientId (string) --
The OAuth client ID.
ClientSecretArn (string) --
The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that holds the OAuth client secret.
Scopes (list) --
The OAuth scopes to request.
(string) --
AuthorizationUrl (string) --
The OAuth authorization URL.
TokenUrl (string) --
The OAuth token URL.
ApiKeySecretArn (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.
AllowedTools (list) --
The connector tools the agent can use. If absent, all tools not in BlockedTools are allowed.
(string) --
BlockedTools (list) --
The connector tools the agent can't use.
(string) --
CreatedAt (datetime) --
The creation time of the connector. You might not see this field for every connector.
UpdatedAt (datetime) --
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.
ActivationStatus (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.
Errors (list) --
The identifiers that the service couldn't return, with the reason for each.
(dict) --
Describes an agentic connector that the service couldn't return.
AgenticConnectorId (string) --
The identifier of the connector.
ErrorCode (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 (string) --
A description of the error.
Describes the specified agent-enforced policies.
See also: AWS API Documentation
Request Syntax
client.batch_get_agent_enforced_policy(
PolicyIds=[
'string',
]
)
list
[REQUIRED]
The identifiers of the policies to describe. If you specify an identifier more than once, the response includes it only once.
(string) --
dict
Response Syntax
{
'Policies': [
{
'Id': 'string',
'Name': 'string',
'PolicyBody': 'string',
'CreatedAt': datetime(2015, 1, 1),
'Owner': 'SELF'|'AMAZON'
},
],
'Errors': [
{
'PolicyId': 'string',
'ErrorCode': 'NOT_FOUND',
'Message': 'string'
},
]
}
Response Structure
(dict) --
Policies (list) --
The policies.
(dict) --
Describes an agent-enforced policy.
Id (string) --
The identifier of the agent-enforced policy.
Name (string) --
The name of the agent-enforced policy.
PolicyBody (string) --
Specifies the policy document, in JSON format, that defines the enforced policy. It can be up to 65,536 characters long.
CreatedAt (datetime) --
The time when the agent-enforced policy was created.
Owner (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.
Errors (list) --
The identifiers that the service couldn't return, with the reason for each.
(dict) --
Describes an agent-enforced policy that the service couldn't return.
PolicyId (string) --
The identifier of the policy.
ErrorCode (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 (string) --
A description of the error.
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.
See also: AWS API Documentation
Request Syntax
client.delete_agentic_persona_configuration(
AgenticPersonaConfigurationId='string'
)
string
[REQUIRED]
The identifier of the persona configuration.
dict
Response Syntax
{}
Response Structure
(dict) --
{'Workspaces': {'AgenticPersonaConfigurationId': 'string'}}
Response {'FailedRequests': {'WorkspaceRequest': {'AgenticPersonaConfigurationId': 'string'}},
'PendingRequests': {'WorkspaceCategory': 'PERSONAL | AGENTIC'}}
Creates one or more WorkSpaces.
This operation is asynchronous and returns before the WorkSpaces are created.
See also: AWS API Documentation
Request Syntax
client.create_workspaces(
Workspaces=[
{
'DirectoryId': 'string',
'UserName': 'string',
'BundleId': 'string',
'VolumeEncryptionKey': 'string',
'UserVolumeEncryptionEnabled': True|False,
'RootVolumeEncryptionEnabled': True|False,
'WorkspaceProperties': {
'RunningMode': 'AUTO_STOP'|'ALWAYS_ON'|'MANUAL',
'RunningModeAutoStopTimeoutInMinutes': 123,
'RootVolumeSizeGib': 123,
'UserVolumeSizeGib': 123,
'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',
'Protocols': [
'PCOIP'|'WSP',
],
'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',
'GlobalAccelerator': {
'Mode': 'ENABLED_AUTO'|'DISABLED'|'INHERITED',
'PreferredProtocol': 'TCP'|'NONE'|'INHERITED'
},
'NestedVirtualizationEnabled': True|False
},
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
],
'WorkspaceName': 'string',
'Ipv6Address': 'string',
'AgenticPersonaConfigurationId': 'string'
},
]
)
list
[REQUIRED]
The WorkSpaces to create. You can specify up to 25 WorkSpaces.
(dict) --
Describes the information used to create a WorkSpace.
DirectoryId (string) -- [REQUIRED]
The identifier of the Directory Service directory for the WorkSpace. You can use DescribeWorkspaceDirectories to list the available directories.
UserName (string) -- [REQUIRED]
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.
BundleId (string) -- [REQUIRED]
The identifier of the bundle for the WorkSpace. You can use DescribeWorkspaceBundles to list the available bundles.
VolumeEncryptionKey (string) --
The ARN of the symmetric KMS key used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric KMS keys.
UserVolumeEncryptionEnabled (boolean) --
Indicates whether the data stored on the user volume is encrypted.
RootVolumeEncryptionEnabled (boolean) --
Indicates whether the data stored on the root volume is encrypted.
WorkspaceProperties (dict) --
The WorkSpace properties.
RunningMode (string) --
The running mode. For more information, see Manage the WorkSpace Running Mode.
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 (integer) --
The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60-minute intervals.
RootVolumeSizeGib (integer) --
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.
UserVolumeSizeGib (integer) --
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.
ComputeTypeName (string) --
The compute type. For more information, see Amazon WorkSpaces Bundles.
Protocols (list) --
The protocol. For more information, see Protocols for Amazon WorkSpaces.
(string) --
OperatingSystemName (string) --
The name of the operating system.
GlobalAccelerator (dict) --
Indicates the Global Accelerator properties.
Mode (string) -- [REQUIRED]
Indicates if Global Accelerator for WorkSpaces is enabled, disabled, or the same mode as the associated directory.
PreferredProtocol (string) --
Indicates the preferred protocol for Global Accelerator.
NestedVirtualizationEnabled (boolean) --
Specifies whether nested virtualization is enabled for the WorkSpace.
For more information, see Nested virtualization for Amazon WorkSpaces.
Tags (list) --
The tags for the WorkSpace.
(dict) --
Describes a tag.
Key (string) -- [REQUIRED]
The key of the tag.
Value (string) --
The value of the tag.
WorkspaceName (string) --
The name of the user-decoupled WorkSpace.
Ipv6Address (string) --
The IPv6 address for the WorkSpace.
AgenticPersonaConfigurationId (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.
dict
Response Syntax
{
'FailedRequests': [
{
'WorkspaceRequest': {
'DirectoryId': 'string',
'UserName': 'string',
'BundleId': 'string',
'VolumeEncryptionKey': 'string',
'UserVolumeEncryptionEnabled': True|False,
'RootVolumeEncryptionEnabled': True|False,
'WorkspaceProperties': {
'RunningMode': 'AUTO_STOP'|'ALWAYS_ON'|'MANUAL',
'RunningModeAutoStopTimeoutInMinutes': 123,
'RootVolumeSizeGib': 123,
'UserVolumeSizeGib': 123,
'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',
'Protocols': [
'PCOIP'|'WSP',
],
'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',
'GlobalAccelerator': {
'Mode': 'ENABLED_AUTO'|'DISABLED'|'INHERITED',
'PreferredProtocol': 'TCP'|'NONE'|'INHERITED'
},
'NestedVirtualizationEnabled': True|False
},
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
],
'WorkspaceName': 'string',
'Ipv6Address': 'string',
'AgenticPersonaConfigurationId': 'string'
},
'ErrorCode': 'string',
'ErrorMessage': 'string'
},
],
'PendingRequests': [
{
'WorkspaceId': 'string',
'DirectoryId': 'string',
'UserName': 'string',
'IpAddress': 'string',
'Ipv6Address': 'string',
'State': 'PENDING'|'AVAILABLE'|'IMPAIRED'|'UNHEALTHY'|'REBOOTING'|'STARTING'|'REBUILDING'|'RESTORING'|'MAINTENANCE'|'ADMIN_MAINTENANCE'|'TERMINATING'|'TERMINATED'|'SUSPENDED'|'UPDATING'|'STOPPING'|'STOPPED'|'ERROR',
'BundleId': 'string',
'SubnetId': 'string',
'ErrorMessage': 'string',
'ErrorCode': 'string',
'ComputerName': 'string',
'VolumeEncryptionKey': 'string',
'UserVolumeEncryptionEnabled': True|False,
'RootVolumeEncryptionEnabled': True|False,
'WorkspaceName': 'string',
'WorkspaceProperties': {
'RunningMode': 'AUTO_STOP'|'ALWAYS_ON'|'MANUAL',
'RunningModeAutoStopTimeoutInMinutes': 123,
'RootVolumeSizeGib': 123,
'UserVolumeSizeGib': 123,
'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',
'Protocols': [
'PCOIP'|'WSP',
],
'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',
'GlobalAccelerator': {
'Mode': 'ENABLED_AUTO'|'DISABLED'|'INHERITED',
'PreferredProtocol': 'TCP'|'NONE'|'INHERITED'
},
'NestedVirtualizationEnabled': True|False
},
'ModificationStates': [
{
'Resource': 'ROOT_VOLUME'|'USER_VOLUME'|'COMPUTE_TYPE'|'PROTOCOL'|'NESTED_VIRTUALIZATION',
'State': 'UPDATE_INITIATED'|'UPDATE_IN_PROGRESS'|'UPDATE_FAILED'
},
],
'RelatedWorkspaces': [
{
'WorkspaceId': 'string',
'Region': 'string',
'State': 'PENDING'|'AVAILABLE'|'IMPAIRED'|'UNHEALTHY'|'REBOOTING'|'STARTING'|'REBUILDING'|'RESTORING'|'MAINTENANCE'|'ADMIN_MAINTENANCE'|'TERMINATING'|'TERMINATED'|'SUSPENDED'|'UPDATING'|'STOPPING'|'STOPPED'|'ERROR',
'Type': 'PRIMARY'|'STANDBY'
},
],
'DataReplicationSettings': {
'DataReplication': 'NO_REPLICATION'|'PRIMARY_AS_SOURCE',
'RecoverySnapshotTime': datetime(2015, 1, 1)
},
'StandbyWorkspacesProperties': [
{
'StandbyWorkspaceId': 'string',
'DataReplication': 'NO_REPLICATION'|'PRIMARY_AS_SOURCE',
'RecoverySnapshotTime': datetime(2015, 1, 1)
},
],
'WorkspaceCategory': 'PERSONAL'|'AGENTIC'
},
]
}
Response Structure
(dict) --
FailedRequests (list) --
Information about the WorkSpaces that could not be created.
(dict) --
Describes a WorkSpace that cannot be created.
WorkspaceRequest (dict) --
Information about the WorkSpace.
DirectoryId (string) --
The identifier of the Directory Service directory for the WorkSpace. You can use DescribeWorkspaceDirectories to list the available directories.
UserName (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.
BundleId (string) --
The identifier of the bundle for the WorkSpace. You can use DescribeWorkspaceBundles to list the available bundles.
VolumeEncryptionKey (string) --
The ARN of the symmetric KMS key used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric KMS keys.
UserVolumeEncryptionEnabled (boolean) --
Indicates whether the data stored on the user volume is encrypted.
RootVolumeEncryptionEnabled (boolean) --
Indicates whether the data stored on the root volume is encrypted.
WorkspaceProperties (dict) --
The WorkSpace properties.
RunningMode (string) --
The running mode. For more information, see Manage the WorkSpace Running Mode.
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 (integer) --
The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60-minute intervals.
RootVolumeSizeGib (integer) --
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.
UserVolumeSizeGib (integer) --
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.
ComputeTypeName (string) --
The compute type. For more information, see Amazon WorkSpaces Bundles.
Protocols (list) --
The protocol. For more information, see Protocols for Amazon WorkSpaces.
(string) --
OperatingSystemName (string) --
The name of the operating system.
GlobalAccelerator (dict) --
Indicates the Global Accelerator properties.
Mode (string) --
Indicates if Global Accelerator for WorkSpaces is enabled, disabled, or the same mode as the associated directory.
PreferredProtocol (string) --
Indicates the preferred protocol for Global Accelerator.
NestedVirtualizationEnabled (boolean) --
Specifies whether nested virtualization is enabled for the WorkSpace.
For more information, see Nested virtualization for Amazon WorkSpaces.
Tags (list) --
The tags for the WorkSpace.
(dict) --
Describes a tag.
Key (string) --
The key of the tag.
Value (string) --
The value of the tag.
WorkspaceName (string) --
The name of the user-decoupled WorkSpace.
Ipv6Address (string) --
The IPv6 address for the WorkSpace.
AgenticPersonaConfigurationId (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.
ErrorCode (string) --
The error code that is returned if the WorkSpace cannot be created.
ErrorMessage (string) --
The text of the error message that is returned if the WorkSpace cannot be created.
PendingRequests (list) --
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.
(dict) --
Describes a WorkSpace.
WorkspaceId (string) --
The identifier of the WorkSpace.
DirectoryId (string) --
The identifier of the Directory Service directory for the WorkSpace.
UserName (string) --
The user for the WorkSpace.
IpAddress (string) --
The IP address of the WorkSpace.
Ipv6Address (string) --
The IPv6 address of the WorkSpace.
State (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).
BundleId (string) --
The identifier of the bundle used to create the WorkSpace.
SubnetId (string) --
The identifier of the subnet for the WorkSpace.
ErrorMessage (string) --
The text of the error message that is returned if the WorkSpace cannot be created.
ErrorCode (string) --
The error code that is returned if the WorkSpace cannot be created.
ComputerName (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.
VolumeEncryptionKey (string) --
The ARN of the symmetric KMS key used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric KMS keys.
UserVolumeEncryptionEnabled (boolean) --
Indicates whether the data stored on the user volume is encrypted.
RootVolumeEncryptionEnabled (boolean) --
Indicates whether the data stored on the root volume is encrypted.
WorkspaceName (string) --
The name of the user-decoupled WorkSpace.
WorkspaceProperties (dict) --
The properties of the WorkSpace.
RunningMode (string) --
The running mode. For more information, see Manage the WorkSpace Running Mode.
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 (integer) --
The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60-minute intervals.
RootVolumeSizeGib (integer) --
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.
UserVolumeSizeGib (integer) --
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.
ComputeTypeName (string) --
The compute type. For more information, see Amazon WorkSpaces Bundles.
Protocols (list) --
The protocol. For more information, see Protocols for Amazon WorkSpaces.
(string) --
OperatingSystemName (string) --
The name of the operating system.
GlobalAccelerator (dict) --
Indicates the Global Accelerator properties.
Mode (string) --
Indicates if Global Accelerator for WorkSpaces is enabled, disabled, or the same mode as the associated directory.
PreferredProtocol (string) --
Indicates the preferred protocol for Global Accelerator.
NestedVirtualizationEnabled (boolean) --
Specifies whether nested virtualization is enabled for the WorkSpace.
For more information, see Nested virtualization for Amazon WorkSpaces.
ModificationStates (list) --
The modification states of the WorkSpace.
(dict) --
Describes a WorkSpace modification.
Resource (string) --
The WorkSpace property being modified.
State (string) --
The modification state.
RelatedWorkspaces (list) --
The standby WorkSpace or primary WorkSpace related to the specified WorkSpace.
(dict) --
Describes the related WorkSpace. The related WorkSpace could be a standby WorkSpace or primary WorkSpace related to the specified WorkSpace.
WorkspaceId (string) --
The identifier of the related WorkSpace.
Region (string) --
The Region of the related WorkSpace.
State (string) --
Indicates the state of the WorkSpace.
Type (string) --
Indicates the type of WorkSpace.
DataReplicationSettings (dict) --
Indicates the settings of the data replication.
DataReplication (string) --
Indicates whether data replication is enabled, and if enabled, the type of data replication.
RecoverySnapshotTime (datetime) --
The date and time at which the last successful snapshot was taken of the primary WorkSpace used for replicating data.
StandbyWorkspacesProperties (list) --
The properties of the standby WorkSpace
(dict) --
Describes the properties of the related standby WorkSpaces.
StandbyWorkspaceId (string) --
The identifier of the standby WorkSpace
DataReplication (string) --
Indicates whether data replication is enabled, and if enabled, the type of data replication.
RecoverySnapshotTime (datetime) --
The date and time at which the last successful snapshot was taken of the primary WorkSpace used for replicating data.
WorkspaceCategory (string) --
The category of the WorkSpace: PERSONAL or AGENTIC.
{'Workspaces': {'WorkspaceCategory': 'PERSONAL | AGENTIC'}}
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.
See also: AWS API Documentation
Request Syntax
client.describe_workspaces(
WorkspaceIds=[
'string',
],
DirectoryId='string',
UserName='string',
BundleId='string',
Limit=123,
NextToken='string',
WorkspaceName='string'
)
list
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.
(string) --
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.
string
The name of the directory user. You must specify this parameter with DirectoryId.
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.
integer
The maximum number of items to return.
string
If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.
string
The name of the user-decoupled WorkSpace.
dict
Response Syntax
{
'Workspaces': [
{
'WorkspaceId': 'string',
'DirectoryId': 'string',
'UserName': 'string',
'IpAddress': 'string',
'Ipv6Address': 'string',
'State': 'PENDING'|'AVAILABLE'|'IMPAIRED'|'UNHEALTHY'|'REBOOTING'|'STARTING'|'REBUILDING'|'RESTORING'|'MAINTENANCE'|'ADMIN_MAINTENANCE'|'TERMINATING'|'TERMINATED'|'SUSPENDED'|'UPDATING'|'STOPPING'|'STOPPED'|'ERROR',
'BundleId': 'string',
'SubnetId': 'string',
'ErrorMessage': 'string',
'ErrorCode': 'string',
'ComputerName': 'string',
'VolumeEncryptionKey': 'string',
'UserVolumeEncryptionEnabled': True|False,
'RootVolumeEncryptionEnabled': True|False,
'WorkspaceName': 'string',
'WorkspaceProperties': {
'RunningMode': 'AUTO_STOP'|'ALWAYS_ON'|'MANUAL',
'RunningModeAutoStopTimeoutInMinutes': 123,
'RootVolumeSizeGib': 123,
'UserVolumeSizeGib': 123,
'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',
'Protocols': [
'PCOIP'|'WSP',
],
'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',
'GlobalAccelerator': {
'Mode': 'ENABLED_AUTO'|'DISABLED'|'INHERITED',
'PreferredProtocol': 'TCP'|'NONE'|'INHERITED'
},
'NestedVirtualizationEnabled': True|False
},
'ModificationStates': [
{
'Resource': 'ROOT_VOLUME'|'USER_VOLUME'|'COMPUTE_TYPE'|'PROTOCOL'|'NESTED_VIRTUALIZATION',
'State': 'UPDATE_INITIATED'|'UPDATE_IN_PROGRESS'|'UPDATE_FAILED'
},
],
'RelatedWorkspaces': [
{
'WorkspaceId': 'string',
'Region': 'string',
'State': 'PENDING'|'AVAILABLE'|'IMPAIRED'|'UNHEALTHY'|'REBOOTING'|'STARTING'|'REBUILDING'|'RESTORING'|'MAINTENANCE'|'ADMIN_MAINTENANCE'|'TERMINATING'|'TERMINATED'|'SUSPENDED'|'UPDATING'|'STOPPING'|'STOPPED'|'ERROR',
'Type': 'PRIMARY'|'STANDBY'
},
],
'DataReplicationSettings': {
'DataReplication': 'NO_REPLICATION'|'PRIMARY_AS_SOURCE',
'RecoverySnapshotTime': datetime(2015, 1, 1)
},
'StandbyWorkspacesProperties': [
{
'StandbyWorkspaceId': 'string',
'DataReplication': 'NO_REPLICATION'|'PRIMARY_AS_SOURCE',
'RecoverySnapshotTime': datetime(2015, 1, 1)
},
],
'WorkspaceCategory': 'PERSONAL'|'AGENTIC'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Workspaces (list) --
Information about the WorkSpaces.
Because CreateWorkspaces is an asynchronous operation, some of the returned information could be incomplete.
(dict) --
Describes a WorkSpace.
WorkspaceId (string) --
The identifier of the WorkSpace.
DirectoryId (string) --
The identifier of the Directory Service directory for the WorkSpace.
UserName (string) --
The user for the WorkSpace.
IpAddress (string) --
The IP address of the WorkSpace.
Ipv6Address (string) --
The IPv6 address of the WorkSpace.
State (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).
BundleId (string) --
The identifier of the bundle used to create the WorkSpace.
SubnetId (string) --
The identifier of the subnet for the WorkSpace.
ErrorMessage (string) --
The text of the error message that is returned if the WorkSpace cannot be created.
ErrorCode (string) --
The error code that is returned if the WorkSpace cannot be created.
ComputerName (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.
VolumeEncryptionKey (string) --
The ARN of the symmetric KMS key used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric KMS keys.
UserVolumeEncryptionEnabled (boolean) --
Indicates whether the data stored on the user volume is encrypted.
RootVolumeEncryptionEnabled (boolean) --
Indicates whether the data stored on the root volume is encrypted.
WorkspaceName (string) --
The name of the user-decoupled WorkSpace.
WorkspaceProperties (dict) --
The properties of the WorkSpace.
RunningMode (string) --
The running mode. For more information, see Manage the WorkSpace Running Mode.
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 (integer) --
The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60-minute intervals.
RootVolumeSizeGib (integer) --
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.
UserVolumeSizeGib (integer) --
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.
ComputeTypeName (string) --
The compute type. For more information, see Amazon WorkSpaces Bundles.
Protocols (list) --
The protocol. For more information, see Protocols for Amazon WorkSpaces.
(string) --
OperatingSystemName (string) --
The name of the operating system.
GlobalAccelerator (dict) --
Indicates the Global Accelerator properties.
Mode (string) --
Indicates if Global Accelerator for WorkSpaces is enabled, disabled, or the same mode as the associated directory.
PreferredProtocol (string) --
Indicates the preferred protocol for Global Accelerator.
NestedVirtualizationEnabled (boolean) --
Specifies whether nested virtualization is enabled for the WorkSpace.
For more information, see Nested virtualization for Amazon WorkSpaces.
ModificationStates (list) --
The modification states of the WorkSpace.
(dict) --
Describes a WorkSpace modification.
Resource (string) --
The WorkSpace property being modified.
State (string) --
The modification state.
RelatedWorkspaces (list) --
The standby WorkSpace or primary WorkSpace related to the specified WorkSpace.
(dict) --
Describes the related WorkSpace. The related WorkSpace could be a standby WorkSpace or primary WorkSpace related to the specified WorkSpace.
WorkspaceId (string) --
The identifier of the related WorkSpace.
Region (string) --
The Region of the related WorkSpace.
State (string) --
Indicates the state of the WorkSpace.
Type (string) --
Indicates the type of WorkSpace.
DataReplicationSettings (dict) --
Indicates the settings of the data replication.
DataReplication (string) --
Indicates whether data replication is enabled, and if enabled, the type of data replication.
RecoverySnapshotTime (datetime) --
The date and time at which the last successful snapshot was taken of the primary WorkSpace used for replicating data.
StandbyWorkspacesProperties (list) --
The properties of the standby WorkSpace
(dict) --
Describes the properties of the related standby WorkSpaces.
StandbyWorkspaceId (string) --
The identifier of the standby WorkSpace
DataReplication (string) --
Indicates whether data replication is enabled, and if enabled, the type of data replication.
RecoverySnapshotTime (datetime) --
The date and time at which the last successful snapshot was taken of the primary WorkSpace used for replicating data.
WorkspaceCategory (string) --
The category of the WorkSpace: PERSONAL or AGENTIC.
NextToken (string) --
The token to use to retrieve the next page of results. This value is null when there are no more results to return.