#[non_exhaustive]pub struct CreateNotebookInstanceInput {Show 15 fields
pub notebook_instance_name: Option<String>,
pub instance_type: Option<InstanceType>,
pub subnet_id: Option<String>,
pub security_group_ids: Option<Vec<String>>,
pub role_arn: Option<String>,
pub kms_key_id: Option<String>,
pub tags: Option<Vec<Tag>>,
pub lifecycle_config_name: Option<String>,
pub direct_internet_access: Option<DirectInternetAccess>,
pub volume_size_in_gb: Option<i32>,
pub accelerator_types: Option<Vec<NotebookInstanceAcceleratorType>>,
pub default_code_repository: Option<String>,
pub additional_code_repositories: Option<Vec<String>>,
pub root_access: Option<RootAccess>,
pub platform_identifier: Option<String>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.notebook_instance_name: Option<String>
The name of the new notebook instance.
instance_type: Option<InstanceType>
The type of ML compute instance to launch for the notebook instance.
subnet_id: Option<String>
The ID of the subnet in a VPC to which you would like to have a connectivity from your ML compute instance.
security_group_ids: Option<Vec<String>>
The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must be for the same VPC as specified in the subnet.
role_arn: Option<String>
When you send any requests to Amazon Web Services 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.
kms_key_id: Option<String>
The Amazon Resource Name (ARN) of a Amazon Web Services Key Management Service key that Amazon SageMaker uses to encrypt data on the storage volume attached to your notebook instance. The KMS key you provide must be enabled. For information, see Enabling and Disabling Keys in the Amazon Web Services Key Management Service Developer Guide.
An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.
lifecycle_config_name: Option<String>
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.
direct_internet_access: Option<DirectInternetAccess>
Sets whether Amazon SageMaker provides internet access to the notebook instance. If you set this to Disabled
this notebook instance is able to access resources only in your VPC, and is not be able to connect to Amazon SageMaker training and endpoint services unless you 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.
volume_size_in_gb: Option<i32>
The size, in GB, of the ML storage volume to attach to the notebook instance. The default value is 5 GB.
accelerator_types: Option<Vec<NotebookInstanceAcceleratorType>>
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 instance. For more information, see Using Elastic Inference in Amazon SageMaker.
default_code_repository: Option<String>
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 Amazon Web Services 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.
additional_code_repositories: Option<Vec<String>>
An array of up to three 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 Amazon Web Services 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.
root_access: Option<RootAccess>
Whether root access is enabled or disabled for users of the notebook instance. The default value is Enabled
.
Lifecycle configurations need root access to be able to set up a notebook instance. Because of this, lifecycle configurations associated with a notebook instance always run with root access even if you disable root access for users.
platform_identifier: Option<String>
The platform identifier of the notebook instance runtime environment.
Implementations
sourceimpl CreateNotebookInstanceInput
impl CreateNotebookInstanceInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateNotebookInstance, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateNotebookInstance, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<CreateNotebookInstance
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateNotebookInstanceInput
sourceimpl CreateNotebookInstanceInput
impl CreateNotebookInstanceInput
sourcepub fn notebook_instance_name(&self) -> Option<&str>
pub fn notebook_instance_name(&self) -> Option<&str>
The name of the new notebook instance.
sourcepub fn instance_type(&self) -> Option<&InstanceType>
pub fn instance_type(&self) -> Option<&InstanceType>
The type of ML compute instance to launch for the notebook instance.
sourcepub fn subnet_id(&self) -> Option<&str>
pub fn subnet_id(&self) -> Option<&str>
The ID of the subnet in a VPC to which you would like to have a connectivity from your ML compute instance.
sourcepub fn security_group_ids(&self) -> Option<&[String]>
pub fn security_group_ids(&self) -> Option<&[String]>
The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must be for the same VPC as specified in the subnet.
sourcepub fn role_arn(&self) -> Option<&str>
pub fn role_arn(&self) -> Option<&str>
When you send any requests to Amazon Web Services 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.
sourcepub fn kms_key_id(&self) -> Option<&str>
pub fn kms_key_id(&self) -> Option<&str>
The Amazon Resource Name (ARN) of a Amazon Web Services Key Management Service key that Amazon SageMaker uses to encrypt data on the storage volume attached to your notebook instance. The KMS key you provide must be enabled. For information, see Enabling and Disabling Keys in the Amazon Web Services Key Management Service Developer Guide.
An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.
sourcepub fn lifecycle_config_name(&self) -> Option<&str>
pub fn lifecycle_config_name(&self) -> Option<&str>
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.
sourcepub fn direct_internet_access(&self) -> Option<&DirectInternetAccess>
pub fn direct_internet_access(&self) -> Option<&DirectInternetAccess>
Sets whether Amazon SageMaker provides internet access to the notebook instance. If you set this to Disabled
this notebook instance is able to access resources only in your VPC, and is not be able to connect to Amazon SageMaker training and endpoint services unless you 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.
sourcepub fn volume_size_in_gb(&self) -> Option<i32>
pub fn volume_size_in_gb(&self) -> Option<i32>
The size, in GB, of the ML storage volume to attach to the notebook instance. The default value is 5 GB.
sourcepub fn accelerator_types(&self) -> Option<&[NotebookInstanceAcceleratorType]>
pub fn accelerator_types(&self) -> Option<&[NotebookInstanceAcceleratorType]>
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 instance. For more information, see Using Elastic Inference in Amazon SageMaker.
sourcepub fn default_code_repository(&self) -> Option<&str>
pub fn default_code_repository(&self) -> Option<&str>
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 Amazon Web Services 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.
sourcepub fn additional_code_repositories(&self) -> Option<&[String]>
pub fn additional_code_repositories(&self) -> Option<&[String]>
An array of up to three 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 Amazon Web Services 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.
sourcepub fn root_access(&self) -> Option<&RootAccess>
pub fn root_access(&self) -> Option<&RootAccess>
Whether root access is enabled or disabled for users of the notebook instance. The default value is Enabled
.
Lifecycle configurations need root access to be able to set up a notebook instance. Because of this, lifecycle configurations associated with a notebook instance always run with root access even if you disable root access for users.
sourcepub fn platform_identifier(&self) -> Option<&str>
pub fn platform_identifier(&self) -> Option<&str>
The platform identifier of the notebook instance runtime environment.
Trait Implementations
sourceimpl Clone for CreateNotebookInstanceInput
impl Clone for CreateNotebookInstanceInput
sourcefn clone(&self) -> CreateNotebookInstanceInput
fn clone(&self) -> CreateNotebookInstanceInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CreateNotebookInstanceInput
impl Debug for CreateNotebookInstanceInput
sourceimpl PartialEq<CreateNotebookInstanceInput> for CreateNotebookInstanceInput
impl PartialEq<CreateNotebookInstanceInput> for CreateNotebookInstanceInput
sourcefn eq(&self, other: &CreateNotebookInstanceInput) -> bool
fn eq(&self, other: &CreateNotebookInstanceInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CreateNotebookInstanceInput) -> bool
fn ne(&self, other: &CreateNotebookInstanceInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for CreateNotebookInstanceInput
Auto Trait Implementations
impl RefUnwindSafe for CreateNotebookInstanceInput
impl Send for CreateNotebookInstanceInput
impl Sync for CreateNotebookInstanceInput
impl Unpin for CreateNotebookInstanceInput
impl UnwindSafe for CreateNotebookInstanceInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more