update_domain
async
¶
update_domain(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
domain_id: Optional[DomainId] = None,
default_user_settings: Optional[UserSettings] = None,
domain_settings_for_update: Optional[DomainSettingsForUpdate] = None,
app_security_group_management: Optional[AppSecurityGroupManagement] = None,
default_space_settings: Optional[DefaultSpaceSettings] = None,
subnet_ids: Optional[Subnets] = None,
app_network_access_type: Optional[AppNetworkAccessType] = None,
tag_propagation: Optional[TagPropagation] = None,
home_efs_file_system_creation: Optional[HomeEfsFileSystemCreation] = None,
vpc_id: Optional[VpcId] = None,
) -> UpdateDomainResponse
Updates the default settings for new user profiles in the domain.
Parameters:
-
domain_id(Optional[DomainId], default:None) –The ID of the domain to be updated.
-
default_user_settings(Optional[UserSettings], default:None) –A collection of settings.
-
domain_settings_for_update(Optional[DomainSettingsForUpdate], default:None) –A collection of
DomainSettingsconfiguration values to update. -
app_security_group_management(Optional[AppSecurityGroupManagement], default:None) –The entity that creates and manages the required security groups for inter-app communication in
VPCOnlymode. Required whenCreateDomain.AppNetworkAccessTypeisVPCOnlyandDomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArnis provided. If setting up the domain for use with RStudio, this value must be set toService. -
default_space_settings(Optional[DefaultSpaceSettings], default:None) –The default settings for shared spaces that users create in the domain.
-
subnet_ids(Optional[Subnets], default:None) –The VPC subnets that Studio uses for communication.
If removing subnets, ensure there are no apps in the
InService,Pending, orDeletingstate. -
app_network_access_type(Optional[AppNetworkAccessType], default:None) –Specifies the VPC used for non-EFS traffic.
-
PublicInternetOnly- Non-EFS traffic is through a VPC managed by Amazon SageMaker AI, which allows direct internet access. -
VpcOnly- All Studio traffic is through the specified VPC and subnets.
This configuration can only be modified if there are no apps in the
InService,Pending, orDeletingstate. The configuration cannot be updated ifDomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArnis already set orDomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArnis provided as part of the same request. -
-
tag_propagation(Optional[TagPropagation], default:None) –Indicates whether custom tag propagation is supported for the domain. Defaults to
DISABLED. -
home_efs_file_system_creation(Optional[HomeEfsFileSystemCreation], default:None) –Indicates whether to create a home EFS file system for the domain. You can change from
DisabledtoEnabledto provision EFS on demand, but you cannot change fromEnabledtoDisabled. -
vpc_id(Optional[VpcId], default:None) –The identifier for the VPC used by the domain for network communication. Use this field only when adding VPC configuration to a SageMaker AI domain used in Amazon SageMaker Unified Studio that was created without VPC settings. SageMaker AI doesn't automatically apply VPC updates to existing applications. Stop and restart your applications to apply the changes.
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.
-
ResourceNotFound–Resource being access is not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
29964 29965 29966 29967 29968 29969 29970 29971 29972 29973 29974 29975 29976 29977 29978 29979 29980 29981 29982 29983 29984 29985 29986 29987 29988 29989 29990 29991 29992 29993 29994 29995 29996 29997 29998 29999 30000 30001 30002 30003 30004 30005 30006 30007 30008 30009 30010 30011 30012 30013 30014 30015 30016 30017 30018 30019 30020 30021 30022 30023 30024 30025 30026 30027 30028 30029 30030 30031 30032 30033 30034 30035 30036 30037 30038 30039 30040 30041 30042 30043 30044 30045 30046 30047 30048 30049 30050 30051 30052 30053 30054 30055 30056 30057 30058 30059 30060 | |