/*
* Copyright 2010-2014 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 iam-2010-05-08.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.IdentityManagement.Model
{
///
/// Container for the parameters to the UploadSSHPublicKey operation.
/// Uploads an SSH public key and associates it with the specified IAM user.
///
///
///
/// The SSH public key uploaded by this operation can be used only for authenticating
/// the associated IAM user to an AWS CodeCommit repository. For more information about
/// using SSH keys to authenticate to an AWS CodeCommit repository, see Set
/// up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide.
///
///
public partial class UploadSSHPublicKeyRequest : AmazonIdentityManagementServiceRequest
{
private string _sshPublicKeyBody;
private string _userName;
///
/// Gets and sets the property SSHPublicKeyBody.
///
/// The SSH public key. The public key must be encoded in ssh-rsa format or PEM format.
/// The minimum bit-length of the public key is 2048 bits. For example, you can generate
/// a 2048-bit key, and the resulting PEM file is 1679 bytes long.
///
///
///
/// The regex pattern used to validate this
/// parameter is a string of characters consisting of the following:
///
/// -
///
/// Any printable ASCII character ranging from the space character (
\u0020
)
/// through the end of the ASCII character range
///
/// -
///
/// The printable characters in the Basic Latin and Latin-1 Supplement character set (through
///
\u00FF
)
///
/// -
///
/// The special characters tab (
\u0009
), line feed (\u000A
),
/// and carriage return (\u000D
)
///
///
///
[AWSProperty(Required=true, Min=1, Max=16384)]
public string SSHPublicKeyBody
{
get { return this._sshPublicKeyBody; }
set { this._sshPublicKeyBody = value; }
}
// Check to see if SSHPublicKeyBody property is set
internal bool IsSetSSHPublicKeyBody()
{
return this._sshPublicKeyBody != null;
}
///
/// Gets and sets the property UserName.
///
/// The name of the IAM user to associate the SSH public key with.
///
///
///
/// This parameter allows (through its regex
/// pattern) a string of characters consisting of upper and lowercase alphanumeric
/// characters with no spaces. You can also include any of the following characters: _+=,.@-
///
///
[AWSProperty(Required=true, Min=1, Max=64)]
public string UserName
{
get { return this._userName; }
set { this._userName = value; }
}
// Check to see if UserName property is set
internal bool IsSetUserName()
{
return this._userName != null;
}
}
}