WorkSpaces / Client / disassociate_workspace_application

disassociate_workspace_application#

WorkSpaces.Client.disassociate_workspace_application(**kwargs)#

Disassociates the specified application from a WorkSpace.

See also: AWS API Documentation

Request Syntax

response = client.disassociate_workspace_application(
    WorkspaceId='string',
    ApplicationId='string'
)
Parameters:
  • WorkspaceId (string) –

    [REQUIRED]

    The identifier of the WorkSpace.

  • ApplicationId (string) –

    [REQUIRED]

    The identifier of the application.

Return type:

dict

Returns:

Response Syntax

{
    'Association': {
        'AssociatedResourceId': 'string',
        'AssociatedResourceType': 'APPLICATION',
        'Created': datetime(2015, 1, 1),
        'LastUpdatedTime': datetime(2015, 1, 1),
        'State': 'PENDING_INSTALL'|'PENDING_INSTALL_DEPLOYMENT'|'PENDING_UNINSTALL'|'PENDING_UNINSTALL_DEPLOYMENT'|'INSTALLING'|'UNINSTALLING'|'ERROR'|'COMPLETED'|'REMOVED',
        'StateReason': {
            'ErrorCode': 'ValidationError.InsufficientDiskSpace'|'ValidationError.InsufficientMemory'|'ValidationError.UnsupportedOperatingSystem'|'DeploymentError.InternalServerError'|'DeploymentError.WorkspaceUnreachable',
            'ErrorMessage': 'string'
        },
        'WorkspaceId': 'string'
    }
}

Response Structure

  • (dict) –

    • Association (dict) –

      Information about the targeted association.

      • AssociatedResourceId (string) –

        The identifier of the associated resource.

      • AssociatedResourceType (string) –

        The resource types of the associated resource.

      • Created (datetime) –

        The time the association is created.

      • LastUpdatedTime (datetime) –

        The time the association status was last updated.

      • State (string) –

        The status of the WorkSpace resource association.

      • StateReason (dict) –

        The reason the association deployment failed.

        • ErrorCode (string) –

          The error code of the association deployment failure.

        • ErrorMessage (string) –

          The error message of the association deployment failure.

      • WorkspaceId (string) –

        The identifier of the WorkSpace.

Exceptions

  • WorkSpaces.Client.exceptions.AccessDeniedException

  • WorkSpaces.Client.exceptions.InvalidParameterValuesException

  • WorkSpaces.Client.exceptions.OperationNotSupportedException

  • WorkSpaces.Client.exceptions.ResourceInUseException

  • WorkSpaces.Client.exceptions.ResourceNotFoundException