/*
* 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 GetParametersByPath operation.
/// Retrieve information about one or more parameters in a specific hierarchy.
///
///
///
/// Request results are returned on a best-effort basis. If you specify MaxResults
/// in the request, the response includes information up to the limit specified. The number
/// of items returned, however, can be between zero and the value of MaxResults
.
/// If the service reaches an internal limit while processing the results, it stops the
/// operation and returns the matching values up to that point and a NextToken
.
/// You can specify the NextToken
in a subsequent call to get the next set
/// of results.
///
///
public partial class GetParametersByPathRequest : AmazonSimpleSystemsManagementRequest
{
private int? _maxResults;
private string _nextToken;
private List _parameterFilters = new List();
private string _path;
private bool? _recursive;
private bool? _withDecryption;
///
/// Gets and sets the property MaxResults.
///
/// The maximum number of items to return for this call. The call also returns a token
/// that you can specify in a subsequent call to get the next set of results.
///
///
[AWSProperty(Min=1, Max=10)]
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 to start the list. Use this token to get the next set of results.
///
///
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 ParameterFilters.
///
/// Filters to limit the request results.
///
///
///
/// The following Key
values are supported for GetParametersByPath
:
/// Type
, KeyId
, and Label
.
///
///
///
/// The following Key
values aren't supported for GetParametersByPath
:
/// tag
, DataType
, Name
, Path
, and
/// Tier
.
///
///
///
public List ParameterFilters
{
get { return this._parameterFilters; }
set { this._parameterFilters = value; }
}
// Check to see if ParameterFilters property is set
internal bool IsSetParameterFilters()
{
return this._parameterFilters != null && this._parameterFilters.Count > 0;
}
///
/// Gets and sets the property Path.
///
/// The hierarchy for the parameter. Hierarchies start with a forward slash (/). The hierarchy
/// is the parameter name except the last part of the parameter. For the API call to succeed,
/// the last part of the parameter name can't be in the path. A parameter name hierarchy
/// can have a maximum of 15 levels. Here is an example of a hierarchy: /Finance/Prod/IAD/WinServ2016/license33
///
///
///
[AWSProperty(Required=true, Min=1, Max=2048)]
public string Path
{
get { return this._path; }
set { this._path = value; }
}
// Check to see if Path property is set
internal bool IsSetPath()
{
return this._path != null;
}
///
/// Gets and sets the property Recursive.
///
/// Retrieve all parameters within a hierarchy.
///
///
///
/// If a user has access to a path, then the user can access all levels of that path.
/// For example, if a user has permission to access path /a
, then the user
/// can also access /a/b
. Even if a user has explicitly been denied access
/// in IAM for parameter /a/b
, they can still call the GetParametersByPath
/// API operation recursively for /a
and view /a/b
.
///
///
///
public bool Recursive
{
get { return this._recursive.GetValueOrDefault(); }
set { this._recursive = value; }
}
// Check to see if Recursive property is set
internal bool IsSetRecursive()
{
return this._recursive.HasValue;
}
///
/// Gets and sets the property WithDecryption.
///
/// Retrieve all parameters in a hierarchy with their value decrypted.
///
///
public bool WithDecryption
{
get { return this._withDecryption.GetValueOrDefault(); }
set { this._withDecryption = value; }
}
// Check to see if WithDecryption property is set
internal bool IsSetWithDecryption()
{
return this._withDecryption.HasValue;
}
}
}