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
29579 29580 29581 29582 29583 29584 29585 29586 29587 29588 29589 29590 29591 29592 29593 29594 29595 29596 29597 29598 29599 29600 29601 29602 29603 29604 29605 29606 29607 29608 29609 29610 29611 29612 29613 29614 29615 29616 29617 29618 29619 29620 29621 29622 29623 29624 29625 29626 29627 29628 29629 29630 29631 29632 29633 29634 29635 29636 29637 29638 29639 29640 29641 29642 29643 29644 29645 29646 29647 29648 29649 29650 29651 29652 29653 29654 29655 29656 29657 29658 29659 29660 29661 29662 29663 29664 29665 29666 29667 29668 29669 29670 29671 29672 29673 29674 | |