Sagemaker update space AppType parameter makes request fail #4375
Labels
bug
This issue is a confirmed bug.
documentation
This is a problem with documentation.
p2
This is a standard priority issue
sagemaker
service-api
This issue is caused by the service API, not the SDK implementation.
Describe the bug
The API includes an AppType parameter, but providing any value for AppType causes the request to fail.
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sagemaker/client/update_space.html
Regression Issue
Expected Behavior
The space should be updated if the same AppType is provided
Current Behavior
botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the UpdateSpace operation: Updating AppType for Space is not supported.
Reproduction Steps
import boto3
sm = boto3.client("sagemaker")
domain_id = ""
space_name= ""
fails
response = sm.update_space(
DomainId=domain_id,
SpaceName=space_name,
SpaceSettings={"AppType": "JupyterLab",}
)
ok
response = sm.update_space(
DomainId=domain_id,
SpaceName=space_id,
)
Possible Solution
No response
Additional Information/Context
No response
SDK version used
1.35.78
Environment details (OS name and version, etc.)
Any
The text was updated successfully, but these errors were encountered: