disassociate_volume
async
¶
disassociate_volume(
workspace_instance_id: WorkspaceInstanceId,
volume_id: VolumeId,
*,
config_overrides: Optional[AsyncWorkspacesInstancesClientConfig] = None,
device: Optional[DeviceName] = None,
disassociate_mode: Optional[DisassociateModeEnum] = None,
) -> DisassociateVolumeResponse
Detaches a volume from a WorkSpace Instance.
Parameters:
-
workspace_instance_id(WorkspaceInstanceId) –WorkSpace Instance to detach volume from.
-
volume_id(VolumeId) –Volume to be detached.
-
device(Optional[DeviceName], default:None) –Device path of volume to detach.
-
disassociate_mode(Optional[DisassociateModeEnum], default:None) –Mode for volume detachment.
Raises:
-
AccessDeniedException–Indicates insufficient permissions to perform the requested action.
-
ConflictException–Signals a conflict with the current state of the resource.
-
InternalServerException–Indicates an unexpected server-side error occurred.
-
ResourceNotFoundException–Indicates the requested resource could not be found.
-
ThrottlingException–Indicates the request rate has exceeded limits.
-
ValidationException–Indicates invalid input parameters in the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workspaces_instances/_services/async_workspaces_instances.py
622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 | |