amazonka-sagemaker-1.6.1: Amazon SageMaker Service SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.SageMaker.CreateNotebookInstance

Contents

Description

Creates an Amazon SageMaker notebook instance. A notebook instance is a machine learning (ML) compute instance running on a Jupyter notebook.

In a CreateNotebookInstance request, specify the type of ML compute instance that you want to run. Amazon SageMaker launches the instance, installs common libraries that you can use to explore datasets for model training, and attaches an ML storage volume to the notebook instance.

Amazon SageMaker also provides a set of example notebooks. Each notebook demonstrates how to use Amazon SageMaker with a specific algorithm or with a machine learning framework.

After receiving the request, Amazon SageMaker does the following:

  • Creates a network interface in the Amazon SageMaker VPC.
  • (Option) If you specified SubnetId , Amazon SageMaker creates a network interface in your own VPC, which is inferred from the subnet ID that you provide in the input. When creating this network interface, Amazon SageMaker attaches the security group that you specified in the request to the network interface that it creates in your VPC.
  • Launches an EC2 instance of the type specified in the request in the Amazon SageMaker VPC. If you specified SubnetId of your VPC, Amazon SageMaker specifies both network interfaces when launching this instance. This enables inbound traffic from your own VPC to the notebook instance, assuming that the security groups allow it.

After creating the notebook instance, Amazon SageMaker returns its Amazon Resource Name (ARN).

After Amazon SageMaker creates the notebook instance, you can connect to the Jupyter server and work in Jupyter notebooks. For example, you can write code to explore a dataset that you can use for model training, train a model, host models by creating Amazon SageMaker endpoints, and validate hosted models.

For more information, see How It Works .

Synopsis

Creating a Request

createNotebookInstance Source #

Creates a value of CreateNotebookInstance with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • cniSecurityGroupIds - The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must be for the same VPC as specified in the subnet.
  • cniLifecycleConfigName - The name of a lifecycle configuration to associate with the notebook instance. For information about lifestyle configurations, see 'notebook-lifecycle-config' .
  • cniSubnetId - The ID of the subnet in a VPC to which you would like to have a connectivity from your ML compute instance.
  • cniKMSKeyId - 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.
  • cniDirectInternetAccess - 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 'appendix-notebook-and-internet-access' . You can set the value of this parameter to Disabled only if you set a value for the SubnetId parameter.
  • cniTags - A list of tags to associate with the notebook instance. You can add tags later by using the CreateTags API.
  • cniNotebookInstanceName - The name of the new notebook instance.
  • cniInstanceType - The type of ML compute instance to launch for the notebook instance.
  • cniRoleARN - 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 .

data CreateNotebookInstance Source #

See: createNotebookInstance smart constructor.

Instances
Eq CreateNotebookInstance Source # 
Instance details

Defined in Network.AWS.SageMaker.CreateNotebookInstance

Data CreateNotebookInstance Source # 
Instance details

Defined in Network.AWS.SageMaker.CreateNotebookInstance

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateNotebookInstance -> c CreateNotebookInstance #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateNotebookInstance #

toConstr :: CreateNotebookInstance -> Constr #

dataTypeOf :: CreateNotebookInstance -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateNotebookInstance) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateNotebookInstance) #

gmapT :: (forall b. Data b => b -> b) -> CreateNotebookInstance -> CreateNotebookInstance #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateNotebookInstance -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateNotebookInstance -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateNotebookInstance -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateNotebookInstance -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateNotebookInstance -> m CreateNotebookInstance #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateNotebookInstance -> m CreateNotebookInstance #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateNotebookInstance -> m CreateNotebookInstance #

Read CreateNotebookInstance Source # 
Instance details

Defined in Network.AWS.SageMaker.CreateNotebookInstance

Show CreateNotebookInstance Source # 
Instance details

Defined in Network.AWS.SageMaker.CreateNotebookInstance

Generic CreateNotebookInstance Source # 
Instance details

Defined in Network.AWS.SageMaker.CreateNotebookInstance

Associated Types

type Rep CreateNotebookInstance :: Type -> Type #

Hashable CreateNotebookInstance Source # 
Instance details

Defined in Network.AWS.SageMaker.CreateNotebookInstance

ToJSON CreateNotebookInstance Source # 
Instance details

Defined in Network.AWS.SageMaker.CreateNotebookInstance

AWSRequest CreateNotebookInstance Source # 
Instance details

Defined in Network.AWS.SageMaker.CreateNotebookInstance

Associated Types

type Rs CreateNotebookInstance :: Type #

ToHeaders CreateNotebookInstance Source # 
Instance details

Defined in Network.AWS.SageMaker.CreateNotebookInstance

ToPath CreateNotebookInstance Source # 
Instance details

Defined in Network.AWS.SageMaker.CreateNotebookInstance

ToQuery CreateNotebookInstance Source # 
Instance details

Defined in Network.AWS.SageMaker.CreateNotebookInstance

NFData CreateNotebookInstance Source # 
Instance details

Defined in Network.AWS.SageMaker.CreateNotebookInstance

Methods

rnf :: CreateNotebookInstance -> () #

type Rep CreateNotebookInstance Source # 
Instance details

Defined in Network.AWS.SageMaker.CreateNotebookInstance

type Rep CreateNotebookInstance = D1 (MetaData "CreateNotebookInstance" "Network.AWS.SageMaker.CreateNotebookInstance" "amazonka-sagemaker-1.6.1-KSR3FgWuE9u23bvJsHopKu" False) (C1 (MetaCons "CreateNotebookInstance'" PrefixI True) (((S1 (MetaSel (Just "_cniSecurityGroupIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_cniLifecycleConfigName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_cniSubnetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cniKMSKeyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_cniDirectInternetAccess") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DirectInternetAccess)) :*: S1 (MetaSel (Just "_cniTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Tag]))) :*: (S1 (MetaSel (Just "_cniNotebookInstanceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_cniInstanceType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 InstanceType) :*: S1 (MetaSel (Just "_cniRoleARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs CreateNotebookInstance Source # 
Instance details

Defined in Network.AWS.SageMaker.CreateNotebookInstance

Request Lenses

cniSecurityGroupIds :: Lens' CreateNotebookInstance [Text] Source #

The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must be for the same VPC as specified in the subnet.

cniLifecycleConfigName :: Lens' CreateNotebookInstance (Maybe Text) Source #

The name of a lifecycle configuration to associate with the notebook instance. For information about lifestyle configurations, see 'notebook-lifecycle-config' .

cniSubnetId :: Lens' CreateNotebookInstance (Maybe Text) Source #

The ID of the subnet in a VPC to which you would like to have a connectivity from your ML compute instance.

cniKMSKeyId :: Lens' CreateNotebookInstance (Maybe Text) Source #

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.

cniDirectInternetAccess :: Lens' CreateNotebookInstance (Maybe DirectInternetAccess) Source #

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 'appendix-notebook-and-internet-access' . You can set the value of this parameter to Disabled only if you set a value for the SubnetId parameter.

cniTags :: Lens' CreateNotebookInstance [Tag] Source #

A list of tags to associate with the notebook instance. You can add tags later by using the CreateTags API.

cniNotebookInstanceName :: Lens' CreateNotebookInstance Text Source #

The name of the new notebook instance.

cniInstanceType :: Lens' CreateNotebookInstance InstanceType Source #

The type of ML compute instance to launch for the notebook instance.

cniRoleARN :: Lens' CreateNotebookInstance Text Source #

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 .

Destructuring the Response

createNotebookInstanceResponse Source #

Creates a value of CreateNotebookInstanceResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateNotebookInstanceResponse Source #

See: createNotebookInstanceResponse smart constructor.

Instances
Eq CreateNotebookInstanceResponse Source # 
Instance details

Defined in Network.AWS.SageMaker.CreateNotebookInstance

Data CreateNotebookInstanceResponse Source # 
Instance details

Defined in Network.AWS.SageMaker.CreateNotebookInstance

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateNotebookInstanceResponse -> c CreateNotebookInstanceResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateNotebookInstanceResponse #

toConstr :: CreateNotebookInstanceResponse -> Constr #

dataTypeOf :: CreateNotebookInstanceResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateNotebookInstanceResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateNotebookInstanceResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateNotebookInstanceResponse -> CreateNotebookInstanceResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateNotebookInstanceResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateNotebookInstanceResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateNotebookInstanceResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateNotebookInstanceResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateNotebookInstanceResponse -> m CreateNotebookInstanceResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateNotebookInstanceResponse -> m CreateNotebookInstanceResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateNotebookInstanceResponse -> m CreateNotebookInstanceResponse #

Read CreateNotebookInstanceResponse Source # 
Instance details

Defined in Network.AWS.SageMaker.CreateNotebookInstance

Show CreateNotebookInstanceResponse Source # 
Instance details

Defined in Network.AWS.SageMaker.CreateNotebookInstance

Generic CreateNotebookInstanceResponse Source # 
Instance details

Defined in Network.AWS.SageMaker.CreateNotebookInstance

Associated Types

type Rep CreateNotebookInstanceResponse :: Type -> Type #

NFData CreateNotebookInstanceResponse Source # 
Instance details

Defined in Network.AWS.SageMaker.CreateNotebookInstance

type Rep CreateNotebookInstanceResponse Source # 
Instance details

Defined in Network.AWS.SageMaker.CreateNotebookInstance

type Rep CreateNotebookInstanceResponse = D1 (MetaData "CreateNotebookInstanceResponse" "Network.AWS.SageMaker.CreateNotebookInstance" "amazonka-sagemaker-1.6.1-KSR3FgWuE9u23bvJsHopKu" False) (C1 (MetaCons "CreateNotebookInstanceResponse'" PrefixI True) (S1 (MetaSel (Just "_cnirsNotebookInstanceARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cnirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

cnirsNotebookInstanceARN :: Lens' CreateNotebookInstanceResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the notebook instance.