AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Creates a Domain
. A domain consists of an associated Amazon Elastic File System
volume, a list of authorized users, and a variety of security, application, policy,
and Amazon Virtual Private Cloud (VPC) configurations. Users within a domain can share
notebook files and other artifacts with each other.
EFS storage
When a domain is created, an EFS volume is created for use by all of the users within the domain. Each user receives a private home directory within the EFS volume for notebooks, Git repositories, and data files.
SageMaker uses the Amazon Web Services Key Management Service (Amazon Web Services KMS) to encrypt the EFS volume attached to the domain with an Amazon Web Services managed key by default. For more control, you can specify a customer managed key. For more information, see Protect Data at Rest Using Encryption.
VPC configuration
All traffic between the domain and the Amazon EFS volume is through the specified
VPC and subnets. For other traffic, you can specify the AppNetworkAccessType
parameter. AppNetworkAccessType
corresponds to the network access type that
you choose when you onboard to the domain. The following options are available:
PublicInternetOnly
- Non-EFS traffic goes through a VPC managed by Amazon
SageMaker, which allows internet access. This is the default value.
VpcOnly
- All traffic is through the specified VPC and subnets. Internet access
is disabled by default. To allow internet access, you must specify a NAT gateway.
When internet access is disabled, you won't be able to run a Amazon SageMaker Studio notebook or to train or host models unless your VPC has an interface endpoint to the SageMaker API and runtime or a NAT gateway and your security groups allow outbound connections.
NFS traffic over TCP on port 2049 needs to be allowed in both inbound and outbound rules in order to launch a Amazon SageMaker Studio app successfully.
For more information, see Connect Amazon SageMaker Studio Notebooks to Resources in a VPC.
For .NET Core this operation is only available in asynchronous form. Please refer to CreateDomainAsync.
Namespace: Amazon.SageMaker
Assembly: AWSSDK.SageMaker.dll
Version: 3.x.y.z
public virtual CreateDomainResponse CreateDomain( CreateDomainRequest request )
Container for the necessary parameters to execute the CreateDomain service method.
Exception | Condition |
---|---|
ResourceInUseException | Resource being accessed is in use. |
ResourceLimitExceededException | You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created. |
.NET Framework:
Supported in: 4.5, 4.0, 3.5