/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the sagemaker-2017-07-24.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.SageMaker.Model { /// /// Container for the parameters to the CreatePresignedNotebookInstanceUrl operation. /// Returns a URL that you can use to connect to the Jupyter server from a notebook instance. /// In the SageMaker console, when you choose Open next to a notebook instance, /// SageMaker opens a new tab showing the Jupyter server home page from the notebook instance. /// The console uses this API to get the URL and show the page. /// /// /// /// The IAM role or user used to call this API defines the permissions to access the /// notebook instance. Once the presigned URL is created, no additional permission is /// required to access this URL. IAM authorization policies for this API are also enforced /// for every HTTP request and WebSocket frame that attempts to connect to the notebook /// instance. /// /// /// /// You can restrict access to this API and to the URL that it returns to a list of IP /// addresses that you specify. Use the NotIpAddress condition operator and /// the aws:SourceIP condition context key to specify the list of IP addresses /// that you want to have access to the notebook instance. For more information, see Limit /// Access to a Notebook Instance by IP Address. /// /// /// /// The URL that you get from a call to CreatePresignedNotebookInstanceUrl /// is valid only for 5 minutes. If you try to use the URL after the 5-minute limit expires, /// you are directed to the Amazon Web Services console sign-in page. /// /// /// public partial class CreatePresignedNotebookInstanceUrlRequest : AmazonSageMakerRequest { private string _notebookInstanceName; private int? _sessionExpirationDurationInSeconds; /// /// Gets and sets the property NotebookInstanceName. /// /// The name of the notebook instance. /// /// [AWSProperty(Required=true, Max=63)] public string NotebookInstanceName { get { return this._notebookInstanceName; } set { this._notebookInstanceName = value; } } // Check to see if NotebookInstanceName property is set internal bool IsSetNotebookInstanceName() { return this._notebookInstanceName != null; } /// /// Gets and sets the property SessionExpirationDurationInSeconds. /// /// The duration of the session, in seconds. The default is 12 hours. /// /// [AWSProperty(Min=1800, Max=43200)] public int SessionExpirationDurationInSeconds { get { return this._sessionExpirationDurationInSeconds.GetValueOrDefault(); } set { this._sessionExpirationDurationInSeconds = value; } } // Check to see if SessionExpirationDurationInSeconds property is set internal bool IsSetSessionExpirationDurationInSeconds() { return this._sessionExpirationDurationInSeconds.HasValue; } } }