/* * 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 ListSecrets operation. /// Lists the secrets that are stored by Secrets Manager in the Amazon Web Services account, /// not including secrets that are marked for deletion. To see secrets marked for deletion, /// use the Secrets Manager console. /// /// /// /// ListSecrets is eventually consistent, however it might not reflect changes from the /// last five minutes. To get the latest information for a specific secret, use DescribeSecret. /// /// /// /// To list the versions of a secret, use ListSecretVersionIds. /// /// /// /// To get the secret value from SecretString or SecretBinary, /// call GetSecretValue. /// /// /// /// For information about finding secrets in the console, see Find /// secrets in Secrets Manager. /// /// /// /// 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:ListSecrets. For more information, /// see /// IAM policy actions for Secrets Manager and Authentication /// and access control in Secrets Manager. /// /// public partial class ListSecretsRequest : AmazonSecretsManagerRequest { private List _filters = new List(); private bool? _includePlannedDeletion; private int? _maxResults; private string _nextToken; private SortOrderType _sortOrder; /// /// Gets and sets the property Filters. /// /// The filters to apply to the list of secrets. /// /// [AWSProperty(Max=10)] public List Filters { get { return this._filters; } set { this._filters = value; } } // Check to see if Filters property is set internal bool IsSetFilters() { return this._filters != null && this._filters.Count > 0; } /// /// Gets and sets the property IncludePlannedDeletion. /// /// Specifies whether to include secrets scheduled for deletion. By default, secrets scheduled /// for deletion aren't included. /// /// public bool IncludePlannedDeletion { get { return this._includePlannedDeletion.GetValueOrDefault(); } set { this._includePlannedDeletion = value; } } // Check to see if IncludePlannedDeletion property is set internal bool IsSetIncludePlannedDeletion() { return this._includePlannedDeletion.HasValue; } /// /// Gets and sets the property MaxResults. /// /// The number of results to include in the response. /// /// /// /// If there are more results available, in the response, Secrets Manager includes NextToken. /// To get the next results, call ListSecrets again with the value from NextToken. /// /// [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// /// Gets and sets the property NextToken. /// /// A token that indicates where the output should continue from, if a previous call did /// not show all results. To get the next results, call ListSecrets again /// with this value. /// /// [AWSProperty(Min=1, Max=4096)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// /// Gets and sets the property SortOrder. /// /// Secrets are listed by CreatedDate. /// /// public SortOrderType SortOrder { get { return this._sortOrder; } set { this._sortOrder = value; } } // Check to see if SortOrder property is set internal bool IsSetSortOrder() { return this._sortOrder != null; } } }