create_app
¶
create_app(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
domain_id: Optional[DomainId] = None,
user_profile_name: Optional[UserProfileName] = None,
space_name: Optional[SpaceName] = None,
app_type: Optional[AppType] = None,
app_name: Optional[AppName] = None,
tags: Optional[TagList] = None,
resource_spec: Optional[ResourceSpec] = None,
recovery_mode: Optional[Boolean] = None,
) -> CreateAppResponse
Creates a running app for the specified UserProfile. This operation is automatically invoked by Amazon SageMaker AI upon access to the associated Domain, and when new kernel configurations are selected by the user. A user may have multiple Apps active simultaneously.
Parameters:
-
domain_id(Optional[DomainId], default:None) –The domain ID.
-
user_profile_name(Optional[UserProfileName], default:None) –The user profile name. If this value is not set, then
SpaceNamemust be set. -
space_name(Optional[SpaceName], default:None) –The name of the space. If this value is not set, then
UserProfileNamemust be set. -
app_type(Optional[AppType], default:None) –The type of app.
-
app_name(Optional[AppName], default:None) –The name of the app.
-
tags(Optional[TagList], default:None) –Each tag consists of a key and an optional value. Tag keys must be unique per resource.
-
resource_spec(Optional[ResourceSpec], default:None) –The instance type and the Amazon Resource Name (ARN) of the SageMaker AI image created on the instance.
The value of
InstanceTypepassed as part of theResourceSpecin theCreateAppcall overrides the value passed as part of theResourceSpecconfigured for the user profile or the domain. IfInstanceTypeis not specified in any of those threeResourceSpecvalues for aKernelGatewayapp, theCreateAppcall fails with a request validation error. -
recovery_mode(Optional[Boolean], default:None) –Indicates whether the application is launched in recovery mode.
Raises:
-
ResourceInUse–Resource being accessed is in use.
-
ResourceLimitExceeded–You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 | |