/*
* 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 ssm-2014-11-06.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.SimpleSystemsManagement.Model
{
///
/// Container for the parameters to the StartSession operation.
/// Initiates a connection to a target (for example, a managed node) for a Session Manager
/// session. Returns a URL and token that can be used to open a WebSocket connection for
/// sending input and receiving outputs.
///
///
///
/// Amazon Web Services CLI usage: start-session
is an interactive command
/// that requires the Session Manager plugin to be installed on the client machine making
/// the call. For information, see Install
/// the Session Manager plugin for the Amazon Web Services CLI in the Amazon Web
/// Services Systems Manager User Guide.
///
///
///
/// Amazon Web Services Tools for PowerShell usage: Start-SSMSession isn't currently supported
/// by Amazon Web Services Tools for PowerShell on Windows local machines.
///
///
///
public partial class StartSessionRequest : AmazonSimpleSystemsManagementRequest
{
private string _documentName;
private Dictionary> _parameters = new Dictionary>();
private string _reason;
private string _target;
///
/// Gets and sets the property DocumentName.
///
/// The name of the SSM document you want to use to define the type of session, input
/// parameters, or preferences for the session. For example, SSM-SessionManagerRunShell
.
/// You can call the GetDocument API to verify the document exists before attempting
/// to start a session. If no document name is provided, a shell to the managed node is
/// launched by default. For more information, see Start
/// a session in the Amazon Web Services Systems Manager User Guide.
///
///
public string DocumentName
{
get { return this._documentName; }
set { this._documentName = value; }
}
// Check to see if DocumentName property is set
internal bool IsSetDocumentName()
{
return this._documentName != null;
}
///
/// Gets and sets the property Parameters.
///
/// The values you want to specify for the parameters defined in the Session document.
///
///
public Dictionary> Parameters
{
get { return this._parameters; }
set { this._parameters = value; }
}
// Check to see if Parameters property is set
internal bool IsSetParameters()
{
return this._parameters != null && this._parameters.Count > 0;
}
///
/// Gets and sets the property Reason.
///
/// The reason for connecting to the instance. This value is included in the details for
/// the Amazon CloudWatch Events event created when you start the session.
///
///
[AWSProperty(Min=1, Max=256)]
public string Reason
{
get { return this._reason; }
set { this._reason = value; }
}
// Check to see if Reason property is set
internal bool IsSetReason()
{
return this._reason != null;
}
///
/// Gets and sets the property Target.
///
/// The managed node to connect to for the session.
///
///
[AWSProperty(Required=true, Min=1, Max=400)]
public string Target
{
get { return this._target; }
set { this._target = value; }
}
// Check to see if Target property is set
internal bool IsSetTarget()
{
return this._target != null;
}
}
}