create_workspace_instance
¶
create_workspace_instance(
managed_instance: ManagedInstanceRequest,
*,
config_overrides: Optional[WorkspacesInstancesClientConfig] = 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/workspaces_instances.py
359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 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 | |