/*
* 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 secretsmanager-2017-10-17.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.SecretsManager.Model
{
///
/// Container for the parameters to the GetRandomPassword operation.
/// Generates a random password. We recommend that you specify the maximum length and
/// include every character type that the system you are generating a password for can
/// support.
///
///
///
/// Secrets Manager generates a CloudTrail log entry when you call this action. Do not
/// include sensitive information in request parameters because it might be logged. For
/// more information, see Logging
/// Secrets Manager events with CloudTrail.
///
///
///
/// Required permissions: secretsmanager:GetRandomPassword
. For
/// more information, see
/// IAM policy actions for Secrets Manager and Authentication
/// and access control in Secrets Manager.
///
///
public partial class GetRandomPasswordRequest : AmazonSecretsManagerRequest
{
private string _excludeCharacters;
private bool? _excludeLowercase;
private bool? _excludeNumbers;
private bool? _excludePunctuation;
private bool? _excludeUppercase;
private bool? _includeSpace;
private long? _passwordLength;
private bool? _requireEachIncludedType;
///
/// Gets and sets the property ExcludeCharacters.
///
/// A string of the characters that you don't want in the password.
///
///
[AWSProperty(Min=0, Max=4096)]
public string ExcludeCharacters
{
get { return this._excludeCharacters; }
set { this._excludeCharacters = value; }
}
// Check to see if ExcludeCharacters property is set
internal bool IsSetExcludeCharacters()
{
return this._excludeCharacters != null;
}
///
/// Gets and sets the property ExcludeLowercase.
///
/// Specifies whether to exclude lowercase letters from the password. If you don't include
/// this switch, the password can contain lowercase letters.
///
///
public bool ExcludeLowercase
{
get { return this._excludeLowercase.GetValueOrDefault(); }
set { this._excludeLowercase = value; }
}
// Check to see if ExcludeLowercase property is set
internal bool IsSetExcludeLowercase()
{
return this._excludeLowercase.HasValue;
}
///
/// Gets and sets the property ExcludeNumbers.
///
/// Specifies whether to exclude numbers from the password. If you don't include this
/// switch, the password can contain numbers.
///
///
public bool ExcludeNumbers
{
get { return this._excludeNumbers.GetValueOrDefault(); }
set { this._excludeNumbers = value; }
}
// Check to see if ExcludeNumbers property is set
internal bool IsSetExcludeNumbers()
{
return this._excludeNumbers.HasValue;
}
///
/// Gets and sets the property ExcludePunctuation.
///
/// Specifies whether to exclude the following punctuation characters from the password:
/// ! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { | } ~
.
/// If you don't include this switch, the password can contain punctuation.
///
///
public bool ExcludePunctuation
{
get { return this._excludePunctuation.GetValueOrDefault(); }
set { this._excludePunctuation = value; }
}
// Check to see if ExcludePunctuation property is set
internal bool IsSetExcludePunctuation()
{
return this._excludePunctuation.HasValue;
}
///
/// Gets and sets the property ExcludeUppercase.
///
/// Specifies whether to exclude uppercase letters from the password. If you don't include
/// this switch, the password can contain uppercase letters.
///
///
public bool ExcludeUppercase
{
get { return this._excludeUppercase.GetValueOrDefault(); }
set { this._excludeUppercase = value; }
}
// Check to see if ExcludeUppercase property is set
internal bool IsSetExcludeUppercase()
{
return this._excludeUppercase.HasValue;
}
///
/// Gets and sets the property IncludeSpace.
///
/// Specifies whether to include the space character. If you include this switch, the
/// password can contain space characters.
///
///
public bool IncludeSpace
{
get { return this._includeSpace.GetValueOrDefault(); }
set { this._includeSpace = value; }
}
// Check to see if IncludeSpace property is set
internal bool IsSetIncludeSpace()
{
return this._includeSpace.HasValue;
}
///
/// Gets and sets the property PasswordLength.
///
/// The length of the password. If you don't include this parameter, the default length
/// is 32 characters.
///
///
[AWSProperty(Min=1, Max=4096)]
public long PasswordLength
{
get { return this._passwordLength.GetValueOrDefault(); }
set { this._passwordLength = value; }
}
// Check to see if PasswordLength property is set
internal bool IsSetPasswordLength()
{
return this._passwordLength.HasValue;
}
///
/// Gets and sets the property RequireEachIncludedType.
///
/// Specifies whether to include at least one upper and lowercase letter, one number,
/// and one punctuation. If you don't include this switch, the password contains at least
/// one of every character type.
///
///
public bool RequireEachIncludedType
{
get { return this._requireEachIncludedType.GetValueOrDefault(); }
set { this._requireEachIncludedType = value; }
}
// Check to see if RequireEachIncludedType property is set
internal bool IsSetRequireEachIncludedType()
{
return this._requireEachIncludedType.HasValue;
}
}
}