/*
* 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 config-2014-11-12.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.ConfigService.Model
{
///
/// Organization conformance pack creation or deletion status in each member account.
/// This includes the name of the conformance pack, the status, error code and error message
/// when the conformance pack creation or deletion failed.
///
public partial class OrganizationConformancePackDetailedStatus
{
private string _accountId;
private string _conformancePackName;
private string _errorCode;
private string _errorMessage;
private DateTime? _lastUpdateTime;
private OrganizationResourceDetailedStatus _status;
///
/// Gets and sets the property AccountId.
///
/// The 12-digit account ID of a member account.
///
///
[AWSProperty(Required=true)]
public string AccountId
{
get { return this._accountId; }
set { this._accountId = value; }
}
// Check to see if AccountId property is set
internal bool IsSetAccountId()
{
return this._accountId != null;
}
///
/// Gets and sets the property ConformancePackName.
///
/// The name of conformance pack deployed in the member account.
///
///
[AWSProperty(Required=true, Min=1, Max=256)]
public string ConformancePackName
{
get { return this._conformancePackName; }
set { this._conformancePackName = value; }
}
// Check to see if ConformancePackName property is set
internal bool IsSetConformancePackName()
{
return this._conformancePackName != null;
}
///
/// Gets and sets the property ErrorCode.
///
/// An error code that is returned when conformance pack creation or deletion failed in
/// the member account.
///
///
public string ErrorCode
{
get { return this._errorCode; }
set { this._errorCode = value; }
}
// Check to see if ErrorCode property is set
internal bool IsSetErrorCode()
{
return this._errorCode != null;
}
///
/// Gets and sets the property ErrorMessage.
///
/// An error message indicating that conformance pack account creation or deletion has
/// failed due to an error in the member account.
///
///
public string ErrorMessage
{
get { return this._errorMessage; }
set { this._errorMessage = value; }
}
// Check to see if ErrorMessage property is set
internal bool IsSetErrorMessage()
{
return this._errorMessage != null;
}
///
/// Gets and sets the property LastUpdateTime.
///
/// The timestamp of the last status update.
///
///
public DateTime LastUpdateTime
{
get { return this._lastUpdateTime.GetValueOrDefault(); }
set { this._lastUpdateTime = value; }
}
// Check to see if LastUpdateTime property is set
internal bool IsSetLastUpdateTime()
{
return this._lastUpdateTime.HasValue;
}
///
/// Gets and sets the property Status.
///
/// Indicates deployment status for conformance pack in a member account. When management
/// account calls PutOrganizationConformancePack
action for the first time,
/// conformance pack status is created in the member account. When management account
/// calls PutOrganizationConformancePack
action for the second time, conformance
/// pack status is updated in the member account. Conformance pack status is deleted when
/// the management account deletes OrganizationConformancePack
and disables
/// service access for config-multiaccountsetup.amazonaws.com
.
///
///
///
/// Config sets the state of the conformance pack to:
///
/// -
///
///
CREATE_SUCCESSFUL
when conformance pack has been created in the member
/// account.
///
/// -
///
///
CREATE_IN_PROGRESS
when conformance pack is being created in the member
/// account.
///
/// -
///
///
CREATE_FAILED
when conformance pack creation has failed in the member
/// account.
///
/// -
///
///
DELETE_FAILED
when conformance pack deletion has failed in the member
/// account.
///
/// -
///
///
DELETE_IN_PROGRESS
when conformance pack is being deleted in the member
/// account.
///
/// -
///
///
DELETE_SUCCESSFUL
when conformance pack has been deleted in the member
/// account.
///
/// -
///
///
UPDATE_SUCCESSFUL
when conformance pack has been updated in the member
/// account.
///
/// -
///
///
UPDATE_IN_PROGRESS
when conformance pack is being updated in the member
/// account.
///
/// -
///
///
UPDATE_FAILED
when conformance pack deletion has failed in the member
/// account.
///
///
///
[AWSProperty(Required=true)]
public OrganizationResourceDetailedStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
}