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
33103 33104 33105 33106 33107 33108 33109 33110 33111 33112 33113 33114 33115 33116 33117 33118 33119 33120 33121 33122 33123 33124 33125 33126 33127 33128 33129 33130 33131 33132 33133 33134 33135 33136 33137 33138 33139 33140 33141 33142 33143 33144 33145 33146 33147 33148 33149 33150 33151 33152 33153 33154 33155 33156 33157 33158 33159 33160 33161 33162 33163 33164 33165 33166 33167 33168 33169 33170 33171 33172 33173 33174 33175 33176 33177 33178 33179 33180 33181 33182 33183 33184 33185 33186 33187 33188 33189 33190 33191 33192 33193 33194 33195 33196 33197 33198 33199 | |