/*
* 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
{
///
/// Returns the status for an organization Config rule in an organization.
///
public partial class OrganizationConfigRuleStatus
{
private string _errorCode;
private string _errorMessage;
private DateTime? _lastUpdateTime;
private string _organizationConfigRuleName;
private OrganizationRuleStatus _organizationRuleStatus;
///
/// Gets and sets the property ErrorCode.
///
/// An error code that is returned when organization Config rule creation or deletion
/// has failed.
///
///
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 organization Config rule creation or deletion failed
/// due to an error.
///
///
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 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 OrganizationConfigRuleName.
///
/// The name that you assign to organization Config rule.
///
///
[AWSProperty(Required=true, Min=1, Max=64)]
public string OrganizationConfigRuleName
{
get { return this._organizationConfigRuleName; }
set { this._organizationConfigRuleName = value; }
}
// Check to see if OrganizationConfigRuleName property is set
internal bool IsSetOrganizationConfigRuleName()
{
return this._organizationConfigRuleName != null;
}
///
/// Gets and sets the property OrganizationRuleStatus.
///
/// Indicates deployment status of an organization Config rule. When management account
/// calls PutOrganizationConfigRule action for the first time, Config rule status is created
/// in all the member accounts. When management account calls PutOrganizationConfigRule
/// action for the second time, Config rule status is updated in all the member accounts.
/// Additionally, Config rule status is updated when one or more member accounts join
/// or leave an organization. Config rule status is deleted when the management account
/// deletes OrganizationConfigRule in all the member accounts and disables service access
/// for config-multiaccountsetup.amazonaws.com
.
///
///
///
/// Config sets the state of the rule to:
///
/// -
///
///
CREATE_SUCCESSFUL
when an organization Config rule has been successfully
/// created in all the member accounts.
///
/// -
///
///
CREATE_IN_PROGRESS
when an organization Config rule creation is in progress.
///
/// -
///
///
CREATE_FAILED
when an organization Config rule creation failed in one
/// or more member accounts within that organization.
///
/// -
///
///
DELETE_FAILED
when an organization Config rule deletion failed in one
/// or more member accounts within that organization.
///
/// -
///
///
DELETE_IN_PROGRESS
when an organization Config rule deletion is in progress.
///
/// -
///
///
DELETE_SUCCESSFUL
when an organization Config rule has been successfully
/// deleted from all the member accounts.
///
/// -
///
///
UPDATE_SUCCESSFUL
when an organization Config rule has been successfully
/// updated in all the member accounts.
///
/// -
///
///
UPDATE_IN_PROGRESS
when an organization Config rule update is in progress.
///
/// -
///
///
UPDATE_FAILED
when an organization Config rule update failed in one
/// or more member accounts within that organization.
///
///
///
[AWSProperty(Required=true)]
public OrganizationRuleStatus OrganizationRuleStatus
{
get { return this._organizationRuleStatus; }
set { this._organizationRuleStatus = value; }
}
// Check to see if OrganizationRuleStatus property is set
internal bool IsSetOrganizationRuleStatus()
{
return this._organizationRuleStatus != null;
}
}
}