create_workspace_instance
async
¶
create_workspace_instance(
managed_instance: ManagedInstanceRequest,
*,
config_overrides: Optional[AsyncWorkspacesInstancesClientConfig] = None,
client_token: Optional[ClientToken] = None,
tags: Optional[TagList] = None,
billing_configuration: Optional[BillingConfiguration] = None,
) -> CreateWorkspaceInstanceResponse
Launches a new WorkSpace Instance with specified configuration parameters, enabling programmatic workspace deployment.
Parameters:
-
client_token(Optional[ClientToken], default:None) –Unique token to ensure idempotent instance creation, preventing duplicate workspace launches.
-
tags(Optional[TagList], default:None) –Optional metadata tags for categorizing and managing WorkSpaces Instances.
-
managed_instance(ManagedInstanceRequest) –Comprehensive configuration settings for the WorkSpaces Instance, including network, compute, and storage parameters.
-
billing_configuration(Optional[BillingConfiguration], default:None) –Optional billing configuration for the WorkSpace Instance. Allows customers to specify their preferred billing mode when creating a new instance. Defaults to hourly billing if not specified.
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.
-
ServiceQuotaExceededException–Indicates that a service quota has been exceeded.
-
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
406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 | |