Starts an app block builder.
An app block builder can only be started when it's associated with an app block.
Starting an app block builder starts a new instance, which is equivalent to an elastic fleet instance with application builder assistance functionality.
Parameters:
-
name
(Optional[Name], default:
None
)
–
The name of the app block builder.
Raises:
Source code in docs_src/capo_appstream/_services/app_stream.py
| def start_app_block_builder(
self,
*,
config_overrides: Optional[AppStreamClientConfig] = None,
name: Optional["capo_appstream.types.name.Name"] = None,
) -> (
"capo_appstream.types.start_app_block_builder_result.StartAppBlockBuilderResult"
):
"""<p>Starts an app block builder.</p> <p>An app block builder can only be started when it's associated with an app block.</p> <p>Starting an app block builder starts a new instance, which is equivalent to an elastic fleet instance with application builder assistance functionality.</p>
Args:
name: <p>The name of the app block builder.</p>
Raises:
capo_appstream.errors.concurrent_modification_exception.ConcurrentModificationException: <p>An API error occurred. Wait a few minutes and try again.</p>
capo_appstream.errors.invalid_account_status_exception.InvalidAccountStatusException: <p>The resource cannot be created because your AWS account is suspended. For assistance, contact AWS Support. </p>
capo_appstream.errors.limit_exceeded_exception.LimitExceededException: <p>The requested limit exceeds the permitted limit for an account.</p>
capo_appstream.errors.operation_not_permitted_exception.OperationNotPermittedException: <p>The attempted operation is not permitted.</p>
capo_appstream.errors.request_limit_exceeded_exception.RequestLimitExceededException: <p>WorkSpaces Applications can’t process the request right now because the Describe calls from your AWS account are being throttled by Amazon EC2. Try again later.</p>
capo_appstream.errors.resource_not_available_exception.ResourceNotAvailableException: <p>The specified resource exists and is not in use, but isn't available.</p>
capo_appstream.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
capo_appstream.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_appstream.types.start_app_block_builder_request.StartAppBlockBuilderRequest]",
) -> OperationResponse[
"capo_appstream.types.start_app_block_builder_result.StartAppBlockBuilderResult"
]:
import capo_appstream._operations.photon_admin_proxy_service.start_app_block_builder
output, http_response = (
capo_appstream._operations.photon_admin_proxy_service.start_app_block_builder.start_app_block_builder(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("StartAppBlockBuilder")
)
input_: capo_appstream.types.start_app_block_builder_request.StartAppBlockBuilderRequest = {}
if name is not None:
input_["name"] = name
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|