aws-sdk-sagemaker 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-sagemaker.rb +1 -1
- data/lib/aws-sdk-sagemaker/client.rb +280 -17
- data/lib/aws-sdk-sagemaker/client_api.rb +131 -0
- data/lib/aws-sdk-sagemaker/types.rb +387 -13
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cdf9d959f88a616741bbb8008e6f4ee32831900
|
4
|
+
data.tar.gz: 51f1ef2c63ed39bd9ab2eb3a8d5187f55ccf9f70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fab1a3f8f2c16478f00594e5be237a954d6dabb2e850586df9665c87a7fa19fc09a70bc9a83d96940f4cc2cc37c58d1e3f30bfeb288b1fd2bf1bcef30d71283
|
7
|
+
data.tar.gz: aa890b343d49eaf113928b68ef06feae981c9180a6cac1318779ec53063b24907619ff40cc997df438cfb10b56ac03e4ebe3ba7ce47ffe68bb155da813da00e5
|
data/lib/aws-sdk-sagemaker.rb
CHANGED
@@ -472,27 +472,29 @@ module Aws::SageMaker
|
|
472
472
|
end
|
473
473
|
|
474
474
|
# Creates an Amazon SageMaker notebook instance. A notebook instance is
|
475
|
-
#
|
475
|
+
# a machine learning (ML) compute instance running on a Jupyter
|
476
|
+
# notebook.
|
476
477
|
#
|
477
|
-
# In a `CreateNotebookInstance` request,
|
478
|
-
#
|
479
|
-
#
|
480
|
-
#
|
481
|
-
#
|
478
|
+
# In a `CreateNotebookInstance` request, specify the type of ML compute
|
479
|
+
# instance that you want to run. Amazon SageMaker launches the instance,
|
480
|
+
# installs common libraries that you can use to explore datasets for
|
481
|
+
# model training, and attaches an ML storage volume to the notebook
|
482
|
+
# instance.
|
482
483
|
#
|
483
484
|
# Amazon SageMaker also provides a set of example notebooks. Each
|
484
|
-
# notebook demonstrates how to use Amazon SageMaker with a specific
|
485
|
+
# notebook demonstrates how to use Amazon SageMaker with a specific
|
485
486
|
# algorithm or with a machine learning framework.
|
486
487
|
#
|
487
488
|
# After receiving the request, Amazon SageMaker does the following:
|
488
489
|
#
|
489
490
|
# 1. Creates a network interface in the Amazon SageMaker VPC.
|
490
491
|
#
|
491
|
-
# 2. (Option) If you specified `SubnetId`, creates a
|
492
|
-
# in your own VPC, which is inferred from the
|
493
|
-
# provide in the input. When creating this
|
494
|
-
# SageMaker attaches the security group
|
495
|
-
# request to the network interface that it
|
492
|
+
# 2. (Option) If you specified `SubnetId`, Amazon SageMaker creates a
|
493
|
+
# network interface in your own VPC, which is inferred from the
|
494
|
+
# subnet ID that you provide in the input. When creating this
|
495
|
+
# network interface, Amazon SageMaker attaches the security group
|
496
|
+
# that you specified in the request to the network interface that it
|
497
|
+
# creates in your VPC.
|
496
498
|
#
|
497
499
|
# 3. Launches an EC2 instance of the type specified in the request in
|
498
500
|
# the Amazon SageMaker VPC. If you specified `SubnetId` of your VPC,
|
@@ -551,6 +553,22 @@ module Aws::SageMaker
|
|
551
553
|
# A list of tags to associate with the notebook instance. You can add
|
552
554
|
# tags later by using the `CreateTags` API.
|
553
555
|
#
|
556
|
+
# @option params [String] :lifecycle_config_name
|
557
|
+
# The name of a lifecycle configuration to associate with the notebook
|
558
|
+
# instance. For information about lifestyle configurations, see
|
559
|
+
# notebook-lifecycle-config.
|
560
|
+
#
|
561
|
+
# @option params [String] :direct_internet_access
|
562
|
+
# Sets whether Amazon SageMaker provides internet access to the notebook
|
563
|
+
# instance. If you set this to `Disabled` this notebook instance will be
|
564
|
+
# able to access resources only in your VPC, and will not be able to
|
565
|
+
# connect to Amazon SageMaker training and endpoint services unless your
|
566
|
+
# configure a NAT Gateway in your VPC.
|
567
|
+
#
|
568
|
+
# For more information, see appendix-notebook-and-internet-access. You
|
569
|
+
# can set the value of this parameter to `Disabled` only if you set a
|
570
|
+
# value for the `SubnetId` parameter.
|
571
|
+
#
|
554
572
|
# @return [Types::CreateNotebookInstanceOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
555
573
|
#
|
556
574
|
# * {Types::CreateNotebookInstanceOutput#notebook_instance_arn #notebook_instance_arn} => String
|
@@ -559,7 +577,7 @@ module Aws::SageMaker
|
|
559
577
|
#
|
560
578
|
# resp = client.create_notebook_instance({
|
561
579
|
# notebook_instance_name: "NotebookInstanceName", # required
|
562
|
-
# instance_type: "ml.t2.medium", # required, accepts ml.t2.medium, ml.m4.xlarge, ml.p2.xlarge
|
580
|
+
# instance_type: "ml.t2.medium", # required, accepts ml.t2.medium, ml.m4.xlarge, ml.p2.xlarge, ml.p3.2xlarge
|
563
581
|
# subnet_id: "SubnetId",
|
564
582
|
# security_group_ids: ["SecurityGroupId"],
|
565
583
|
# role_arn: "RoleArn", # required
|
@@ -570,6 +588,8 @@ module Aws::SageMaker
|
|
570
588
|
# value: "TagValue", # required
|
571
589
|
# },
|
572
590
|
# ],
|
591
|
+
# lifecycle_config_name: "NotebookInstanceLifecycleConfigName",
|
592
|
+
# direct_internet_access: "Enabled", # accepts Enabled, Disabled
|
573
593
|
# })
|
574
594
|
#
|
575
595
|
# @example Response structure
|
@@ -585,6 +605,57 @@ module Aws::SageMaker
|
|
585
605
|
req.send_request(options)
|
586
606
|
end
|
587
607
|
|
608
|
+
# Creates a lifecycle configuration that you can associate with a
|
609
|
+
# notebook instance. A *lifecycle configuration* is a collection of
|
610
|
+
# shell scripts that run when you create or start a notebook instance.
|
611
|
+
#
|
612
|
+
# For information about notebook instance lifestyle configurations, see
|
613
|
+
# notebook-lifecycle-config.
|
614
|
+
#
|
615
|
+
# @option params [required, String] :notebook_instance_lifecycle_config_name
|
616
|
+
# The name of the lifecycle configuration.
|
617
|
+
#
|
618
|
+
# @option params [Array<Types::NotebookInstanceLifecycleHook>] :on_create
|
619
|
+
# A shell script that runs only once, when you create a notebook
|
620
|
+
# instance.
|
621
|
+
#
|
622
|
+
# @option params [Array<Types::NotebookInstanceLifecycleHook>] :on_start
|
623
|
+
# A shell script that runs every time you start a notebook instance,
|
624
|
+
# including when you create the notebook instance.
|
625
|
+
#
|
626
|
+
# @return [Types::CreateNotebookInstanceLifecycleConfigOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
627
|
+
#
|
628
|
+
# * {Types::CreateNotebookInstanceLifecycleConfigOutput#notebook_instance_lifecycle_config_arn #notebook_instance_lifecycle_config_arn} => String
|
629
|
+
#
|
630
|
+
# @example Request syntax with placeholder values
|
631
|
+
#
|
632
|
+
# resp = client.create_notebook_instance_lifecycle_config({
|
633
|
+
# notebook_instance_lifecycle_config_name: "NotebookInstanceLifecycleConfigName", # required
|
634
|
+
# on_create: [
|
635
|
+
# {
|
636
|
+
# content: "NotebookInstanceLifecycleConfigContent",
|
637
|
+
# },
|
638
|
+
# ],
|
639
|
+
# on_start: [
|
640
|
+
# {
|
641
|
+
# content: "NotebookInstanceLifecycleConfigContent",
|
642
|
+
# },
|
643
|
+
# ],
|
644
|
+
# })
|
645
|
+
#
|
646
|
+
# @example Response structure
|
647
|
+
#
|
648
|
+
# resp.notebook_instance_lifecycle_config_arn #=> String
|
649
|
+
#
|
650
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateNotebookInstanceLifecycleConfig AWS API Documentation
|
651
|
+
#
|
652
|
+
# @overload create_notebook_instance_lifecycle_config(params = {})
|
653
|
+
# @param [Hash] params ({})
|
654
|
+
def create_notebook_instance_lifecycle_config(params = {}, options = {})
|
655
|
+
req = build_request(:create_notebook_instance_lifecycle_config, params)
|
656
|
+
req.send_request(options)
|
657
|
+
end
|
658
|
+
|
588
659
|
# Returns a URL that you can use to connect to the Juypter server from a
|
589
660
|
# notebook instance. In the Amazon SageMaker console, when you choose
|
590
661
|
# `Open` next to a notebook instance, Amazon SageMaker opens a new tab
|
@@ -935,6 +1006,28 @@ module Aws::SageMaker
|
|
935
1006
|
req.send_request(options)
|
936
1007
|
end
|
937
1008
|
|
1009
|
+
# Deletes a notebook instance lifecycle configuration.
|
1010
|
+
#
|
1011
|
+
# @option params [required, String] :notebook_instance_lifecycle_config_name
|
1012
|
+
# The name of the lifecycle configuration to delete.
|
1013
|
+
#
|
1014
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1015
|
+
#
|
1016
|
+
# @example Request syntax with placeholder values
|
1017
|
+
#
|
1018
|
+
# resp = client.delete_notebook_instance_lifecycle_config({
|
1019
|
+
# notebook_instance_lifecycle_config_name: "NotebookInstanceLifecycleConfigName", # required
|
1020
|
+
# })
|
1021
|
+
#
|
1022
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstanceLifecycleConfig AWS API Documentation
|
1023
|
+
#
|
1024
|
+
# @overload delete_notebook_instance_lifecycle_config(params = {})
|
1025
|
+
# @param [Hash] params ({})
|
1026
|
+
def delete_notebook_instance_lifecycle_config(params = {}, options = {})
|
1027
|
+
req = build_request(:delete_notebook_instance_lifecycle_config, params)
|
1028
|
+
req.send_request(options)
|
1029
|
+
end
|
1030
|
+
|
938
1031
|
# Deletes the specified tags from an Amazon SageMaker resource.
|
939
1032
|
#
|
940
1033
|
# To list a resource's tags, use the `ListTags` API.
|
@@ -1113,6 +1206,8 @@ module Aws::SageMaker
|
|
1113
1206
|
# * {Types::DescribeNotebookInstanceOutput#network_interface_id #network_interface_id} => String
|
1114
1207
|
# * {Types::DescribeNotebookInstanceOutput#last_modified_time #last_modified_time} => Time
|
1115
1208
|
# * {Types::DescribeNotebookInstanceOutput#creation_time #creation_time} => Time
|
1209
|
+
# * {Types::DescribeNotebookInstanceOutput#notebook_instance_lifecycle_config_name #notebook_instance_lifecycle_config_name} => String
|
1210
|
+
# * {Types::DescribeNotebookInstanceOutput#direct_internet_access #direct_internet_access} => String
|
1116
1211
|
#
|
1117
1212
|
# @example Request syntax with placeholder values
|
1118
1213
|
#
|
@@ -1127,7 +1222,7 @@ module Aws::SageMaker
|
|
1127
1222
|
# resp.notebook_instance_status #=> String, one of "Pending", "InService", "Stopping", "Stopped", "Failed", "Deleting"
|
1128
1223
|
# resp.failure_reason #=> String
|
1129
1224
|
# resp.url #=> String
|
1130
|
-
# resp.instance_type #=> String, one of "ml.t2.medium", "ml.m4.xlarge", "ml.p2.xlarge"
|
1225
|
+
# resp.instance_type #=> String, one of "ml.t2.medium", "ml.m4.xlarge", "ml.p2.xlarge", "ml.p3.2xlarge"
|
1131
1226
|
# resp.subnet_id #=> String
|
1132
1227
|
# resp.security_groups #=> Array
|
1133
1228
|
# resp.security_groups[0] #=> String
|
@@ -1136,6 +1231,8 @@ module Aws::SageMaker
|
|
1136
1231
|
# resp.network_interface_id #=> String
|
1137
1232
|
# resp.last_modified_time #=> Time
|
1138
1233
|
# resp.creation_time #=> Time
|
1234
|
+
# resp.notebook_instance_lifecycle_config_name #=> String
|
1235
|
+
# resp.direct_internet_access #=> String, one of "Enabled", "Disabled"
|
1139
1236
|
#
|
1140
1237
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstance AWS API Documentation
|
1141
1238
|
#
|
@@ -1146,6 +1243,49 @@ module Aws::SageMaker
|
|
1146
1243
|
req.send_request(options)
|
1147
1244
|
end
|
1148
1245
|
|
1246
|
+
# Returns a description of a notebook instance lifecycle configuration.
|
1247
|
+
#
|
1248
|
+
# For information about notebook instance lifestyle configurations, see
|
1249
|
+
# notebook-lifecycle-config.
|
1250
|
+
#
|
1251
|
+
# @option params [required, String] :notebook_instance_lifecycle_config_name
|
1252
|
+
# The name of the lifecycle configuration to describe.
|
1253
|
+
#
|
1254
|
+
# @return [Types::DescribeNotebookInstanceLifecycleConfigOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1255
|
+
#
|
1256
|
+
# * {Types::DescribeNotebookInstanceLifecycleConfigOutput#notebook_instance_lifecycle_config_arn #notebook_instance_lifecycle_config_arn} => String
|
1257
|
+
# * {Types::DescribeNotebookInstanceLifecycleConfigOutput#notebook_instance_lifecycle_config_name #notebook_instance_lifecycle_config_name} => String
|
1258
|
+
# * {Types::DescribeNotebookInstanceLifecycleConfigOutput#on_create #on_create} => Array<Types::NotebookInstanceLifecycleHook>
|
1259
|
+
# * {Types::DescribeNotebookInstanceLifecycleConfigOutput#on_start #on_start} => Array<Types::NotebookInstanceLifecycleHook>
|
1260
|
+
# * {Types::DescribeNotebookInstanceLifecycleConfigOutput#last_modified_time #last_modified_time} => Time
|
1261
|
+
# * {Types::DescribeNotebookInstanceLifecycleConfigOutput#creation_time #creation_time} => Time
|
1262
|
+
#
|
1263
|
+
# @example Request syntax with placeholder values
|
1264
|
+
#
|
1265
|
+
# resp = client.describe_notebook_instance_lifecycle_config({
|
1266
|
+
# notebook_instance_lifecycle_config_name: "NotebookInstanceLifecycleConfigName", # required
|
1267
|
+
# })
|
1268
|
+
#
|
1269
|
+
# @example Response structure
|
1270
|
+
#
|
1271
|
+
# resp.notebook_instance_lifecycle_config_arn #=> String
|
1272
|
+
# resp.notebook_instance_lifecycle_config_name #=> String
|
1273
|
+
# resp.on_create #=> Array
|
1274
|
+
# resp.on_create[0].content #=> String
|
1275
|
+
# resp.on_start #=> Array
|
1276
|
+
# resp.on_start[0].content #=> String
|
1277
|
+
# resp.last_modified_time #=> Time
|
1278
|
+
# resp.creation_time #=> Time
|
1279
|
+
#
|
1280
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstanceLifecycleConfig AWS API Documentation
|
1281
|
+
#
|
1282
|
+
# @overload describe_notebook_instance_lifecycle_config(params = {})
|
1283
|
+
# @param [Hash] params ({})
|
1284
|
+
def describe_notebook_instance_lifecycle_config(params = {}, options = {})
|
1285
|
+
req = build_request(:describe_notebook_instance_lifecycle_config, params)
|
1286
|
+
req.send_request(options)
|
1287
|
+
end
|
1288
|
+
|
1149
1289
|
# Returns information about a training job.
|
1150
1290
|
#
|
1151
1291
|
# @option params [required, String] :training_job_name
|
@@ -1425,6 +1565,80 @@ module Aws::SageMaker
|
|
1425
1565
|
req.send_request(options)
|
1426
1566
|
end
|
1427
1567
|
|
1568
|
+
# Lists notebook instance lifestyle configurations created with the API.
|
1569
|
+
#
|
1570
|
+
# @option params [String] :next_token
|
1571
|
+
# If the result of a `ListNotebookInstanceLifecycleConfigs` request was
|
1572
|
+
# truncated, the response includes a `NextToken`. To get the next set of
|
1573
|
+
# lifecycle configurations, use the token in the next request.
|
1574
|
+
#
|
1575
|
+
# @option params [Integer] :max_results
|
1576
|
+
# The maximum number of lifecycle configurations to return in the
|
1577
|
+
# response.
|
1578
|
+
#
|
1579
|
+
# @option params [String] :sort_by
|
1580
|
+
# Sorts the list of results. The default is `CreationTime`.
|
1581
|
+
#
|
1582
|
+
# @option params [String] :sort_order
|
1583
|
+
# The sort order for results.
|
1584
|
+
#
|
1585
|
+
# @option params [String] :name_contains
|
1586
|
+
# A string in the lifecycle configuration name. This filter returns only
|
1587
|
+
# lifecycle configurations whose name contains the specified string.
|
1588
|
+
#
|
1589
|
+
# @option params [Time,DateTime,Date,Integer,String] :creation_time_before
|
1590
|
+
# A filter that returns only lifecycle configurations that were created
|
1591
|
+
# before the specified time (timestamp).
|
1592
|
+
#
|
1593
|
+
# @option params [Time,DateTime,Date,Integer,String] :creation_time_after
|
1594
|
+
# A filter that returns only lifecycle configurations that were created
|
1595
|
+
# after the specified time (timestamp).
|
1596
|
+
#
|
1597
|
+
# @option params [Time,DateTime,Date,Integer,String] :last_modified_time_before
|
1598
|
+
# A filter that returns only lifecycle configurations that were modified
|
1599
|
+
# before the specified time (timestamp).
|
1600
|
+
#
|
1601
|
+
# @option params [Time,DateTime,Date,Integer,String] :last_modified_time_after
|
1602
|
+
# A filter that returns only lifecycle configurations that were modified
|
1603
|
+
# after the specified time (timestamp).
|
1604
|
+
#
|
1605
|
+
# @return [Types::ListNotebookInstanceLifecycleConfigsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1606
|
+
#
|
1607
|
+
# * {Types::ListNotebookInstanceLifecycleConfigsOutput#next_token #next_token} => String
|
1608
|
+
# * {Types::ListNotebookInstanceLifecycleConfigsOutput#notebook_instance_lifecycle_configs #notebook_instance_lifecycle_configs} => Array<Types::NotebookInstanceLifecycleConfigSummary>
|
1609
|
+
#
|
1610
|
+
# @example Request syntax with placeholder values
|
1611
|
+
#
|
1612
|
+
# resp = client.list_notebook_instance_lifecycle_configs({
|
1613
|
+
# next_token: "NextToken",
|
1614
|
+
# max_results: 1,
|
1615
|
+
# sort_by: "Name", # accepts Name, CreationTime, LastModifiedTime
|
1616
|
+
# sort_order: "Ascending", # accepts Ascending, Descending
|
1617
|
+
# name_contains: "NotebookInstanceLifecycleConfigNameContains",
|
1618
|
+
# creation_time_before: Time.now,
|
1619
|
+
# creation_time_after: Time.now,
|
1620
|
+
# last_modified_time_before: Time.now,
|
1621
|
+
# last_modified_time_after: Time.now,
|
1622
|
+
# })
|
1623
|
+
#
|
1624
|
+
# @example Response structure
|
1625
|
+
#
|
1626
|
+
# resp.next_token #=> String
|
1627
|
+
# resp.notebook_instance_lifecycle_configs #=> Array
|
1628
|
+
# resp.notebook_instance_lifecycle_configs[0].notebook_instance_lifecycle_config_name #=> String
|
1629
|
+
# resp.notebook_instance_lifecycle_configs[0].notebook_instance_lifecycle_config_arn #=> String
|
1630
|
+
# resp.notebook_instance_lifecycle_configs[0].creation_time #=> Time
|
1631
|
+
# resp.notebook_instance_lifecycle_configs[0].last_modified_time #=> Time
|
1632
|
+
#
|
1633
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstanceLifecycleConfigs AWS API Documentation
|
1634
|
+
#
|
1635
|
+
# @overload list_notebook_instance_lifecycle_configs(params = {})
|
1636
|
+
# @param [Hash] params ({})
|
1637
|
+
def list_notebook_instance_lifecycle_configs(params = {}, options = {})
|
1638
|
+
req = build_request(:list_notebook_instance_lifecycle_configs, params)
|
1639
|
+
req.send_request(options)
|
1640
|
+
end
|
1641
|
+
|
1428
1642
|
# Returns a list of the Amazon SageMaker notebook instances in the
|
1429
1643
|
# requester's account in an AWS Region.
|
1430
1644
|
#
|
@@ -1473,6 +1687,12 @@ module Aws::SageMaker
|
|
1473
1687
|
# A filter that returns only notebook instances with the specified
|
1474
1688
|
# status.
|
1475
1689
|
#
|
1690
|
+
# @option params [String] :notebook_instance_lifecycle_config_name_contains
|
1691
|
+
# A string in the name of a notebook instances lifecycle configuration
|
1692
|
+
# associated with this notebook instance. This filter returns only
|
1693
|
+
# notebook instances associated with a lifecycle configuration with a
|
1694
|
+
# name that contains the specified string.
|
1695
|
+
#
|
1476
1696
|
# @return [Types::ListNotebookInstancesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1477
1697
|
#
|
1478
1698
|
# * {Types::ListNotebookInstancesOutput#next_token #next_token} => String
|
@@ -1491,6 +1711,7 @@ module Aws::SageMaker
|
|
1491
1711
|
# last_modified_time_before: Time.now,
|
1492
1712
|
# last_modified_time_after: Time.now,
|
1493
1713
|
# status_equals: "Pending", # accepts Pending, InService, Stopping, Stopped, Failed, Deleting
|
1714
|
+
# notebook_instance_lifecycle_config_name_contains: "NotebookInstanceLifecycleConfigName",
|
1494
1715
|
# })
|
1495
1716
|
#
|
1496
1717
|
# @example Response structure
|
@@ -1501,9 +1722,10 @@ module Aws::SageMaker
|
|
1501
1722
|
# resp.notebook_instances[0].notebook_instance_arn #=> String
|
1502
1723
|
# resp.notebook_instances[0].notebook_instance_status #=> String, one of "Pending", "InService", "Stopping", "Stopped", "Failed", "Deleting"
|
1503
1724
|
# resp.notebook_instances[0].url #=> String
|
1504
|
-
# resp.notebook_instances[0].instance_type #=> String, one of "ml.t2.medium", "ml.m4.xlarge", "ml.p2.xlarge"
|
1725
|
+
# resp.notebook_instances[0].instance_type #=> String, one of "ml.t2.medium", "ml.m4.xlarge", "ml.p2.xlarge", "ml.p3.2xlarge"
|
1505
1726
|
# resp.notebook_instances[0].creation_time #=> Time
|
1506
1727
|
# resp.notebook_instances[0].last_modified_time #=> Time
|
1728
|
+
# resp.notebook_instances[0].notebook_instance_lifecycle_config_name #=> String
|
1507
1729
|
#
|
1508
1730
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstances AWS API Documentation
|
1509
1731
|
#
|
@@ -1838,7 +2060,7 @@ module Aws::SageMaker
|
|
1838
2060
|
#
|
1839
2061
|
# resp = client.update_notebook_instance({
|
1840
2062
|
# notebook_instance_name: "NotebookInstanceName", # required
|
1841
|
-
# instance_type: "ml.t2.medium", # accepts ml.t2.medium, ml.m4.xlarge, ml.p2.xlarge
|
2063
|
+
# instance_type: "ml.t2.medium", # accepts ml.t2.medium, ml.m4.xlarge, ml.p2.xlarge, ml.p3.2xlarge
|
1842
2064
|
# role_arn: "RoleArn",
|
1843
2065
|
# })
|
1844
2066
|
#
|
@@ -1851,6 +2073,47 @@ module Aws::SageMaker
|
|
1851
2073
|
req.send_request(options)
|
1852
2074
|
end
|
1853
2075
|
|
2076
|
+
# Updates a notebook instance lifecycle configuration created with the
|
2077
|
+
# API.
|
2078
|
+
#
|
2079
|
+
# @option params [required, String] :notebook_instance_lifecycle_config_name
|
2080
|
+
# The name of the lifecycle configuration.
|
2081
|
+
#
|
2082
|
+
# @option params [Array<Types::NotebookInstanceLifecycleHook>] :on_create
|
2083
|
+
# The shell script that runs only once, when you create a notebook
|
2084
|
+
# instance
|
2085
|
+
#
|
2086
|
+
# @option params [Array<Types::NotebookInstanceLifecycleHook>] :on_start
|
2087
|
+
# The shell script that runs every time you start a notebook instance,
|
2088
|
+
# including when you create the notebook instance.
|
2089
|
+
#
|
2090
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2091
|
+
#
|
2092
|
+
# @example Request syntax with placeholder values
|
2093
|
+
#
|
2094
|
+
# resp = client.update_notebook_instance_lifecycle_config({
|
2095
|
+
# notebook_instance_lifecycle_config_name: "NotebookInstanceLifecycleConfigName", # required
|
2096
|
+
# on_create: [
|
2097
|
+
# {
|
2098
|
+
# content: "NotebookInstanceLifecycleConfigContent",
|
2099
|
+
# },
|
2100
|
+
# ],
|
2101
|
+
# on_start: [
|
2102
|
+
# {
|
2103
|
+
# content: "NotebookInstanceLifecycleConfigContent",
|
2104
|
+
# },
|
2105
|
+
# ],
|
2106
|
+
# })
|
2107
|
+
#
|
2108
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstanceLifecycleConfig AWS API Documentation
|
2109
|
+
#
|
2110
|
+
# @overload update_notebook_instance_lifecycle_config(params = {})
|
2111
|
+
# @param [Hash] params ({})
|
2112
|
+
def update_notebook_instance_lifecycle_config(params = {}, options = {})
|
2113
|
+
req = build_request(:update_notebook_instance_lifecycle_config, params)
|
2114
|
+
req.send_request(options)
|
2115
|
+
end
|
2116
|
+
|
1854
2117
|
# @!endgroup
|
1855
2118
|
|
1856
2119
|
# @param params ({})
|
@@ -1864,7 +2127,7 @@ module Aws::SageMaker
|
|
1864
2127
|
params: params,
|
1865
2128
|
config: config)
|
1866
2129
|
context[:gem_name] = 'aws-sdk-sagemaker'
|
1867
|
-
context[:gem_version] = '1.
|
2130
|
+
context[:gem_version] = '1.6.0'
|
1868
2131
|
Seahorse::Client::Request.new(handlers, context)
|
1869
2132
|
end
|
1870
2133
|
|
@@ -28,6 +28,8 @@ module Aws::SageMaker
|
|
28
28
|
CreateModelInput = Shapes::StructureShape.new(name: 'CreateModelInput')
|
29
29
|
CreateModelOutput = Shapes::StructureShape.new(name: 'CreateModelOutput')
|
30
30
|
CreateNotebookInstanceInput = Shapes::StructureShape.new(name: 'CreateNotebookInstanceInput')
|
31
|
+
CreateNotebookInstanceLifecycleConfigInput = Shapes::StructureShape.new(name: 'CreateNotebookInstanceLifecycleConfigInput')
|
32
|
+
CreateNotebookInstanceLifecycleConfigOutput = Shapes::StructureShape.new(name: 'CreateNotebookInstanceLifecycleConfigOutput')
|
31
33
|
CreateNotebookInstanceOutput = Shapes::StructureShape.new(name: 'CreateNotebookInstanceOutput')
|
32
34
|
CreatePresignedNotebookInstanceUrlInput = Shapes::StructureShape.new(name: 'CreatePresignedNotebookInstanceUrlInput')
|
33
35
|
CreatePresignedNotebookInstanceUrlOutput = Shapes::StructureShape.new(name: 'CreatePresignedNotebookInstanceUrlOutput')
|
@@ -39,6 +41,7 @@ module Aws::SageMaker
|
|
39
41
|
DeleteEndpointInput = Shapes::StructureShape.new(name: 'DeleteEndpointInput')
|
40
42
|
DeleteModelInput = Shapes::StructureShape.new(name: 'DeleteModelInput')
|
41
43
|
DeleteNotebookInstanceInput = Shapes::StructureShape.new(name: 'DeleteNotebookInstanceInput')
|
44
|
+
DeleteNotebookInstanceLifecycleConfigInput = Shapes::StructureShape.new(name: 'DeleteNotebookInstanceLifecycleConfigInput')
|
42
45
|
DeleteTagsInput = Shapes::StructureShape.new(name: 'DeleteTagsInput')
|
43
46
|
DeleteTagsOutput = Shapes::StructureShape.new(name: 'DeleteTagsOutput')
|
44
47
|
DescribeEndpointConfigInput = Shapes::StructureShape.new(name: 'DescribeEndpointConfigInput')
|
@@ -48,11 +51,14 @@ module Aws::SageMaker
|
|
48
51
|
DescribeModelInput = Shapes::StructureShape.new(name: 'DescribeModelInput')
|
49
52
|
DescribeModelOutput = Shapes::StructureShape.new(name: 'DescribeModelOutput')
|
50
53
|
DescribeNotebookInstanceInput = Shapes::StructureShape.new(name: 'DescribeNotebookInstanceInput')
|
54
|
+
DescribeNotebookInstanceLifecycleConfigInput = Shapes::StructureShape.new(name: 'DescribeNotebookInstanceLifecycleConfigInput')
|
55
|
+
DescribeNotebookInstanceLifecycleConfigOutput = Shapes::StructureShape.new(name: 'DescribeNotebookInstanceLifecycleConfigOutput')
|
51
56
|
DescribeNotebookInstanceOutput = Shapes::StructureShape.new(name: 'DescribeNotebookInstanceOutput')
|
52
57
|
DescribeTrainingJobRequest = Shapes::StructureShape.new(name: 'DescribeTrainingJobRequest')
|
53
58
|
DescribeTrainingJobResponse = Shapes::StructureShape.new(name: 'DescribeTrainingJobResponse')
|
54
59
|
DesiredWeightAndCapacity = Shapes::StructureShape.new(name: 'DesiredWeightAndCapacity')
|
55
60
|
DesiredWeightAndCapacityList = Shapes::ListShape.new(name: 'DesiredWeightAndCapacityList')
|
61
|
+
DirectInternetAccess = Shapes::StringShape.new(name: 'DirectInternetAccess')
|
56
62
|
EndpointArn = Shapes::StringShape.new(name: 'EndpointArn')
|
57
63
|
EndpointConfigArn = Shapes::StringShape.new(name: 'EndpointConfigArn')
|
58
64
|
EndpointConfigName = Shapes::StringShape.new(name: 'EndpointConfigName')
|
@@ -82,6 +88,8 @@ module Aws::SageMaker
|
|
82
88
|
ListEndpointsOutput = Shapes::StructureShape.new(name: 'ListEndpointsOutput')
|
83
89
|
ListModelsInput = Shapes::StructureShape.new(name: 'ListModelsInput')
|
84
90
|
ListModelsOutput = Shapes::StructureShape.new(name: 'ListModelsOutput')
|
91
|
+
ListNotebookInstanceLifecycleConfigsInput = Shapes::StructureShape.new(name: 'ListNotebookInstanceLifecycleConfigsInput')
|
92
|
+
ListNotebookInstanceLifecycleConfigsOutput = Shapes::StructureShape.new(name: 'ListNotebookInstanceLifecycleConfigsOutput')
|
85
93
|
ListNotebookInstancesInput = Shapes::StructureShape.new(name: 'ListNotebookInstancesInput')
|
86
94
|
ListNotebookInstancesOutput = Shapes::StructureShape.new(name: 'ListNotebookInstancesOutput')
|
87
95
|
ListTagsInput = Shapes::StructureShape.new(name: 'ListTagsInput')
|
@@ -102,6 +110,16 @@ module Aws::SageMaker
|
|
102
110
|
NetworkInterfaceId = Shapes::StringShape.new(name: 'NetworkInterfaceId')
|
103
111
|
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
104
112
|
NotebookInstanceArn = Shapes::StringShape.new(name: 'NotebookInstanceArn')
|
113
|
+
NotebookInstanceLifecycleConfigArn = Shapes::StringShape.new(name: 'NotebookInstanceLifecycleConfigArn')
|
114
|
+
NotebookInstanceLifecycleConfigContent = Shapes::StringShape.new(name: 'NotebookInstanceLifecycleConfigContent')
|
115
|
+
NotebookInstanceLifecycleConfigList = Shapes::ListShape.new(name: 'NotebookInstanceLifecycleConfigList')
|
116
|
+
NotebookInstanceLifecycleConfigName = Shapes::StringShape.new(name: 'NotebookInstanceLifecycleConfigName')
|
117
|
+
NotebookInstanceLifecycleConfigNameContains = Shapes::StringShape.new(name: 'NotebookInstanceLifecycleConfigNameContains')
|
118
|
+
NotebookInstanceLifecycleConfigSortKey = Shapes::StringShape.new(name: 'NotebookInstanceLifecycleConfigSortKey')
|
119
|
+
NotebookInstanceLifecycleConfigSortOrder = Shapes::StringShape.new(name: 'NotebookInstanceLifecycleConfigSortOrder')
|
120
|
+
NotebookInstanceLifecycleConfigSummary = Shapes::StructureShape.new(name: 'NotebookInstanceLifecycleConfigSummary')
|
121
|
+
NotebookInstanceLifecycleConfigSummaryList = Shapes::ListShape.new(name: 'NotebookInstanceLifecycleConfigSummaryList')
|
122
|
+
NotebookInstanceLifecycleHook = Shapes::StructureShape.new(name: 'NotebookInstanceLifecycleHook')
|
105
123
|
NotebookInstanceName = Shapes::StringShape.new(name: 'NotebookInstanceName')
|
106
124
|
NotebookInstanceNameContains = Shapes::StringShape.new(name: 'NotebookInstanceNameContains')
|
107
125
|
NotebookInstanceSortKey = Shapes::StringShape.new(name: 'NotebookInstanceSortKey')
|
@@ -162,6 +180,8 @@ module Aws::SageMaker
|
|
162
180
|
UpdateEndpointWeightsAndCapacitiesInput = Shapes::StructureShape.new(name: 'UpdateEndpointWeightsAndCapacitiesInput')
|
163
181
|
UpdateEndpointWeightsAndCapacitiesOutput = Shapes::StructureShape.new(name: 'UpdateEndpointWeightsAndCapacitiesOutput')
|
164
182
|
UpdateNotebookInstanceInput = Shapes::StructureShape.new(name: 'UpdateNotebookInstanceInput')
|
183
|
+
UpdateNotebookInstanceLifecycleConfigInput = Shapes::StructureShape.new(name: 'UpdateNotebookInstanceLifecycleConfigInput')
|
184
|
+
UpdateNotebookInstanceLifecycleConfigOutput = Shapes::StructureShape.new(name: 'UpdateNotebookInstanceLifecycleConfigOutput')
|
165
185
|
UpdateNotebookInstanceOutput = Shapes::StructureShape.new(name: 'UpdateNotebookInstanceOutput')
|
166
186
|
Url = Shapes::StringShape.new(name: 'Url')
|
167
187
|
VariantName = Shapes::StringShape.new(name: 'VariantName')
|
@@ -225,8 +245,18 @@ module Aws::SageMaker
|
|
225
245
|
CreateNotebookInstanceInput.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "RoleArn"))
|
226
246
|
CreateNotebookInstanceInput.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "KmsKeyId"))
|
227
247
|
CreateNotebookInstanceInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
248
|
+
CreateNotebookInstanceInput.add_member(:lifecycle_config_name, Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleConfigName, location_name: "LifecycleConfigName"))
|
249
|
+
CreateNotebookInstanceInput.add_member(:direct_internet_access, Shapes::ShapeRef.new(shape: DirectInternetAccess, location_name: "DirectInternetAccess"))
|
228
250
|
CreateNotebookInstanceInput.struct_class = Types::CreateNotebookInstanceInput
|
229
251
|
|
252
|
+
CreateNotebookInstanceLifecycleConfigInput.add_member(:notebook_instance_lifecycle_config_name, Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleConfigName, required: true, location_name: "NotebookInstanceLifecycleConfigName"))
|
253
|
+
CreateNotebookInstanceLifecycleConfigInput.add_member(:on_create, Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleConfigList, location_name: "OnCreate"))
|
254
|
+
CreateNotebookInstanceLifecycleConfigInput.add_member(:on_start, Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleConfigList, location_name: "OnStart"))
|
255
|
+
CreateNotebookInstanceLifecycleConfigInput.struct_class = Types::CreateNotebookInstanceLifecycleConfigInput
|
256
|
+
|
257
|
+
CreateNotebookInstanceLifecycleConfigOutput.add_member(:notebook_instance_lifecycle_config_arn, Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleConfigArn, location_name: "NotebookInstanceLifecycleConfigArn"))
|
258
|
+
CreateNotebookInstanceLifecycleConfigOutput.struct_class = Types::CreateNotebookInstanceLifecycleConfigOutput
|
259
|
+
|
230
260
|
CreateNotebookInstanceOutput.add_member(:notebook_instance_arn, Shapes::ShapeRef.new(shape: NotebookInstanceArn, location_name: "NotebookInstanceArn"))
|
231
261
|
CreateNotebookInstanceOutput.struct_class = Types::CreateNotebookInstanceOutput
|
232
262
|
|
@@ -266,6 +296,9 @@ module Aws::SageMaker
|
|
266
296
|
DeleteNotebookInstanceInput.add_member(:notebook_instance_name, Shapes::ShapeRef.new(shape: NotebookInstanceName, required: true, location_name: "NotebookInstanceName"))
|
267
297
|
DeleteNotebookInstanceInput.struct_class = Types::DeleteNotebookInstanceInput
|
268
298
|
|
299
|
+
DeleteNotebookInstanceLifecycleConfigInput.add_member(:notebook_instance_lifecycle_config_name, Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleConfigName, required: true, location_name: "NotebookInstanceLifecycleConfigName"))
|
300
|
+
DeleteNotebookInstanceLifecycleConfigInput.struct_class = Types::DeleteNotebookInstanceLifecycleConfigInput
|
301
|
+
|
269
302
|
DeleteTagsInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
|
270
303
|
DeleteTagsInput.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
|
271
304
|
DeleteTagsInput.struct_class = Types::DeleteTagsInput
|
@@ -308,6 +341,17 @@ module Aws::SageMaker
|
|
308
341
|
DescribeNotebookInstanceInput.add_member(:notebook_instance_name, Shapes::ShapeRef.new(shape: NotebookInstanceName, required: true, location_name: "NotebookInstanceName"))
|
309
342
|
DescribeNotebookInstanceInput.struct_class = Types::DescribeNotebookInstanceInput
|
310
343
|
|
344
|
+
DescribeNotebookInstanceLifecycleConfigInput.add_member(:notebook_instance_lifecycle_config_name, Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleConfigName, required: true, location_name: "NotebookInstanceLifecycleConfigName"))
|
345
|
+
DescribeNotebookInstanceLifecycleConfigInput.struct_class = Types::DescribeNotebookInstanceLifecycleConfigInput
|
346
|
+
|
347
|
+
DescribeNotebookInstanceLifecycleConfigOutput.add_member(:notebook_instance_lifecycle_config_arn, Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleConfigArn, location_name: "NotebookInstanceLifecycleConfigArn"))
|
348
|
+
DescribeNotebookInstanceLifecycleConfigOutput.add_member(:notebook_instance_lifecycle_config_name, Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleConfigName, location_name: "NotebookInstanceLifecycleConfigName"))
|
349
|
+
DescribeNotebookInstanceLifecycleConfigOutput.add_member(:on_create, Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleConfigList, location_name: "OnCreate"))
|
350
|
+
DescribeNotebookInstanceLifecycleConfigOutput.add_member(:on_start, Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleConfigList, location_name: "OnStart"))
|
351
|
+
DescribeNotebookInstanceLifecycleConfigOutput.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: LastModifiedTime, location_name: "LastModifiedTime"))
|
352
|
+
DescribeNotebookInstanceLifecycleConfigOutput.add_member(:creation_time, Shapes::ShapeRef.new(shape: CreationTime, location_name: "CreationTime"))
|
353
|
+
DescribeNotebookInstanceLifecycleConfigOutput.struct_class = Types::DescribeNotebookInstanceLifecycleConfigOutput
|
354
|
+
|
311
355
|
DescribeNotebookInstanceOutput.add_member(:notebook_instance_arn, Shapes::ShapeRef.new(shape: NotebookInstanceArn, location_name: "NotebookInstanceArn"))
|
312
356
|
DescribeNotebookInstanceOutput.add_member(:notebook_instance_name, Shapes::ShapeRef.new(shape: NotebookInstanceName, location_name: "NotebookInstanceName"))
|
313
357
|
DescribeNotebookInstanceOutput.add_member(:notebook_instance_status, Shapes::ShapeRef.new(shape: NotebookInstanceStatus, location_name: "NotebookInstanceStatus"))
|
@@ -321,6 +365,8 @@ module Aws::SageMaker
|
|
321
365
|
DescribeNotebookInstanceOutput.add_member(:network_interface_id, Shapes::ShapeRef.new(shape: NetworkInterfaceId, location_name: "NetworkInterfaceId"))
|
322
366
|
DescribeNotebookInstanceOutput.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: LastModifiedTime, location_name: "LastModifiedTime"))
|
323
367
|
DescribeNotebookInstanceOutput.add_member(:creation_time, Shapes::ShapeRef.new(shape: CreationTime, location_name: "CreationTime"))
|
368
|
+
DescribeNotebookInstanceOutput.add_member(:notebook_instance_lifecycle_config_name, Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleConfigName, location_name: "NotebookInstanceLifecycleConfigName"))
|
369
|
+
DescribeNotebookInstanceOutput.add_member(:direct_internet_access, Shapes::ShapeRef.new(shape: DirectInternetAccess, location_name: "DirectInternetAccess"))
|
324
370
|
DescribeNotebookInstanceOutput.struct_class = Types::DescribeNotebookInstanceOutput
|
325
371
|
|
326
372
|
DescribeTrainingJobRequest.add_member(:training_job_name, Shapes::ShapeRef.new(shape: TrainingJobName, required: true, location_name: "TrainingJobName"))
|
@@ -418,6 +464,21 @@ module Aws::SageMaker
|
|
418
464
|
ListModelsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
419
465
|
ListModelsOutput.struct_class = Types::ListModelsOutput
|
420
466
|
|
467
|
+
ListNotebookInstanceLifecycleConfigsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
468
|
+
ListNotebookInstanceLifecycleConfigsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
469
|
+
ListNotebookInstanceLifecycleConfigsInput.add_member(:sort_by, Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleConfigSortKey, location_name: "SortBy"))
|
470
|
+
ListNotebookInstanceLifecycleConfigsInput.add_member(:sort_order, Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleConfigSortOrder, location_name: "SortOrder"))
|
471
|
+
ListNotebookInstanceLifecycleConfigsInput.add_member(:name_contains, Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleConfigNameContains, location_name: "NameContains"))
|
472
|
+
ListNotebookInstanceLifecycleConfigsInput.add_member(:creation_time_before, Shapes::ShapeRef.new(shape: CreationTime, location_name: "CreationTimeBefore"))
|
473
|
+
ListNotebookInstanceLifecycleConfigsInput.add_member(:creation_time_after, Shapes::ShapeRef.new(shape: CreationTime, location_name: "CreationTimeAfter"))
|
474
|
+
ListNotebookInstanceLifecycleConfigsInput.add_member(:last_modified_time_before, Shapes::ShapeRef.new(shape: LastModifiedTime, location_name: "LastModifiedTimeBefore"))
|
475
|
+
ListNotebookInstanceLifecycleConfigsInput.add_member(:last_modified_time_after, Shapes::ShapeRef.new(shape: LastModifiedTime, location_name: "LastModifiedTimeAfter"))
|
476
|
+
ListNotebookInstanceLifecycleConfigsInput.struct_class = Types::ListNotebookInstanceLifecycleConfigsInput
|
477
|
+
|
478
|
+
ListNotebookInstanceLifecycleConfigsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
479
|
+
ListNotebookInstanceLifecycleConfigsOutput.add_member(:notebook_instance_lifecycle_configs, Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleConfigSummaryList, location_name: "NotebookInstanceLifecycleConfigs"))
|
480
|
+
ListNotebookInstanceLifecycleConfigsOutput.struct_class = Types::ListNotebookInstanceLifecycleConfigsOutput
|
481
|
+
|
421
482
|
ListNotebookInstancesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
422
483
|
ListNotebookInstancesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
423
484
|
ListNotebookInstancesInput.add_member(:sort_by, Shapes::ShapeRef.new(shape: NotebookInstanceSortKey, location_name: "SortBy"))
|
@@ -428,6 +489,7 @@ module Aws::SageMaker
|
|
428
489
|
ListNotebookInstancesInput.add_member(:last_modified_time_before, Shapes::ShapeRef.new(shape: LastModifiedTime, location_name: "LastModifiedTimeBefore"))
|
429
490
|
ListNotebookInstancesInput.add_member(:last_modified_time_after, Shapes::ShapeRef.new(shape: LastModifiedTime, location_name: "LastModifiedTimeAfter"))
|
430
491
|
ListNotebookInstancesInput.add_member(:status_equals, Shapes::ShapeRef.new(shape: NotebookInstanceStatus, location_name: "StatusEquals"))
|
492
|
+
ListNotebookInstancesInput.add_member(:notebook_instance_lifecycle_config_name_contains, Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleConfigName, location_name: "NotebookInstanceLifecycleConfigNameContains"))
|
431
493
|
ListNotebookInstancesInput.struct_class = Types::ListNotebookInstancesInput
|
432
494
|
|
433
495
|
ListNotebookInstancesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
@@ -469,6 +531,19 @@ module Aws::SageMaker
|
|
469
531
|
|
470
532
|
ModelSummaryList.member = Shapes::ShapeRef.new(shape: ModelSummary)
|
471
533
|
|
534
|
+
NotebookInstanceLifecycleConfigList.member = Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleHook)
|
535
|
+
|
536
|
+
NotebookInstanceLifecycleConfigSummary.add_member(:notebook_instance_lifecycle_config_name, Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleConfigName, required: true, location_name: "NotebookInstanceLifecycleConfigName"))
|
537
|
+
NotebookInstanceLifecycleConfigSummary.add_member(:notebook_instance_lifecycle_config_arn, Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleConfigArn, required: true, location_name: "NotebookInstanceLifecycleConfigArn"))
|
538
|
+
NotebookInstanceLifecycleConfigSummary.add_member(:creation_time, Shapes::ShapeRef.new(shape: CreationTime, location_name: "CreationTime"))
|
539
|
+
NotebookInstanceLifecycleConfigSummary.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: LastModifiedTime, location_name: "LastModifiedTime"))
|
540
|
+
NotebookInstanceLifecycleConfigSummary.struct_class = Types::NotebookInstanceLifecycleConfigSummary
|
541
|
+
|
542
|
+
NotebookInstanceLifecycleConfigSummaryList.member = Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleConfigSummary)
|
543
|
+
|
544
|
+
NotebookInstanceLifecycleHook.add_member(:content, Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleConfigContent, location_name: "Content"))
|
545
|
+
NotebookInstanceLifecycleHook.struct_class = Types::NotebookInstanceLifecycleHook
|
546
|
+
|
472
547
|
NotebookInstanceSummary.add_member(:notebook_instance_name, Shapes::ShapeRef.new(shape: NotebookInstanceName, required: true, location_name: "NotebookInstanceName"))
|
473
548
|
NotebookInstanceSummary.add_member(:notebook_instance_arn, Shapes::ShapeRef.new(shape: NotebookInstanceArn, required: true, location_name: "NotebookInstanceArn"))
|
474
549
|
NotebookInstanceSummary.add_member(:notebook_instance_status, Shapes::ShapeRef.new(shape: NotebookInstanceStatus, location_name: "NotebookInstanceStatus"))
|
@@ -476,6 +551,7 @@ module Aws::SageMaker
|
|
476
551
|
NotebookInstanceSummary.add_member(:instance_type, Shapes::ShapeRef.new(shape: InstanceType, location_name: "InstanceType"))
|
477
552
|
NotebookInstanceSummary.add_member(:creation_time, Shapes::ShapeRef.new(shape: CreationTime, location_name: "CreationTime"))
|
478
553
|
NotebookInstanceSummary.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: LastModifiedTime, location_name: "LastModifiedTime"))
|
554
|
+
NotebookInstanceSummary.add_member(:notebook_instance_lifecycle_config_name, Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleConfigName, location_name: "NotebookInstanceLifecycleConfigName"))
|
479
555
|
NotebookInstanceSummary.struct_class = Types::NotebookInstanceSummary
|
480
556
|
|
481
557
|
NotebookInstanceSummaryList.member = Shapes::ShapeRef.new(shape: NotebookInstanceSummary)
|
@@ -564,6 +640,13 @@ module Aws::SageMaker
|
|
564
640
|
UpdateNotebookInstanceInput.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "RoleArn"))
|
565
641
|
UpdateNotebookInstanceInput.struct_class = Types::UpdateNotebookInstanceInput
|
566
642
|
|
643
|
+
UpdateNotebookInstanceLifecycleConfigInput.add_member(:notebook_instance_lifecycle_config_name, Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleConfigName, required: true, location_name: "NotebookInstanceLifecycleConfigName"))
|
644
|
+
UpdateNotebookInstanceLifecycleConfigInput.add_member(:on_create, Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleConfigList, location_name: "OnCreate"))
|
645
|
+
UpdateNotebookInstanceLifecycleConfigInput.add_member(:on_start, Shapes::ShapeRef.new(shape: NotebookInstanceLifecycleConfigList, location_name: "OnStart"))
|
646
|
+
UpdateNotebookInstanceLifecycleConfigInput.struct_class = Types::UpdateNotebookInstanceLifecycleConfigInput
|
647
|
+
|
648
|
+
UpdateNotebookInstanceLifecycleConfigOutput.struct_class = Types::UpdateNotebookInstanceLifecycleConfigOutput
|
649
|
+
|
567
650
|
UpdateNotebookInstanceOutput.struct_class = Types::UpdateNotebookInstanceOutput
|
568
651
|
|
569
652
|
|
@@ -626,6 +709,15 @@ module Aws::SageMaker
|
|
626
709
|
o.errors << Shapes::ShapeRef.new(shape: ResourceLimitExceeded)
|
627
710
|
end)
|
628
711
|
|
712
|
+
api.add_operation(:create_notebook_instance_lifecycle_config, Seahorse::Model::Operation.new.tap do |o|
|
713
|
+
o.name = "CreateNotebookInstanceLifecycleConfig"
|
714
|
+
o.http_method = "POST"
|
715
|
+
o.http_request_uri = "/"
|
716
|
+
o.input = Shapes::ShapeRef.new(shape: CreateNotebookInstanceLifecycleConfigInput)
|
717
|
+
o.output = Shapes::ShapeRef.new(shape: CreateNotebookInstanceLifecycleConfigOutput)
|
718
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceLimitExceeded)
|
719
|
+
end)
|
720
|
+
|
629
721
|
api.add_operation(:create_presigned_notebook_instance_url, Seahorse::Model::Operation.new.tap do |o|
|
630
722
|
o.name = "CreatePresignedNotebookInstanceUrl"
|
631
723
|
o.http_method = "POST"
|
@@ -676,6 +768,14 @@ module Aws::SageMaker
|
|
676
768
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
677
769
|
end)
|
678
770
|
|
771
|
+
api.add_operation(:delete_notebook_instance_lifecycle_config, Seahorse::Model::Operation.new.tap do |o|
|
772
|
+
o.name = "DeleteNotebookInstanceLifecycleConfig"
|
773
|
+
o.http_method = "POST"
|
774
|
+
o.http_request_uri = "/"
|
775
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteNotebookInstanceLifecycleConfigInput)
|
776
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
777
|
+
end)
|
778
|
+
|
679
779
|
api.add_operation(:delete_tags, Seahorse::Model::Operation.new.tap do |o|
|
680
780
|
o.name = "DeleteTags"
|
681
781
|
o.http_method = "POST"
|
@@ -716,6 +816,14 @@ module Aws::SageMaker
|
|
716
816
|
o.output = Shapes::ShapeRef.new(shape: DescribeNotebookInstanceOutput)
|
717
817
|
end)
|
718
818
|
|
819
|
+
api.add_operation(:describe_notebook_instance_lifecycle_config, Seahorse::Model::Operation.new.tap do |o|
|
820
|
+
o.name = "DescribeNotebookInstanceLifecycleConfig"
|
821
|
+
o.http_method = "POST"
|
822
|
+
o.http_request_uri = "/"
|
823
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeNotebookInstanceLifecycleConfigInput)
|
824
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeNotebookInstanceLifecycleConfigOutput)
|
825
|
+
end)
|
826
|
+
|
719
827
|
api.add_operation(:describe_training_job, Seahorse::Model::Operation.new.tap do |o|
|
720
828
|
o.name = "DescribeTrainingJob"
|
721
829
|
o.http_method = "POST"
|
@@ -767,6 +875,20 @@ module Aws::SageMaker
|
|
767
875
|
)
|
768
876
|
end)
|
769
877
|
|
878
|
+
api.add_operation(:list_notebook_instance_lifecycle_configs, Seahorse::Model::Operation.new.tap do |o|
|
879
|
+
o.name = "ListNotebookInstanceLifecycleConfigs"
|
880
|
+
o.http_method = "POST"
|
881
|
+
o.http_request_uri = "/"
|
882
|
+
o.input = Shapes::ShapeRef.new(shape: ListNotebookInstanceLifecycleConfigsInput)
|
883
|
+
o.output = Shapes::ShapeRef.new(shape: ListNotebookInstanceLifecycleConfigsOutput)
|
884
|
+
o[:pager] = Aws::Pager.new(
|
885
|
+
limit_key: "max_results",
|
886
|
+
tokens: {
|
887
|
+
"next_token" => "next_token"
|
888
|
+
}
|
889
|
+
)
|
890
|
+
end)
|
891
|
+
|
770
892
|
api.add_operation(:list_notebook_instances, Seahorse::Model::Operation.new.tap do |o|
|
771
893
|
o.name = "ListNotebookInstances"
|
772
894
|
o.http_method = "POST"
|
@@ -861,6 +983,15 @@ module Aws::SageMaker
|
|
861
983
|
o.output = Shapes::ShapeRef.new(shape: UpdateNotebookInstanceOutput)
|
862
984
|
o.errors << Shapes::ShapeRef.new(shape: ResourceLimitExceeded)
|
863
985
|
end)
|
986
|
+
|
987
|
+
api.add_operation(:update_notebook_instance_lifecycle_config, Seahorse::Model::Operation.new.tap do |o|
|
988
|
+
o.name = "UpdateNotebookInstanceLifecycleConfig"
|
989
|
+
o.http_method = "POST"
|
990
|
+
o.http_request_uri = "/"
|
991
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateNotebookInstanceLifecycleConfigInput)
|
992
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateNotebookInstanceLifecycleConfigOutput)
|
993
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceLimitExceeded)
|
994
|
+
end)
|
864
995
|
end
|
865
996
|
|
866
997
|
end
|
@@ -92,7 +92,7 @@ module Aws::SageMaker
|
|
92
92
|
# data directly from S3 to the container.
|
93
93
|
#
|
94
94
|
# In File mode, make sure you provision ML storage volume with
|
95
|
-
# sufficient capacity to
|
95
|
+
# sufficient capacity to accommodate the data download from S3. In
|
96
96
|
# addition to the training data, the ML storage volume also stores the
|
97
97
|
# output model. The algorithm container use ML storage volume to also
|
98
98
|
# store intermediate information, if any.
|
@@ -449,7 +449,7 @@ module Aws::SageMaker
|
|
449
449
|
#
|
450
450
|
# {
|
451
451
|
# notebook_instance_name: "NotebookInstanceName", # required
|
452
|
-
# instance_type: "ml.t2.medium", # required, accepts ml.t2.medium, ml.m4.xlarge, ml.p2.xlarge
|
452
|
+
# instance_type: "ml.t2.medium", # required, accepts ml.t2.medium, ml.m4.xlarge, ml.p2.xlarge, ml.p3.2xlarge
|
453
453
|
# subnet_id: "SubnetId",
|
454
454
|
# security_group_ids: ["SecurityGroupId"],
|
455
455
|
# role_arn: "RoleArn", # required
|
@@ -460,6 +460,8 @@ module Aws::SageMaker
|
|
460
460
|
# value: "TagValue", # required
|
461
461
|
# },
|
462
462
|
# ],
|
463
|
+
# lifecycle_config_name: "NotebookInstanceLifecycleConfigName",
|
464
|
+
# direct_internet_access: "Enabled", # accepts Enabled, Disabled
|
463
465
|
# }
|
464
466
|
#
|
465
467
|
# @!attribute [rw] notebook_instance_name
|
@@ -505,6 +507,24 @@ module Aws::SageMaker
|
|
505
507
|
# tags later by using the `CreateTags` API.
|
506
508
|
# @return [Array<Types::Tag>]
|
507
509
|
#
|
510
|
+
# @!attribute [rw] lifecycle_config_name
|
511
|
+
# The name of a lifecycle configuration to associate with the notebook
|
512
|
+
# instance. For information about lifestyle configurations, see
|
513
|
+
# notebook-lifecycle-config.
|
514
|
+
# @return [String]
|
515
|
+
#
|
516
|
+
# @!attribute [rw] direct_internet_access
|
517
|
+
# Sets whether Amazon SageMaker provides internet access to the
|
518
|
+
# notebook instance. If you set this to `Disabled` this notebook
|
519
|
+
# instance will be able to access resources only in your VPC, and will
|
520
|
+
# not be able to connect to Amazon SageMaker training and endpoint
|
521
|
+
# services unless your configure a NAT Gateway in your VPC.
|
522
|
+
#
|
523
|
+
# For more information, see appendix-notebook-and-internet-access. You
|
524
|
+
# can set the value of this parameter to `Disabled` only if you set a
|
525
|
+
# value for the `SubnetId` parameter.
|
526
|
+
# @return [String]
|
527
|
+
#
|
508
528
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateNotebookInstanceInput AWS API Documentation
|
509
529
|
#
|
510
530
|
class CreateNotebookInstanceInput < Struct.new(
|
@@ -514,7 +534,60 @@ module Aws::SageMaker
|
|
514
534
|
:security_group_ids,
|
515
535
|
:role_arn,
|
516
536
|
:kms_key_id,
|
517
|
-
:tags
|
537
|
+
:tags,
|
538
|
+
:lifecycle_config_name,
|
539
|
+
:direct_internet_access)
|
540
|
+
include Aws::Structure
|
541
|
+
end
|
542
|
+
|
543
|
+
# @note When making an API call, you may pass CreateNotebookInstanceLifecycleConfigInput
|
544
|
+
# data as a hash:
|
545
|
+
#
|
546
|
+
# {
|
547
|
+
# notebook_instance_lifecycle_config_name: "NotebookInstanceLifecycleConfigName", # required
|
548
|
+
# on_create: [
|
549
|
+
# {
|
550
|
+
# content: "NotebookInstanceLifecycleConfigContent",
|
551
|
+
# },
|
552
|
+
# ],
|
553
|
+
# on_start: [
|
554
|
+
# {
|
555
|
+
# content: "NotebookInstanceLifecycleConfigContent",
|
556
|
+
# },
|
557
|
+
# ],
|
558
|
+
# }
|
559
|
+
#
|
560
|
+
# @!attribute [rw] notebook_instance_lifecycle_config_name
|
561
|
+
# The name of the lifecycle configuration.
|
562
|
+
# @return [String]
|
563
|
+
#
|
564
|
+
# @!attribute [rw] on_create
|
565
|
+
# A shell script that runs only once, when you create a notebook
|
566
|
+
# instance.
|
567
|
+
# @return [Array<Types::NotebookInstanceLifecycleHook>]
|
568
|
+
#
|
569
|
+
# @!attribute [rw] on_start
|
570
|
+
# A shell script that runs every time you start a notebook instance,
|
571
|
+
# including when you create the notebook instance.
|
572
|
+
# @return [Array<Types::NotebookInstanceLifecycleHook>]
|
573
|
+
#
|
574
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateNotebookInstanceLifecycleConfigInput AWS API Documentation
|
575
|
+
#
|
576
|
+
class CreateNotebookInstanceLifecycleConfigInput < Struct.new(
|
577
|
+
:notebook_instance_lifecycle_config_name,
|
578
|
+
:on_create,
|
579
|
+
:on_start)
|
580
|
+
include Aws::Structure
|
581
|
+
end
|
582
|
+
|
583
|
+
# @!attribute [rw] notebook_instance_lifecycle_config_arn
|
584
|
+
# The Amazon Resource Name (ARN) of the lifecycle configuration.
|
585
|
+
# @return [String]
|
586
|
+
#
|
587
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateNotebookInstanceLifecycleConfigOutput AWS API Documentation
|
588
|
+
#
|
589
|
+
class CreateNotebookInstanceLifecycleConfigOutput < Struct.new(
|
590
|
+
:notebook_instance_lifecycle_config_arn)
|
518
591
|
include Aws::Structure
|
519
592
|
end
|
520
593
|
|
@@ -845,6 +918,24 @@ module Aws::SageMaker
|
|
845
918
|
include Aws::Structure
|
846
919
|
end
|
847
920
|
|
921
|
+
# @note When making an API call, you may pass DeleteNotebookInstanceLifecycleConfigInput
|
922
|
+
# data as a hash:
|
923
|
+
#
|
924
|
+
# {
|
925
|
+
# notebook_instance_lifecycle_config_name: "NotebookInstanceLifecycleConfigName", # required
|
926
|
+
# }
|
927
|
+
#
|
928
|
+
# @!attribute [rw] notebook_instance_lifecycle_config_name
|
929
|
+
# The name of the lifecycle configuration to delete.
|
930
|
+
# @return [String]
|
931
|
+
#
|
932
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstanceLifecycleConfigInput AWS API Documentation
|
933
|
+
#
|
934
|
+
class DeleteNotebookInstanceLifecycleConfigInput < Struct.new(
|
935
|
+
:notebook_instance_lifecycle_config_name)
|
936
|
+
include Aws::Structure
|
937
|
+
end
|
938
|
+
|
848
939
|
# @note When making an API call, you may pass DeleteTagsInput
|
849
940
|
# data as a hash:
|
850
941
|
#
|
@@ -1061,6 +1152,63 @@ module Aws::SageMaker
|
|
1061
1152
|
include Aws::Structure
|
1062
1153
|
end
|
1063
1154
|
|
1155
|
+
# @note When making an API call, you may pass DescribeNotebookInstanceLifecycleConfigInput
|
1156
|
+
# data as a hash:
|
1157
|
+
#
|
1158
|
+
# {
|
1159
|
+
# notebook_instance_lifecycle_config_name: "NotebookInstanceLifecycleConfigName", # required
|
1160
|
+
# }
|
1161
|
+
#
|
1162
|
+
# @!attribute [rw] notebook_instance_lifecycle_config_name
|
1163
|
+
# The name of the lifecycle configuration to describe.
|
1164
|
+
# @return [String]
|
1165
|
+
#
|
1166
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstanceLifecycleConfigInput AWS API Documentation
|
1167
|
+
#
|
1168
|
+
class DescribeNotebookInstanceLifecycleConfigInput < Struct.new(
|
1169
|
+
:notebook_instance_lifecycle_config_name)
|
1170
|
+
include Aws::Structure
|
1171
|
+
end
|
1172
|
+
|
1173
|
+
# @!attribute [rw] notebook_instance_lifecycle_config_arn
|
1174
|
+
# The Amazon Resource Name (ARN) of the lifecycle configuration.
|
1175
|
+
# @return [String]
|
1176
|
+
#
|
1177
|
+
# @!attribute [rw] notebook_instance_lifecycle_config_name
|
1178
|
+
# The name of the lifecycle configuration.
|
1179
|
+
# @return [String]
|
1180
|
+
#
|
1181
|
+
# @!attribute [rw] on_create
|
1182
|
+
# The shell script that runs only once, when you create a notebook
|
1183
|
+
# instance.
|
1184
|
+
# @return [Array<Types::NotebookInstanceLifecycleHook>]
|
1185
|
+
#
|
1186
|
+
# @!attribute [rw] on_start
|
1187
|
+
# The shell script that runs every time you start a notebook instance,
|
1188
|
+
# including when you create the notebook instance.
|
1189
|
+
# @return [Array<Types::NotebookInstanceLifecycleHook>]
|
1190
|
+
#
|
1191
|
+
# @!attribute [rw] last_modified_time
|
1192
|
+
# A timestamp that tells when the lifecycle configuration was last
|
1193
|
+
# modified.
|
1194
|
+
# @return [Time]
|
1195
|
+
#
|
1196
|
+
# @!attribute [rw] creation_time
|
1197
|
+
# A timestamp that tells when the lifecycle configuration was created.
|
1198
|
+
# @return [Time]
|
1199
|
+
#
|
1200
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstanceLifecycleConfigOutput AWS API Documentation
|
1201
|
+
#
|
1202
|
+
class DescribeNotebookInstanceLifecycleConfigOutput < Struct.new(
|
1203
|
+
:notebook_instance_lifecycle_config_arn,
|
1204
|
+
:notebook_instance_lifecycle_config_name,
|
1205
|
+
:on_create,
|
1206
|
+
:on_start,
|
1207
|
+
:last_modified_time,
|
1208
|
+
:creation_time)
|
1209
|
+
include Aws::Structure
|
1210
|
+
end
|
1211
|
+
|
1064
1212
|
# @!attribute [rw] notebook_instance_arn
|
1065
1213
|
# The Amazon Resource Name (ARN) of the notebook instance.
|
1066
1214
|
# @return [String]
|
@@ -1074,7 +1222,7 @@ module Aws::SageMaker
|
|
1074
1222
|
# @return [String]
|
1075
1223
|
#
|
1076
1224
|
# @!attribute [rw] failure_reason
|
1077
|
-
# If
|
1225
|
+
# If status is failed, the reason it failed.
|
1078
1226
|
# @return [String]
|
1079
1227
|
#
|
1080
1228
|
# @!attribute [rw] url
|
@@ -1119,6 +1267,19 @@ module Aws::SageMaker
|
|
1119
1267
|
# instance was created
|
1120
1268
|
# @return [Time]
|
1121
1269
|
#
|
1270
|
+
# @!attribute [rw] notebook_instance_lifecycle_config_name
|
1271
|
+
# Returns the name of a notebook instance lifecycle configuration.
|
1272
|
+
#
|
1273
|
+
# For information about notebook instance lifestyle configurations,
|
1274
|
+
# see notebook-lifecycle-config.
|
1275
|
+
# @return [String]
|
1276
|
+
#
|
1277
|
+
# @!attribute [rw] direct_internet_access
|
1278
|
+
# Describes whether the notebook instance has internet access.
|
1279
|
+
#
|
1280
|
+
# For more information, see appendix-notebook-and-internet-access.
|
1281
|
+
# @return [String]
|
1282
|
+
#
|
1122
1283
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstanceOutput AWS API Documentation
|
1123
1284
|
#
|
1124
1285
|
class DescribeNotebookInstanceOutput < Struct.new(
|
@@ -1134,7 +1295,9 @@ module Aws::SageMaker
|
|
1134
1295
|
:kms_key_id,
|
1135
1296
|
:network_interface_id,
|
1136
1297
|
:last_modified_time,
|
1137
|
-
:creation_time
|
1298
|
+
:creation_time,
|
1299
|
+
:notebook_instance_lifecycle_config_name,
|
1300
|
+
:direct_internet_access)
|
1138
1301
|
include Aws::Structure
|
1139
1302
|
end
|
1140
1303
|
|
@@ -1617,6 +1780,100 @@ module Aws::SageMaker
|
|
1617
1780
|
include Aws::Structure
|
1618
1781
|
end
|
1619
1782
|
|
1783
|
+
# @note When making an API call, you may pass ListNotebookInstanceLifecycleConfigsInput
|
1784
|
+
# data as a hash:
|
1785
|
+
#
|
1786
|
+
# {
|
1787
|
+
# next_token: "NextToken",
|
1788
|
+
# max_results: 1,
|
1789
|
+
# sort_by: "Name", # accepts Name, CreationTime, LastModifiedTime
|
1790
|
+
# sort_order: "Ascending", # accepts Ascending, Descending
|
1791
|
+
# name_contains: "NotebookInstanceLifecycleConfigNameContains",
|
1792
|
+
# creation_time_before: Time.now,
|
1793
|
+
# creation_time_after: Time.now,
|
1794
|
+
# last_modified_time_before: Time.now,
|
1795
|
+
# last_modified_time_after: Time.now,
|
1796
|
+
# }
|
1797
|
+
#
|
1798
|
+
# @!attribute [rw] next_token
|
1799
|
+
# If the result of a `ListNotebookInstanceLifecycleConfigs` request
|
1800
|
+
# was truncated, the response includes a `NextToken`. To get the next
|
1801
|
+
# set of lifecycle configurations, use the token in the next request.
|
1802
|
+
# @return [String]
|
1803
|
+
#
|
1804
|
+
# @!attribute [rw] max_results
|
1805
|
+
# The maximum number of lifecycle configurations to return in the
|
1806
|
+
# response.
|
1807
|
+
# @return [Integer]
|
1808
|
+
#
|
1809
|
+
# @!attribute [rw] sort_by
|
1810
|
+
# Sorts the list of results. The default is `CreationTime`.
|
1811
|
+
# @return [String]
|
1812
|
+
#
|
1813
|
+
# @!attribute [rw] sort_order
|
1814
|
+
# The sort order for results.
|
1815
|
+
# @return [String]
|
1816
|
+
#
|
1817
|
+
# @!attribute [rw] name_contains
|
1818
|
+
# A string in the lifecycle configuration name. This filter returns
|
1819
|
+
# only lifecycle configurations whose name contains the specified
|
1820
|
+
# string.
|
1821
|
+
# @return [String]
|
1822
|
+
#
|
1823
|
+
# @!attribute [rw] creation_time_before
|
1824
|
+
# A filter that returns only lifecycle configurations that were
|
1825
|
+
# created before the specified time (timestamp).
|
1826
|
+
# @return [Time]
|
1827
|
+
#
|
1828
|
+
# @!attribute [rw] creation_time_after
|
1829
|
+
# A filter that returns only lifecycle configurations that were
|
1830
|
+
# created after the specified time (timestamp).
|
1831
|
+
# @return [Time]
|
1832
|
+
#
|
1833
|
+
# @!attribute [rw] last_modified_time_before
|
1834
|
+
# A filter that returns only lifecycle configurations that were
|
1835
|
+
# modified before the specified time (timestamp).
|
1836
|
+
# @return [Time]
|
1837
|
+
#
|
1838
|
+
# @!attribute [rw] last_modified_time_after
|
1839
|
+
# A filter that returns only lifecycle configurations that were
|
1840
|
+
# modified after the specified time (timestamp).
|
1841
|
+
# @return [Time]
|
1842
|
+
#
|
1843
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstanceLifecycleConfigsInput AWS API Documentation
|
1844
|
+
#
|
1845
|
+
class ListNotebookInstanceLifecycleConfigsInput < Struct.new(
|
1846
|
+
:next_token,
|
1847
|
+
:max_results,
|
1848
|
+
:sort_by,
|
1849
|
+
:sort_order,
|
1850
|
+
:name_contains,
|
1851
|
+
:creation_time_before,
|
1852
|
+
:creation_time_after,
|
1853
|
+
:last_modified_time_before,
|
1854
|
+
:last_modified_time_after)
|
1855
|
+
include Aws::Structure
|
1856
|
+
end
|
1857
|
+
|
1858
|
+
# @!attribute [rw] next_token
|
1859
|
+
# If the response is truncated, Amazon SageMaker returns this token.
|
1860
|
+
# To get the next set of lifecycle configurations, use it in the next
|
1861
|
+
# request.
|
1862
|
+
# @return [String]
|
1863
|
+
#
|
1864
|
+
# @!attribute [rw] notebook_instance_lifecycle_configs
|
1865
|
+
# An array of `NotebookInstanceLifecycleConfiguration` objects, each
|
1866
|
+
# listing a lifecycle configuration.
|
1867
|
+
# @return [Array<Types::NotebookInstanceLifecycleConfigSummary>]
|
1868
|
+
#
|
1869
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstanceLifecycleConfigsOutput AWS API Documentation
|
1870
|
+
#
|
1871
|
+
class ListNotebookInstanceLifecycleConfigsOutput < Struct.new(
|
1872
|
+
:next_token,
|
1873
|
+
:notebook_instance_lifecycle_configs)
|
1874
|
+
include Aws::Structure
|
1875
|
+
end
|
1876
|
+
|
1620
1877
|
# @note When making an API call, you may pass ListNotebookInstancesInput
|
1621
1878
|
# data as a hash:
|
1622
1879
|
#
|
@@ -1631,6 +1888,7 @@ module Aws::SageMaker
|
|
1631
1888
|
# last_modified_time_before: Time.now,
|
1632
1889
|
# last_modified_time_after: Time.now,
|
1633
1890
|
# status_equals: "Pending", # accepts Pending, InService, Stopping, Stopped, Failed, Deleting
|
1891
|
+
# notebook_instance_lifecycle_config_name_contains: "NotebookInstanceLifecycleConfigName",
|
1634
1892
|
# }
|
1635
1893
|
#
|
1636
1894
|
# @!attribute [rw] next_token
|
@@ -1688,6 +1946,13 @@ module Aws::SageMaker
|
|
1688
1946
|
# status.
|
1689
1947
|
# @return [String]
|
1690
1948
|
#
|
1949
|
+
# @!attribute [rw] notebook_instance_lifecycle_config_name_contains
|
1950
|
+
# A string in the name of a notebook instances lifecycle configuration
|
1951
|
+
# associated with this notebook instance. This filter returns only
|
1952
|
+
# notebook instances associated with a lifecycle configuration with a
|
1953
|
+
# name that contains the specified string.
|
1954
|
+
# @return [String]
|
1955
|
+
#
|
1691
1956
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstancesInput AWS API Documentation
|
1692
1957
|
#
|
1693
1958
|
class ListNotebookInstancesInput < Struct.new(
|
@@ -1700,7 +1965,8 @@ module Aws::SageMaker
|
|
1700
1965
|
:creation_time_after,
|
1701
1966
|
:last_modified_time_before,
|
1702
1967
|
:last_modified_time_after,
|
1703
|
-
:status_equals
|
1968
|
+
:status_equals,
|
1969
|
+
:notebook_instance_lifecycle_config_name_contains)
|
1704
1970
|
include Aws::Structure
|
1705
1971
|
end
|
1706
1972
|
|
@@ -1910,6 +2176,61 @@ module Aws::SageMaker
|
|
1910
2176
|
include Aws::Structure
|
1911
2177
|
end
|
1912
2178
|
|
2179
|
+
# Provides a summary of a notebook instance lifecycle configuration.
|
2180
|
+
#
|
2181
|
+
# @!attribute [rw] notebook_instance_lifecycle_config_name
|
2182
|
+
# The name of the lifecycle configuration.
|
2183
|
+
# @return [String]
|
2184
|
+
#
|
2185
|
+
# @!attribute [rw] notebook_instance_lifecycle_config_arn
|
2186
|
+
# The Amazon Resource Name (ARN) of the lifecycle configuration.
|
2187
|
+
# @return [String]
|
2188
|
+
#
|
2189
|
+
# @!attribute [rw] creation_time
|
2190
|
+
# A timestamp that tells when the lifecycle configuration was created.
|
2191
|
+
# @return [Time]
|
2192
|
+
#
|
2193
|
+
# @!attribute [rw] last_modified_time
|
2194
|
+
# A timestamp that tells when the lifecycle configuration was last
|
2195
|
+
# modified.
|
2196
|
+
# @return [Time]
|
2197
|
+
#
|
2198
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/NotebookInstanceLifecycleConfigSummary AWS API Documentation
|
2199
|
+
#
|
2200
|
+
class NotebookInstanceLifecycleConfigSummary < Struct.new(
|
2201
|
+
:notebook_instance_lifecycle_config_name,
|
2202
|
+
:notebook_instance_lifecycle_config_arn,
|
2203
|
+
:creation_time,
|
2204
|
+
:last_modified_time)
|
2205
|
+
include Aws::Structure
|
2206
|
+
end
|
2207
|
+
|
2208
|
+
# Contains the notebook instance lifecycle configuration script.
|
2209
|
+
#
|
2210
|
+
# This script runs in the path `/sbin:bin:/usr/sbin:/usr/bin`.
|
2211
|
+
#
|
2212
|
+
# For information about notebook instance lifestyle configurations, see
|
2213
|
+
# notebook-lifecycle-config.
|
2214
|
+
#
|
2215
|
+
# @note When making an API call, you may pass NotebookInstanceLifecycleHook
|
2216
|
+
# data as a hash:
|
2217
|
+
#
|
2218
|
+
# {
|
2219
|
+
# content: "NotebookInstanceLifecycleConfigContent",
|
2220
|
+
# }
|
2221
|
+
#
|
2222
|
+
# @!attribute [rw] content
|
2223
|
+
# A base64-encoded string that contains a shell script for a notebook
|
2224
|
+
# instance lifecycle configuration.
|
2225
|
+
# @return [String]
|
2226
|
+
#
|
2227
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/NotebookInstanceLifecycleHook AWS API Documentation
|
2228
|
+
#
|
2229
|
+
class NotebookInstanceLifecycleHook < Struct.new(
|
2230
|
+
:content)
|
2231
|
+
include Aws::Structure
|
2232
|
+
end
|
2233
|
+
|
1913
2234
|
# Provides summary information for an Amazon SageMaker notebook
|
1914
2235
|
# instance.
|
1915
2236
|
#
|
@@ -1943,6 +2264,14 @@ module Aws::SageMaker
|
|
1943
2264
|
# A timestamp that shows when the notebook instance was last modified.
|
1944
2265
|
# @return [Time]
|
1945
2266
|
#
|
2267
|
+
# @!attribute [rw] notebook_instance_lifecycle_config_name
|
2268
|
+
# The name of a notebook instance lifecycle configuration associated
|
2269
|
+
# with this notebook instance.
|
2270
|
+
#
|
2271
|
+
# For information about notebook instance lifestyle configurations,
|
2272
|
+
# see notebook-lifecycle-config.
|
2273
|
+
# @return [String]
|
2274
|
+
#
|
1946
2275
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/NotebookInstanceSummary AWS API Documentation
|
1947
2276
|
#
|
1948
2277
|
class NotebookInstanceSummary < Struct.new(
|
@@ -1952,7 +2281,8 @@ module Aws::SageMaker
|
|
1952
2281
|
:url,
|
1953
2282
|
:instance_type,
|
1954
2283
|
:creation_time,
|
1955
|
-
:last_modified_time
|
2284
|
+
:last_modified_time,
|
2285
|
+
:notebook_instance_lifecycle_config_name)
|
1956
2286
|
include Aws::Structure
|
1957
2287
|
end
|
1958
2288
|
|
@@ -2059,8 +2389,8 @@ module Aws::SageMaker
|
|
2059
2389
|
|
2060
2390
|
# Describes weight and capacities for a production variant associated
|
2061
2391
|
# with an endpoint. If you sent a request to the
|
2062
|
-
# `
|
2063
|
-
# you get different desired and current values.
|
2392
|
+
# `UpdateEndpointWeightsAndCapacities` API and the endpoint status is
|
2393
|
+
# `Updating`, you get different desired and current values.
|
2064
2394
|
#
|
2065
2395
|
# @!attribute [rw] variant_name
|
2066
2396
|
# The name of the variant.
|
@@ -2072,7 +2402,7 @@ module Aws::SageMaker
|
|
2072
2402
|
#
|
2073
2403
|
# @!attribute [rw] desired_weight
|
2074
2404
|
# The requested weight, as specified in the
|
2075
|
-
# `
|
2405
|
+
# `UpdateEndpointWeightsAndCapacities` request.
|
2076
2406
|
# @return [Float]
|
2077
2407
|
#
|
2078
2408
|
# @!attribute [rw] current_instance_count
|
@@ -2080,8 +2410,8 @@ module Aws::SageMaker
|
|
2080
2410
|
# @return [Integer]
|
2081
2411
|
#
|
2082
2412
|
# @!attribute [rw] desired_instance_count
|
2083
|
-
# The number of instances requested in the
|
2084
|
-
# request.
|
2413
|
+
# The number of instances requested in the
|
2414
|
+
# `UpdateEndpointWeightsAndCapacities` request.
|
2085
2415
|
# @return [Integer]
|
2086
2416
|
#
|
2087
2417
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ProductionVariantSummary AWS API Documentation
|
@@ -2482,7 +2812,7 @@ module Aws::SageMaker
|
|
2482
2812
|
#
|
2483
2813
|
# {
|
2484
2814
|
# notebook_instance_name: "NotebookInstanceName", # required
|
2485
|
-
# instance_type: "ml.t2.medium", # accepts ml.t2.medium, ml.m4.xlarge, ml.p2.xlarge
|
2815
|
+
# instance_type: "ml.t2.medium", # accepts ml.t2.medium, ml.m4.xlarge, ml.p2.xlarge, ml.p3.2xlarge
|
2486
2816
|
# role_arn: "RoleArn",
|
2487
2817
|
# }
|
2488
2818
|
#
|
@@ -2508,6 +2838,50 @@ module Aws::SageMaker
|
|
2508
2838
|
include Aws::Structure
|
2509
2839
|
end
|
2510
2840
|
|
2841
|
+
# @note When making an API call, you may pass UpdateNotebookInstanceLifecycleConfigInput
|
2842
|
+
# data as a hash:
|
2843
|
+
#
|
2844
|
+
# {
|
2845
|
+
# notebook_instance_lifecycle_config_name: "NotebookInstanceLifecycleConfigName", # required
|
2846
|
+
# on_create: [
|
2847
|
+
# {
|
2848
|
+
# content: "NotebookInstanceLifecycleConfigContent",
|
2849
|
+
# },
|
2850
|
+
# ],
|
2851
|
+
# on_start: [
|
2852
|
+
# {
|
2853
|
+
# content: "NotebookInstanceLifecycleConfigContent",
|
2854
|
+
# },
|
2855
|
+
# ],
|
2856
|
+
# }
|
2857
|
+
#
|
2858
|
+
# @!attribute [rw] notebook_instance_lifecycle_config_name
|
2859
|
+
# The name of the lifecycle configuration.
|
2860
|
+
# @return [String]
|
2861
|
+
#
|
2862
|
+
# @!attribute [rw] on_create
|
2863
|
+
# The shell script that runs only once, when you create a notebook
|
2864
|
+
# instance
|
2865
|
+
# @return [Array<Types::NotebookInstanceLifecycleHook>]
|
2866
|
+
#
|
2867
|
+
# @!attribute [rw] on_start
|
2868
|
+
# The shell script that runs every time you start a notebook instance,
|
2869
|
+
# including when you create the notebook instance.
|
2870
|
+
# @return [Array<Types::NotebookInstanceLifecycleHook>]
|
2871
|
+
#
|
2872
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstanceLifecycleConfigInput AWS API Documentation
|
2873
|
+
#
|
2874
|
+
class UpdateNotebookInstanceLifecycleConfigInput < Struct.new(
|
2875
|
+
:notebook_instance_lifecycle_config_name,
|
2876
|
+
:on_create,
|
2877
|
+
:on_start)
|
2878
|
+
include Aws::Structure
|
2879
|
+
end
|
2880
|
+
|
2881
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstanceLifecycleConfigOutput AWS API Documentation
|
2882
|
+
#
|
2883
|
+
class UpdateNotebookInstanceLifecycleConfigOutput < Aws::EmptyStructure; end
|
2884
|
+
|
2511
2885
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstanceOutput AWS API Documentation
|
2512
2886
|
#
|
2513
2887
|
class UpdateNotebookInstanceOutput < Aws::EmptyStructure; end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-sagemaker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
78
|
rubyforge_project:
|
79
|
-
rubygems_version: 2.5.
|
79
|
+
rubygems_version: 2.5.2.2
|
80
80
|
signing_key:
|
81
81
|
specification_version: 4
|
82
82
|
summary: AWS SDK for Ruby - SageMaker
|