class AWS::SimpleWorkflow::Domain
Domains are used to organize workflows types and activities for an account.
@attr_reader [String,nil] description Returns
@attr_reader [Integer,Symbol] retention_period Returns the retention
period for this domain. The return value may be an integer (number of days history is kept around) or the symbol `:none`, implying no expiry of closed workflow executions.
@attr_reader [Symbol] status Returns the domain’s status. Status will
be either `:registered` or `:deprecated`.
Attributes
@return [String] Returns the name of this domain.
Public Class Methods
@api private
# File lib/aws/simple_workflow/domain.rb, line 35 def initialize name, options = {} @name = name.to_s super(options) end
Public Instance Methods
@return [ActivityTaskCollection]
# File lib/aws/simple_workflow/domain.rb, line 73 def activity_tasks ActivityTaskCollection.new(self) end
@return [ActivityTypeCollection]
# File lib/aws/simple_workflow/domain.rb, line 58 def activity_types ActivityTypeCollection.new(self) end
@return [DecisionTaskCollection]
# File lib/aws/simple_workflow/domain.rb, line 68 def decision_tasks DecisionTaskCollection.new(self) end
Deprecates the domain. After a domain has been deprecated it cannot be used to create new workflow executions or register new types. However, you can still use visibility actions on this domain.
Deprecating a domain also deprecates all activity and workflow types registered in the domain. Executions that were started before the domain was deprecated will continue to run.
@return [nil]
# File lib/aws/simple_workflow/domain.rb, line 92 def deprecate client.deprecate_domain(:name => name) nil end
@return [Boolean] Returns true if this domain has been deprecated.
# File lib/aws/simple_workflow/domain.rb, line 78 def deprecated? self.status == :deprecated end
@return [WorkflowExecutionCollection]
# File lib/aws/simple_workflow/domain.rb, line 63 def workflow_executions WorkflowExecutionCollection.new(self) end
@return [WorkflowTypeCollection]
# File lib/aws/simple_workflow/domain.rb, line 53 def workflow_types WorkflowTypeCollection.new(self) end
Protected Instance Methods
# File lib/aws/simple_workflow/domain.rb, line 116 def resource_identifiers [[:name,name]] end