/*
* 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 transfer-2018-11-05.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.Transfer.Model
{
///
/// Contains the details for an SFTP connector object. The connector object is used for
/// transferring files to and from a partner's SFTP server.
///
public partial class SftpConnectorConfig
{
private List _trustedHostKeys = new List();
private string _userSecretId;
///
/// Gets and sets the property TrustedHostKeys.
///
/// The public portion of the host key, or keys, that are used to authenticate the user
/// to the external server to which you are connecting. You can use the ssh-keyscan
/// command against the SFTP server to retrieve the necessary key.
///
///
///
/// The three standard SSH public key format elements are <key type>
,
/// <body base64>
, and an optional <comment>
, with
/// spaces between each element.
///
///
///
/// For the trusted host key, Transfer Family accepts RSA and ECDSA keys.
///
/// -
///
/// For RSA keys, the key type is
ssh-rsa
.
///
/// -
///
/// For ECDSA keys, the key type is either
ecdsa-sha2-nistp256
, ecdsa-sha2-nistp384
,
/// or ecdsa-sha2-nistp521
, depending on the size of the key you generated.
///
///
///
[AWSProperty(Min=1, Max=10)]
public List TrustedHostKeys
{
get { return this._trustedHostKeys; }
set { this._trustedHostKeys = value; }
}
// Check to see if TrustedHostKeys property is set
internal bool IsSetTrustedHostKeys()
{
return this._trustedHostKeys != null && this._trustedHostKeys.Count > 0;
}
///
/// Gets and sets the property UserSecretId.
///
/// The identifiers for the secrets (in Amazon Web Services Secrets Manager) that contain
/// the SFTP user's private keys or passwords.
///
///
[AWSProperty(Min=1, Max=2048)]
public string UserSecretId
{
get { return this._userSecretId; }
set { this._userSecretId = value; }
}
// Check to see if UserSecretId property is set
internal bool IsSetUserSecretId()
{
return this._userSecretId != null;
}
}
}