WorkSpacesClient
Index > WorkSpaces > WorkSpacesClient
Auto-generated documentation for WorkSpaces type annotations stubs module types-aiobotocore-workspaces.
WorkSpacesClient
Type annotations and code completion for session.client("workspaces")
boto3 documentation
from aioboto3.session import Session
from types_aiobotocore_workspaces.client import WorkSpacesClient
session = Session()
async with session.client("workspaces") as client:
client: WorkSpacesClient
Exceptions
aioboto3
client exceptions are generated in runtime.
This class provides code completion for session.client("workspaces").exceptions
structure.
async with session.client("workspaces") as client:
try:
do_something(client)
except (
client.AccessDeniedException,
client.ClientError,
client.InvalidParameterValuesException,
client.InvalidResourceStateException,
client.OperationInProgressException,
client.OperationNotSupportedException,
client.ResourceAlreadyExistsException,
client.ResourceAssociatedException,
client.ResourceCreationFailedException,
client.ResourceLimitExceededException,
client.ResourceNotFoundException,
client.ResourceUnavailableException,
client.UnsupportedNetworkConfigurationException,
client.UnsupportedWorkspaceConfigurationException,
client.WorkspacesDefaultRoleNotFoundException,
) as e:
print(e)
from types_aiobotocore_workspaces.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods
associate_connection_alias
Associates the specified connection alias with the specified directory to enable cross-Region redirection.
Type annotations and code completion for session.client("workspaces").associate_connection_alias
method.
boto3 documentation
await def associate_connection_alias(
self,
*,
AliasId: str,
ResourceId: str,
) -> AssociateConnectionAliasResultTypeDef: # (1)
...
kwargs: AssociateConnectionAliasRequestRequestTypeDef = { # (1)
"AliasId": ...,
"ResourceId": ...,
}
parent.associate_connection_alias(**kwargs)
associate_ip_groups
Associates the specified IP access control group with the specified directory.
Type annotations and code completion for session.client("workspaces").associate_ip_groups
method.
boto3 documentation
await def associate_ip_groups(
self,
*,
DirectoryId: str,
GroupIds: Sequence[str],
) -> Dict[str, Any]:
...
kwargs: AssociateIpGroupsRequestRequestTypeDef = { # (1)
"DirectoryId": ...,
"GroupIds": ...,
}
parent.associate_ip_groups(**kwargs)
authorize_ip_rules
Adds one or more rules to the specified IP access control group.
Type annotations and code completion for session.client("workspaces").authorize_ip_rules
method.
boto3 documentation
await def authorize_ip_rules(
self,
*,
GroupId: str,
UserRules: Sequence[IpRuleItemTypeDef], # (1)
) -> Dict[str, Any]:
...
kwargs: AuthorizeIpRulesRequestRequestTypeDef = { # (1)
"GroupId": ...,
"UserRules": ...,
}
parent.authorize_ip_rules(**kwargs)
can_paginate
Check if an operation can be paginated.
Type annotations and code completion for session.client("workspaces").can_paginate
method.
boto3 documentation
close
Closes underlying endpoint connections.
Type annotations and code completion for session.client("workspaces").close
method.
boto3 documentation
copy_workspace_image
Copies the specified image from the specified Region to the current Region.
Type annotations and code completion for session.client("workspaces").copy_workspace_image
method.
boto3 documentation
await def copy_workspace_image(
self,
*,
Name: str,
SourceImageId: str,
SourceRegion: str,
Description: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (1)
) -> CopyWorkspaceImageResultTypeDef: # (2)
...
kwargs: CopyWorkspaceImageRequestRequestTypeDef = { # (1)
"Name": ...,
"SourceImageId": ...,
"SourceRegion": ...,
}
parent.copy_workspace_image(**kwargs)
create_connect_client_add_in
Creates a client-add-in for Amazon Connect within a directory.
Type annotations and code completion for session.client("workspaces").create_connect_client_add_in
method.
boto3 documentation
await def create_connect_client_add_in(
self,
*,
ResourceId: str,
Name: str,
URL: str,
) -> CreateConnectClientAddInResultTypeDef: # (1)
...
kwargs: CreateConnectClientAddInRequestRequestTypeDef = { # (1)
"ResourceId": ...,
"Name": ...,
"URL": ...,
}
parent.create_connect_client_add_in(**kwargs)
create_connection_alias
Creates the specified connection alias for use with cross-Region redirection.
Type annotations and code completion for session.client("workspaces").create_connection_alias
method.
boto3 documentation
await def create_connection_alias(
self,
*,
ConnectionString: str,
Tags: Sequence[TagTypeDef] = ..., # (1)
) -> CreateConnectionAliasResultTypeDef: # (2)
...
kwargs: CreateConnectionAliasRequestRequestTypeDef = { # (1)
"ConnectionString": ...,
}
parent.create_connection_alias(**kwargs)
create_ip_group
Creates an IP access control group.
Type annotations and code completion for session.client("workspaces").create_ip_group
method.
boto3 documentation
await def create_ip_group(
self,
*,
GroupName: str,
GroupDesc: str = ...,
UserRules: Sequence[IpRuleItemTypeDef] = ..., # (1)
Tags: Sequence[TagTypeDef] = ..., # (2)
) -> CreateIpGroupResultTypeDef: # (3)
...
- See IpRuleItemTypeDef
- See TagTypeDef
- See CreateIpGroupResultTypeDef
kwargs: CreateIpGroupRequestRequestTypeDef = { # (1)
"GroupName": ...,
}
parent.create_ip_group(**kwargs)
create_tags
Creates the specified tags for the specified WorkSpaces resource.
Type annotations and code completion for session.client("workspaces").create_tags
method.
boto3 documentation
await def create_tags(
self,
*,
ResourceId: str,
Tags: Sequence[TagTypeDef], # (1)
) -> Dict[str, Any]:
...
- See TagTypeDef
kwargs: CreateTagsRequestRequestTypeDef = { # (1)
"ResourceId": ...,
"Tags": ...,
}
parent.create_tags(**kwargs)
create_updated_workspace_image
Creates a new updated WorkSpace image based on the specified source image.
Type annotations and code completion for session.client("workspaces").create_updated_workspace_image
method.
boto3 documentation
await def create_updated_workspace_image(
self,
*,
Name: str,
Description: str,
SourceImageId: str,
Tags: Sequence[TagTypeDef] = ..., # (1)
) -> CreateUpdatedWorkspaceImageResultTypeDef: # (2)
...
kwargs: CreateUpdatedWorkspaceImageRequestRequestTypeDef = { # (1)
"Name": ...,
"Description": ...,
"SourceImageId": ...,
}
parent.create_updated_workspace_image(**kwargs)
create_workspace_bundle
Creates the specified WorkSpace bundle.
Type annotations and code completion for session.client("workspaces").create_workspace_bundle
method.
boto3 documentation
await def create_workspace_bundle(
self,
*,
BundleName: str,
BundleDescription: str,
ImageId: str,
ComputeType: ComputeTypeTypeDef, # (1)
UserStorage: UserStorageTypeDef, # (2)
RootStorage: RootStorageTypeDef = ..., # (3)
Tags: Sequence[TagTypeDef] = ..., # (4)
) -> CreateWorkspaceBundleResultTypeDef: # (5)
...
- See ComputeTypeTypeDef
- See UserStorageTypeDef
- See RootStorageTypeDef
- See TagTypeDef
- See CreateWorkspaceBundleResultTypeDef
kwargs: CreateWorkspaceBundleRequestRequestTypeDef = { # (1)
"BundleName": ...,
"BundleDescription": ...,
"ImageId": ...,
"ComputeType": ...,
"UserStorage": ...,
}
parent.create_workspace_bundle(**kwargs)
create_workspace_image
Creates a new WorkSpace image from an existing WorkSpace.
Type annotations and code completion for session.client("workspaces").create_workspace_image
method.
boto3 documentation
await def create_workspace_image(
self,
*,
Name: str,
Description: str,
WorkspaceId: str,
Tags: Sequence[TagTypeDef] = ..., # (1)
) -> CreateWorkspaceImageResultTypeDef: # (2)
...
kwargs: CreateWorkspaceImageRequestRequestTypeDef = { # (1)
"Name": ...,
"Description": ...,
"WorkspaceId": ...,
}
parent.create_workspace_image(**kwargs)
create_workspaces
Creates one or more WorkSpaces.
Type annotations and code completion for session.client("workspaces").create_workspaces
method.
boto3 documentation
await def create_workspaces(
self,
*,
Workspaces: Sequence[WorkspaceRequestTypeDef], # (1)
) -> CreateWorkspacesResultTypeDef: # (2)
...
kwargs: CreateWorkspacesRequestRequestTypeDef = { # (1)
"Workspaces": ...,
}
parent.create_workspaces(**kwargs)
delete_client_branding
Deletes customized client branding.
Type annotations and code completion for session.client("workspaces").delete_client_branding
method.
boto3 documentation
await def delete_client_branding(
self,
*,
ResourceId: str,
Platforms: Sequence[ClientDeviceTypeType], # (1)
) -> Dict[str, Any]:
...
kwargs: DeleteClientBrandingRequestRequestTypeDef = { # (1)
"ResourceId": ...,
"Platforms": ...,
}
parent.delete_client_branding(**kwargs)
delete_connect_client_add_in
Deletes a client-add-in for Amazon Connect that is configured within a directory.
Type annotations and code completion for session.client("workspaces").delete_connect_client_add_in
method.
boto3 documentation
await def delete_connect_client_add_in(
self,
*,
AddInId: str,
ResourceId: str,
) -> Dict[str, Any]:
...
kwargs: DeleteConnectClientAddInRequestRequestTypeDef = { # (1)
"AddInId": ...,
"ResourceId": ...,
}
parent.delete_connect_client_add_in(**kwargs)
delete_connection_alias
Deletes the specified connection alias.
Type annotations and code completion for session.client("workspaces").delete_connection_alias
method.
boto3 documentation
kwargs: DeleteConnectionAliasRequestRequestTypeDef = { # (1)
"AliasId": ...,
}
parent.delete_connection_alias(**kwargs)
delete_ip_group
Deletes the specified IP access control group.
Type annotations and code completion for session.client("workspaces").delete_ip_group
method.
boto3 documentation
kwargs: DeleteIpGroupRequestRequestTypeDef = { # (1)
"GroupId": ...,
}
parent.delete_ip_group(**kwargs)
delete_tags
Deletes the specified tags from the specified WorkSpaces resource.
Type annotations and code completion for session.client("workspaces").delete_tags
method.
boto3 documentation
await def delete_tags(
self,
*,
ResourceId: str,
TagKeys: Sequence[str],
) -> Dict[str, Any]:
...
kwargs: DeleteTagsRequestRequestTypeDef = { # (1)
"ResourceId": ...,
"TagKeys": ...,
}
parent.delete_tags(**kwargs)
delete_workspace_bundle
Deletes the specified WorkSpace bundle.
Type annotations and code completion for session.client("workspaces").delete_workspace_bundle
method.
boto3 documentation
await def delete_workspace_bundle(
self,
*,
BundleId: str = ...,
) -> Dict[str, Any]:
...
kwargs: DeleteWorkspaceBundleRequestRequestTypeDef = { # (1)
"BundleId": ...,
}
parent.delete_workspace_bundle(**kwargs)
delete_workspace_image
Deletes the specified image from your account.
Type annotations and code completion for session.client("workspaces").delete_workspace_image
method.
boto3 documentation
kwargs: DeleteWorkspaceImageRequestRequestTypeDef = { # (1)
"ImageId": ...,
}
parent.delete_workspace_image(**kwargs)
deregister_workspace_directory
Deregisters the specified directory.
Type annotations and code completion for session.client("workspaces").deregister_workspace_directory
method.
boto3 documentation
await def deregister_workspace_directory(
self,
*,
DirectoryId: str,
) -> Dict[str, Any]:
...
kwargs: DeregisterWorkspaceDirectoryRequestRequestTypeDef = { # (1)
"DirectoryId": ...,
}
parent.deregister_workspace_directory(**kwargs)
describe_account
Retrieves a list that describes the configuration of Bring Your Own License (BYOL) for the specified account.
Type annotations and code completion for session.client("workspaces").describe_account
method.
boto3 documentation
describe_account_modifications
Retrieves a list that describes modifications to the configuration of Bring Your Own License (BYOL) for the specified account.
Type annotations and code completion for session.client("workspaces").describe_account_modifications
method.
boto3 documentation
await def describe_account_modifications(
self,
*,
NextToken: str = ...,
) -> DescribeAccountModificationsResultTypeDef: # (1)
...
kwargs: DescribeAccountModificationsRequestRequestTypeDef = { # (1)
"NextToken": ...,
}
parent.describe_account_modifications(**kwargs)
describe_client_branding
Describes the specified client branding.
Type annotations and code completion for session.client("workspaces").describe_client_branding
method.
boto3 documentation
await def describe_client_branding(
self,
*,
ResourceId: str,
) -> DescribeClientBrandingResultTypeDef: # (1)
...
kwargs: DescribeClientBrandingRequestRequestTypeDef = { # (1)
"ResourceId": ...,
}
parent.describe_client_branding(**kwargs)
describe_client_properties
Retrieves a list that describes one or more specified Amazon WorkSpaces clients.
Type annotations and code completion for session.client("workspaces").describe_client_properties
method.
boto3 documentation
await def describe_client_properties(
self,
*,
ResourceIds: Sequence[str],
) -> DescribeClientPropertiesResultTypeDef: # (1)
...
kwargs: DescribeClientPropertiesRequestRequestTypeDef = { # (1)
"ResourceIds": ...,
}
parent.describe_client_properties(**kwargs)
describe_connect_client_add_ins
Retrieves a list of Amazon Connect client add-ins that have been created.
Type annotations and code completion for session.client("workspaces").describe_connect_client_add_ins
method.
boto3 documentation
await def describe_connect_client_add_ins(
self,
*,
ResourceId: str,
NextToken: str = ...,
MaxResults: int = ...,
) -> DescribeConnectClientAddInsResultTypeDef: # (1)
...
kwargs: DescribeConnectClientAddInsRequestRequestTypeDef = { # (1)
"ResourceId": ...,
}
parent.describe_connect_client_add_ins(**kwargs)
describe_connection_alias_permissions
Describes the permissions that the owner of a connection alias has granted to another Amazon Web Services account for the specified connection alias.
Type annotations and code completion for session.client("workspaces").describe_connection_alias_permissions
method.
boto3 documentation
await def describe_connection_alias_permissions(
self,
*,
AliasId: str,
NextToken: str = ...,
MaxResults: int = ...,
) -> DescribeConnectionAliasPermissionsResultTypeDef: # (1)
...
kwargs: DescribeConnectionAliasPermissionsRequestRequestTypeDef = { # (1)
"AliasId": ...,
}
parent.describe_connection_alias_permissions(**kwargs)
describe_connection_aliases
Retrieves a list that describes the connection aliases used for cross-Region redirection.
Type annotations and code completion for session.client("workspaces").describe_connection_aliases
method.
boto3 documentation
await def describe_connection_aliases(
self,
*,
AliasIds: Sequence[str] = ...,
ResourceId: str = ...,
Limit: int = ...,
NextToken: str = ...,
) -> DescribeConnectionAliasesResultTypeDef: # (1)
...
kwargs: DescribeConnectionAliasesRequestRequestTypeDef = { # (1)
"AliasIds": ...,
}
parent.describe_connection_aliases(**kwargs)
describe_ip_groups
Describes one or more of your IP access control groups.
Type annotations and code completion for session.client("workspaces").describe_ip_groups
method.
boto3 documentation
await def describe_ip_groups(
self,
*,
GroupIds: Sequence[str] = ...,
NextToken: str = ...,
MaxResults: int = ...,
) -> DescribeIpGroupsResultTypeDef: # (1)
...
kwargs: DescribeIpGroupsRequestRequestTypeDef = { # (1)
"GroupIds": ...,
}
parent.describe_ip_groups(**kwargs)
describe_tags
Describes the specified tags for the specified WorkSpaces resource.
Type annotations and code completion for session.client("workspaces").describe_tags
method.
boto3 documentation
await def describe_tags(
self,
*,
ResourceId: str,
) -> DescribeTagsResultTypeDef: # (1)
...
kwargs: DescribeTagsRequestRequestTypeDef = { # (1)
"ResourceId": ...,
}
parent.describe_tags(**kwargs)
describe_workspace_bundles
Retrieves a list that describes the available WorkSpace bundles.
Type annotations and code completion for session.client("workspaces").describe_workspace_bundles
method.
boto3 documentation
await def describe_workspace_bundles(
self,
*,
BundleIds: Sequence[str] = ...,
Owner: str = ...,
NextToken: str = ...,
) -> DescribeWorkspaceBundlesResultTypeDef: # (1)
...
kwargs: DescribeWorkspaceBundlesRequestRequestTypeDef = { # (1)
"BundleIds": ...,
}
parent.describe_workspace_bundles(**kwargs)
describe_workspace_directories
Describes the available directories that are registered with Amazon WorkSpaces.
Type annotations and code completion for session.client("workspaces").describe_workspace_directories
method.
boto3 documentation
await def describe_workspace_directories(
self,
*,
DirectoryIds: Sequence[str] = ...,
Limit: int = ...,
NextToken: str = ...,
) -> DescribeWorkspaceDirectoriesResultTypeDef: # (1)
...
kwargs: DescribeWorkspaceDirectoriesRequestRequestTypeDef = { # (1)
"DirectoryIds": ...,
}
parent.describe_workspace_directories(**kwargs)
describe_workspace_image_permissions
Describes the permissions that the owner of an image has granted to other Amazon Web Services accounts for an image.
Type annotations and code completion for session.client("workspaces").describe_workspace_image_permissions
method.
boto3 documentation
await def describe_workspace_image_permissions(
self,
*,
ImageId: str,
NextToken: str = ...,
MaxResults: int = ...,
) -> DescribeWorkspaceImagePermissionsResultTypeDef: # (1)
...
kwargs: DescribeWorkspaceImagePermissionsRequestRequestTypeDef = { # (1)
"ImageId": ...,
}
parent.describe_workspace_image_permissions(**kwargs)
describe_workspace_images
Retrieves a list that describes one or more specified images, if the image identifiers are provided.
Type annotations and code completion for session.client("workspaces").describe_workspace_images
method.
boto3 documentation
await def describe_workspace_images(
self,
*,
ImageIds: Sequence[str] = ...,
ImageType: ImageTypeType = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> DescribeWorkspaceImagesResultTypeDef: # (2)
...
kwargs: DescribeWorkspaceImagesRequestRequestTypeDef = { # (1)
"ImageIds": ...,
}
parent.describe_workspace_images(**kwargs)
describe_workspace_snapshots
Describes the snapshots for the specified WorkSpace.
Type annotations and code completion for session.client("workspaces").describe_workspace_snapshots
method.
boto3 documentation
await def describe_workspace_snapshots(
self,
*,
WorkspaceId: str,
) -> DescribeWorkspaceSnapshotsResultTypeDef: # (1)
...
kwargs: DescribeWorkspaceSnapshotsRequestRequestTypeDef = { # (1)
"WorkspaceId": ...,
}
parent.describe_workspace_snapshots(**kwargs)
describe_workspaces
Describes the specified WorkSpaces.
Type annotations and code completion for session.client("workspaces").describe_workspaces
method.
boto3 documentation
await def describe_workspaces(
self,
*,
WorkspaceIds: Sequence[str] = ...,
DirectoryId: str = ...,
UserName: str = ...,
BundleId: str = ...,
Limit: int = ...,
NextToken: str = ...,
) -> DescribeWorkspacesResultTypeDef: # (1)
...
kwargs: DescribeWorkspacesRequestRequestTypeDef = { # (1)
"WorkspaceIds": ...,
}
parent.describe_workspaces(**kwargs)
describe_workspaces_connection_status
Describes the connection status of the specified WorkSpaces.
Type annotations and code completion for session.client("workspaces").describe_workspaces_connection_status
method.
boto3 documentation
await def describe_workspaces_connection_status(
self,
*,
WorkspaceIds: Sequence[str] = ...,
NextToken: str = ...,
) -> DescribeWorkspacesConnectionStatusResultTypeDef: # (1)
...
kwargs: DescribeWorkspacesConnectionStatusRequestRequestTypeDef = { # (1)
"WorkspaceIds": ...,
}
parent.describe_workspaces_connection_status(**kwargs)
disassociate_connection_alias
Disassociates a connection alias from a directory.
Type annotations and code completion for session.client("workspaces").disassociate_connection_alias
method.
boto3 documentation
await def disassociate_connection_alias(
self,
*,
AliasId: str,
) -> Dict[str, Any]:
...
kwargs: DisassociateConnectionAliasRequestRequestTypeDef = { # (1)
"AliasId": ...,
}
parent.disassociate_connection_alias(**kwargs)
disassociate_ip_groups
Disassociates the specified IP access control group from the specified directory.
Type annotations and code completion for session.client("workspaces").disassociate_ip_groups
method.
boto3 documentation
await def disassociate_ip_groups(
self,
*,
DirectoryId: str,
GroupIds: Sequence[str],
) -> Dict[str, Any]:
...
kwargs: DisassociateIpGroupsRequestRequestTypeDef = { # (1)
"DirectoryId": ...,
"GroupIds": ...,
}
parent.disassociate_ip_groups(**kwargs)
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for session.client("workspaces").generate_presigned_url
method.
boto3 documentation
await def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
import_client_branding
Imports client branding.
Type annotations and code completion for session.client("workspaces").import_client_branding
method.
boto3 documentation
await def import_client_branding(
self,
*,
ResourceId: str,
DeviceTypeWindows: DefaultImportClientBrandingAttributesTypeDef = ..., # (1)
DeviceTypeOsx: DefaultImportClientBrandingAttributesTypeDef = ..., # (1)
DeviceTypeAndroid: DefaultImportClientBrandingAttributesTypeDef = ..., # (1)
DeviceTypeIos: IosImportClientBrandingAttributesTypeDef = ..., # (4)
DeviceTypeLinux: DefaultImportClientBrandingAttributesTypeDef = ..., # (1)
DeviceTypeWeb: DefaultImportClientBrandingAttributesTypeDef = ..., # (1)
) -> ImportClientBrandingResultTypeDef: # (7)
...
- See DefaultImportClientBrandingAttributesTypeDef
- See DefaultImportClientBrandingAttributesTypeDef
- See DefaultImportClientBrandingAttributesTypeDef
- See IosImportClientBrandingAttributesTypeDef
- See DefaultImportClientBrandingAttributesTypeDef
- See DefaultImportClientBrandingAttributesTypeDef
- See ImportClientBrandingResultTypeDef
kwargs: ImportClientBrandingRequestRequestTypeDef = { # (1)
"ResourceId": ...,
}
parent.import_client_branding(**kwargs)
import_workspace_image
Imports the specified Windows 10 Bring Your Own License (BYOL) image into Amazon WorkSpaces.
Type annotations and code completion for session.client("workspaces").import_workspace_image
method.
boto3 documentation
await def import_workspace_image(
self,
*,
Ec2ImageId: str,
IngestionProcess: WorkspaceImageIngestionProcessType, # (1)
ImageName: str,
ImageDescription: str,
Tags: Sequence[TagTypeDef] = ..., # (2)
Applications: Sequence[ApplicationType] = ..., # (3)
) -> ImportWorkspaceImageResultTypeDef: # (4)
...
- See WorkspaceImageIngestionProcessType
- See TagTypeDef
- See ApplicationType
- See ImportWorkspaceImageResultTypeDef
kwargs: ImportWorkspaceImageRequestRequestTypeDef = { # (1)
"Ec2ImageId": ...,
"IngestionProcess": ...,
"ImageName": ...,
"ImageDescription": ...,
}
parent.import_workspace_image(**kwargs)
list_available_management_cidr_ranges
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).
Type annotations and code completion for session.client("workspaces").list_available_management_cidr_ranges
method.
boto3 documentation
await def list_available_management_cidr_ranges(
self,
*,
ManagementCidrRangeConstraint: str,
MaxResults: int = ...,
NextToken: str = ...,
) -> ListAvailableManagementCidrRangesResultTypeDef: # (1)
...
kwargs: ListAvailableManagementCidrRangesRequestRequestTypeDef = { # (1)
"ManagementCidrRangeConstraint": ...,
}
parent.list_available_management_cidr_ranges(**kwargs)
migrate_workspace
Migrates a WorkSpace from one operating system or bundle type to another, while retaining the data on the user volume.
Type annotations and code completion for session.client("workspaces").migrate_workspace
method.
boto3 documentation
await def migrate_workspace(
self,
*,
SourceWorkspaceId: str,
BundleId: str,
) -> MigrateWorkspaceResultTypeDef: # (1)
...
kwargs: MigrateWorkspaceRequestRequestTypeDef = { # (1)
"SourceWorkspaceId": ...,
"BundleId": ...,
}
parent.migrate_workspace(**kwargs)
modify_account
Modifies the configuration of Bring Your Own License (BYOL) for the specified account.
Type annotations and code completion for session.client("workspaces").modify_account
method.
boto3 documentation
await def modify_account(
self,
*,
DedicatedTenancySupport: DedicatedTenancySupportEnumType = ..., # (1)
DedicatedTenancyManagementCidrRange: str = ...,
) -> Dict[str, Any]:
...
kwargs: ModifyAccountRequestRequestTypeDef = { # (1)
"DedicatedTenancySupport": ...,
}
parent.modify_account(**kwargs)
modify_client_properties
Modifies the properties of the specified Amazon WorkSpaces clients.
Type annotations and code completion for session.client("workspaces").modify_client_properties
method.
boto3 documentation
await def modify_client_properties(
self,
*,
ResourceId: str,
ClientProperties: ClientPropertiesTypeDef, # (1)
) -> Dict[str, Any]:
...
kwargs: ModifyClientPropertiesRequestRequestTypeDef = { # (1)
"ResourceId": ...,
"ClientProperties": ...,
}
parent.modify_client_properties(**kwargs)
modify_saml_properties
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.
Type annotations and code completion for session.client("workspaces").modify_saml_properties
method.
boto3 documentation
await def modify_saml_properties(
self,
*,
ResourceId: str,
SamlProperties: SamlPropertiesTypeDef = ..., # (1)
PropertiesToDelete: Sequence[DeletableSamlPropertyType] = ..., # (2)
) -> Dict[str, Any]:
...
kwargs: ModifySamlPropertiesRequestRequestTypeDef = { # (1)
"ResourceId": ...,
}
parent.modify_saml_properties(**kwargs)
modify_selfservice_permissions
Modifies the self-service WorkSpace management capabilities for your users.
Type annotations and code completion for session.client("workspaces").modify_selfservice_permissions
method.
boto3 documentation
await def modify_selfservice_permissions(
self,
*,
ResourceId: str,
SelfservicePermissions: SelfservicePermissionsTypeDef, # (1)
) -> Dict[str, Any]:
...
kwargs: ModifySelfservicePermissionsRequestRequestTypeDef = { # (1)
"ResourceId": ...,
"SelfservicePermissions": ...,
}
parent.modify_selfservice_permissions(**kwargs)
modify_workspace_access_properties
Specifies which devices and operating systems users can use to access their WorkSpaces.
Type annotations and code completion for session.client("workspaces").modify_workspace_access_properties
method.
boto3 documentation
await def modify_workspace_access_properties(
self,
*,
ResourceId: str,
WorkspaceAccessProperties: WorkspaceAccessPropertiesTypeDef, # (1)
) -> Dict[str, Any]:
...
kwargs: ModifyWorkspaceAccessPropertiesRequestRequestTypeDef = { # (1)
"ResourceId": ...,
"WorkspaceAccessProperties": ...,
}
parent.modify_workspace_access_properties(**kwargs)
modify_workspace_creation_properties
Modify the default properties used to create WorkSpaces.
Type annotations and code completion for session.client("workspaces").modify_workspace_creation_properties
method.
boto3 documentation
await def modify_workspace_creation_properties(
self,
*,
ResourceId: str,
WorkspaceCreationProperties: WorkspaceCreationPropertiesTypeDef, # (1)
) -> Dict[str, Any]:
...
kwargs: ModifyWorkspaceCreationPropertiesRequestRequestTypeDef = { # (1)
"ResourceId": ...,
"WorkspaceCreationProperties": ...,
}
parent.modify_workspace_creation_properties(**kwargs)
modify_workspace_properties
Modifies the specified WorkSpace properties.
Type annotations and code completion for session.client("workspaces").modify_workspace_properties
method.
boto3 documentation
await def modify_workspace_properties(
self,
*,
WorkspaceId: str,
WorkspaceProperties: WorkspacePropertiesTypeDef, # (1)
) -> Dict[str, Any]:
...
kwargs: ModifyWorkspacePropertiesRequestRequestTypeDef = { # (1)
"WorkspaceId": ...,
"WorkspaceProperties": ...,
}
parent.modify_workspace_properties(**kwargs)
modify_workspace_state
Sets the state of the specified WorkSpace.
Type annotations and code completion for session.client("workspaces").modify_workspace_state
method.
boto3 documentation
await def modify_workspace_state(
self,
*,
WorkspaceId: str,
WorkspaceState: TargetWorkspaceStateType, # (1)
) -> Dict[str, Any]:
...
kwargs: ModifyWorkspaceStateRequestRequestTypeDef = { # (1)
"WorkspaceId": ...,
"WorkspaceState": ...,
}
parent.modify_workspace_state(**kwargs)
reboot_workspaces
Reboots the specified WorkSpaces.
Type annotations and code completion for session.client("workspaces").reboot_workspaces
method.
boto3 documentation
await def reboot_workspaces(
self,
*,
RebootWorkspaceRequests: Sequence[RebootRequestTypeDef], # (1)
) -> RebootWorkspacesResultTypeDef: # (2)
...
kwargs: RebootWorkspacesRequestRequestTypeDef = { # (1)
"RebootWorkspaceRequests": ...,
}
parent.reboot_workspaces(**kwargs)
rebuild_workspaces
Rebuilds the specified WorkSpace.
Type annotations and code completion for session.client("workspaces").rebuild_workspaces
method.
boto3 documentation
await def rebuild_workspaces(
self,
*,
RebuildWorkspaceRequests: Sequence[RebuildRequestTypeDef], # (1)
) -> RebuildWorkspacesResultTypeDef: # (2)
...
kwargs: RebuildWorkspacesRequestRequestTypeDef = { # (1)
"RebuildWorkspaceRequests": ...,
}
parent.rebuild_workspaces(**kwargs)
register_workspace_directory
Registers the specified directory.
Type annotations and code completion for session.client("workspaces").register_workspace_directory
method.
boto3 documentation
await def register_workspace_directory(
self,
*,
DirectoryId: str,
EnableWorkDocs: bool,
SubnetIds: Sequence[str] = ...,
EnableSelfService: bool = ...,
Tenancy: TenancyType = ..., # (1)
Tags: Sequence[TagTypeDef] = ..., # (2)
) -> Dict[str, Any]:
...
- See TenancyType
- See TagTypeDef
kwargs: RegisterWorkspaceDirectoryRequestRequestTypeDef = { # (1)
"DirectoryId": ...,
"EnableWorkDocs": ...,
}
parent.register_workspace_directory(**kwargs)
restore_workspace
Restores the specified WorkSpace to its last known healthy state.
Type annotations and code completion for session.client("workspaces").restore_workspace
method.
boto3 documentation
kwargs: RestoreWorkspaceRequestRequestTypeDef = { # (1)
"WorkspaceId": ...,
}
parent.restore_workspace(**kwargs)
revoke_ip_rules
Removes one or more rules from the specified IP access control group.
Type annotations and code completion for session.client("workspaces").revoke_ip_rules
method.
boto3 documentation
await def revoke_ip_rules(
self,
*,
GroupId: str,
UserRules: Sequence[str],
) -> Dict[str, Any]:
...
kwargs: RevokeIpRulesRequestRequestTypeDef = { # (1)
"GroupId": ...,
"UserRules": ...,
}
parent.revoke_ip_rules(**kwargs)
start_workspaces
Starts the specified WorkSpaces.
Type annotations and code completion for session.client("workspaces").start_workspaces
method.
boto3 documentation
await def start_workspaces(
self,
*,
StartWorkspaceRequests: Sequence[StartRequestTypeDef], # (1)
) -> StartWorkspacesResultTypeDef: # (2)
...
kwargs: StartWorkspacesRequestRequestTypeDef = { # (1)
"StartWorkspaceRequests": ...,
}
parent.start_workspaces(**kwargs)
stop_workspaces
Stops the specified WorkSpaces.
Type annotations and code completion for session.client("workspaces").stop_workspaces
method.
boto3 documentation
await def stop_workspaces(
self,
*,
StopWorkspaceRequests: Sequence[StopRequestTypeDef], # (1)
) -> StopWorkspacesResultTypeDef: # (2)
...
kwargs: StopWorkspacesRequestRequestTypeDef = { # (1)
"StopWorkspaceRequests": ...,
}
parent.stop_workspaces(**kwargs)
terminate_workspaces
Terminates the specified WorkSpaces.
Type annotations and code completion for session.client("workspaces").terminate_workspaces
method.
boto3 documentation
await def terminate_workspaces(
self,
*,
TerminateWorkspaceRequests: Sequence[TerminateRequestTypeDef], # (1)
) -> TerminateWorkspacesResultTypeDef: # (2)
...
kwargs: TerminateWorkspacesRequestRequestTypeDef = { # (1)
"TerminateWorkspaceRequests": ...,
}
parent.terminate_workspaces(**kwargs)
update_connect_client_add_in
Updates a Amazon Connect client add-in.
Type annotations and code completion for session.client("workspaces").update_connect_client_add_in
method.
boto3 documentation
await def update_connect_client_add_in(
self,
*,
AddInId: str,
ResourceId: str,
Name: str = ...,
URL: str = ...,
) -> Dict[str, Any]:
...
kwargs: UpdateConnectClientAddInRequestRequestTypeDef = { # (1)
"AddInId": ...,
"ResourceId": ...,
}
parent.update_connect_client_add_in(**kwargs)
update_connection_alias_permission
Shares or unshares a connection alias with one account by specifying whether that account has permission to associate the connection alias with a directory.
Type annotations and code completion for session.client("workspaces").update_connection_alias_permission
method.
boto3 documentation
await def update_connection_alias_permission(
self,
*,
AliasId: str,
ConnectionAliasPermission: ConnectionAliasPermissionTypeDef, # (1)
) -> Dict[str, Any]:
...
kwargs: UpdateConnectionAliasPermissionRequestRequestTypeDef = { # (1)
"AliasId": ...,
"ConnectionAliasPermission": ...,
}
parent.update_connection_alias_permission(**kwargs)
update_rules_of_ip_group
Replaces the current rules of the specified IP access control group with the specified rules.
Type annotations and code completion for session.client("workspaces").update_rules_of_ip_group
method.
boto3 documentation
await def update_rules_of_ip_group(
self,
*,
GroupId: str,
UserRules: Sequence[IpRuleItemTypeDef], # (1)
) -> Dict[str, Any]:
...
kwargs: UpdateRulesOfIpGroupRequestRequestTypeDef = { # (1)
"GroupId": ...,
"UserRules": ...,
}
parent.update_rules_of_ip_group(**kwargs)
update_workspace_bundle
Updates a WorkSpace bundle with a new image.
Type annotations and code completion for session.client("workspaces").update_workspace_bundle
method.
boto3 documentation
await def update_workspace_bundle(
self,
*,
BundleId: str = ...,
ImageId: str = ...,
) -> Dict[str, Any]:
...
kwargs: UpdateWorkspaceBundleRequestRequestTypeDef = { # (1)
"BundleId": ...,
}
parent.update_workspace_bundle(**kwargs)
update_workspace_image_permission
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.
Type annotations and code completion for session.client("workspaces").update_workspace_image_permission
method.
boto3 documentation
await def update_workspace_image_permission(
self,
*,
ImageId: str,
AllowCopyImage: bool,
SharedAccountId: str,
) -> Dict[str, Any]:
...
kwargs: UpdateWorkspaceImagePermissionRequestRequestTypeDef = { # (1)
"ImageId": ...,
"AllowCopyImage": ...,
"SharedAccountId": ...,
}
parent.update_workspace_image_permission(**kwargs)
__aenter__
Type annotations and code completion for session.client("workspaces").__aenter__
method.
boto3 documentation
__aexit__
Type annotations and code completion for session.client("workspaces").__aexit__
method.
boto3 documentation
get_paginator
Type annotations and code completion for session.client("workspaces").get_paginator
method with overloads.
client.get_paginator("describe_account_modifications")
-> DescribeAccountModificationsPaginatorclient.get_paginator("describe_ip_groups")
-> DescribeIpGroupsPaginatorclient.get_paginator("describe_workspace_bundles")
-> DescribeWorkspaceBundlesPaginatorclient.get_paginator("describe_workspace_directories")
-> DescribeWorkspaceDirectoriesPaginatorclient.get_paginator("describe_workspace_images")
-> DescribeWorkspaceImagesPaginatorclient.get_paginator("describe_workspaces")
-> DescribeWorkspacesPaginatorclient.get_paginator("describe_workspaces_connection_status")
-> DescribeWorkspacesConnectionStatusPaginatorclient.get_paginator("list_available_management_cidr_ranges")
-> ListAvailableManagementCidrRangesPaginator