Skip to content

Commit 308d6d2

Browse files
Allow update of platform identifier via UpdateNotebookInstance operation.
1 parent 0b335d3 commit 308d6d2

File tree

6 files changed

+39
-1
lines changed

6 files changed

+39
-1
lines changed

generator/ServiceModels/sagemaker/sagemaker-2017-07-24.api.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28212,6 +28212,7 @@
2821228212
"NotebookInstanceName":{"shape":"NotebookInstanceName"},
2821328213
"InstanceType":{"shape":"InstanceType"},
2821428214
"IpAddressType":{"shape":"IPAddressType"},
28215+
"PlatformIdentifier":{"shape":"PlatformIdentifier"},
2821528216
"RoleArn":{"shape":"RoleArn"},
2821628217
"LifecycleConfigName":{"shape":"NotebookInstanceLifecycleConfigName"},
2821728218
"DisassociateLifecycleConfig":{

generator/ServiceModels/sagemaker/sagemaker-2017-07-24.docs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13272,7 +13272,8 @@
1327213272
"base": null,
1327313273
"refs": {
1327413274
"CreateNotebookInstanceInput$PlatformIdentifier": "<p>The platform identifier of the notebook instance runtime environment. The default value is <code>notebook-al2-v2</code>.</p>",
13275-
"DescribeNotebookInstanceOutput$PlatformIdentifier": "<p>The platform identifier of the notebook instance runtime environment.</p>"
13275+
"DescribeNotebookInstanceOutput$PlatformIdentifier": "<p>The platform identifier of the notebook instance runtime environment.</p>",
13276+
"UpdateNotebookInstanceInput$PlatformIdentifier": "<p>The platform identifier of the notebook instance runtime environment.</p>"
1327613277
}
1327713278
},
1327813279
"PolicyString": {

generator/ServiceModels/sagemaker/sagemaker-2017-07-24.normal.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44798,6 +44798,10 @@
4479844798
"shape":"IPAddressType",
4479944799
"documentation":"<p>The IP address type for the notebook instance. Specify <code>ipv4</code> for IPv4-only connectivity or <code>dualstack</code> for both IPv4 and IPv6 connectivity. The notebook instance must be stopped before updating this setting. When you specify <code>dualstack</code>, the subnet must support IPv6 addressing.</p>"
4480044800
},
44801+
"PlatformIdentifier":{
44802+
"shape":"PlatformIdentifier",
44803+
"documentation":"<p>The platform identifier of the notebook instance runtime environment.</p>"
44804+
},
4480144805
"RoleArn":{
4480244806
"shape":"RoleArn",
4480344807
"documentation":"<p>The Amazon Resource Name (ARN) of the IAM role that SageMaker AI can assume to access the notebook instance. For more information, see <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html\">SageMaker AI Roles</a>. </p> <note> <p>To be able to pass this role to SageMaker AI, the caller of this API must have the <code>iam:PassRole</code> permission.</p> </note>"

sdk/code-analysis/ServiceAnalysis/SageMaker/Generated/PropertyValueRules.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7990,6 +7990,12 @@
79907990
<max>63</max>
79917991
<pattern>[a-zA-Z0-9](-*[a-zA-Z0-9])*</pattern>
79927992
</property-value-rule>
7993+
<property-value-rule>
7994+
<property>Amazon.SageMaker.Model.UpdateNotebookInstanceRequest.PlatformIdentifier</property>
7995+
<min>0</min>
7996+
<max>20</max>
7997+
<pattern>(notebook-al1-v1|notebook-al2-v1|notebook-al2-v2|notebook-al2-v3|notebook-al2023-v1)</pattern>
7998+
</property-value-rule>
79937999
<property-value-rule>
79948000
<property>Amazon.SageMaker.Model.UpdateNotebookInstanceRequest.RoleArn</property>
79958001
<min>20</min>

sdk/src/Services/SageMaker/Generated/Model/Internal/MarshallTransformations/UpdateNotebookInstanceRequestMarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,12 @@ public IRequest Marshall(UpdateNotebookInstanceRequest publicRequest)
156156
context.Writer.Write(publicRequest.NotebookInstanceName);
157157
}
158158

159+
if(publicRequest.IsSetPlatformIdentifier())
160+
{
161+
context.Writer.WritePropertyName("PlatformIdentifier");
162+
context.Writer.Write(publicRequest.PlatformIdentifier);
163+
}
164+
159165
if(publicRequest.IsSetRoleArn())
160166
{
161167
context.Writer.WritePropertyName("RoleArn");

sdk/src/Services/SageMaker/Generated/Model/UpdateNotebookInstanceRequest.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public partial class UpdateNotebookInstanceRequest : AmazonSageMakerRequest
4949
private IPAddressType _ipAddressType;
5050
private string _lifecycleConfigName;
5151
private string _notebookInstanceName;
52+
private string _platformIdentifier;
5253
private string _roleArn;
5354
private RootAccess _rootAccess;
5455
private int? _volumeSizeInGB;
@@ -308,6 +309,25 @@ internal bool IsSetNotebookInstanceName()
308309
return this._notebookInstanceName != null;
309310
}
310311

312+
/// <summary>
313+
/// Gets and sets the property PlatformIdentifier.
314+
/// <para>
315+
/// The platform identifier of the notebook instance runtime environment.
316+
/// </para>
317+
/// </summary>
318+
[AWSProperty(Min=0, Max=20)]
319+
public string PlatformIdentifier
320+
{
321+
get { return this._platformIdentifier; }
322+
set { this._platformIdentifier = value; }
323+
}
324+
325+
// Check to see if PlatformIdentifier property is set
326+
internal bool IsSetPlatformIdentifier()
327+
{
328+
return this._platformIdentifier != null;
329+
}
330+
311331
/// <summary>
312332
/// Gets and sets the property RoleArn.
313333
/// <para>

0 commit comments

Comments
 (0)