public static interface CreateNotebookInstanceRequest.Builder extends SageMakerRequest.Builder, SdkPojo, CopyableBuilder<CreateNotebookInstanceRequest.Builder,CreateNotebookInstanceRequest>
Modifier and Type | Method and Description |
---|---|
CreateNotebookInstanceRequest.Builder |
acceleratorTypes(Collection<NotebookInstanceAcceleratorType> acceleratorTypes)
A list of Elastic Inference (EI) instance types to associate with this notebook instance.
|
CreateNotebookInstanceRequest.Builder |
acceleratorTypes(NotebookInstanceAcceleratorType... acceleratorTypes)
A list of Elastic Inference (EI) instance types to associate with this notebook instance.
|
CreateNotebookInstanceRequest.Builder |
acceleratorTypesWithStrings(Collection<String> acceleratorTypes)
A list of Elastic Inference (EI) instance types to associate with this notebook instance.
|
CreateNotebookInstanceRequest.Builder |
acceleratorTypesWithStrings(String... acceleratorTypes)
A list of Elastic Inference (EI) instance types to associate with this notebook instance.
|
CreateNotebookInstanceRequest.Builder |
additionalCodeRepositories(Collection<String> additionalCodeRepositories)
An array of up to 3 git repositories to associate with the notebook instance.
|
CreateNotebookInstanceRequest.Builder |
additionalCodeRepositories(String... additionalCodeRepositories)
An array of up to 3 git repositories to associate with the notebook instance.
|
CreateNotebookInstanceRequest.Builder |
defaultCodeRepository(String defaultCodeRepository)
A git repository to associate with the notebook instance as its default code repository.
|
CreateNotebookInstanceRequest.Builder |
directInternetAccess(DirectInternetAccess directInternetAccess)
Sets whether Amazon SageMaker provides internet access to the notebook instance.
|
CreateNotebookInstanceRequest.Builder |
directInternetAccess(String directInternetAccess)
Sets whether Amazon SageMaker provides internet access to the notebook instance.
|
CreateNotebookInstanceRequest.Builder |
instanceType(InstanceType instanceType)
The type of ML compute instance to launch for the notebook instance.
|
CreateNotebookInstanceRequest.Builder |
instanceType(String instanceType)
The type of ML compute instance to launch for the notebook instance.
|
CreateNotebookInstanceRequest.Builder |
kmsKeyId(String kmsKeyId)
If you provide a AWS KMS key ID, Amazon SageMaker uses it to encrypt data at rest on the ML storage volume
that is attached to your notebook instance.
|
CreateNotebookInstanceRequest.Builder |
lifecycleConfigName(String lifecycleConfigName)
The name of a lifecycle configuration to associate with the notebook instance.
|
CreateNotebookInstanceRequest.Builder |
notebookInstanceName(String notebookInstanceName)
The name of the new notebook instance.
|
CreateNotebookInstanceRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CreateNotebookInstanceRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
CreateNotebookInstanceRequest.Builder |
roleArn(String roleArn)
When you send any requests to AWS resources from the notebook instance, Amazon SageMaker assumes this role to
perform tasks on your behalf.
|
CreateNotebookInstanceRequest.Builder |
securityGroupIds(Collection<String> securityGroupIds)
The VPC security group IDs, in the form sg-xxxxxxxx.
|
CreateNotebookInstanceRequest.Builder |
securityGroupIds(String... securityGroupIds)
The VPC security group IDs, in the form sg-xxxxxxxx.
|
CreateNotebookInstanceRequest.Builder |
subnetId(String subnetId)
The ID of the subnet in a VPC to which you would like to have a connectivity from your ML compute instance.
|
CreateNotebookInstanceRequest.Builder |
tags(Collection<Tag> tags)
A list of tags to associate with the notebook instance.
|
CreateNotebookInstanceRequest.Builder |
tags(Consumer<Tag.Builder>... tags)
A list of tags to associate with the notebook instance.
|
CreateNotebookInstanceRequest.Builder |
tags(Tag... tags)
A list of tags to associate with the notebook instance.
|
CreateNotebookInstanceRequest.Builder |
volumeSizeInGB(Integer volumeSizeInGB)
The size, in GB, of the ML storage volume to attach to the notebook instance.
|
build
overrideConfiguration
copy
applyMutation, build
CreateNotebookInstanceRequest.Builder notebookInstanceName(String notebookInstanceName)
The name of the new notebook instance.
notebookInstanceName
- The name of the new notebook instance.CreateNotebookInstanceRequest.Builder instanceType(String instanceType)
The type of ML compute instance to launch for the notebook instance.
instanceType
- The type of ML compute instance to launch for the notebook instance.InstanceType
,
InstanceType
CreateNotebookInstanceRequest.Builder instanceType(InstanceType instanceType)
The type of ML compute instance to launch for the notebook instance.
instanceType
- The type of ML compute instance to launch for the notebook instance.InstanceType
,
InstanceType
CreateNotebookInstanceRequest.Builder subnetId(String subnetId)
The ID of the subnet in a VPC to which you would like to have a connectivity from your ML compute instance.
subnetId
- The ID of the subnet in a VPC to which you would like to have a connectivity from your ML compute
instance.CreateNotebookInstanceRequest.Builder securityGroupIds(Collection<String> securityGroupIds)
The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must be for the same VPC as specified in the subnet.
securityGroupIds
- The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must be for the same VPC as
specified in the subnet.CreateNotebookInstanceRequest.Builder securityGroupIds(String... securityGroupIds)
The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must be for the same VPC as specified in the subnet.
securityGroupIds
- The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must be for the same VPC as
specified in the subnet.CreateNotebookInstanceRequest.Builder roleArn(String roleArn)
When you send any requests to AWS resources from the notebook instance, Amazon SageMaker assumes this role to perform tasks on your behalf. You must grant this role necessary permissions so Amazon SageMaker can perform these tasks. The policy must allow the Amazon SageMaker service principal (sagemaker.amazonaws.com) permissions to assume this role. For more information, see Amazon SageMaker Roles.
To be able to pass this role to Amazon SageMaker, the caller of this API must have the
iam:PassRole
permission.
roleArn
- When you send any requests to AWS resources from the notebook instance, Amazon SageMaker assumes this
role to perform tasks on your behalf. You must grant this role necessary permissions so Amazon
SageMaker can perform these tasks. The policy must allow the Amazon SageMaker service principal
(sagemaker.amazonaws.com) permissions to assume this role. For more information, see Amazon SageMaker Roles.
To be able to pass this role to Amazon SageMaker, the caller of this API must have the
iam:PassRole
permission.
CreateNotebookInstanceRequest.Builder kmsKeyId(String kmsKeyId)
If you provide a AWS KMS key ID, Amazon SageMaker uses it to encrypt data at rest on the ML storage volume that is attached to your notebook instance.
kmsKeyId
- If you provide a AWS KMS key ID, Amazon SageMaker uses it to encrypt data at rest on the ML storage
volume that is attached to your notebook instance.CreateNotebookInstanceRequest.Builder tags(Collection<Tag> tags)
A list of tags to associate with the notebook instance. You can add tags later by using the
CreateTags
API.
tags
- A list of tags to associate with the notebook instance. You can add tags later by using the
CreateTags
API.CreateNotebookInstanceRequest.Builder tags(Tag... tags)
A list of tags to associate with the notebook instance. You can add tags later by using the
CreateTags
API.
tags
- A list of tags to associate with the notebook instance. You can add tags later by using the
CreateTags
API.CreateNotebookInstanceRequest.Builder tags(Consumer<Tag.Builder>... tags)
A list of tags to associate with the notebook instance. You can add tags later by using the
CreateTags
API.
List.Builder
avoiding the need to create
one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #tags(List)
.tags
- a consumer that will call methods on List.Builder
#tags(List)
CreateNotebookInstanceRequest.Builder lifecycleConfigName(String lifecycleConfigName)
The name of a lifecycle configuration to associate with the notebook instance. For information about lifestyle configurations, see Step 2.1: (Optional) Customize a Notebook Instance.
lifecycleConfigName
- The name of a lifecycle configuration to associate with the notebook instance. For information about
lifestyle configurations, see Step 2.1:
(Optional) Customize a Notebook Instance.CreateNotebookInstanceRequest.Builder directInternetAccess(String directInternetAccess)
Sets whether Amazon SageMaker provides internet access to the notebook instance. If you set this to
Disabled
this notebook instance will be able to access resources only in your VPC, and will not
be able to connect to Amazon SageMaker training and endpoint services unless your configure a NAT Gateway in
your VPC.
For more information, see Notebook Instances Are Internet-Enabled by Default. You can set the value of this parameter to
Disabled
only if you set a value for the SubnetId
parameter.
directInternetAccess
- Sets whether Amazon SageMaker provides internet access to the notebook instance. If you set this to
Disabled
this notebook instance will be able to access resources only in your VPC, and
will not be able to connect to Amazon SageMaker training and endpoint services unless your configure a
NAT Gateway in your VPC.
For more information, see Notebook Instances Are Internet-Enabled by Default. You can set the value of this parameter to
Disabled
only if you set a value for the SubnetId
parameter.
DirectInternetAccess
,
DirectInternetAccess
CreateNotebookInstanceRequest.Builder directInternetAccess(DirectInternetAccess directInternetAccess)
Sets whether Amazon SageMaker provides internet access to the notebook instance. If you set this to
Disabled
this notebook instance will be able to access resources only in your VPC, and will not
be able to connect to Amazon SageMaker training and endpoint services unless your configure a NAT Gateway in
your VPC.
For more information, see Notebook Instances Are Internet-Enabled by Default. You can set the value of this parameter to
Disabled
only if you set a value for the SubnetId
parameter.
directInternetAccess
- Sets whether Amazon SageMaker provides internet access to the notebook instance. If you set this to
Disabled
this notebook instance will be able to access resources only in your VPC, and
will not be able to connect to Amazon SageMaker training and endpoint services unless your configure a
NAT Gateway in your VPC.
For more information, see Notebook Instances Are Internet-Enabled by Default. You can set the value of this parameter to
Disabled
only if you set a value for the SubnetId
parameter.
DirectInternetAccess
,
DirectInternetAccess
CreateNotebookInstanceRequest.Builder volumeSizeInGB(Integer volumeSizeInGB)
The size, in GB, of the ML storage volume to attach to the notebook instance. The default value is 5 GB.
volumeSizeInGB
- The size, in GB, of the ML storage volume to attach to the notebook instance. The default value is 5
GB.CreateNotebookInstanceRequest.Builder acceleratorTypesWithStrings(Collection<String> acceleratorTypes)
A list of Elastic Inference (EI) instance types to associate with this notebook instance. Currently, only one instance type can be associated with a notebook intance. For more information, see Using Elastic Inference in Amazon SageMaker.
acceleratorTypes
- A list of Elastic Inference (EI) instance types to associate with this notebook instance. Currently,
only one instance type can be associated with a notebook intance. For more information, see Using Elastic Inference in Amazon
SageMaker.CreateNotebookInstanceRequest.Builder acceleratorTypesWithStrings(String... acceleratorTypes)
A list of Elastic Inference (EI) instance types to associate with this notebook instance. Currently, only one instance type can be associated with a notebook intance. For more information, see Using Elastic Inference in Amazon SageMaker.
acceleratorTypes
- A list of Elastic Inference (EI) instance types to associate with this notebook instance. Currently,
only one instance type can be associated with a notebook intance. For more information, see Using Elastic Inference in Amazon
SageMaker.CreateNotebookInstanceRequest.Builder acceleratorTypes(Collection<NotebookInstanceAcceleratorType> acceleratorTypes)
A list of Elastic Inference (EI) instance types to associate with this notebook instance. Currently, only one instance type can be associated with a notebook intance. For more information, see Using Elastic Inference in Amazon SageMaker.
acceleratorTypes
- A list of Elastic Inference (EI) instance types to associate with this notebook instance. Currently,
only one instance type can be associated with a notebook intance. For more information, see Using Elastic Inference in Amazon
SageMaker.CreateNotebookInstanceRequest.Builder acceleratorTypes(NotebookInstanceAcceleratorType... acceleratorTypes)
A list of Elastic Inference (EI) instance types to associate with this notebook instance. Currently, only one instance type can be associated with a notebook intance. For more information, see Using Elastic Inference in Amazon SageMaker.
acceleratorTypes
- A list of Elastic Inference (EI) instance types to associate with this notebook instance. Currently,
only one instance type can be associated with a notebook intance. For more information, see Using Elastic Inference in Amazon
SageMaker.CreateNotebookInstanceRequest.Builder defaultCodeRepository(String defaultCodeRepository)
A git repository to associate with the notebook instance as its default code repository. This can be either the name of a git repository stored as a resource in your account, or the URL of a git repository in AWS CodeCommit or in any other git repository. When you open a notebook instance, it opens in the directory that contains this repository. For more information, see Associating Git Repositories with Amazon SageMaker Notebook Instances.
defaultCodeRepository
- A git repository to associate with the notebook instance as its default code repository. This can be
either the name of a git repository stored as a resource in your account, or the URL of a git
repository in AWS
CodeCommit or in any other git repository. When you open a notebook instance, it opens in the
directory that contains this repository. For more information, see Associating Git Repositories
with Amazon SageMaker Notebook Instances.CreateNotebookInstanceRequest.Builder additionalCodeRepositories(Collection<String> additionalCodeRepositories)
An array of up to 3 git repositories to associate with the notebook instance. These can be either the names of git repositories stored as resources in your account, or the URL of git repositories in AWS CodeCommit or in any other git repository. These repositories are cloned at the same level as the default repository of your notebook instance. For more information, see Associating Git Repositories with Amazon SageMaker Notebook Instances.
additionalCodeRepositories
- An array of up to 3 git repositories to associate with the notebook instance. These can be either the
names of git repositories stored as resources in your account, or the URL of git repositories in AWS CodeCommit or in
any other git repository. These repositories are cloned at the same level as the default repository of
your notebook instance. For more information, see Associating Git Repositories
with Amazon SageMaker Notebook Instances.CreateNotebookInstanceRequest.Builder additionalCodeRepositories(String... additionalCodeRepositories)
An array of up to 3 git repositories to associate with the notebook instance. These can be either the names of git repositories stored as resources in your account, or the URL of git repositories in AWS CodeCommit or in any other git repository. These repositories are cloned at the same level as the default repository of your notebook instance. For more information, see Associating Git Repositories with Amazon SageMaker Notebook Instances.
additionalCodeRepositories
- An array of up to 3 git repositories to associate with the notebook instance. These can be either the
names of git repositories stored as resources in your account, or the URL of git repositories in AWS CodeCommit or in
any other git repository. These repositories are cloned at the same level as the default repository of
your notebook instance. For more information, see Associating Git Repositories
with Amazon SageMaker Notebook Instances.CreateNotebookInstanceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreateNotebookInstanceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.