/*
* 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
{
///
/// The StackEvent data type.
///
public partial class StackEvent
{
private string _clientRequestToken;
private string _eventId;
private HookFailureMode _hookFailureMode;
private HookInvocationPoint _hookInvocationPoint;
private HookStatus _hookStatus;
private string _hookStatusReason;
private string _hookType;
private string _logicalResourceId;
private string _physicalResourceId;
private string _resourceProperties;
private ResourceStatus _resourceStatus;
private string _resourceStatusReason;
private string _resourceType;
private string _stackId;
private string _stackName;
private DateTime? _timestamp;
///
/// Gets and sets the property ClientRequestToken.
///
/// The token passed to the operation that generated this event.
///
///
///
/// All events triggered by a given stack operation are assigned the same client request
/// token, which you can use to track operations. For example, if you execute a CreateStack
/// operation with the token token1
, then all the StackEvents
/// generated by that operation will have ClientRequestToken
set as token1
.
///
///
///
/// In the console, stack operations display the client request token on the Events tab.
/// Stack operations that are initiated from the console use the token format Console-StackOperation-ID,
/// which helps you easily identify the stack operation . For example, if you create a
/// stack using the console, each stack event would be assigned the same token in the
/// following format: Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002
.
///
///
[AWSProperty(Min=1, Max=128)]
public string ClientRequestToken
{
get { return this._clientRequestToken; }
set { this._clientRequestToken = value; }
}
// Check to see if ClientRequestToken property is set
internal bool IsSetClientRequestToken()
{
return this._clientRequestToken != null;
}
///
/// Gets and sets the property EventId.
///
/// The unique ID of this event.
///
///
[AWSProperty(Required=true)]
public string EventId
{
get { return this._eventId; }
set { this._eventId = value; }
}
// Check to see if EventId property is set
internal bool IsSetEventId()
{
return this._eventId != null;
}
///
/// Gets and sets the property HookFailureMode.
///
/// Specify the hook failure mode for non-compliant resources in the followings ways.
///
/// -
///
///
FAIL
Stops provisioning resources.
///
/// -
///
///
WARN
Allows provisioning to continue with a warning message.
///
///
///
public HookFailureMode HookFailureMode
{
get { return this._hookFailureMode; }
set { this._hookFailureMode = value; }
}
// Check to see if HookFailureMode property is set
internal bool IsSetHookFailureMode()
{
return this._hookFailureMode != null;
}
///
/// Gets and sets the property HookInvocationPoint.
///
/// Invocation points are points in provisioning logic where hooks are initiated.
///
///
public HookInvocationPoint HookInvocationPoint
{
get { return this._hookInvocationPoint; }
set { this._hookInvocationPoint = value; }
}
// Check to see if HookInvocationPoint property is set
internal bool IsSetHookInvocationPoint()
{
return this._hookInvocationPoint != null;
}
///
/// Gets and sets the property HookStatus.
///
/// Provides the status of the change set hook.
///
///
public HookStatus HookStatus
{
get { return this._hookStatus; }
set { this._hookStatus = value; }
}
// Check to see if HookStatus property is set
internal bool IsSetHookStatus()
{
return this._hookStatus != null;
}
///
/// Gets and sets the property HookStatusReason.
///
/// Provides the reason for the hook status.
///
///
[AWSProperty(Min=1, Max=1024)]
public string HookStatusReason
{
get { return this._hookStatusReason; }
set { this._hookStatusReason = value; }
}
// Check to see if HookStatusReason property is set
internal bool IsSetHookStatusReason()
{
return this._hookStatusReason != null;
}
///
/// Gets and sets the property HookType.
///
/// The name of the hook.
///
///
[AWSProperty(Min=1, Max=255)]
public string HookType
{
get { return this._hookType; }
set { this._hookType = value; }
}
// Check to see if HookType property is set
internal bool IsSetHookType()
{
return this._hookType != null;
}
///
/// Gets and sets the property LogicalResourceId.
///
/// The logical name of the resource specified in the template.
///
///
public string LogicalResourceId
{
get { return this._logicalResourceId; }
set { this._logicalResourceId = value; }
}
// Check to see if LogicalResourceId property is set
internal bool IsSetLogicalResourceId()
{
return this._logicalResourceId != null;
}
///
/// Gets and sets the property PhysicalResourceId.
///
/// The name or unique identifier associated with the physical instance of the resource.
///
///
public string PhysicalResourceId
{
get { return this._physicalResourceId; }
set { this._physicalResourceId = value; }
}
// Check to see if PhysicalResourceId property is set
internal bool IsSetPhysicalResourceId()
{
return this._physicalResourceId != null;
}
///
/// Gets and sets the property ResourceProperties.
///
/// BLOB of the properties used to create the resource.
///
///
public string ResourceProperties
{
get { return this._resourceProperties; }
set { this._resourceProperties = value; }
}
// Check to see if ResourceProperties property is set
internal bool IsSetResourceProperties()
{
return this._resourceProperties != null;
}
///
/// Gets and sets the property ResourceStatus.
///
/// Current status of the resource.
///
///
public ResourceStatus ResourceStatus
{
get { return this._resourceStatus; }
set { this._resourceStatus = value; }
}
// Check to see if ResourceStatus property is set
internal bool IsSetResourceStatus()
{
return this._resourceStatus != null;
}
///
/// Gets and sets the property ResourceStatusReason.
///
/// Success/failure message associated with the resource.
///
///
public string ResourceStatusReason
{
get { return this._resourceStatusReason; }
set { this._resourceStatusReason = value; }
}
// Check to see if ResourceStatusReason property is set
internal bool IsSetResourceStatusReason()
{
return this._resourceStatusReason != null;
}
///
/// Gets and sets the property ResourceType.
///
/// Type of resource. (For more information, go to Amazon
/// Web Services Resource Types Reference in the CloudFormation User Guide.)
///
///
[AWSProperty(Min=1, Max=256)]
public string ResourceType
{
get { return this._resourceType; }
set { this._resourceType = value; }
}
// Check to see if ResourceType property is set
internal bool IsSetResourceType()
{
return this._resourceType != null;
}
///
/// Gets and sets the property StackId.
///
/// The unique ID name of the instance of the stack.
///
///
[AWSProperty(Required=true)]
public string StackId
{
get { return this._stackId; }
set { this._stackId = value; }
}
// Check to see if StackId property is set
internal bool IsSetStackId()
{
return this._stackId != null;
}
///
/// Gets and sets the property StackName.
///
/// The name associated with a stack.
///
///
[AWSProperty(Required=true)]
public string StackName
{
get { return this._stackName; }
set { this._stackName = value; }
}
// Check to see if StackName property is set
internal bool IsSetStackName()
{
return this._stackName != null;
}
///
/// Gets and sets the property Timestamp.
///
/// Time the status was updated.
///
///
[AWSProperty(Required=true)]
public DateTime Timestamp
{
get { return this._timestamp.GetValueOrDefault(); }
set { this._timestamp = value; }
}
// Check to see if Timestamp property is set
internal bool IsSetTimestamp()
{
return this._timestamp.HasValue;
}
}
}