/*
* 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 cloudformation-2010-05-15.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.CloudFormation.Model
{
///
/// Container for the parameters to the ListStackInstanceResourceDrifts operation.
/// Returns drift information for resources in a stack instance.
///
///
///
/// ListStackInstanceResourceDrifts
returns drift information for the most
/// recent drift detection operation. If an operation is in progress, it may only return
/// partial results.
///
///
///
public partial class ListStackInstanceResourceDriftsRequest : AmazonCloudFormationRequest
{
private CallAs _callAs;
private int? _maxResults;
private string _nextToken;
private string _operationId;
private string _stackInstanceAccount;
private string _stackInstanceRegion;
private List _stackInstanceResourceDriftStatuses = new List();
private string _stackSetName;
///
/// Gets and sets the property CallAs.
///
/// [Service-managed permissions] Specifies whether you are acting as an account administrator
/// in the organization's management account or as a delegated administrator in a member
/// account.
///
///
///
/// By default, SELF
is specified. Use SELF
for stack sets with
/// self-managed permissions.
///
/// -
///
/// If you are signed in to the management account, specify
SELF
.
///
/// -
///
/// If you are signed in to a delegated administrator account, specify
DELEGATED_ADMIN
.
///
///
///
/// Your Amazon Web Services account must be registered as a delegated administrator in
/// the management account. For more information, see Register
/// a delegated administrator in the CloudFormation User Guide.
///
///
///
public CallAs CallAs
{
get { return this._callAs; }
set { this._callAs = value; }
}
// Check to see if CallAs property is set
internal bool IsSetCallAs()
{
return this._callAs != null;
}
///
/// Gets and sets the property MaxResults.
///
/// The maximum number of results to be returned with a single call. If the number of
/// available results exceeds this maximum, the response includes a NextToken
/// value that you can assign to the NextToken
request parameter to get the
/// next set of results.
///
///
[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.
///
/// If the previous paginated request didn't return all of the remaining results, the
/// response object's NextToken
parameter value is set to a token. To retrieve
/// the next set of results, call this action again and assign that token to the request
/// object's NextToken
parameter. If there are no remaining results, the
/// previous response object's NextToken
parameter is set to null
.
///
///
[AWSProperty(Min=1, Max=1024)]
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 OperationId.
///
/// The unique ID of the drift operation.
///
///
[AWSProperty(Required=true, Min=1, Max=128)]
public string OperationId
{
get { return this._operationId; }
set { this._operationId = value; }
}
// Check to see if OperationId property is set
internal bool IsSetOperationId()
{
return this._operationId != null;
}
///
/// Gets and sets the property StackInstanceAccount.
///
/// The name of the Amazon Web Services account that you want to list resource drifts
/// for.
///
///
[AWSProperty(Required=true)]
public string StackInstanceAccount
{
get { return this._stackInstanceAccount; }
set { this._stackInstanceAccount = value; }
}
// Check to see if StackInstanceAccount property is set
internal bool IsSetStackInstanceAccount()
{
return this._stackInstanceAccount != null;
}
///
/// Gets and sets the property StackInstanceRegion.
///
/// The name of the Region where you want to list resource drifts.
///
///
[AWSProperty(Required=true)]
public string StackInstanceRegion
{
get { return this._stackInstanceRegion; }
set { this._stackInstanceRegion = value; }
}
// Check to see if StackInstanceRegion property is set
internal bool IsSetStackInstanceRegion()
{
return this._stackInstanceRegion != null;
}
///
/// Gets and sets the property StackInstanceResourceDriftStatuses.
///
/// The resource drift status of the stack instance.
///
/// -
///
///
DELETED
: The resource differs from its expected template configuration
/// in that the resource has been deleted.
///
/// -
///
///
MODIFIED
: One or more resource properties differ from their expected
/// template values.
///
/// -
///
///
IN_SYNC
: The resource's actual configuration matches its expected template
/// configuration.
///
/// -
///
///
NOT_CHECKED
: CloudFormation doesn't currently return this value.
///
///
///
[AWSProperty(Min=1, Max=4)]
public List StackInstanceResourceDriftStatuses
{
get { return this._stackInstanceResourceDriftStatuses; }
set { this._stackInstanceResourceDriftStatuses = value; }
}
// Check to see if StackInstanceResourceDriftStatuses property is set
internal bool IsSetStackInstanceResourceDriftStatuses()
{
return this._stackInstanceResourceDriftStatuses != null && this._stackInstanceResourceDriftStatuses.Count > 0;
}
///
/// Gets and sets the property StackSetName.
///
/// The name or unique ID of the stack set that you want to list drifted resources for.
///
///
[AWSProperty(Required=true)]
public string StackSetName
{
get { return this._stackSetName; }
set { this._stackSetName = value; }
}
// Check to see if StackSetName property is set
internal bool IsSetStackSetName()
{
return this._stackSetName != null;
}
}
}