create_app
async
¶
create_app(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = 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/async_sage_maker.py
2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 | |