update_domain
¶
update_domain(
*,
config_overrides: Optional[SageMakerClientConfig] = 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/sage_maker.py
32679 32680 32681 32682 32683 32684 32685 32686 32687 32688 32689 32690 32691 32692 32693 32694 32695 32696 32697 32698 32699 32700 32701 32702 32703 32704 32705 32706 32707 32708 32709 32710 32711 32712 32713 32714 32715 32716 32717 32718 32719 32720 32721 32722 32723 32724 32725 32726 32727 32728 32729 32730 32731 32732 32733 32734 32735 32736 32737 32738 32739 32740 32741 32742 32743 32744 32745 32746 32747 32748 32749 32750 32751 32752 32753 32754 32755 32756 32757 32758 32759 32760 32761 32762 32763 32764 32765 32766 32767 32768 32769 32770 32771 32772 32773 32774 | |